LP#1740412 Grid cell titles (content baloons) user/berick/lp1740412-grid-cell-titles
authorBill Erickson <berickxx@gmail.com>
Mon, 25 Jun 2018 14:11:43 +0000 (10:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 25 Jun 2018 14:11:46 +0000 (10:11 -0400)
Add title attributes to egGrid cells so content is displayed in full
when mousing over the cell.

This only covers text cells, not those that render HTML in the cell
(e.g. links).

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/share/t_autogrid.tt2

index 0519012..cb6c306 100644 (file)
 
           <!-- otherwise, simply display the item value, which may 
                pass through datatype-specific filtering. -->
-          <span ng-if="!col.template" style="padding-left:5px; padding-right:10px;">
+          <span ng-if="!col.template" 
+            title="{{itemFieldValue(item, col) | egGridValueFilter:col:item}}"
+            style="padding-left:5px; padding-right:10px;">
             {{itemFieldValue(item, col) | egGridValueFilter:col:item}}
           </span>
       </div>