]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1831785: eg-combobox support automatic pcrud-based IDL data sources
authorJason Etheridge <jason@EquinoxInitiative.org>
Wed, 5 Jun 2019 15:42:29 +0000 (11:42 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 30 Jul 2019 14:58:19 +0000 (07:58 -0700)
commit5d9ce17d7d1dd8c610a6d3f0c62c4680a0ab51f8
tree5490140854dd3d54a0d07d86c665bf36fb48901f
parentf6c0ba381ad29334c708aa001ed7e72bcc73e32a
LP#1831785: eg-combobox support automatic pcrud-based IDL data sources

This patch adds new idlClass and idlField attributes to eg-combobox to
enable it to automatically construct a pcrud-base data source. The
idlClass property specifies which table/class to use as the base
data source, while idlField specifies the label to display. If idlField
is not supplied, the label field defaults to "name".

It also adds an asyncSupportsEmptyTermClick option to specify that an
async data source (whether or not it is automatically built) is
expected to never return more than a couple hundred entries or so;
when supplied, it will allow fetching the entire contents of the
data source when the user clicks on the drop-down.

To test
-------
[1] Apply the patch and exercise the comboboxes on the
     Angular sandbox page (/eg2/en-US/staff/sandbox)

Sponsored-by: MassLNC
Sponsored-by: Georgia Public Library Service
Sponsored-by: Indiana State Library
Sponsored-by: CW MARS
Sponsored-by: King County Library System
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html