Contains methods related to life cycle data of the widget.
The life cyle of a widget pass for the following steps:
- Set the widget in loading view
- Call the requests
- Validate the requests
- Normalize the data
- Process the data
- Validate the process
- Render the data
Methods
# setData(data)
Set the data to the widget from outside of the request process.
Parameters:
Name | Type | Description |
---|---|---|
data |
Array
|
Data to use in the widget. |
# setLoadingVisibility(bool)
Set the visibility of the loading icon.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
True for see loading, false to hide it. |
# setRequests(requests, bindChangeopt)
Set the requests objects
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
requests |
Array
|
Array of request to perform |
||
bindChange |
boolean
|
<optional> |
false | Subscribe to the Request "change". |