DesignOverviewDesign SystemMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingAgentsCortexMemoryActiveProvenanceActiveContextActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
View PanelView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA panel that changes a Data Table's whole view on a phone: its presets, filters, sort, columns, and export.Also called View drawer, View sheet, and Mobile filters.ExperimentalSince 0.238.0DataImportimport'@fusion.dev/helix/view-panel'import'@fusion.dev/helix-headless/view-panel'Preview
GuidelinesWhen to use
Every part of a Data Table's view in one panel, such as a drawer on a phone.View PanelThis page
Put View Panel in a Drawer opened by one View button.On a phone a table has no room above it for a filter field, a Columns button, and an Export button.
Show the View button at the widths that need it, and the tools above the table at the rest.The panel takes no width of its own.
Show active in a badge on the View button.It counts the search and the filters the view holds.
Anatomy
1::part(header)The row that holds the title, or Back, and Reset.
2slot="presets"OptionalA QuickFilters row for the table, shown above the sections.
3::part(section)One section's button in the list.
4::part(summary)What a section holds now.
5::part(show)The button that closes the panel's drawer, with how many rows the view shows.
API referenceRoothelix-view-panelA panel that changes a Data Table's whole view on a phone: its presets, filters, sort, columns, and export.
PropTypeDescriptionbackLabelstringDefault"Back"The words on the button that returns to the list.columnsLabelstringDefault"Columns"The name of the Columns section.exportLabelstringDefault"Export"The name of the Export section.fallbackLabelstringDefault"View"The name the panel gives itself where label is empty.filtersLabelstringDefault"Filters"The name of the Filters section.forstringDefault""The id of the DataTable whose view the panel changes, in the same document or shadow root.labelstringDefault""The panel's heading.noneLabelstringDefault"None"What the Sort and Filters sections say while nothing is set.resetLabelstringDefault"Reset"The words on the button that clears the search, the filters, and the sort.showLabelstringDefault"{count, plural, one {Show # row} other {Show # rows}}"The words on the button that closes the panel. {count} is how many rows the view shows.sortedLabelstringDefault"{column}, {direction, select, ascending {ascending} other {descending}}"One sort order, in the Sort section and its summary. {column} is the
column and {direction} is ascending or descending.sortLabelstringDefault"Sort"The name of the Sort section.
ReadTypeDescriptionactivenumberHow many things narrow the rows: the search, and each filter. For a badge on the View button.tableToolTable|nullThe bound table, once it is in the tree.whenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescriptioncolumnsA ColumnManager for the table.exportA TableExport for the table.filtersA FilterInput bound to the table, or your own filters.presetsA QuickFilters row for the table, shown above the sections.
MethodTypeDescriptionopenSection(section: Section | undefined) => voidOpens one section in the panel, or returns to the list with nothing.reset() => booleanClears the search, the filters, and the sort, as Reset does.show() => voidCloses the drawer or the dialog the panel is in, as Show does.
PartDescriptionbackThe button that returns from a section to the list.choiceOne sort order, a Radio.choice-boxThe circle of a sort order's Radio.choice-checkedAdded to choice while it is the table's sort.choice-itemThe button of a sort order's Radio, which covers its row.choice-labelThe words of a sort order's Radio.headerThe row that holds the title, or Back, and Reset.pageThe open section.resetThe button that clears the search, the filters, and the sort.sectionOne section's button in the list.section-markThe caret at the end of a section's button.section-nameA section's name.sectionsThe list of sections.showThe button that closes the panel's drawer, with how many rows the view shows.show-buttonForwarded from the button: the button inside show.show-liveForwarded from the button. Not shown in the panel, whose button does not load.show-spinnerForwarded from the button. Not shown in the panel, whose button does not load.show-textForwarded from the button: the words inside show.sortThe Radio Group of sort orders the panel draws, named by its aria-label.sort-feedbackForwarded from the radio group. Not shown, since a sort is never wrong.sort-hintForwarded from the radio group. Not shown, since the sort has no help.sort-itemsThe sort orders inside sort.sort-labelThe name of sort, clipped, since the panel's heading already says it.summaryWhat a section holds now.titleThe panel's heading.
CSS PropertyDescription--view-panel-rule-colorThe line between the sections.
Custom stateDescriptionsettledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Roothelix-headless-view-panelA panel that changes a Data Table's whole view on a phone: its presets, filters, sort, columns, and export.
PropTypeDescriptionbackLabelstringDefault"Back"The words on the button that returns to the list.columnsLabelstringDefault"Columns"The name of the Columns section.exportLabelstringDefault"Export"The name of the Export section.fallbackLabelstringDefault"View"The name the panel gives itself where label is empty.filtersLabelstringDefault"Filters"The name of the Filters section.forstringDefault""The id of the DataTable whose view the panel changes, in the same document or shadow root.labelstringDefault""The panel's heading.noneLabelstringDefault"None"What the Sort and Filters sections say while nothing is set.resetLabelstringDefault"Reset"The words on the button that clears the search, the filters, and the sort.showLabelstringDefault"{count, plural, one {Show # row} other {Show # rows}}"The words on the button that closes the panel. {count} is how many rows the view shows.sortedLabelstringDefault"{column}, {direction, select, ascending {ascending} other {descending}}"One sort order, in the Sort section and its summary. {column} is the
column and {direction} is ascending or descending.sortLabelstringDefault"Sort"The name of the Sort section.
ReadTypeDescriptionactivenumberHow many things narrow the rows: the search, and each filter. For a badge on the View button.tableToolTable|nullThe bound table, once it is in the tree.whenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescriptioncolumnsA ColumnManager for the table.exportA TableExport for the table.filtersA FilterInput bound to the table, or your own filters.presetsA QuickFilters row for the table, shown above the sections.
MethodTypeDescriptionopenSection(section: Section | undefined) => voidOpens one section in the panel, or returns to the list with nothing.reset() => booleanClears the search, the filters, and the sort, as Reset does.show() => voidCloses the drawer or the dialog the panel is in, as Show does.
PartDescriptionbackThe button that returns from a section to the list.choiceOne sort order, a Radio.choice-boxThe circle of a sort order's Radio.choice-checkedAdded to choice while it is the table's sort.choice-itemThe button of a sort order's Radio, which covers its row.choice-labelThe words of a sort order's Radio.headerThe row that holds the title, or Back, and Reset.pageThe open section.resetThe button that clears the search, the filters, and the sort.sectionOne section's button in the list.section-markThe caret at the end of a section's button.section-nameA section's name.sectionsThe list of sections.showThe button that closes the panel's drawer, with how many rows the view shows.show-buttonForwarded from the button: the button inside show.show-liveForwarded from the button. Not shown in the panel, whose button does not load.show-spinnerForwarded from the button. Not shown in the panel, whose button does not load.show-textForwarded from the button: the words inside show.sortThe Radio Group of sort orders the panel draws, named by its aria-label.sort-feedbackForwarded from the radio group. Not shown, since a sort is never wrong.sort-hintForwarded from the radio group. Not shown, since the sort has no help.sort-itemsThe sort orders inside sort.sort-labelThe name of sort, clipped, since the panel's heading already says it.summaryWhat a section holds now.titleThe panel's heading.
Custom stateDescriptionsettledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionCheckedThe panel opened to Sort, its orders a set of radios with the table's own sort chosen.PreviewThe panel a phone's View drawer holds for an invoice table: presets, then Filters, Sort, Columns, and Export with what each holds, and Show.PreviewThe panel a phone's View drawer holds for an invoice table: presets, then Filters, Sort, Columns, and Export with what each holds, and Show.