0.3.9 • Published 4 years ago

@simplr-wc/select v0.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Simplr Select

Usage

Import
import '@simplr-wc/select';
Use
import '@simplr-wc/select';

const options = [
  { label: 'Banana', value: 1 },
  { label: 'Strawberry', value: 2 },
  { label: 'Kiwi', value: 3 },
  { label: 'Peach', value: 4 },
];
<simplr-select label="Simple select" .options="${options}"></simplr-select>

Properties

PropertyAttributeTypeDefaultDescription
errorMessageerrorMessagestring""Error message shown on invalid input
fieldHasErrorbooleanfalse
helperTexthelperTextstring""Helper text shown below select element
iconiconstring""Icon shown next to the label in the select field
isOpenbooleanfalse
labellabelstringLabel of the select field
multimultibooleanDoes the Select field allow multiple values
namenamestring""Name of the select input
optionsoptionsarray[]Selectable options of the select field
outlinedoutlinedbooleanfalseStyle the select input in the outline material style
requiredrequiredbooleanfalseIs a input required
selectedValuesselectedValuesarray[]Select value of the select options

Methods

MethodTypeDescription
close(): void
getValue(): any
open(): void
0.3.9

4 years ago

0.3.6

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago