DefinitelyTyped/types/jquery-editable-select/jquery-editable-select-tests.ts
Vincent Biret 4afabfed53 providing type definitions for jquery-editable-select (#18356)
* providing type definitions for jquery-editable-select

* fixing linting errors for jquery-editable-select

* re-enabling disabled linting rule ban-types for jquery-editable-select
2017-07-24 12:46:38 -07:00

16 lines
857 B
TypeScript

function test_editable_select() {
$("#select").editableSelect();
$("#select").editableSelect({ filter: true, duration: 'slow', effects: 'default', appendTo: '.someelementclass', trigger: 'focus'});
$("#select").editableSelect('remove', 0);
$("#select").editableSelect('destroy');
$("#select").editableSelect('hide');
$("#select").editableSelect('show');
$("#select").editableSelect('filter');
$("#select").editableSelect('clear');
$("#select").editableSelect('select', $('#option1'));
$("#select").editableSelect('add', 'some text');
$("#select").editableSelect('add', 'some text', 0);
$("#select").editableSelect('add', 'some text', 0, [{name: 'attribute1', value: 'attribute1value'}]);
$("#select").editableSelect('add', 'some text', 0, [{name: 'attribute1', value: 'attribute1value'}], 'some data');
}