src/interfaces/IParamsEditorButton.ts
Properties |
class |
class:
|
Type : string
|
Optional |
Defined in src/interfaces/IParamsEditorButton.ts:17
|
css class |
handler |
handler:
|
Type : function
|
Defined in src/interfaces/IParamsEditorButton.ts:12
|
Click handler |
icon |
icon:
|
Type : string
|
Optional |
Defined in src/interfaces/IParamsEditorButton.ts:22
|
fa icon |
label |
label:
|
Type : string
|
Defined in src/interfaces/IParamsEditorButton.ts:7
|
Label of button |
when |
when:
|
Type : function
|
Optional |
Defined in src/interfaces/IParamsEditorButton.ts:27
|
Whether it is available |
import { RestAdminComponent } from '../component';
export interface IParamsEditorButton {
/**
* Label of button
*/
label: string;
/**
* Click handler
*/
handler: (self: RestAdminComponent) => void;
/**
* css class
*/
class?: string;
/**
* fa icon
*/
icon?: string;
/**
* Whether it is available
*/
when?: (self: RestAdminComponent) => boolean;
}