Detailing
By default, presets will only generate the listing page, editing page for a model, It's for simple objects. But for a complicated object with a lots of relationships and connections, and as the main data model of your system, It's better to have detail page for them. In there You can add all kinds of operations conveniently.
- The name of detailing fields are just a place holder for decide ordering
CellComponentFunccustomize how the cell displayvx.DataTablecreate a data table, Which the Listing page uses the same componentLoadMoreAtwill only show for example 2 rows of data, and you can click load more to display allvx.Carddisplay a card with toolbar you can setup action buttons- We reference the new form drawer that
b.Model(&ActivityNote{})creates, but hide notes in the menu
Details Info components and actions
A vx.DetailInfo component is used for display main detail field of the model.
And you can add any actions to the detail page with ease:
- The
vx.CardActions links to two event functions: Agree Terms, and Update Details - Agree Terms show a drawer popup that edit the
term_agreed_atfield - Update Details reuse the edit customer form
More Usage for Data Table
A vx.DataTable component is very featured rich, Here check out the row expandable example:
RowExpandFuncconfig the content when data table row expandcc.Editingsetup the fields when editcc.Creatingsetup the fields when create