forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slick.headerbuttons.d.ts
41 lines (33 loc) · 1.03 KB
/
slick.headerbuttons.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Type definitions for SlickGrid HeaderButtons Plugin 2.1.0
// Project: https://github.com/mleibman/SlickGrid
// Definitions by: Derek Cicerone <https://github.com/derekcicerone/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="SlickGrid.d.ts" />
declare module Slick {
export interface Column<T extends SlickData> {
header?: Header;
}
export interface Header {
buttons: HeaderButton[];
}
export interface HeaderButton {
command?: string;
cssClass?: string;
handler?: Function;
image?: string;
showOnHover?: boolean;
tooltip?: string;
}
export interface OnCommandEventArgs<T extends SlickData> {
grid: Grid<T>;
column: Column<T>;
command: string;
button: HeaderButton;
}
export module Plugins {
export class HeaderButtons<T extends SlickData> extends Plugin<T> {
constructor();
public onCommand: Event<OnCommandEventArgs<T>>;
}
}
}