You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
bi.single_select_radio_item
单选框item,基类BI.BasicButton
{% method %} source
{% common %}
BI.createWidget({
type: 'bi.vertical',
element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "单选item"
}, {
type: "bi.single_select_radio_item",
text: "单选项"
}]
});
{% endmethod %}
API
基础属性
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
height | 高度 | number | — | 25 |
hgap | 效果相当于文本框左右padding值 | number | — | 10 |
textAlign | 文本对齐方式 | string | left,center,right | "left" |
对外方法
名称 | 说明 | 回调参数 |
---|---|---|
setSelected | 设置选中值 | v |
doRedMark | 标红 | — |
unRedMark | 取消标红 | — |
doClick | 点击事件 | — |