Skip to contents

Create a Table component

Usage

calcite_table(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

an object of class calcite_component which is a subclass of shiny.tag

Details

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
borderedborderedWhen true, displays borders in the component.booleanTRUE
captioncaptionSpecifies an accessible title for the component.stringFALSE
groupSeparatorgroup-separatorWhen true, number values are displayed with a group separator corresponding to the language and country format.booleanTRUE
interactionModeinteraction-modeWhen "interactive", allows focus and keyboard navigation of table-headers and table-cells. When "static", prevents focus and keyboard navigation of table-headers and table-cells when assistive technologies are not active. Selection affordances and slotted content within table-cells remain focusable."interactive" | "static"TRUE
layoutlayoutSpecifies the layout of the component."auto" | "fixed"TRUE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
numberednumberedWhen true, displays the position of the row in numeric form.booleanTRUE
numberingSystemnumbering-systemSpecifies the Unicode numeral system used by the component for localization."arab" | "arabext" | "latn"TRUE
pageSizepage-sizeSpecifies the page size of the component. When true, renders calcite-pagination.numberTRUE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
selectedItemsNASpecifies the component's selected items.Check API referenceFALSE
selectionDisplayselection-displaySpecifies the display of the selection interface when selection-mode is not "none". When "none", content slotted the selection-actions slot will not be displayed."none" | "top"TRUE
selectionModeselection-modeSpecifies the selection mode of the component, where: "multiple" allows any number of selections, "single" allows only one selection, and "none" does not allow any selections."multiple" | "none" | "single"TRUE
stripedstripedWhen true, displays striped styling in the component.booleanTRUE

Events

The following events are observed by shiny:

EventDescription
calciteTablePageChangeEmits when the component's page selection changes.
calciteTableSelectEmits when the component's selected rows change.

Slots

The following slots are provided by this component:

SlotDescription
Default (unnamed)A slot for adding calcite-table-row elements containing calcite-table-cell and/or calcite-table-header elements.
table-headerA slot for adding calcite-table-row elements containing calcite-table-header elements.
table-footerA slot for adding calcite-table-row elements containing calcite-table-cell and/or calcite-table-header elements.
selection-actionsA slot for adding calcite-actions or other elements to display when selectionMode is not "none" and selectionDisplay is not "none".

Examples

calcite_table()
#> <calcite-table></calcite-table>