ui radiobox

Description

Render the HTML to represent a group of excluding options (radio-box).

Parameters

string

The control's name

string

The control's default value

array

[ [key1,value1], ..., [keyN,valueN] ]

options

json object with all options to render the control:

readonly

Define the control as read-only

disabled

Define the control as disabled

legend

The title on left side of radio buttons

Example:

ui.radiobox("filterBy","B", [
                ['B',_t('Batches')],
                ['S',_t('Serials')]
                ], 
                { legend:_t('Search ins')+': '}
                )

Return

string

The HTML to create the control

 

Example:

 

 

 

Example:

 

let html=ui.radiobox("filterBy","B", [
                ['B',_t('Batches')],
                ['S',_t('Serials')]
                ], 
                { legend:_t('Search ins')+': '}
                )
document.getElementById("app-container").innerHTML = html;

 

UI_radiobox_option