22 Commits

Author SHA1 Message Date
Shariq Ansari
49cc051392 fix: send data of that cell to formatter 2023-12-21 13:38:31 +05:30
Shariq Ansari
48d5b97e55 fix: send data to formatter 2023-12-21 13:27:43 +05:30
Shariq Ansari
2c36123663 fix: pass data as second parameter to filterMethod 2023-12-21 13:19:34 +05:30
Shariq Ansari
50b44bfb09
fix: added dataManager in filterRows function 2023-12-21 13:13:41 +05:30
Shariq Ansari
739182562a fix: pass filter instead of true 2023-12-07 19:14:10 +05:30
Suraj Shetty
7ee8ca9304
fix: 🐛 Apply range filter only for numbers (#176) 2023-09-11 13:05:09 +05:30
Shariq Ansari
71272f8f9e
fix: get content value for specific fieldtypes 2023-03-03 11:33:03 +05:30
phot0n
430d7cfe48 fix: use custom formatter when filtering rows
As datatable renders only some rows at a time and sets each
cell's html property based on that rendering, so when someone
filters things and only looks at some rows without scrolling the whole
grid and tries to filter things (when there is a custom cell formatter),
they won't be able to see the data as the filtering is done based on cell's
content not html (as it's not set at that point)
2022-06-10 11:51:11 +05:30
Faris Ansari
1a0eba65a0 fix: Number compare
- 006 will match abc006
- 1230 will match 1,230 (formatted), 1230 and abc1230
2019-06-24 15:08:39 +05:30
Deepesh Garg
bbca6d8f60 fix: String compare if hay is alphanumeric 2019-06-11 15:27:22 +05:30
Deepesh Garg
e25ef86a63 fix: Parse keyword as float (#68) 2019-05-28 17:45:53 +05:30
Deepesh Garg
b075fb5d71 fix: Compare number using contains instead of equals (#67) 2019-05-23 12:51:18 +05:30
Faris Ansari
944010d113 fix: Filter numeric columns by value
No need to use = to filter numeric values by their value
2019-04-16 12:43:21 +05:30
Faris Ansari
637d37deb8 feat: Add not equals (!=) filter 2019-04-03 23:10:00 +05:30
Faris Ansari
3e044a5ffa feat: 🎸 Add compareValue hook to control comparison
For custom comparison where the formatted value is different than the
actual value, users will mostly compare using the formatted string. Use
compareValue to return parsed cell value and keyword.
2019-01-14 13:34:04 +05:30
Faris Ansari
acfe0e49cd fix: 🐛 Comparison now also works with strings
Inline filters like >2011/04/01 will work as expected. Works with >, <
and :
2018-12-28 18:10:24 +05:30
Faris Ansari
b6d4a0eea7 feat: 🎸 Add = keyword for equality matching
Support = keyword for equality matching in numeric columns
2018-12-10 20:05:19 +05:30
Faris Ansari
96c7b723da fix: 🐛 Fallback to cell content when html is not available 2018-12-07 15:23:22 +05:30
Faris Ansari
f791c91df6 fix: 🐛 Numeric comparison should compare with cell value
Numeric comparison like >, < should compare with the cell value and not
the formatted html value
2018-11-29 13:41:07 +05:30
Faris Ansari
ec08d75261 fix: 🐛 Filter rows based on the formatted value
Earlier filtering was done based on the original value of the cell, but
formatters could change the display value
2018-11-29 13:19:56 +05:30
Faris Ansari
932afb6cbe feat: 🎸 Support for multiple filters in columns
Multiple inline filters will be applied as AND filters
2018-10-16 13:56:10 +05:30
Faris Ansari
cdb276abfd feat(filter): Filter now supports complex queries for Number columns
More advanced filter support for Number columns

For e.g
  >5000 filters rows with the cell value greater than 5000
  <30 filters rows with cell value less than 30
  20:340 filters rows with cell value in the range of 20 and 340

You can also provide a custom filter function by providing a
`filterRows` function in the options during initialization.
2018-08-09 13:30:02 +05:30