File

core/action/action.component.ts

Description

A can be added with content projection.

<c8y-action>
  <button class="btn" (click)="myAction()">My action</button>
</c8y-action>

Implements

Action

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(actionService: ActionService)
Parameters :
Name Type Optional
actionService ActionService No

Inputs

disabled
Type : boolean
Default value : false

Is this action disabled.

icon
Type : string

The icon to show on this action

label
Type : string

The label of the component

priority
Type : number
Default value : 0

The priority of this action (the higher the number, the higher the action will be displayed; optional)

Methods

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

Properties

action
Type : function
template
Type : any
Decorators :
@ViewChild('template', {static: false})
<ng-template #template>
  <li>
    <ng-content></ng-content>
  </li>
</ng-template>

results matching ""

    No results matching ""