Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For each button in the wizard card there is one function from this type. Only the functions in the active card are called.
The call of those function is processed by TaskAddWindowViewModel formulas, whenever the activeItem in the view model is changed (each time when the card is set to active).
If new button should be added, a viewmodel formula for this function also is needed.

 

Card events


Changing the active card, however skipping a group of cards are posible with events fired from the active cards.

Currently existing events:

  • wizardCardFinished - fired when the card validations is finished, and next card is requested
  • wizardCardSkipped - fired when the group of cards should be skipped

All of those card events are handled in the TaskOverview controller.

Here is the code which handles the events fired from the visible(active) card.

Code Block
'adminTaskAddWindow panel:not([hidden])': {
	wizardCardFinished:me.onWizardCardFinished,
	wizardCardSkiped:me.onWizardCardSkiped
}