本文整理汇总了TypeScript中blessed.radiobutton函数的典型用法代码示例。如果您正苦于以下问题:TypeScript radiobutton函数的具体用法?TypeScript radiobutton怎么用?TypeScript radiobutton使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了radiobutton函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
parent: form2,
left: 1,
top: 1,
shrink: true,
style: {
bg: "magenta"
}
});
const radio1 = blessed.radiobutton({
parent: set,
mouse: true,
keys: true,
shrink: true,
style: {
bg: "magenta"
},
height: 1,
left: 0,
top: 0,
name: "radio1",
content: "radio1"
});
const radio2 = blessed.radiobutton({
parent: set,
mouse: true,
keys: true,
shrink: true,
style: {
bg: "magenta"
},
示例2:
top: 1,
shrink: true,
//padding: 1,
//content: 'f',
style: {
bg: 'magenta'
}
});
var radio1 = blessed.radiobutton({
parent: set,
mouse: true,
keys: true,
shrink: true,
style: {
bg: 'magenta'
},
height: 1,
left: 0,
top: 0,
name: 'radio1',
content: 'radio1'
});
var radio2 = blessed.radiobutton({
parent: set,
mouse: true,
keys: true,
shrink: true,
style: {
bg: 'magenta'
},