Readonly
contextThe delay before applying ready classes and dispatching events.
The detail value to be dispatched with events when the element is ready.
The custom events to be dispatched when the element is ready.
Readonly
readyThe classes to be added when the element is ready.
Readonly
removeThe classes to be removed when the element is ready.
Static
blessingsStatic
classesStatic
outletsStatic
targetsStatic
valuesStatic
shouldAdd the ready classes and remove the remove classes after a delay. By default, the action will be immediate (negative value). Even when immediate, allow for a microtask delay to allow for other controllers to connect, then do any updates do classes/dispatch events. Support the ability to also dispatch custom event names.
Allow the controller to remove itself as it's no longer needed when the init has completed. Removing the controller reference and all other specific value/classes data attributes.
Static
after
Adds the ability for a controlled element to dispatch an event and also add or remove classes when ready to be interacted with.
Example: - Dynamic classes when ready
Example: - Custom event dispatching
Example: - Detail dispatching