0.1.1 • Published 3 years ago

@simplr-wc/checkbox-group v0.1.1

Weekly downloads
22
License
ISC
Repository
github
Last release
3 years ago

Simplr Checkbox Group

Usage

Import
import '@simplr-wc/checkbox-group';
Use
  import '@simplr-wc/checkbox-group';


const singleCategoryOptions = [
  { label: 'Option 1', value: 1 },
  { label: 'Option 2', value: 2 },
  { label: 'Option 3', value: 3 },
  { label: 'Option 4', value: 4 },
];
<simplr-checkbox-group
  label="Single category options"
  .options="${singleCategoryOptions}"
  .selectedOptions=${[2]}
></simplr-checkbox-group>

Properties

PropertyAttributeTypeDefaultDescription
labellabelstring""Label shown above the group of checkboxes
optionsoptionsarray[]List of options shown as checkboxes.
selectedOptionsselectedOptionsarray[]List of selected values in options.

Methods

MethodType
getValue(): any