Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Card Event Hooks

Table of contents
  1. onCardEvent
    1. Trigger
    2. Parameter
    3. Parameter example
    4. Annotation

Action card is a component where data and icon can be shown in different ways. It has two actions, the primary and the secondary action. Usually the primary action navigate the user to an other view (like a list view) and the secondary action bring up a popup window (like a creation wizard).

onCardEvent

Trigger

This event will be fired after one of the card actions is triggered. This event hook can be used the define the event handler for the action.

Parameter

export class BroadcastEvent {
  name: string;
  parameter?: any;
  payload?: any;
}

Parameter example

onactioncardevent.png

Annotation

  • Using event.name to determine from which action card the event is fired
  • Using event.parameter to determine whether it is a primary or a secondary action