Comment 1 for bug 1803787

Revision history for this message
Bill Erickson (berick) wrote :

Patches pushed:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1803787-ang-grid-context-menu

There are two commits:

1. Adds support for <eg-grid-toolbar-action [separator]="true".../> for displaying separators in the grid actions drop-down.

2. Adds context menu display for grids matching the content of the toolbar actions, supporting separators.

Note the menu display uses an ng-bootstrap popover, which has no baked-in concept of displaying at the mouse action. Instead, the menu appears below the grid item upon which the right-click occurred. In most cases, this will be very close to the right-click, except when a grid column is very wide. I opted for this to reduce code (since we already import bootstrap), but if the display is irksome, more research may be needed and/or we may have to roll our own context menu.