Radio
The radio element creates a group of radio buttons for user selection.
let elements = [
{
type: "radio"
}
];
Instance of RadioGroup is created.
Arguments
multiple- determines whether multiple options can be selected.items- array, that defines the available options for the radio group
new RadioGroup()
.set({
items: ["Male", "Female", "Third shit"],
multiple: false
});
// 23:22:23 18/01/25 Nice!