Commit Graph

26 Commits

Author SHA1 Message Date
Ben Thomson 14c4d1392e Datatable dropdown usability tweaks (#3980)
Adds a couple of usability tweaks to the dropdown cell type in the data table widget, to more closely mimic a native dropdown field.

Pressing the up or down arrow keys when the cell is focused but with the dropdown closed will select the previous or next item automatically and set it as the cell value. This does prevent the usual table function of going to the previous or next row when focused on a dropdown cell, but I think it's a worthwhile trade-off. When the dropdown is open, the up and down arrows work the same as previously implemented.

Typing out characters will initiate a search and select the first matching option automatically and set it as the cell value. For example, for the following options:

Apples
Oranges
Bananas
Typing out o and r on the keyboard will automatically select the Oranges option.

Credit to @bennothommo
2018-12-16 09:30:23 -06:00
Samuel Georges 3145611150 Add search to table widget
Refs https://github.com/rainlab/translate-plugin/pull/272
Recompile assets
2017-07-15 12:06:50 +10:00
Aleksey Bobkov 0d30931045 Minor styling fixes in the table widget. Fixed a bug where empty values in the table widget could be rendered as 'undefined' in Safari. 2017-01-25 20:15:12 -08:00
Pásztor Gábor 039a49979a Style improvements on reportcontainer's manage widget dropdown. 2016-12-21 20:15:07 +01:00
Samuel Georges 7563670c49 Minor styling fixes on the table control 2016-05-23 17:32:20 +10:00
Samuel Georges d69053481c Tweak some styles 2016-05-05 17:39:36 +10:00
Samuel Georges 72d3fe3ebd More styling updates 2016-04-23 05:11:02 +10:00
alekseybobkov 0e2e18af7f Added autocomplete column type to the Table widget 2015-11-17 21:26:03 -08:00
alekseybobkov a5b217ff0b Merge branch 'develop' into builder-ui
Conflicts:
	modules/backend/widgets/table/assets/js/build-min.js
	modules/backend/widgets/table/assets/js/table.js
2015-10-15 17:32:19 -07:00
Samuel Georges 97595a631e Adds the ability to inject custom buttons + icons 2015-10-01 17:24:12 +10:00
alekseybobkov a253d6fc57 Added customization options for the Table widget toolbar button labels 2015-08-13 20:26:11 -07:00
Samuel Georges 453d2fda56 Add the links handler to rich editor
Other small fixes
2015-06-24 17:36:59 +10:00
Samuel Georges bed7d0825f Fixes loading animation in various places 2015-06-03 19:22:18 +10:00
alekseybobkov cbc808520d Added JS source map extension to the white map in the .htaccess file. Minor fix in the forms styling. Implemented client-side validation for the Table widget. Updated the Table widget readme file. 2015-01-11 13:42:42 -08:00
alekseybobkov c26545913c Improvements in the table widget, added new events to the CMS core, form styling, added support for the Table widget in in the CMS area. 2015-01-07 22:21:52 -08:00
Samuel Georges 9cfe4ad8f4 Control CSS: table-control -> control-table 2015-01-02 13:24:09 +11:00
alekseybobkov 1480303c4f The options can now be set with the PHP configuration. Minor updates in the scrollbar widget. Implemented scrolling. Updated documentation. 2014-12-17 22:07:49 -08:00
alekseybobkov f2e2862b06 Styled the pagination 2014-12-15 22:49:33 -08:00
alekseybobkov 831f28e84d Implemented and styled the toolbar 2014-12-14 22:34:37 -08:00
alekseybobkov 9377bcf7c1 Table widget dropdowns - dependent drop-downs and loading indicators 2014-12-09 22:37:52 -08:00
alekseybobkov f56bfe12d0 Implementing AJAX loading for drop-down options, in progress. 2014-12-08 22:50:25 -08:00
alekseybobkov 4b28ee8bcb Custom drop-down control for the table widget. In progress. 2014-12-07 23:30:15 -08:00
alekseybobkov a6d8ab20f7 More styling for the drop-down processor. Not finished. TODO: investigate and fix the memory leaking in the drop-down cell processor (detached DOM tree) 2014-12-04 22:48:25 -08:00
alekseybobkov e032fd682d Table drop-down processor, in progress 2014-12-03 22:48:26 -08:00
alekseybobkov d03370c5bf Added the checkbox cell processor 2014-12-02 21:46:54 -08:00
alekseybobkov a73ef52d36 Styling and column alignemnt 2014-12-01 22:31:11 -08:00