Skip to main content

bp-sdk-select-input

Custom element hooks

NameDescription
bp-sdk-external-select-inputdisables html

Classes

NameDescription
bp-sdk-input-containerRoot div element
bp-sdk-select__buttonButton element to toggle expansion state of select list
bp-sdk-invalidDynamic class on button if list is invalid
bp-sdk-touchedDynamic class on button if list is touched
bp-sdk-pristineDynamic class on button if list is pristine
bp-sdk-align-rightClass suggesting to align element to right
bp-sdk-select__button-arrowClass suggesting content is an arrow
bp-sdk-select__listUnsorted List element
bp-sdk-select__list-itemList item element that displays choice
bp-sdk-select__list-item-${choice.id}List item element scoped to a choice by id
bp-sdk-select__list-item-selectedDynamic class for list element when choice is selected
bp-sdk-no-selectionDiv element that displays when no content
bp-sdk-select__list-item-labelLabel element for choice's input element, used when multiple select
bp-sdk-select__list-item-contentUsed on input or span element where content is displayed to share styling
bp-sdk-select__list-item-inputInput element for choice, used when multiple select
bp-sdk-select__list-item-input-${this.code}scoped to a question by code
bp-sdk-select__list-item-textSpan element for choice to display text, used when single select
bp-sdk-select__list-item-text-${this.code}scoped to a question by code
bp-sdk-select__labelLabel element
bp-sdk-visually-hiddenDynamic class when element should be hidden

Properties

PropertyAttributeDescriptionTypeDefault
answerIdanswer-idAnswer idstringundefined
answeredBySourceanswered-by-sourceSpecifically how the question was answered (ie. "ACORD 126")stringundefined
autoCompleteauto-completeAutocomplete attribute value for inputstringundefined
choiceIdchoice_idChoice id selected. Used for single selection.stringundefined
choiceIds--Choice ids selected. Used for multiple selection.string[][]
choices--Choices to displayIChoice[][]
codecodeQuestion codestringundefined
errorTexterror_textError textstringundefined
errors--Error messagesstring[]undefined
fieldTypefield_typeField typestringundefined
helpTexthelp-textHelp textstringundefined
isCompletedis_completedIs answer in complete statebooleanfalse
isReadOnlyis-read-onlyWhen true, the field will be readonly. It will display only the label and value as plain text.booleanfalse
labellabelLabel to usestringundefined
labelIdlabel-idAria label id's that describes input for screen readersstringundefined
labelledBylabelled-byLabels that describe groupstringundefined
multiplemultipleWhether to allow multi-select.booleanfalse
placeholderplaceholderPlaceholder to displaystring''
pristinepristineIs Pristinebooleantrue
questionIdquestion_idQuestion Idstringundefined
requiredrequiredIs requiredbooleanundefined
touchedtouchedIs Touchedbooleanfalse
useAliasuse-aliasUse alias for choicesbooleanfalse
valuevalueCurrent valuestringundefined

Events

EventDescriptionType
removeActiveAnswerCustomEvent<void>
updateActiveAnswerCustomEvent<string>
valueUpdateCustomEvent<string[]>

Dependencies

Used by

Depends on

Graph

graph TD; bp-sdk-select-input --> bp-sdk-errors-container bp-sdk-errors-container --> bp-sdk-errors bp-sdk-parent-question-pool-selector --> bp-sdk-select-input bp-sdk-product-list --> bp-sdk-select-input bp-sdk-select-input-container --> bp-sdk-select-input style bp-sdk-select-input fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS