toggle
component allows us to react to events and toggle the UI state.toggle
component accepts the following parameters:show_on
option lets us define an event on which the component gets shown. The content is still rendered on init pageload, but simply hidden in the browser until the event is emitted. If you want to have proper deferred loading, please refer to defer​hide_on
option lets us define an event on which the component gets hidden.hide_after
option lets us define a timespan in milliseconds after which the component gets hidden.init_show
option lets us define if the content should be shown initially.show_on
is defined.init_show
is therefore only used in a context like this:my_event
gets triggered.my_event
gets triggered.my_event
gets triggered and be hidden after 1000 milliseconds.show_on
and hide_on
, you can toggle the view state of the toggle
component explicitly.show_on
is applied.init_show: true