DTable

DTable

DTable - A type-safe wrapper around Bootstrap Vue Next’s BTable component. Feature-rich data table with sorting, filtering, custom cell rendering, and responsive design.

Live Examples

Sorting, filtering & accessibility props

DTable forwards every attribute straight through to the underlying BTable, so the complete bootstrap-vue-next table API is available without each prop being re-declared here. A few worth knowing about, including ones added in the bootstrap-vue-next 0.45 line:

PropTypePurpose
sort-null-lastbooleanSort null / undefined values to the end regardless of sort direction (local sorting).
sort-by-formattedbooleanSort on each cell’s formatted value rather than the raw field value.
filter-by-formattedbooleanFilter on the formatted value rather than the raw one.
no-footer-sortingbooleanKeep the footer non-interactive when the header is sortable.
label-sort-asc / label-sort-desc / label-sort-clearstringScreen-reader labels announced on the sortable column headers.

These act on BTable’s own local sorting / filtering. Bind them with the usual kebab-case attribute, e.g. <DTable :sort-null-last="true" />.

<DTable
  :items="rows"
  :fields="fields"
  :sort-null-last="true"
  :filter-by-formatted="true"
  label-sort-asc="Sort ascending"
  label-sort-desc="Sort descending"
/>

BTable also emits a context-changed event whenever the sort, filter, or page context changes — @context-changed passes through DTable to your handler.

Using DXTable? DXTable manages sorting and filtering itself (server-side in provider mode, with its own custom column headers and a filter row), so it does not rely on BTable’s local sorting. The props above apply when you use the base DTable directly.

Slots

This component forwards all slots dynamically from the underlying Bootstrap Vue Next component.

Bootstrap Vue Next Wrapper

This is a lightweight type-safe wrapper around the corresponding Bootstrap Vue Next component. It provides API stability and forwards all props, events, and slots.

For complete API documentation (props, events, methods), refer to the Bootstrap Vue Next BTable documentation .