]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1746824 - WebStaff egGrid styling
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 22 Feb 2018 22:01:39 +0000 (17:01 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 5 Sep 2018 03:46:10 +0000 (23:46 -0400)
commit0020384a8daffa4225a22899be89e1cf7f60fb05
tree654651bc341c33842cbde2198fffff493fa0faf4
parentcb8a47c99b93ff479b40eeba6ac24af4e2c4157e
LP#1746824 - WebStaff egGrid styling

This allows egGrid to receive CSS selector strings via egGridField
declarations in templates, or else auto-generates them based on the
path of the field. Also, sets the DOM id of the grid to its declared
persistKey, unless an id is explicitly given.

For example, due dates could be displayed in purple
as follows by adding the following CSS:

grid-due_date {
   color: purple;
}

The above example uses the autog-enerated class name. One could also
set an explicit one in the eg-grid-field element, e.g.,

<eg-grid-field label="[% l('Due Date') %]" path='due_date' css-selector="purple" ...

In this case, the grid-due_date class would /not/ be generated, and the
developer would be expected to supply CSS for the purple class. (But
with semantic class names :) )

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/share/t_autogrid.tt2
Open-ILS/web/js/ui/default/staff/services/grid.js