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

ActionWithTemplate

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(actionService: ActionService, _injector: EnvironmentInjector)
Parameters :
Name Type Optional
actionService ActionService No
_injector EnvironmentInjector No

Inputs

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)

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

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

results matching ""

    No results matching ""