A FetchController
fetches data from a URL and stores it in its data
property.
Option | Type | DefaultValue | Description |
---|---|---|---|
input | object | Optional The controller's initial state.input value. | |
converter | function | (input) => output | Optional - A function that accepts the input and returns the value of output. |
Property | Type | Description |
---|---|---|
input | string | The props to convert. |
output | any | The controller's converted input props. |
converter | function | Get or set a function that accepts the input and returns the value of output. |
Method | Description |
---|---|
animate() | Animate the controller's input (and convert it to output). |
setInput(props, initial) | Set the controller's input state. If initial is true, this method will only fire once. |
Example: