TitlePane.d.ts
57 lines
| 1.5 KiB
| video/mp2t
|
TypeScriptLexer
cin
|
r2 | import ContentPane = require("./layout/ContentPane"); | |
import _TemplatedMixin = require("./_TemplatedMixin"); | |||
import _CssStateMixin = require("./_CssStateMixin"); | |||
import { _WidgetBaseConstructor } from "./_WidgetBase"; | |||
interface TitlePane extends ContentPane, _TemplatedMixin, _CssStateMixin { | |||
/** | |||
* Whether pane can be opened or closed by clicking the title bar. | |||
*/ | |||
toggleable: boolean; | |||
/** | |||
* Tabindex setting for the title (so users can tab to the title then use space/enter to open/close the title pane) | |||
*/ | |||
tabIndex: string; | |||
/** | |||
* Time in milliseconds to fade in/fade out | |||
*/ | |||
duration: number; | |||
/** | |||
* Don't change this parameter from the default value. | |||
* | |||
* This ContentPane parameter doesn't make sense for TitlePane, since TitlePane is never a child of a layout container, nor should TitlePane try to control the size of an inner widget. | |||
*/ | |||
doLayout: boolean; | |||
/** | |||
* Switches between opened and closed state | |||
*/ | |||
toggle(): void; | |||
/** | |||
* Set the open/close css state for the TitlePane | |||
*/ | |||
_setCss(): void; | |||
/** | |||
* Handler for when user hits a key | |||
*/ | |||
_onTitleKey(e: Event): void; | |||
/** | |||
* Handler when user clicks the title bar | |||
*/ | |||
_onTitleClick(): void; | |||
/** | |||
* Deprecated. Use set('title', ...) instead. | |||
*/ | |||
setTitle(): void; | |||
} | |||
interface TitlePaneConstructor extends _WidgetBaseConstructor<TitlePane> { } | |||
declare const TitlePane: TitlePaneConstructor; | |||
export = TitlePane; |