40 Commits

Author SHA1 Message Date
Julio de Alba
aa3f3be67f feat: 🎸 check all filtered rows
When datatable has filters applied, and the "check all" is used, it will
check only the rows that match the filters.
2022-09-22 07:07:20 -05:00
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
Shariq Ansari
5db24187e6
Merge branch 'master' into add-tooltip-on-filter 2022-01-27 12:51:06 +05:30
Himanshu
6d6602f202
feat: translations (#145)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
2022-01-03 18:41:52 +05:30
Shariq Ansari
88a361f053 fix: Adding tooltip on filter inputs 2021-09-28 13:43:59 +05:30
Saif
67f9717827 perf: ️ Expand All and Collapse All render only once (#63)
* perf: ️ Expand All and Collapse All render only once

* Introduce setTreeDepth() function
2019-04-25 12:37:56 +05:30
Faris Ansari
007579f55e feat: Add API for expand/collapse tree nodes 2019-04-05 17:02:31 +05:30
Faris Ansari
f5df997c00 feat: 🎸 Total Row
A persistent row which shows the total of the columns which have numeric
values. It also updates when the rows are filtered.
2018-11-29 16:39:35 +05:30
Faris Ansari
6fe075467d fix: 🐛 Sort rows numerically
Default sort method uses alphabetical sort
2018-11-01 16:40:35 +05:30
Faris Ansari
7eaabcbfe0 fix: 🐛 Reimplement tree node toggle logic
Earlier, rows were hidden using style. Now, since we are using
hyperlist, it is better to refresh the whole list.
2018-10-31 19:09:40 +05:30
Faris Ansari
51b112687e feat: 🎸 Use HyperList instead of Clusterize to render rows
Clusterize failed to load rows if they were above 1000, this may be a
problem of datatable itself, since it has a complex DOM structure, but
hyperlist works better in it's case.
2018-10-10 14:34:56 +05:30
Faris Ansari
f790a6729a fix: 🐛 Show all rows in restore state
When you refresh datatable after some rows are hidden, after refresh
they remain hidden.
2018-10-05 15:22:47 +05:30
Faris Ansari
2ce132c0bc fix(class selector): Replace all selectors with class based selectors
Class based selectors are faster than attribute based ones.
2018-09-23 14:54:00 +05:30
Faris Ansari
4f57bb1b64 fix(filterRows): Show/hide rows using setStyle and removeStyle
Finding row elements and adding/removing classes on them is slower and unreliable
2018-09-23 14:45:12 +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
Faris Ansari
f9714673b4 fix(rowmanager): Fire onCheckRow event on checkAll
When checkAll is triggered via API or UI input, onCheckRow event fires

Closes #38
2018-07-09 17:35:59 +05:30
Faris Ansari
fde1b7bcc9 Refactor CSS to use BEM style 2018-04-21 19:09:56 +05:30
Faris Ansari
f61f97d22f Remove unused functions from utils, Rename promisify to nextTick 2018-03-19 00:19:52 +05:30
Faris Ansari
00b43940e1 Add onCheckRow event 2018-03-13 10:50:04 +05:30
Faris Ansari
51a8f0dd83 Add option to disable checkedRowStatus 2018-03-13 10:36:41 +05:30
Faris Ansari
b3f281b214 refresh api can now update columns 2018-03-07 14:49:36 +05:30
Faris Ansari
128a674ad6 [feat] Toast Message 2018-03-02 21:22:36 +05:30
Faris Ansari
470ab90fef Tree expand/collapse working 2018-03-02 15:42:51 +05:30
Faris Ansari
081dbac41b Rename data-table-col to data-table-cell, Add Tree Structure support 2018-03-01 23:52:21 +05:30
Faris Ansari
48f98be8d2 Remove Column bug fix 2018-02-28 17:49:33 +05:30
Faris Ansari
6ee51038d0 Indent using 4 spaces 2018-02-27 12:36:12 +05:30
Faris Ansari
e1c2ef7e6b bug fix 2018-02-23 17:28:48 +05:30
Faris Ansari
9ab618855f [feature] Inline Filters 2018-02-21 19:01:04 +05:30
Faris Ansari
e41e6ad386 Move getHTML methods inside class 2018-02-12 11:34:08 +05:30
Faris Ansari
0ebe0461e1
Rmehta cell refactor (#13)
* refactor: prepare cells

* checkbox sequence and always focus before deactivate

* don't set model

* fixes

* minor
2018-02-11 22:05:15 +05:30
Rushabh Mehta
d9d663d541 minor fixes 2018-02-02 15:16:59 +05:30
Faris Ansari
41995adf6a Fix scrollToRow, Add empty state 2017-12-29 14:23:25 +05:30
Faris Ansari
96b471052c Granular setting for edit cell, Refresh row api 2017-12-21 15:11:46 +05:30
Faris Ansari
22782cf7bd Better scrollToRow with requestAnimationFrame 2017-12-15 00:36:38 +05:30
Faris Ansari
877d6d0695 Promisify sorting, add column resizer handle 2017-11-27 13:37:43 +05:30
Faris Ansari
3c2c530127 Row highlight bug fix 2017-11-20 12:02:26 +05:30
Faris Ansari
95371bc86b focusCell and selectArea on clusterChanged 2017-11-17 22:35:13 +05:30
Faris Ansari
2543a9b602 Cleanup utils.js, move functions to their respective files 2017-11-16 21:46:27 +05:30
Faris Ansari
34b067d27a minor fixes 2017-11-08 10:33:01 +05:30
Faris Ansari
0ccc3627ae Add RowManager and ColumnManager 2017-11-06 18:25:07 +05:30