Add a simple way to specify a double-click action to an Angular grid

Bug #1813806 reported by Jane Sandberg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

In the angular browser client, the grid has an onRowActivate Event emitter that fires whenever the user double clicks on a row. This is used to open up the edit menu in the Acq Admin interfaces when the user double clicks on one of those rows.

It would be nice if there was a simple way to specify the action to take on that double-click action (something like this in the .html files: <eg-grid [activateAction]="editSelectedRows">)

It looks like there's a related to-do in the code here: https://github.com/evergreen-library-system/Evergreen/blob/0469a1cb06a6adcaf80e04325618be9fca3895c7/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts#L151

Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
status: New → Confirmed
Revision history for this message
Bill Erickson (berick) wrote :

Here's a patch that moves the handler from a class variable to a method, which can be passed to the grid via markup. No changes to the grid are required.

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1813806-ang-grid-row-activate-example

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
Andrea Neiman (aneiman)
tags: added: eg-grid
tags: removed: webstaffclient
tags: added: needsrebase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.