core/action/action.component.ts
A
<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, _injector: EnvironmentInjector)
|
|||||||||
|
Parameters :
|
| disabled |
Type : boolean
|
Default value : false
|
|
Is this action disabled. |
| icon |
Type : string
|
|
The icon to show on this action |
| injector |
Type : Injector
|
| priority |
Type : number
|
Default value : 0
|
|
The priority of this action (the higher the number, the higher the action will be displayed; optional) |
| 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
|
| template |
Type : any
|
Decorators :
@ViewChild('template', {static: false})
|
<ng-template #template>
<li>
<ng-content></ng-content>
</li>
</ng-template>