Skip to content

Upgrade from 2.x to 3.x ​

Keep the same npm package. Install 3.x in your project, then check the behavior changes below.

bash
pnpm add @vtable-guild/vtable-guild@3

To stay on 2.x, keep your dependency on @2 and use the 2.x documentation.

bash
pnpm add @vtable-guild/vtable-guild@2

Upgrading from stable 2.x ​

  • Resetting a custom filter. Calling clearFilters() now submits the reset value and requests that the popup close. Use clearFilters({ confirm: false, closeDropdown: false }) if your reset button should update the draft and wait for confirmation. With filterResetToDefaultFilteredValue: true, the reset restores defaultFilteredValue. Column filtering
  • Clicks outside a filter popup. Popups detect outside clicks in the capture phase, so @mousedown.stop on an external control can no longer keep the popup open. Move the control into the popup or manage popup state with filterDropdownOpen and onFilterDropdownOpenChange. Column filtering
  • Selected row order. rowSelection.onChange returns selectedRows in the order of the corresponding selectedRowKeys and skips keys whose records are unavailable. Sort the records in your application if a bulk action depends on table order. To match keys to records, use the row key. Row selection
  • Boolean cell display. Default cells display booleans as true or false. Use customRender on columns that should display an empty cell or an application-specific label. Cell display
  • Filter option types. The ColumnType properties filters and onFilter now also accept booleans. Use Array.isArray(column.filters) before reading an explicit option list and typeof column.onFilter === 'function' before calling a filter function directly. Column filtering

Upgrading from 2.9.0 alpha ​

If you adopted VTableQuery in an early alpha, check the query configuration.

  • Replace layout="form" with layout-type="QueryFilter" or omit the mode. The layout prop now sets the form direction. Use layout-type="LightFilter" for chip-based popup filters.
  • Rename the column option query to search. The default preserve: true keeps hidden and collapsed fields in request parameters. Set :preserve="false" on the component to omit them.
  • Use defaultCollapsed or the controlled collapsed setting for collapse state, and collapseRender for the toggle. LightFilter submission timing follows the control and popup confirmation behavior.

See Schema query for the complete options and examples.