Skip to content
MyAppBuilder
StableEvent

On open

Overview

Fires when a Modal or Drawer component is opened.

Purpose

Prepare the overlay's content: reset state, focus a step, load a default value.

Inputs

  • Supported by: Modal, Drawer (the inline overlay components, controlled through their open state).

Configuration

  • Open these components with Set state → Component state › open = true. Modal pages opened with Open modal page use the page's On load instead.

Outputs

  • No event data.

Example

Reset a wizard when it opens

Example
Modal “New job” › On open:
  1. Set state  Component state › Stepper › activeIndex = 0

Errors

  • None.

Limitations

  • Does not fire for modal/drawer pages.

Related

Was this helpful?