LP#1855457: make grid headers in Angular admin interfaces sticky
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Dec 2019 15:48:59 +0000 (10:48 -0500)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 26 Dec 2020 22:29:45 +0000 (14:29 -0800)
Grid headers in Angular admininstration interfaces that use
subclass, or copy from AdminPageComponent are now sticky.

To test
-------
[1] Apply the patch and examine Angular admin pages that are
    are based on AdminPageComponent. A good example is the
    MARC Search/Facet Fields server admin page.
[2] Make the grid display a large number of rows, then scroll
    the page. Verify that the grid header is sticky (i.e.,
    the header remains visible in the viewport).
[3] Verify that the Carousels and Standing Penalties local admin
    grids have stick headers.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Risher <mrisher@catalyte.io>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>

Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/standing-penalty.component.html
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.html

index 6740171..f1cedc7 100644 (file)
@@ -41,7 +41,8 @@
 <eg-translate #translator></eg-translate>
 
 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" 
-    [sortable]="true" persistKey="{{persistKey}}">
+    [sortable]="true" persistKey="{{persistKey}}"
+    [stickyHeader]="true">
   <eg-grid-toolbar-button [disabled]="!canCreate" 
     label="New {{idlClassDef.label}}" i18n-label [action]="createNew">
   </eg-grid-toolbar-button>
index aefc58d..a4e70d8 100644 (file)
@@ -16,7 +16,7 @@
     [rowFlairIsEnabled]="true"
     [rowFlairCallback]="cspRowFlairCallback"
     [cellClassCallback]="cspGridCellClassCallback"
-    [sortable]="true">
+    [sortable]="true" [stickyHeader]="true">
     <eg-grid-toolbar-button 
       label="New Standing Penalty Type" i18n-label (onClick)="createNew()">
     </eg-grid-toolbar-button>
index ceb9cbc..215161f 100644 (file)
@@ -53,7 +53,8 @@
 </ng-template>
 
 <eg-grid #grid idlClass="{{idlClass}}" [dataSource]="dataSource" hideFields="{{hideGridFields}}"
-    [sortable]="true" persistKey="{{persistKey}}">
+    [sortable]="true" persistKey="{{persistKey}}"
+    [stickyHeader]="true">
   <eg-grid-toolbar-button [disabled]="!canCreate" 
     label="New {{idlClassDef.label}}" i18n-label (onClick)="createNew()">
   </eg-grid-toolbar-button>