bp-sdk-radio-input
Custom element hooks
Name | Description |
---|
bp-sdk-external-radio-input | disables html |
Classes
Name | Description |
---|
bp-sdk-radio__container | Root div element |
bp-sdk-radio__wrapper | Div element wrapping content |
bp-sdk-radio__label | Label element |
bp-sdk-radio__text | Div element with question text |
bp-sdk-radio__choice-list | Div wrapping list of radio choice inputs |
bp-sdk-radio__choice | Input element, type radio with choice bound to it |
Properties
Property | Attribute | Description | Type | Default |
---|
answerId | answer-id | Answer id | string | undefined |
answeredBySource | answered-by-source | Specifically how the question was answered (ie. "ACORD 126") | string | undefined |
choiceId | choice_id | Selected choice | string | undefined |
choices | -- | Choices to display | IChoice[] | [] |
code (required) | code | question code | string | undefined |
errorText | error_text | Error text | string | undefined |
errors | -- | Error messages | string[] | undefined |
fieldType | field_type | Field type | string | undefined |
helpText | help-text | Help text | string | undefined |
isCompleted | is_completed | Is answer in complete state | boolean | false |
isReadOnly | is-read-only | When true, the field will be readonly. It will display only the label and value as plain text. | boolean | false |
label | label | Label to display | string | undefined |
labelledBy | labelled-by | Labels that describe group | string | undefined |
pristine | pristine | Is pristine | boolean | true |
questionId | question_id | Question id | string | undefined |
required | required | Is required | boolean | undefined |
touched | touched | Is touched | boolean | false |
Events
Event | Description | Type |
---|
removeActiveAnswer | | CustomEvent<void> |
valueUpdate | | CustomEvent<string> |
Dependencies
Used by
Depends on
Graph
graph TD;
bp-sdk-radio-input --> bp-sdk-errors-container
bp-sdk-errors-container --> bp-sdk-errors
bp-sdk-dynamic-input --> bp-sdk-radio-input
bp-sdk-radio-dialog --> bp-sdk-radio-input
style bp-sdk-radio-input fill:#f9f,stroke:#333,stroke-width:4px
Built with StencilJS