Column groups
Last updated
Last updated
Version compatibility
column-group
was introduced in version 4.70.0 of the JourneyApps Runtime.
The Showcase: Object Tables template app contains an example implementation of a column groups. Check it out!
Columns in an object-table
can be grouped to indicate categories or cater for more sophisticated use cases.
show-if
and hide-if
Much like standard table columns, column groups can also make use of dynamic show-if
and hide-if
attributes. Note that hidden column groups always take priority over show-if
and hide-if
attributes on nested columns.
Use the collapsed="true | false"
attribute to put an entire group into a collapsed or expanded state. Unlike show-if
and hide-if
, column groups will remain visible but are represented as a vertical bar in-place of the group itself.
Tip: Column groups are useful for separating concepts in a table such as totals, descriptions or other data types. Collapsed column groups improve the UX of large tables that would otherwise be hard to view because of the horizontal scrolling required.