mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #4019 from ryiwamoto/added_slick.autotooltips
Added slick.autotooltips.d.ts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/// <reference path="./slick.autotooltips.d.ts" />
|
||||
|
||||
var grid = new Slick.Grid("#myGrid", [], [], {});
|
||||
grid.registerPlugin(new Slick.AutoTooltips({
|
||||
enableForCells: true,
|
||||
enableForHeaderCells: true,
|
||||
maxToolTipLength: 100
|
||||
}));
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
// Type definitions for SlickGrid AutoToolTips Plugin 2.1.0
|
||||
// Project: https://github.com/mleibman/SlickGrid
|
||||
// Definitions by: Ryo Iwamoto <https://github.com/ryiwamoto>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="SlickGrid.d.ts" />
|
||||
|
||||
declare module Slick {
|
||||
export interface SlickGridAutoTooltipsOption extends PluginOptions {
|
||||
/**
|
||||
* Enable tooltip for grid cells
|
||||
* @default true
|
||||
*/
|
||||
enableForCells?: boolean;
|
||||
|
||||
/**
|
||||
* Enable tooltip for header cells
|
||||
* @default false
|
||||
*/
|
||||
enableForHeaderCells?: boolean;
|
||||
|
||||
/**
|
||||
* The maximum length for a tooltip
|
||||
* @default null
|
||||
*/
|
||||
maxToolTipLength?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* AutoTooltips plugin to show/hide tooltips when columns are too narrow to fit content.
|
||||
*/
|
||||
export class AutoTooltips extends Plugin<Slick.SlickData> {
|
||||
constructor(option?: SlickGridAutoTooltipsOption);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user