RadioGroup

A group of radio button for Setting Dialog

Constructor
RadioGroup(radios: string | string[] = null, selected: number = 0)

Construct an RadioGroup

Parameters
radios Array of radio button label
selected Default selected index
Methods
radio
RadioGroup radio(radio: string)

Add a radio button

Parameters
radio The radio label
Return
RadioGroup This RadioGroup instance
select
RadioGroup select(index: number)

Set selected index

Parameters
index 0 based index
Return
RadioGroup This RadioGroup instance

© 2021 - Macrorify by KoK-CODE