DesignOverviewDesign SystemMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingAgentsCortexMemoryActiveProvenanceActiveContextActiveServicesInsightsGet 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.Also called Bulk actions and Action bar.ExperimentalSince 0.238.0DataImportimport'@fusion.dev/helix/selection-bar'import'@fusion.dev/helix-headless/selection-bar'Preview
GuidelinesWhen to use
Actions on the rows selected in a Data Table, with how many are selected.Selection BarThis page
Put Selection Bar in the Data Table's selection slot.It then takes the toolbar's place while rows are selected.
Set for to the table's id where the bar is written outside the table.Written inside the table, it finds the table.
Anatomy
1::part(count)Says how many rows are selected.
2::part(actions)The region that holds the slotted actions.
3::part(clear)The button that clears the selection.
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.