core/action-bar/action-bar-item.component.ts
A
<c8y-action-bar-item [placement]="'right'">
<button class="btn btn-link" (click)="addRandom()"><i c8yIcon="plus-circle"></i> Add random</button>
</c8y-action-bar-item>
selector | c8y-action-bar-item |
templateUrl | ./action-bar-item.component.html |
Inputs |
groupId |
Type : any
|
If a group id is set, the action bar with the same group id is only rendered once. |
injector |
Type : Injector
|
Allows to define a different injector. |
itemClass |
Type : string
|
Default value : ''
|
Adds additional classes to the item. |
placement |
Type : "left" | "right" | "more"
|
Default value : 'left'
|
Where the item should be shown. Use "more" to place it in a dropdown on the right. |
priority |
Type : number
|
Default value : 0
|
Priority for sorting the list. Higher priority means an earlier position in the list. |
<ng-template #template>
<li class="{{itemClass}}">
<ng-content></ng-content>
</li>
</ng-template>