| Class Summary | |
| Radio |
tlv8.Radio(div,item,splithtmlarray) 单选组件 |
| Method Summary | |
| string | onselected 获取单选组件当前选中值 |
| void | setValue 设置选中值 |
Radio tlv8.Radio
Radio 单选组件
Parameters:
div
{Element div}[required]单选组件所属的层
item
{Map}[required]单选组件的选项
splithtmlarray
{Array}选项分隔标记数组 内容可以是任意html标签 如"<br>"," " 数组长度与选项个数相同
Returns:
{Radio}
Example:
<div id='sNameDemo' onselected='kkkk'></div>
var radioDemo = document.getElementById("sNameDemo");
var item = new Map();
item.put("yes","是");
item.put("no","否");
item.put("normal","未知");
tlv8.Radio(radioDemo,item);
<div id='sNameDemo' onselected='kkkk'></div>
var radioDemo = document.getElementById("sNameDemo");
var item = new Map();
item.put("yes","是");
item.put("no","否");
item.put("normal","未知");
var splithtmlarray = new Array();
splithtmlarray.push(" ");
splithtmlarray.push("<br>");
splithtmlarray.push("<br>");
tlv8.Radio(radioDemo,item,splithtmlarray);