Action Column Command Buttons

Summary

  • Action Column Buttons can display dedicated Commands to handle the most frequent use cases
  • Most of these leverage the Row Form when clicked

Action Column Buttons can be provided with a Command as an alternative to wiring up onClick.

Note

These are designed to cater for the most common use cases, to reduce development overhead

AdapTable provides 4 Action Column Commands:

CommandAction when Clicked
createOpens a Create Row Form
cloneOpens a Clone Row Form
editOpens an Edit Row Form
deleteDeletes the row using row deletion function in GridApi
Action Column Commands
Fork
  • This demo includes an Action Column (named Actions) which contains 3 buttons that are configured with Action Column Commands:
    • Clone
    • Edit
    • Delete

Pinning Command Buttons

Action Columns, like all columns in AdapTable, can leverage standard Column Pinning.

This will ensure that the Column containing the Command is always visible.

Action Column Commands Pinned
Fork
  • This demo provides 2 Action Columns which contain an Edit and Delete Action Command respectively
  • The Edit Column is pinned to the left and the Delete Column is pinned to the right
  • Because they are "normal" buttons we were able to add a label (of "Edit") to the first button

Configuring Command Buttons

Action Column Command Buttons can be configured in exactly the same way as 'normal' buttons.

They can be given a label, tone, variant or custom icon, and can be disabled or hidden.

Note

The only difference is that if no icon is provided, AdapTable will use a default one

Configuring Action Column Commands
Fork
  • This demo contains 3 Action Column Commands with some custom configuration:
    • The clone button is hidden when the Language is 'JavaScript' (and has a custom icon)
    • The edit button is disabled when the Language is 'HTML'
    • The delete button tone is different when the Language is 'TypeScript'