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

Action links and buttons #8

Open
coryrose1 opened this issue Nov 19, 2019 · 0 comments
Open

Action links and buttons #8

coryrose1 opened this issue Nov 19, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@coryrose1
Copy link
Owner

Starting a discussion on handling action links and buttons within the table.

There are essentially two ways to handle this... by letting the user modify the HTML and add a column header / button themselves, or by allowing the button/link to be built via the scaffold command.

There are many challenges for building this into the scaffolding command.

1. Do we extend $fields, or add an $actions array?

Will "actions" ever need to modify the base query?

Do we need to comb through $fields for actions vs data cells, or if we use an $actions array, how do we determine the order of columns for the overall table?

2. How is the action link href built

Assuming this will comprise of some primary key, or field value that needs to already be present in $rowData. What happens if there are variables (even multiple) in the link?

@coryrose1 coryrose1 added enhancement New feature or request help wanted Extra attention is needed labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant