- Adjust org-select.component.html to print both the <label> and the <input>
- In org-select.component.ts, provide three new input directives:
-- labelText, defaulting to "Library" (as org-family-select.component.html already did; this is localized)
-- labelClass, for additional classes like "sr-only" or layout-related classes
-- labelSuppressed, which can be set to true for instances where the <label> needs to be placed elsewhere in the layout
The rest of the files changed are instances of <eg-org-select>, which have all been updated to either remove adjacent <label> tags that are now printed automatically, or to add labelSuppressed="true" where a <label> existed but was not directly adjacent to the <input> for layout reasons.
Branch here: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ sleary/ lp1999158- org-select- labels
My approach:
- Adjust org-select. component. html to print both the <label> and the <input>
- In org-select. component. ts, provide three new input directives: select. component. html already did; this is localized)
-- labelText, defaulting to "Library" (as org-family-
-- labelClass, for additional classes like "sr-only" or layout-related classes
-- labelSuppressed, which can be set to true for instances where the <label> needs to be placed elsewhere in the layout
The rest of the files changed are instances of <eg-org-select>, which have all been updated to either remove adjacent <label> tags that are now printed automatically, or to add labelSuppressed ="true" where a <label> existed but was not directly adjacent to the <input> for layout reasons.