-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Helpers for TextFilters #1812
Merged
lrljoe
merged 23 commits into
rappasoft:development
from
LowerRockLabs:Add-Like-Methods-to-TextFllter
Aug 3, 2024
Merged
Add Helpers for TextFilters #1812
lrljoe
merged 23 commits into
rappasoft:development
from
LowerRockLabs:Add-Like-Methods-to-TextFllter
Aug 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #1812 +/- ##
=================================================
+ Coverage 87.14% 88.27% +1.12%
- Complexity 1495 1562 +67
=================================================
Files 139 143 +4
Lines 3484 3649 +165
=================================================
+ Hits 3036 3221 +185
+ Misses 448 428 -20 ☔ View full report in Codecov by Sentry. |
lrljoe
added a commit
that referenced
this pull request
Aug 4, 2024
## [v3.4.0] - 2024-08-04 ### New Features - Add Helpers for TextFilters by @lrljoe in #1812 - Change method names for TextFilters handler by @lrljoe in #1814 - Capability to set Reorder Column TH Attributes by @lrljoe in #1811 - Bulk Actions - Customise Select All Behaviours by @lrljoe in #1810 ### Bug Fixes - Fix loading spinner for dark tailwind theme by @lrljoe in #1809 ### Tweaks - Blade Minimisation & ColumnSelect Cleanup by @lrljoe in #1806 - Adjust DateColumn with Missing Tests and Coping with DateTime Casts by @lrljoe in #1813 ### Docs - Add reference to Bulk Actions TH styling in main styling by @lrljoe in #1808 - Update docs for setPillsLocale by @lrljoe in #1800 - Add note on label method for setAdditionalSelects by @lrljoe in #1816
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is some clean-up of tests and test-processes.
The main feature of this PR however is: adds Extra Helpers for TextFilter types, to simplify every-day use cases
Extra Helpers
There are a number of helpers to simplify your code, should you not wish to rewrite the filter function repeatedly for a Text Filter. You can use one of the below methods per-filter.
Contains
This executes the filter and returns results where the field contains the filter value
notContains
This executes the filter and returns results where the field does not contain filter value
startsWith
This executes the filter and returns results where the field starts with the filter value
notStartsWith
This executes the filter and returns results where the field does not start with the filter value
endsWith
This executes the filter and returns results where the field ends with the filter value
notEndsWith
This executes the filter and returns results where the field does not end with the filter value
setField
An optional method for setting the field to use when filtering, if used, you may omit the field from the above methods, for example:
All Submissions:
New Feature Submissions:
Changes to Core Features: