CotomyEntityFillApiForm
Entity API form that loads data and fills inputs automatically.
Methods
| Method | Description |
|---|---|
filler(type, func) | Registers a custom fill handler for input types. |
initialize() | Registers fillers and loads on cotomy:ready. |
reloadAsync() | Reloads by fetching data from the API. |
renderer() | Creates a CotomyViewRenderer for the form. |
Protected Members (for subclassing)
| Member | Description |
|---|---|
loadActionUrl | URL used for loading entity data. |
bindNameGenerator() | Name generator for binding (default: bracket). |
canLoad | true if loading should proceed. |
loadAsync() | Loads entity data and fills the form. |
applyValueToInputs(pname, value) | Applies a single value to inputs. |
fillArrayAsync(generator, values, propertyName) | Fills array values recursively. |
fillObjectAsync(generator, target, propertyName?) | Fills object values recursively. |
fillAsync(response) | Fills inputs and applies renderer. |
submitToApiAsync(formData) | Submits and then fills on success. |