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:
|
||||||
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;