furo-ui5-select-labeled #
@furo/ui5 v1.18.0
import '@furo/ui5/src/furo-ui5-select-labeled.js';
exports FuroUi5SelectLabeled js
exports <furo-ui5-select-labeled>
custom-element-definition
superclass LitElement
mixes FBP
Summary: labeled select
Description #
furo-ui5-select-labeled
The furo-ui5-select-labeled is a composition to easily use a complete data select with label according
to the design specification of SAP Fiori Design System.
Example with options from specs #
A simple way to use the segmented button is, uising it with specified options for a string type.
Defining a type with the options may look like a big overhead, but it let you switch the UI implementation by just changing the tag name.
The labels in the demo are not translated for better readability.
Markup #
|
|
Type definition #
look at
fields.sex.meta.options.list
|
|
Example with bindOptions #
Set the id of the selected optioin to a value which is not in the list and press load options again.
Markup #
|
|
Attributes and Properties #
label #
label
string
default: ''
the label for the data-number-input
idFieldPath #
id-field-path
string
default: 'id'
Defines the field path that is used from the injected RepeaterNode to identify the option items.
Point-separated path to the field
E.g. data.partner.ulid
valueFieldPath #
value-field-path
string
default: 'id'
Defines the field path that is used to update the bound component if the user has selected an option.
Point-separated path to the field
Must be set if a data binding is specified.
displayFieldPath #
display-field-path
string
default: 'display_name'
Defines the field path that is used from the injected RepeaterNode to display the option items.
Point-separated path to the field
E.g. data.partner.display_name
full #
full
boolean
This is only used to forward the state to the form-field-container
required #
required
Boolean
A Boolean attribute which, if present, means this field is required and marked with *.
disabled #
disabled
Boolean
A Boolean attribute which, if present, means this field cannot be edited by the user and
appears in disabled state.
readonly #
readonly
Boolean
A Boolean attribute which, if present, means this field is readonly.
Events #
furo-value-changed #
at-furo-value-changed
→ String
Fires the field value when it changes.
Methods #
focus #
focus(options Object
) ⟹ void
Object
→
fn-focus
Focuses the underlying ui5 input element
setOptions #
setOptions(arr *rawJson*
) ⟹ boolean
→
fn-set-options
inject raw data as options
- arr
- rawJson raw data array with a id, display_name signature
bindData #
bindData(fieldNode FieldNode
) ⟹ void
FieldNode
→
fn-bind-data
Orchestrates the data field connection to the inside
- fieldNode
bindOptions #
bindOptions(repeaterNode `` ) ⟹ void
`` → fn-bind-options
Binds a repeaterNode to the furo-ui5-select component
- repeaterNode
Slots #
valueStateMessage #
Type: HTMLElement
defines the value state message that will be displayed as pop up under the input element.