MedicOneSystems / MedicOneSystems/livewire-datatables

Editable Boolean

Open
#364 2 comments 0 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.