Skip to content

Table toolbar

QTableToolbar arranges a breadcrumb, create region, search field, and the three table controls. It does not fetch data, perform filtering, or own table state; it forwards the models supplied by the application.

Default toolbar

Models and regions

Model/propPurpose
v-model:searchFree-text value. An empty default input emits undefined.
v-model:sortingForwarded to the default sorting control when sortable-fields exists.
v-model:filteringForwarded to the default filtering control when filter-fields exists.
v-model:column-orderEnables default column options together with its other models.
v-model:invisible-columnsHidden IDs for default column options.
v-model:column-pinningPinning state for default column options.
breadcrumb-itemsItems rendered by the default UBreadcrumb.
search-placeholderReplaces only the default search placeholder.
textsText overrides forwarded to the default child controls.
shortcutsEnables or disables the default child-control shortcuts.
uiClasses for the root, primary, and secondary regions.

The toolbar renders each default control only when it receives the necessary model and field/column definitions. It is therefore safe to use it for a search-only or partially configurable table.

Slots

SlotSlot propsUse it to replace
breadcrumbitemsThe breadcrumb region.
newCreate or bulk-action controls.
searchsearch, setSearchThe search field or search behavior.
optionssorting, filtering, columnOrderThe complete group of table controls.
vue
<QTableToolbar v-model:search="search">
  <template #new><UButton label="Create project" /></template>
  <template #search="{ search, setSearch }">
    <UInput :model-value="search" placeholder="Find projects" @update:model-value="setSearch" />
  </template>
</QTableToolbar>

Released under the MIT License.