Search

Find components, guides, and documentation

Select Rich: API Table

class: LionSelectInvoker, lion-select-invoker

Fields

NamePrivacyTypeDefaultDescriptionInherited From
activepublicbooleanfalseLionButton
hostElementpublicLionSelectRich | nullnullThe LionSelectRich element this invoker is part of. Will be set on connectedCallback of LionSelectRich
readOnlypublicbooleanfalseWhen the connected LionSelectRich instance is readOnly, this should be reflected in the invoker as well
selectedElementpublicLionOption | nullnullThe option element that is currently selected
singleOptionpublicbooleanfalseWhen the connected LionSelectRich instance has only one option, this should be reflected in the invoker as well
slotspublic
typepublicstring'button'LionButton
_contentWrapperNodeprotected

Methods

NamePrivacyDescriptionParametersReturnInherited From
_afterTemplateprotected
_beforeTemplateprotected
_contentTemplateprotectedTemplateResult|Node[]|string|null
_noSelectionTemplateprotectedTo be overriden for a placeholder, used when `hasNoDefaultSelected` is true on the select richTemplateResult

Attributes

NameFieldInherited From
selectedElementselectedElement
hostElementhostElement
readonlyreadOnly
single-optionsingleOption
activeactiveLionButton
typetypeLionButton

class: LionSelectRich, lion-field-with-select

Fields

NamePrivacyTypeDefaultDescriptionInherited From
configpublicPartial<OverlayConfig>{}Configure the many options of the `OverlayController`OverlayMixin
interactionModepublic'windows/linux'|'mac'|'auto''auto'Aligns behavior for ‘selectionFollowFocus’ and ‘navigateWithinInvoker’ with platform. When ‘auto’ (default), platform is automatically detected
navigateWithinInvokerpublicBooleanfalseWhen invoker has focus, up and down arrow keys changes active state of listbox, without opening overlay.
openedpublicbooleanfalseIf you add the opened attribute a dialog will be opened on page load. The invoker can be left out in case the user does not need to be able to reopen the dialog.OverlayMixin
singleOptionpublicbooleanfalse
slotspublicSlotsMap
_arrowWidthprotectednumber28
_feedbackConditionMetaprotectedLionListbox
_focusableNodeprotectedLionListbox
_invokerNodeprotectedLionSelectInvoker
_overlayBackdropNodeprotectedOverlayMixin
_overlayContentNodeprotectedOverlayMixin
_overlayContentWrapperNodeprotectedOverlayMixin
_overlayInvokerNodeprotectedThe node that opens/closes this overlay. Resolved in a stable, declarative way (independent of the exact DOM order) by looking, in order, for: 1. a child with `[slot=“invoker”]` 2. any element in the same root that opts in via `[data-invoker]` and references this host by id (`for=“<id>”`) 3. a preceding sibling that opts in via `[data-invoker]`OverlayMixin
_overlayReferenceNodeprotectedOverlayMixin
_scrollTargetNodeprotected

Methods

NamePrivacyDescriptionParametersReturnInherited From
addFormElementpublicchild: LionOption & FormControlHost, indexToInsertAt: Number
closepublicHides the overlayOverlayMixin
openpublicShows the overlayOverlayMixin
removeFormElementpublicchild: FormRegisteringHost
repositionOverlaypublicSometimes it’s needed to recompute Popper position of an overlay, for instance when we have an opened combobox and the surrounding context changes (the space consumed by the textbox increases vertically)OverlayMixin
togglepublicToggles the overlayOverlayMixin
_alignInvokerWidthprotectedAlign invoker width with content width Make sure display is not set to “none” while calculating the content width
_defineOverlayprotected{ contentNode, invokerNode, referenceNode, backdropNode, contentWrapperNode }, config: DefineOverlayConfigOverlayControllerOverlayMixin
_defineOverlayConfigprotectedOverlayConfigOverlayMixin
_getCheckedElementsprotectedIn the select disabled options are still going to a possible value for example when prefilling or programmatically setting it.
_getInvokerNodeprotectedElement|nullOverlayMixin
_inputGroupInputTemplateprotected
_isPermanentlyDisconnectedprotectedWhen we’re moving around in dom, disconnectedCallback gets called. Before we decide to teardown, let’s wait to see if we were not just moving nodes around.Promise<boolean>OverlayMixin
_listboxOnClickprotected
_listboxOnKeyDownprotectedev: KeyboardEvent
_noDefaultSelectedInheritsWidthprotectedWith no selected element, we should override the inheritsReferenceWidth in most cases. By default, we will set it to ‘min’, and then set it back to what it was initially when something is selected. As a subclasser you can override this behavior.
_onFormElementsChangedprotected
_onLabelClickprotected
_scrollIntoViewprotectedel: HTMLElement, scrollTargetEl: HTMLElement
_setOpenedWithoutPropertyEffectsprotectedWhen the opened state is changed by an Application Developer,cthe OverlayController is requested to show/hide. It might happen that this request is not honoured (intercepted in before-hide for instance), so that we need to sync the controller state to this webcomponent again, preventing eternal loops.newOpened: booleanOverlayMixin
_setupListboxNodeprotected
_setupOpenCloseListenersprotectedOverlayMixin
_setupOverlayCtrlprotectedOverlayMixin
_teardownListboxNodeprotected
_teardownOpenCloseListenersprotectedOverlayMixin
_teardownOverlayCtrlprotectedOverlayMixin

Events

NameTypeDescriptionInherited From
blurEvent
opened-changedCustomEventOverlayMixin

Attributes

NameFieldInherited From
navigate-within-invokernavigateWithinInvoker
interaction-modeinteractionMode
single-optionsingleOption
openedopenedOverlayMixin