Autoform Nav Elements
A complete reference of all Autoform nav elements
autoform_navs contains the content of each Autoform link. It has a nested structure and Autoform uses recursive algorithms to access/set its content.
The sync function infers as much as possible from the models to avoid redundant configurations.
Base Structure
The base structure is as in the following example, which has 2 navs (meaning two menu items on top of the page), with labels "Nav Label A" and "Nav Label B" respectively. Each nav has 1 child, with category "handsontable" that will display a table in Autoform.
Child Elements
The below section shows code snippets illustrating how to use the different child elements.
"category": "input"
type="text"
type="textarea"
type="number"
type="email"
type="date"
type="radio"
Radio buttons are displayed automatically if the corresponding model field choices are less than 5.
Corresponding model field name:
type="rangeslider"
type="checkbox"
"category": "handsontable"
"category": "upload"
"category": "group"
"category": "card"
Nested Children
Each child can have 0 to many children, which will be displayed as nested elements.
Last updated