Custom Context Actions in DataTable Component #208
Labels
browser: chrome
enhancement
New feature or request
good first issue 👋
Good for newcomers
package: components
@meteor/components
status: in validation
The team will validate this issue
Milestone
Package
@meteor/component-library
Browser
Chrome
Operating System
Windows
Package version
3.7.0
Assistive technology
No response
Description
Currently, the DataTable.vue component only supports enabling and disabling predefined context actions such as "Edit" and "Delete". However, there is a need to extend or overwrite these context actions with custom ones. For instance, instead of having "Edit" and "Delete", we need a custom label "View" that still triggers the same event (onOpenDetails).
Proposed Solution:
Introduce a new property rowContextActions to the DataTable.vue component. This property should accept an array of objects defining custom context actions. The proposed interface for these actions is as follows:
The rowContextActions property should be defined as:
WCAG 2.1 Violation
No response
Steps to reproduce
Use mt-data-table component. You can't overwrite the context actions
Code of Conduct
The text was updated successfully, but these errors were encountered: