TableView

Toggle Busy

TableViewActionBar

Compact action bar designed for use inside <TableView> rows. Quick actions are revealed on row hover (desktop) and always visible on touch devices. Overflow actions are accessible via the ellipsis menu.

Basic Actions

Each row has a set of actions. On desktop, hover a row to reveal quick action buttons. Up to 2 quick actions are shown; remaining actions go into the ellipsis overflow menu.

File Actions
document.pdf
image.png
data.csv
readme.md
shared-folder

Single Action

When a row has only one or two visible actions, they are all shown as quick actions with no overflow menu.

File Actions
config.json
settings.yaml

Href Actions

Actions with href render as links. Combine with regular action handlers.

Name Actions
Docs
Cloudron

Visible Toggle

Set visible: false to hide an action conditionally. Hidden actions are excluded from both the quick actions bar and the overflow menu.

File Actions
item-a.txt
item-b.txt

Usage

Using TableViewActionBar

API

TableView Props

PropTypeDefaultDescription
columnsObject{}Column definitions (see below)
modelArray[]Data rows
busyBooleanfalseShow loading indicator
placeholderString"empty"Empty state message
hoverBooleantrueHighlight rows on hover
defaultSortByString-Initial sort column key
defaultSortOrderString"asc""asc" or "desc"
fixedLayoutBooleanfalseUse fixed table layout

TableView Column Properties

PropertyTypeDescription
labelStringColumn header text
sortBoolean | FunctionEnable sorting (true for default, function for custom)
iconStringFontAwesome icon for header
alignString"left", "center", or "right"
widthStringCSS width value
hideMobileBooleanHide on screens < 576px
nowrapBooleanPrevent text wrapping

TableView Events

EventPayloadDescription
row-clickRow objectEmitted when a row is clicked

TableView Slots

SlotPropsDescription
#[columnKey]Row dataCustom cell template for column

TableViewActionBar Props

PropTypeDefaultDescription
actionsArray[]Array of action items (see below)

TableViewActionBar Action Item Properties

PropertyTypeDescription
labelStringItem label (shown in tooltip and overflow menu)
iconStringFontAwesome icon class for the button
actionFunctionClick handler
hrefStringRender as a link instead of a button
targetStringLink target (e.g. _blank)
quickActionBooleanShow this action in the quick actions bar. When <=2 visible actions exist, all are shown as quick actions regardless of this flag.
visibleBooleanShow or hide this action (default true)
separatorBooleanRender as a separator in the overflow menu
disabledBooleanDisable the action in the overflow menu
checkboxBooleanRender as a checkbox item in the overflow menu
checkedBooleanCheckBox checked state
typeComponentCustom Vue component for the menu item