December 2017
Intermediate to advanced
282 pages
5h 54m
English
Create an ojRadioset component using the ojComponent binding with an ID. To review the value of the radio box element, create an HTML label with the for attribute referring to the value of the ID from ojRadioset. Populate the value from the model layer. The following is the example for the radio set component selection:
<form id="formId" class="oj-form"> <label id="mainlabelid">Browsers</label> <!-- You need to set the aria-labelledby attribute to make this accessible. role="radiogroup" is set for you by ojRadioset. --> <div id="radiosetBasicDemoId" aria-labelledby="mainlabelid" data-bind="ojComponent: { component: 'ojRadioset', value: currentBrowser}" > <!-- oj-choice-item is required for the component to work --> <span ...Read now
Unlock full access