SelfDestructController
Purpose
Remove elements a set amount of time after loading - primarily for flash notifications.
Actions
Action | Purpose |
---|---|
- | - |
Targets
Target | Purpose | Default |
---|---|---|
- | - | - |
Classes
Class | Purpose | Default |
---|---|---|
- | - | - |
Values
Value | Type | Description | Default |
---|---|---|---|
secondsValue | Number | The number of seconds before the element removes itself from the DOM | - |
Events
Event | When | Dispatched on | event.detail |
---|---|---|---|
- | - | - | - |
Side Effects
The element the controller is installed on will be removed from the DOM after the specified time.