Comments (5)
Hello.
You can extend dddeeemmmooonnn\NovaMulticolumnFilter\NovaMulticolumnFilter
and override apply
method
from nova-multicolumn-filter.
True, but that would require me to override the apply
method, which will break in case of future field types being implemented.
Are you open for a PR for this operator? Or alternatively, might I suggest refactoring the apply
method to use a new applySingle
in the foreach (json_decode($value, true) as $val) {}
loop. In that case, people can simply extend the applySingle
method to call their own method if a custom filter is provided and otherwise the parent applySingle
.
from nova-multicolumn-filter.
I think then it is better to add a new option for the column - the name of the method by which to process the column.
Then you will need to add the method and specify it in the options
I'll do it later today
ofc open for PR
from nova-multicolumn-filter.
@dddeeemmmooonnn that would be a nice refactoring. When added please let me know and I will check if I can implement this feature, hopefully as a PR. I think it would be a neat addon 👍
from nova-multicolumn-filter.
0.5 update
from nova-multicolumn-filter.
Related Issues (18)
- Incorrect link on novapackages HOT 1
- Operator isn't url decoded HOT 1
- How to use HOT 3
- Allow single column and simple usecases
- Clear filter, after "Reset Filters" button was pressed
- Make buttons translatable HOT 1
- Do not add the query string when the user hasn't selected any filter
- Allow support for 'HAVING' in query
- Page number being reset to 1 when going into detail page of a resource and back to index
- Nova 4 Support HOT 1
- 'Add' button isn't adding a new filter HOT 5
- How can we change placeholder of box? HOT 1
- Make it more customizeable HOT 2
- The select field stays empty when the option has accents HOT 1
- Display bug when remove filter HOT 1
- Update the number next to filter button based
- Cannot redeclare non static dddeeemmmooonnn\NovaMulticolumnFilter\NovaMulticolumnFilter::$default_column_type as static App\Services\ApplicationServices\Nova\Filters\ApplicationContractMultiFilter::$default_column_type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-multicolumn-filter.