Module: elements-sk/radio-sk

radio-sk

The radio-sk and element contains a native 'input' element in light DOM so that it can participate in a form element.

Each element also supports the following attributes exactly as the native radio button element:

  • checked
  • disabled
  • name

All the normal events of a native radio button are supported.

Attributes
Name Description
label A string, with no markup, that is to be used as the label for the radio button. If you wish to have a label with markup then set 'label' to the empty string and create your own label element in the DOM with the 'for' attribute set to match the name of the radio-sk.
Properties:
Name Type Description
checked boolean This mirrors the checked attribute.
disabled boolean This mirrors the disabled attribute.
name string This mirrors the name attribute.
label string This mirrors the label attribute.
Source: