MedicOneSystems / MedicOneSystems/livewire-datatables
Editable Boolean
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I have a Boolean column in my datatable showing a check mark or an 'x' based on the value in the database. I was wondering if there was a way to edit this so that if I were to click on either the check mark or x, then the value in the database would change.
When I add the editable() attribute, the column just shows a 1 or nothing at all and I have to manually type the value that I would like to change it to.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the editable() behavior for a Boolean column described in the issue, including how the check mark, x, and database value are displayed. The issue names no files or tests; done would mean clicking either displayed state changes the stored Boolean value without manual text entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- database, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100