LP1739277 Angular org selector style callback user/berick/lp1739277-org-select-class-callback
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Jul 2019 16:12:12 +0000 (12:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 30 Jul 2019 16:12:14 +0000 (12:12 -0400)
commit5bfb377f8f7fbee94a7ac5feda4592fb14757ae7
tree42d43fb59dfe181fba65689889b70f512bc53602
parentb9c3bc3b3febd02f2ba1af36dcbb0219e52fff0c
LP1739277 Angular org selector style callback

Allow the caller of an <eg-org-select> to pass a function which is
called against each org unit in the list to determine what CSS class(es)
should be applied to the org unit label in the list.

Includes sandbox example.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.html
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts