HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet 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.ExperimentalSince 0.238.0DataUsageimport'@fusion.dev/helix/view-panel'import'@fusion.dev/helix-headless/view-panel'Preview
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, its input and its words.choice-inputThe radio input of a sort order.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 sort orders the panel draws.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, its input and its words.choice-inputThe radio input of a sort order.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 sort orders the panel draws.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
NameDescriptionPreviewThe 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.