MedicOneSystems / MedicOneSystems/livewire-datatables

Possible way to put an action button on the top right ?

Open
#61 7 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

Hello, amazing package BTW. I'm trying to use this package for creating Crud tables, and I want to add a "Create" button for making a new record. Was hoping I could custom implement something like this in a similar manner that you can do with the actions callback for a column that has custom actions (such as view, edit and delete). Is this possible? Or do I simply have to use the "beforeTableSlot" and put the button somewhere above the table? This is doable though it's not quite as ideal. If this isn't possible, then I guess this is my formal feature request.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing beforeTableSlot and column actions callback APIs mentioned in the issue, then trace how table header actions are rendered. Define whether a supported top-right action can host a Create button and what its callback or slot interface should be; done means the placement and usage are clear and the requested action works consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php, tailwindcss
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.