LP#1775466 Grid vert expand top-level option
authorBill Erickson <berickxx@gmail.com>
Tue, 10 Jul 2018 21:59:30 +0000 (17:59 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 11 Jul 2018 14:18:31 +0000 (10:18 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html

index 005bd80..6cd7b6b 100644 (file)
     </div>
   </div>
 
+  <button type="button" 
+    class="btn btn-outline-dark mr-1" 
+    (click)="gridContext.overflowCells=!gridContext.overflowCells">
+    <span *ngIf="!gridContext.overflowCells"
+      title="Expand Cells Vertically" i18n-title 
+      class="material-icons mat-icon-in-button">expand_more</span>
+    <span *ngIf="gridContext.overflowCells"
+      title="Collaps Cells Vertically" i18n-title 
+      class="material-icons mat-icon-in-button">expand_less</span>
+  </button>
+
   <eg-grid-column-config #columnConfDialog [columnSet]="gridContext.columnSet">
   </eg-grid-column-config>
   <div ngbDropdown placement="bottom-right">
         <span class="ml-2" i18n>Manage Column Widths</span>
       </a>
       <a class="dropdown-item label-with-material-icon" 
-        (click)="gridContext.overflowCells = !gridContext.overflowCells">
-        <ng-container *ngIf="!gridContext.overflowCells">
-          <span class="material-icons">keyboard_arrow_down</span>
-          <span class="ml-2" i18n>Expand Cells Vertically</span>
-        </ng-container>
-        <ng-container *ngIf="gridContext.overflowCells">
-          <span class="material-icons">keyboard_arrow_up</span>
-          <span class="ml-2" i18n>Shrink Cells Vertically</span>
-        </ng-container>
-      </a>
-      <a class="dropdown-item label-with-material-icon" 
         (click)="saveColumns()">
         <span class="material-icons">save</span>
         <span class="ml-2" i18n>Save Columns</span>