File

core/action/action.component.ts

Description

A can be added with content projection.

Implements

Action

Example

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

Metadata

selector c8y-action
templateUrl ./action.component.html

Index

Properties
Methods
Inputs

Constructor

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

Inputs

disabled

Is this action disabled.

Type : boolean

Default value : false

icon

The icon to show on this action

Type : string

label

The label of the component

Type : string

priority

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

Type : number

Default value : 0

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
action: function
Type : function
template
template: any
Type : any
Decorators :
@ViewChild('template', {static: undefined})
<ng-template #template>
  <li>
    <ng-content></ng-content>
  </li>
</ng-template>

result-matching ""

    No results matching ""