MedicOneSystems / MedicOneSystems/livewire-datatables
Can we implement 'searchable()' and 'sortable()' functions?
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Here we are passing parameters in 'filterable()' function. Can I pass parameters in 'searchable' and 'sortable'?
Column::callback('status', function($status){
return $status;
})
->filterable(File::groupBy('status')->pluck('status')->toArray())
->label('Status')->searchable(),
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 tracing the Column::callback chain and the existing filterable() implementation, since the issue names no files or tests. Determine how searchable() and sortable() currently behave, then define and verify parameter handling that matches filterable() without changing existing usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100