LP#1832897: add Angular widget to for selecting multiple linked rows
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 17 Jun 2019 01:53:36 +0000 (21:53 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 14:31:52 +0000 (10:31 -0400)
commita6c3734134dd2248f91107da2fbdc82dba2cb278
tree3bdeb7ae412b8d09615f5193506c19c38165dd1e
parent5234d6c8dc3c1ac8a23979f31fcae23ee9290268
LP#1832897: add Angular widget to for selecting multiple linked rows

This component provides a widget to allow the user to select
multiple linked rows. In particularly, it is meant to handle
IDL fields whose underlying database columns are intarrays that
refer to records in another IDL class.

The widget's user interface consists of an eg-combobox for selecting
new values to add to the list and a list of the existing values.

The component has the following attributes:

- idlClass: IDL class of the records being linked to
- linkedLibraryLabel: if supplied, specifies that the display
  label in the comboox should include the library shortname as
  found in the specified field.
- startValue: init value to display

This component emits onChange events.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/multi-select/multi-select.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/multi-select/multi-select.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/common.module.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html