DefinitelyTyped/types/selectables/index.d.ts
renjfk 6688ade3ea added definitions for selectables 1.4 (#20699)
* added definitions for selectables 1.4

* options are now optional

* constructor is now optional
2017-10-19 08:42:05 -07:00

36 lines
783 B
TypeScript

// Type definitions for selectables 1.4
// Project: https://github.com/p34eu/Selectables#readme
// Definitions by: Soner Köksal <https://github.com/renjfk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = Selectables;
declare class Selectables {
options: Selectables.Options;
constructor(options?: Selectables.Options);
enable(): void;
disable(): void;
}
declare namespace Selectables {
interface Options {
zone?: string;
elements?: string;
selectedClass?: string;
key?: string | boolean;
moreUsing?: string;
enabled?: boolean;
start?(e: Event): void;
stop?(e: Event): void;
onSelect?(el: Element): void;
onDeselect?(el: Element): void;
}
}