-
Notifications
You must be signed in to change notification settings - Fork 97
dialogAutoCloser
James Hou edited this page Jan 31, 2021
·
3 revisions
Note: Event Publisher is available in both Local Flow Action and Flow Screen LWC flavors that can also do what this component does.
A simple component that counts down and auto closes a DialogService opened dialog by sending a messageService connected closedialog event. This is meant to be used to close a soqlDatatable launched Screen Flow as the last flow screen.
However, there are a couple more ways to use it:
- As a visual countdown progress bar, handling the bubbled
closedialogCustom Event by yourself. - Refreshing an instance of
soqlDatatableby using theuniqueBoundaryandisRefreshTableproperties. This sends aboundaryscoped:refreshsoqldatatableLMS event.
Attributes
| Name | Type | Access | Required | Default | Description |
|---|---|---|---|---|---|
| messageTemplate | String | public | no | Auto closing in {timer} seconds | Message to display to user while countdown is running |
| timer | Number | public | no | 5 | Seconds until the component launches the closedialog LMS event |
| uniqueBoundary | String | public | no | Used with isRefreshTable to figure out which soqlDatatable to refresh |
|
| isRefreshTable | Boolean | public | no | false | Used with uniqueBoundary to send a scoped refreshsoqldatatable event. |
Public Methods
None