26 Commits

Author SHA1 Message Date
Faris Ansari
8d96f953cd fix: Allow column to be resized below naturalWidth
- Also honor minimumColumnWidth option
2019-04-24 11:22:33 +05:30
Saif
0f44a51da3 feat: 🎸 Total Accumulator hook for totals row (#55)
* feat: 🎸 Accumulator event for totals row

* fix: 🐛 Changed values passed to accumulator function

and moved function to hooks.totalAccumulator

* fix: 🐛 Total row set null for column without any number

* fix: Refactor accumulator

- Rename to columnTotal

* fix: 🐛 Prevent showing 0 in total row for Data fieldtype

* fix: Remove hooks object from parent

* fix: Remove separate hooks initialization
2019-02-12 19:51:13 +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
84b7fa3d83 fix: 🐛 More robust column width calculation
Set minimum column width based on options (default 70), also measure
rowIndex column directly in DOM
2018-10-11 13:05:25 +05:30
Faris Ansari
01d74ef6ad fix: 🐛 Pick cellHeight from options
HyperList should take cellHeight from options
2018-10-10 16:49:44 +05:30
Faris Ansari
7531e13d17 feat(icons): Use feather icons instead of raw ascii strings 2018-08-23 13:52:58 +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
bddb3c27ce fix(destroy): Cleanup event listeners on destroy
Event listeners attached to elements inside the root datatable wrapper are automatically removed
when the root element is removed from DOM. But, there are event listeners which are attached to
window and body, those have to be manually removed. This commit introduces an internal event system,
through which we destroy global event handlers.
2018-07-10 12:00:41 +05:30
Faris Ansari
9151fe2886 [feature] Paste from clipboard 2018-04-23 00:20:10 +05:30
Faris Ansari
4bb4002300 [feature] Dynamic Row Height 2018-04-06 17:07:22 +05:30
Faris Ansari
00b43940e1 Add onCheckRow event 2018-03-13 10:50:04 +05:30
Faris Ansari
ed85235ad1 Less verbose option naming 2018-03-13 10:36:57 +05:30
Faris Ansari
3651f23157 disable editing if getEditor returns false 2018-03-07 15:56:07 +05:30
Faris Ansari
7683892142 Add enableTreeView flag 2018-03-05 23:02:10 +05:30
Faris Ansari
25e2c6cc35 Column Distribution based on ratio 2018-03-05 17:08:38 +05:30
Faris Ansari
6ee51038d0 Indent using 4 spaces 2018-02-27 12:36:12 +05:30
Faris Ansari
9ab618855f [feature] Inline Filters 2018-02-21 19:01:04 +05:30
Faris Ansari
62203c79bb Add cellHeight option, increase padding to spacer-2 2018-02-21 12:26:45 +05:30
Faris Ansari
330aa5f52a Added Layout options: fixed, fluid 2018-02-16 18:13:17 +05:30
Faris Ansari
a1ae31c858 Rename editing as getEditor 2018-02-12 11:34:15 +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
9ae7c3a8e6 accept dict as data 2018-02-06 22:51:42 +05:30
Rushabh Mehta
d9d663d541 minor fixes 2018-02-02 15:16:59 +05:30
Faris Ansari
0e6e9a7639 scrollToCell on focus 2017-12-29 15:32:41 +05:30
Faris Ansari
d89f37481f BInd keyboard events on wrapper 2017-12-27 15:15:47 +05:30
Faris Ansari
cd154f4a27 wip 2017-12-22 22:59:34 +05:30