Table Select

Select one or multiple rows from a flat, virtualized, or tree-structured Table.

Table Select

Flat single selection

Bind one row key. Selecting an enabled row closes the popup by default; disabled rows cannot be selected.

Flat multiple selection

Enable multiple and bind an array of keys. Toggle rows with clicks or checkboxes; the popup stays open by default. Remove selected tags or clear the selection.

Tree single selection

Use tree-config for hierarchical data. This example uses selectable to allow leaf selection; parent nodes expand and collapse.

Tree multiple selection

multiple works with flat and tree data. Bind an array of row keys; the popup stays open by default. Selected tags can be removed and collapse beyond max-collapse-tags. Tree selection links loaded selectable descendants and derives parent check states independently of the checked-strategy output; disabled branches are excluded. Set check-strictly for independent selection. The default checked-strategy="leaf" outputs selectable leaves; all outputs all checked nodes and parent compresses fully checked branches. The strategy controls both model keys and tags while parent check states remain derived. Unloaded nodes are not automatically selected.

Size

Compare the inherited small, default, and large component sizes.

Shape

Use shape="square" to apply square geometry to the selector trigger and the shared Table popup surface.

Large tree data

The expanded tree contains 10,000 leaf nodes. virtual-config keeps the popup bounded and mounts only the visible row window.

Large table data

A regular three-column Table can use the same virtualized selector shell. This example contains 10,000 flat rows with dynamic measurement.

Custom rendering

Customize table cells with column slots and named renderers, and use selected to render the trigger value. Advanced table rendering rules remain part of Table.

Use columns.slots.default or columns.slots.header to assign custom column slot names. Column slots and trigger affixes may be added or removed conditionally after mounting. The selector reserves prefix, suffix, clear-icon, selected, empty, popup-header and popup-footer; use other names for table content. The selected-value slot receives { row, label }, while data and header slots retain their Table render parameters.

Loading

Set loading while options or values are being loaded. The trailing indicator matches Input and Select; current values stay visible and interaction resumes when loading ends.

API

PROPS

