Class Ribbons
[search] [create] [filters] [export: copy/csv/link + extras] [view: collapse / columns / reset] [refresh]
Each slot has a canonical group, so the ribbon sorts the same way everywhere:
| Slot | Group | Item ids |
|---|---|---|
| search | search | search |
| create | entity | your Ribbons.Standard.create(RibbonItem...) items |
| filters | filter | your Ribbons.Standard.filter(RibbonItem...) items |
| export | export | export (buttons copy, csv plus extras), link |
| view | viewing | collapse, columns, reset |
| refresh | page | refresh |
Every item carries an explicit id, so the output describes itself. The ids collapse and reset
are explicit overrides of the stock defaults collapseAll and resetDefaults. build()
replaces the group of every item you pass to create or filter with the slot's group.
The copy and csv buttons need the DataTables Buttons extension, so a page using the preset must
list the datatables-buttons toolkit pack. Without it the export cluster is omitted at runtime and the link
button still renders. The collapse button is hidden at runtime on a table with no row detail, and the columns and
reset buttons on a table without columnConfig.
Example:
TableSpec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for the standard table ribbon. -
Method Summary
-
Method Details
-
standard
Starts the standard preset.- Returns:
- A new builder.
-