Skip to content

Enable clicking on row linking to the show page #491

@willus10245

Description

@willus10245

A common UX with tables is to have clicking anywhere on the row take you to the show page for that item. It would be great if this could be added as an option to exzeitable.

Describe the solution you'd like
One option could be another configuration option when calling use Exzeitable.
For instance,

 use Exzeitable,
    repo: MyApp.Repo,
    routes: Routes,
    path: :user_show_path,
    action_buttons: [:edit],
    row_click_action: [:show], # new field to give an action for clicking on the row
    per_page: 20,
    disable_hide: true,
    query: from(u in User),
    pagination: [:bottom],
    fields: [
      first_name: [],
      last_name: [],
      type: [function: true]
    ],

    # Optional
    debounce: 300

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions