0.3.0 • Published 4 years ago

@simplr-wc/radio-group v0.3.0

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

Simplr Radio Group

Usage

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

const radioSelections = [
    { label: 'Option 1', value: 1 },
    { label: 'Option 2', value: 2 },
    { label: 'Option 3', value: 3 },
    { label: 'Option 4', value: 4 },
];
<simplr-radio-group
  name="inputs-one"
  .options="${radioSelections}"
  .selectedValue=${2}
></simplr-radio-group>

Properties

PropertyAttributeTypeDefaultDescription
alignalign"row"\|"column""row"Alignment of radio button group.
namenamestring""Name of the group of radio buttons
optionsoptionsarray[]Array of radio button options.
selectedValueselectedValuestring[]Pre-selected radio button value.

Methods

MethodType
getValue(): any[]

Events

Event
change