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
36 lines
783 B
TypeScript
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;
|
|
}
|
|
}
|