Skip to content

Action links and buttons #8

Open
@coryrose1

Description

@coryrose1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions