You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TableFeature type is extended to be able to add column actions
the actions can be configured for an inline and a list view
The OnyxDataGrid shows the column actions in a flyout when
there is more than one action defined
an action only has a listComponent defined
The existing sorting feature is extended with a list component as shown in Figma
Implementation details
The basic useTableFeature composable API (defined in #1852) is extended like this:
exporttypeTableFeature</* ... */>={// same as before .../** * Allows the modification of the header columns before render. */header?: {/** actions are shown after the header label, later `listComponent` can be added */actions?: {label: string;/** optional icon component to be shown in the column header, if not defined list mode will be enforced */iconComponent?: Component;/** components to render in the list mode of the column actions, if multiple are defined, they will be grouped together */listComponents: Component|Component[];onTrigger: (event: MouseEvent)=>void;}[];};};
Depends on
Why?
This feature is needed for our collaboration project PSF.
In case of advanced filtering/sorting or multiple column actions being required, we need to show the actions in a special flyout.
This story is implemented on the basis of the advanced sorting mode.
Design
Figma > Data > Advanced Sorting
Acceptance criteria
TableFeature
type is extended to be able to add column actionsOnyxDataGrid
shows the column actions in a flyout whenlistComponent
definedImplementation details
The basic
useTableFeature
composable API (defined in #1852) is extended like this:Applicable ARIA Pattern
Definition of Done
Approval
The text was updated successfully, but these errors were encountered: