HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
Selection BarView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA bar that says how many of a Data Table's rows are selected, with what you can do to them and a way to clear them.ExperimentalSince 0.238.0DataUsageimport'@fusion.dev/helix/selection-bar'import'@fusion.dev/helix-headless/selection-bar'Preview
API referenceRoothelix-selection-barA bar that says how many of a Data Table's rows are selected, with what you can do to them and a way to clear them.
PropTypeDescriptionclearLabelstringDefault"Clear"The words on the button that clears the selection.countLabelstringDefault"{count} selected"What the bar says. {count} is how many rows are selected.forstringDefault""The id of the DataTable whose selection the bar shows, in the same
document or shadow root. Left empty, the bar takes the table it is written
in.
ReadTypeDescriptioncountnumberHow many rows are selected.tableToolTable|nullThe bound table, once it is in the tree.whenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)What you can do to the selected rows, such as buttons.
MethodTypeDescriptionclear() => booleanUnselects every row, as Clear does. Returns whether the selection changed.
PartDescriptionactionsThe region that holds the slotted actions.clearThe button that clears the selection.countSays how many rows are selected.
CSS PropertyDescription--selection-bar-background-colorThe fill of the bar.
Custom stateDescriptionsettledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Roothelix-headless-selection-barA bar that says how many of a Data Table's rows are selected, with what you can do to them and a way to clear them.
PropTypeDescriptionclearLabelstringDefault"Clear"The words on the button that clears the selection.countLabelstringDefault"{count} selected"What the bar says. {count} is how many rows are selected.forstringDefault""The id of the DataTable whose selection the bar shows, in the same
document or shadow root. Left empty, the bar takes the table it is written
in.
ReadTypeDescriptioncountnumberHow many rows are selected.tableToolTable|nullThe bound table, once it is in the tree.whenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)What you can do to the selected rows, such as buttons.
MethodTypeDescriptionclear() => booleanUnselects every row, as Clear does. Returns whether the selection changed.
PartDescriptionactionsThe region that holds the slotted actions.clearThe button that clears the selection.countSays how many rows are selected.
Custom stateDescriptionsettledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionPreviewAn invoice table with two rows selected, where the selection bar has taken the toolbar's place with Archive, Export, and Clear.PreviewAn invoice table with two rows selected, where the selection bar has taken the toolbar's place with Archive, Export, and Clear.