Column manager
For managing table column visibility and ordering
Demo
API
Tag
Name | Description |
---|---|
<s-column-manager>
|
Custom HTML tag, no content |
Attributes
Name | Value | Required | Description |
---|---|---|---|
columnitems |
String |
|
Stringified JSON array of column objects. See Guidelines below. |
id |
String |
Unique ID. Recommended when multiple column manager components exist in the page (the |
|
noreorder |
Boolean |
Disables the ability to change the display order of columns by dragging and dropping them. |
|
i18n |
string |
A stringified JSON object which defines a list of localized strings. The keys must be one of the string IDs defined below. |
Properties
Name | Value | Required | Description |
---|---|---|---|
columnItems |
String |
|
Stringified JSON array of column objects. See Guidelines below. |
id |
String |
Unique ID. Recommended when multiple column manager components exist in the page (the |
|
noReorder |
Boolean |
Disables the ability to change the display order of columns by dragging and dropping them. |
|
i18n |
object |
A JSON object which defines a list of localized strings. The keys must be one of the string IDs defined below. |
Classes
Name | Description |
---|---|
full-width
|
Styles trigger button to span the full width of its container. Primarily for use in responsive table toolbar. |
Events
Name | Detail | Description |
s-save |
The new columnItems object and the column manager's |
Fired when the save button is pressed. |
Demo
API
Tag
Name |
<SColumnManager>
|
Props
Name | Value | Required | Description |
---|---|---|---|
columnItems |
Array |
|
Array of column objects. See Guidelines below. |
id |
String |
Unique ID. Recommended when multiple column manager components exist in the page (the |
|
noReorder |
Boolean |
Disables the ability to change the display order of columns by dragging and dropping them. |
|
i18n |
object |
A JSON object which defines a list of localized strings. The keys must be one of the string IDs defined below. |
|
onS-save |
Function |
|
Handles the |
Classes
Name | Description |
---|---|
full-width
|
Styles trigger button to span the full width of its container. Primarily for use in responsive table toolbar. |
Skylab React links
Typescript
Exported types
i18n Strings
ID | Description | Default value |
---|---|---|
"columnManager.triggerButton"
|
Trigger button text. | Manage columns |
"columnManager.applyButton"
|
"Apply" button text. | Apply |
"columnManager.cancelButton"
|
"Cancel" button text. | Cancel |
"columnManager.instructions"
|
Instructions text. | Reorder columns with arrow keys. |
"columnManager.reorderAnnouncement"
|
The text announced by screen readers when items are reordered. Must contain the strings {ITEM_LABEL} and {POSITION} as placeholders. |
{ITEM_LABEL} is now in position {POSITION}. |
Guidelines
Data persistence
UX guidance states that any changes made by the user to column order and visibility should persist throughout the session.
Creating column items
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com