Property
Type
Values
Description
default
Example
More
checked-strategy
leaf | all | parent
Project linked tree selection into model keys and tags: leaf retains selectable leaves, all retains all checked nodes, parent compresses fully checked branches. Ignored for strict or flat selection.
leaf
multiple
Boolean
—
Enable multiple selection with an array of row keys.
false
check-strictly
Boolean
—
Select tree nodes independently. By default loaded selectable descendants are linked with indeterminate feedback.
false
max-collapse-tags
Number
—
Maximum visible selected tags; remaining values appear as +N.
2
size
small | medium | large
Size inherited by the trigger, popup Table, and registered renderers.
—
—
empty-text
String
—
Text displayed when the table has no rows; falls back to the current locale.
—
placeholder
String
—
Trigger placeholder when no row is selected; falls back to the current locale.
—
disabled
Boolean
true | false
Disable trigger actions and close an open popup.
false
v-model
row key
Selected row key resolved through row-key; an array of keys in multiple mode.
—
—
data
[]
—
Rows passed to STable; children follow tree-config.
[]
columns
[]
—
Column configuration forwarded to STable.
[]
row-key
—
Stable row key field or resolver; the selected key is the model value.
id
label-key
String
—
Field path used for the trigger label; falls back to the selected key.
label
label-formatter
—
Format the selected row label; takes precedence over label-key.
—
tree-config
—
Configure child rows, indentation, expansion and lazy loading through STable.
—
expanded-keys
[]
—
Controlled tree expansion keys; bind with v-model:expanded-keys.
—
virtual-config
Boolean | 
true / false / '{ heightestimateSizeoverscandynamic }'
Enable STable row virtualization for large flat or tree data.
false
—
renderers
Record<string, | >
—
Named cell and header renderers forwarded to STable.
{}
row-class
—
Custom row classes; a function receives the flattened row context.
—
selectable
—
Return false to prevent selecting a row. Rows with disabled set remain unselectable.
—
show-header
Boolean
true | false
Show the table column headers.
true
striped
Boolean
true | false
Use alternating row backgrounds.
false
table-loading
Boolean
true | false
Show the internal table loading state.
false
close-on-select
Boolean
true | false
Whether to close after selection. Defaults to true for single selection and false for multiple selection.
—
clearable
Boolean
true | false
Show a clear action for the selected value.
false
loading
Boolean
true | false
Show the shared trailing loader, preserve the value, and block editing, clearing, and popup interaction.
false
block
Boolean
true | false
Make the trigger fill the available width.
false
shape
String
rounded | square
Apply rounded or square geometry to the selector trigger and popup surface.
rounded
color
—
Primary visual color of the trigger and popup.
primary
state
—
State color; when provided, takes precedence over color.
—
prefix-icon
String
—
Leading icon name; takes precedence over prefix-config.icon.
—
suffix-icon
String
—
Trailing decorative icon; the dropdown arrow remains available.
—
prefix-config
—
Leading icon and text; the prefix slot takes precedence.
—
suffix-config
—
Trailing icon and text; the suffix slot takes precedence.
—
open
Boolean
true | false
Controlled popup visibility; bind with v-model:open.
—
default-open
Boolean
true | false
Initial popup visibility when open is not controlled.
false
popup-config
—
Popup size, position and mount target; configured fields override their corresponding top-level props.
{}
placement
String
—
Preferred popup placement relative to the trigger.
bottom-start
teleported
Boolean
true | false
Teleport the popup outside ancestor clipping containers.
true
flip
Boolean
true | false
Flip the popup placement when viewport space is insufficient.
true
strategy
String
absolute | fixed
Positioning strategy passed to the shared Popper.
absolute

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
(value: ) => void
Selected key update; clearing emits undefined in single mode or [] in multiple mode.
—
update:open
(value: boolean) => void
Request a popup visibility update.
—
update:expanded-keys
(keys: []) => void
Tree expansion keys updated by STable.
—
visible-change
(value: boolean) => void
An accepted open or close request; controlled visibility still depends on open.
—
change
(value: | [], row: | []) => void
A selectable row was chosen; clearing uses clear instead.
—
clear
() => void
The clear action was activated.
—
row-click
(row: , event: MouseEvent) => void
Table row click, including clicks on unselectable rows.
—
cell-click
(params: , event: MouseEvent) => void
Table data cell click with its render context.
—
tree-expand
(row: , expanded: boolean) => void
A tree row expanded or collapsed.
—
lazy-load
(row: , children: []) => void
Lazy child rows finished loading.
—
scroll
(event: Event) => void
Internal table viewport scroll event.
—
focus
(event: FocusEvent) => void
The trigger received focus.
—
blur
(event: FocusEvent) => void
The trigger lost focus.
—
prefix-click
(event: MouseEvent) => void
Leading affix click.
—
suffix-click
(event: MouseEvent) => void
Trailing affix click.
—

SLOTS

Slot
Scope
Description
default
Example
More
selected
{ row: ; label: string }
Selected row label in the trigger.
—
prefix
—
Leading trigger content.
—
suffix
{ open: boolean; selectedRow: | null }
Trailing decoration; does not replace reserved trigger actions.
—
clear-icon
—
Icon inside the clear action.
—
cell
Generic data cell slot forwarded to STable.
—
cell-[key]
Column-specific data cell slot.
—
header-cell
Generic header slot forwarded to STable.
—
header-[key]
Column-specific header slot.
—
popup-header
—
Content above the popup table.
—
popup-footer
{ selectedRow: | null; close: () => void }
Content below the popup table, with a close action.
—
empty
—
Replace the table empty state.
—

EXPOSES

Method
Type
Description
default
Example
More
open
() => void
Request opening the popup; disabled or loading prevents opening.
—
close
() => void
Request closing the popup; controlled mode emits update:open.
—
toggleRowExpand
(row: , expanded?: boolean) => Promise<void> | undefined
Toggle or set tree expansion through the mounted internal table.
—
setExpandedKeys
(keys: []) => void
Set expanded tree keys through the internal table.
—
scrollToRow
(rowOrIndex: | , align?: 'auto' | 'start' | 'center' | 'end') => void
Scroll the mounted table to a row object or key; a number is used as a visible-row index only if no visible key matches.
—
measure
() => Promise<void> | undefined
Remeasure the mounted internal table layout and virtual rows.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied