mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
42 lines
1021 B
TypeScript
42 lines
1021 B
TypeScript
// 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/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
declare namespace 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>>;
|
|
}
|
|
}
|
|
}
|