Constructor
new WaitComponent(dataObjectopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
dataObject |
DataObject |
<optional> |
null | |
options |
Object |
<optional> |
null |
- Source:
- To Do:
-
- Make this watch a DataObject and react to events like saving or fetching and update
Example
const waitComponent = new WaitComponent()
// at start of some process
waitComponent.state = WaitComponent.PROCESSING
// at successful end of some process
waitComponent.state = WaitComponent.SUCCEEDED
// or at successful end of some process
waitComponent.state = WaitComponent.FAILED
// or to reset to nothing happening
waitComponent.state = WaitComponent.NOTHING_HAPPENING
Members
state :string
Will be one of:
- WaitComponent.NOTHING_HAPPENING
- WaitComponent.PROCESSING
- WaitComponent.FAILED
- WaitComponent.SUCCEEDED
Type:
- string
state
Must be one of:
- WaitComponent.NOTHING_HAPPENING
- WaitComponent.PROCESSING
- WaitComponent.FAILED
- WaitComponent.SUCCEEDED