有些时候,我试图构建一个允许绑定无线电组的代码。
然而,尽管我作出了努力,我仍然没有成功。
我的代码中遗漏了什么?
你能帮帮我吗?
小提琴:
发布于 2014-12-13 17:18:45
一旦值发生变化,您需要检查无线电组,在ViewModel公式中,您需要找到第一个选中的值,返回的值是boxLabel。看到你改变的小提琴这里
发布于 2022-07-25 05:18:54
我有更少的密码。在该方法中,两个部件用较少的代码连接。
{
xtype: 'radiogroup',
reference: 'startTimerEndType',
publishes: 'value',
fieldLabel: 'Test',
columns: 1,
vertical: true,
items: [
{boxLabel: 'One', name: 'box', inputValue: '1', checked: true},
{boxLabel: 'Two', name: 'box', inputValue: '2'},
{boxLabel: 'Three', name: 'box', inputValue: '3'},
]
},{
xtype: 'numberfield',
hidden: true,
bind: {
visible: "{startTimerEndType.value.box==3}"
},
}https://stackoverflow.com/questions/26218777
复制相似问题