@hammerstone/refine-stimulus
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -0,1 +1,3 @@ | ||
### 2.6.2 | ||
* Add configuration option `option_condition_ordering` to allow apps to specify a custom ordering of OptionCondition options (e.g. alphabetizing) | ||
### 2.6.1 | ||
@@ -2,0 +4,0 @@ * Add configuration option `date_lte_uses_eod` to include a whole day in the range when using a <= comparison |
{ | ||
"name": "@hammerstone/refine-stimulus", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Refine is a flexible query builder for your apps. It lets your users filter down to exactly what they're looking for. Completely configured on the backend.", | ||
@@ -5,0 +5,0 @@ "browserslist": [ |
@@ -248,2 +248,11 @@ ## How to integrate the refine filter | ||
## Customizing OptionCondition ordering | ||
You can customize sorting behavior for all OptionConditon options in an initializer: | ||
```ruby | ||
# config/initializers/refine_rails.rb | ||
# always alphabetize option condition lists | ||
Refine::Rails.configuration.option_condition_ordering = ->(options) { options.sort_by { |o| o[:display] } } | ||
``` | ||
## Local JavaScript Development | ||
@@ -250,0 +259,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
293645
349