core/action/action.component.ts
A
```html
* <c8y-action>
* <button class="btn" (click)="myAction()">My action</button>
* </c8y-action>
* ```
selector | c8y-action |
templateUrl | ./action.component.html |
Properties |
Methods |
Inputs |
constructor(actionService: ActionService)
|
||||||
Parameters :
|
disabled
|
Is this action disabled.
Type :
Default value : |
icon
|
The icon to show on this action
Type : |
label
|
The label of the component
Type : |
priority
|
The priority of this action (the higher the number, the higher the action will be displayed; optional)
Type :
Default value : |
ngAfterViewInit |
ngAfterViewInit()
|
After page view is initialized, component adds itself to global action list.
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Action is removed from global action list, if component is not used anymore.
Returns :
void
|
action |
action:
|
Type : function
|
template |
template:
|
Type : any
|
Decorators :
@ViewChild('template', {static: undefined})
|
<ng-template #template>
<li>
<ng-content></ng-content>
</li>
</ng-template>