device-grid/device-grid.model.ts
Use `ActionControlHook` instead.
Defines an action hook for the device grid.
Example : {
...
deviceMatches: (device: IManagedObject) => device?.type === 'my_custom_type'
} {
...
onAction: (device: IManagedObject) => this.myService.triggerCustomAction(device)
}
Properties |
|
| deviceMatches |
deviceMatches:
|
Type : function
|
| icon |
icon:
|
Type : string
|
| Optional |
| onAction |
onAction:
|
Type : function
|
| refreshAfterActionDone |
refreshAfterActionDone:
|
Type : boolean
|
| showOnHover |
showOnHover:
|
Type : boolean
|
| Optional |
| text |
text:
|
Type : string
|
| Optional |
| type |
type:
|
Type : BuiltInActionType | string
|