core/data-grid/data-grid.model.ts
Describes a data grid action control for individual item.
Properties |
|
[key: string]:
|
| callback |
callback:
|
Type : | Function
|
|
A callback function. |
| icon |
icon:
|
Type : SupportedIconsSuggestions
|
| Optional |
|
The icon for the action button. |
| iconClasses |
iconClasses:
|
Type : string
|
| Optional |
|
The icon classes for the action button icon. |
| priority |
priority:
|
Type : number
|
| Optional |
|
Defines the order in which action controls appear. Higher value means earlier position. Controls without priority are handled with priority = 0. If you want to place an action after an action without priority, negative numbers can be used. |
| showIf |
showIf:
|
Type : | Function
|
| Optional |
|
Determines if the action should be shown for given item (if not defined, the action will be shown always). |
| showOnHover |
showOnHover:
|
Type : boolean
|
| Optional |
|
Action icon will be visible on hover only |
| text |
text:
|
Type : string
|
| Optional |
|
The label for the action button. |
| type |
type:
|
Type : BuiltInActionType | string
|
|
The type of the action, predefined or custom. |