Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Inline Buttons in List Views #17

Open
cedricfrancoys opened this issue May 28, 2024 · 0 comments
Open

Add Inline Buttons in List Views #17

cedricfrancoys opened this issue May 28, 2024 · 0 comments

Comments

@cedricfrancoys
Copy link
Collaborator

Add Inline Buttons in List Views

Operation

When actions are defined in the list views, add them in a virtual column at the end of the row.

Distinction between actions at the view level (top right) and actions defined for objects:

This corresponds to header.selection.actions
=> Use header.selection.show_inline

show_inline is either a boolean (false by default; true means that all actions are included) or an array that specifies which actions (among header.selection.actions) should be visible.
If there are more than 2 actions, a "more" button appears to open a menu for each row.

These actions are displayed as a button.
Only the icon is displayed (the label is included in the 'title' attribute).
The structure is that of the actions.

Adapt

If header.selection.show_inline === true
Convert to array and inject the names of all the ids from header.selection.actions.

View Layout

If header.selection.show_inline is not empty
Add an action column (65 px).

View Feed

For each row
If header.selection.show_inline is not empty

For each `header.selection.show_inline`
    Create a corresponding action button (grayed out if not visible).

When action is executed for a single item, the related id must be injected in the controller params

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant