mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added definitions for selectables 1.4 * options are now optional * constructor is now optional
16 lines
212 B
TypeScript
16 lines
212 B
TypeScript
import * as Selectables from "selectables";
|
|
|
|
const dr = new Selectables({
|
|
zone: '#div',
|
|
elements: 'li'
|
|
});
|
|
|
|
// later
|
|
dr.disable();
|
|
|
|
// enable again
|
|
dr.enable();
|
|
|
|
// set options
|
|
dr.options.key = 'altKey';
|