mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #1603 from derekcicerone/patch-35
Create slick.headerbuttons.d.ts
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
// 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 module Plugins {
|
||||
|
||||
export class HeaderButtons<T extends SlickData> extends Plugin<T> {
|
||||
constructor();
|
||||
public onCommand: Event<any>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user