====== Radio Button Group ====== {{ :scripting:dialogs:radiobutton_group.png|Radio Button Group Demo}} Simplified control for managing group of radio buttons with single selection variable. ===== Properties ===== ^ Property ^ Default Value ^ Description ^ | **id** | empty | id (name) of the script data object (integer) associated with control | | **align** | stretched | [[scripting:dialogs:align|Alignment]] of the control | | **required** | false | required property of the control (if control is initial, "positive" buttons will be disabled) | | **selected_index** | -1 (no selection) | Selected radio button index. Will be taken if no variable is bound (variable in dialog storage with name corresponding to //id// property) | ===== Items ===== Radio Button Group control contains //Items//. The //item// may be: simple radio button control, [[scripting:dialogs:columnbreak|column break]] or [[scripting:dialogs:sectionbreak|section break]] layout items. ==== Item ==== Properties of Radio Button Group item: ^ Property ^ Default Value ^ Description ^ | **text** | empty | Item text | ===== Example ===== var varStorage = new Storage(); var dialog_template = '@ \ \ \ \ \ \ \ \ \ \ \ \ \ @'; Output().writeln("Dialog returns: " + dialog(dialog_template, varStorage));