Skip to main content

bp-sdk-autocomplete-input

Custom element hooks

NameDescription
bp-sdk-external-autocomplete-inputdisables html

Classes

NameDescription
bp-sdk-autocomplete__containerRoot container for autocomplete
bp-sdk-autocomplete__labelLabel element
bp-sdk-autocomplete__inputInput element
bp-sdk-autocomplete__listUnsorted List element for options
bp-sdk-autocomplete__list-itemClass applied to all list item elements that displays choice
bp-sdk-autocomplete__list-item-${choice.id}Dynamic class on list items tagged to choice id
bp-sdk-autocomplete__list-item-textClass for all elements that display choice text
bp-sdk-autocomplete__list-item-text-${choice.id}Dynamic class on choice text elements tagged to choice id
bp-sdk-no-resultsClass on element that is to be displayed when no choices are available
bp-sdk-visually-hiddenConditional class suggesting when an element should be hidden

Properties

PropertyAttributeDescriptionTypeDefault
allowFallthroughallow-fallthroughAllow text to fall through if no selected choicesbooleanfalse
answerIdanswer-idAnswer idstringundefined
answeredBySourceanswered-by-sourceSpecifically how the question was answered (ie. "ACORD 126")stringundefined
choiceIdchoice_id* Selected choice idstringundefined
choices--* Choices to displayIChoice[][]
codecodequestion codestringundefined
disableDropdowndisable-dropdownDisables dropdownbooleanfalse
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
placeholderplaceholderPlaceholder to displaystring''
pristinepristineIs pristinebooleantrue
questionIdquestion_idQuestion idstringundefined
requiredrequiredIs requiredbooleanfalse
showChoicesshow_choicesShow choicesbooleanfalse
showNoChoicesFallbackshow-no-choices-fallbackShould show no choices fallback if list is emptybooleantrue
touchedtouchedIs touchedbooleanfalse

Events

EventDescriptionType
filterUpdateCustomEvent<{ id: string; value: string; }>
removeActiveAnswerCustomEvent<void>
updateActiveAnswerCustomEvent<string>
valueUpdateCustomEvent<string[]>

Dependencies

Used by

Depends on

Graph

graph TD; bp-sdk-autocomplete-input --> bp-sdk-errors-container bp-sdk-errors-container --> bp-sdk-errors bp-sdk-autocomplete-naics-container --> bp-sdk-autocomplete-input bp-sdk-business-classification-selector --> bp-sdk-autocomplete-input bp-sdk-dynamic-input --> bp-sdk-autocomplete-input style bp-sdk-autocomplete-input fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS