mmo-radio
1 symbol · generated 30 Sep 2026
mmo-radio
mmo-radio.jhs:1Radio element to display a radio group to select a value
- Extends
- CustomShadowElement
Index
| readonly | if true, the radio is readonly | |
| value | the value of the radio | |
| required | if true, the radio is required | |
| config | the config of the radio | |
| ViewDefault static readonly accessor | ||
| config accessor | Get the config of the radio | |
| required accessor | Get the required of the radio | |
| value accessor | Get the value of the radio | |
| readonly accessor | Get the readonly of the radio | |
| constructor() | ||
| init() | ||
| updateInputs() | Update the inputs of the radio Add or remove the readonly class to the labels and inputs | |
| onKeyDown(event) | Allow to select the radio by pressing the space key | |
| onInputChange(event) | On input change, set the value of the radio | |
| .highlighted | add a border to the radio | |
| .s | reduce the gap between the radio inputs |
Attributes4
readonly
mmo-radio.jhsif true, the radio is readonly
readonly
value
mmo-radio.jhsthe value of the radio
value
required
mmo-radio.jhsif true, the radio is required
required
config
mmo-radio.jhsthe config of the radio
config
Properties5
ViewDefault
staticreadonlyaccessormmo-radio.jhs:55config
accessormmo-radio.jhs:96Get the config of the radio
- Type
object
required
accessormmo-radio.jhs:112Get the required of the radio
- Type
boolean
value
accessormmo-radio.jhs:128Get the value of the radio
- Type
string
readonly
accessormmo-radio.jhs:153Get the readonly of the radio
- Type
boolean
Methods5
constructor()
mmo-radio.jhs:50init()
mmo-radio.jhs:59updateInputs()
mmo-radio.jhs:72Update the inputs of the radio Add or remove the readonly class to the labels and inputs
onKeyDown(event)
mmo-radio.jhs:169Allow to select the radio by pressing the space key
| event | KeyboardEvent | - The event |
onInputChange(event)
mmo-radio.jhs:180On input change, set the value of the radio
| event | Event | - The event |
CSS hooks2
.highlighted
mmo-radio.jhsadd a border to the radio
.highlighted
.s
mmo-radio.jhsreduce the gap between the radio inputs
.s