loading... Pacem JS

Databinding

The select scaffolding component (combobox) simply wraps the standard <select> element.
It provides nonetheless databinding capabilities for handy connects against datasources:

Declarative usage

Same results can be achieved in a more declarative way by wrapping a list of <pacem-data-item> elements.

Any PacemDatasourceElement can wrap <pacem-data-item> elements as a datasource.

Default option

The default - empty - option is on by default and shows the placeholder value, if provided.
Even if required as a field, the end-user should be asked to pick an option and not be unaware "victim" of automatic selections.

If preventing the default option is mandatory, then just set emptyOption property to false. See the behavior below: