Skip to content

useTableActions ​

Defines props for table-level toolbar actions (bulk operations, custom toolbar buttons).

File: vue/src/js/hooks/table/useTableActions.js


Props Factory ​

js
import { makeTableActionsProps } from '@/hooks/table/useTableActions'
PropTypeDefaultDescription
actionsPositionString'top'Where to render toolbar actions: 'top' or 'bottom'
actionsArray[]Action button definitions for the table toolbar

Usage ​

js
import useTableActions, { makeTableActionsProps } from '@/hooks/table/useTableActions'

const props = defineProps(makeTableActionsProps())
useTableActions(props, context)

Notes ​

  • This hook currently defines props and reserves the extension point for future toolbar-action logic.
  • Per-row actions are handled by useTableItemActions.

See Also ​