ExtJs 4.2: Radio Button not rendering properly(Button is missing but label is visible)

余生颓废 提交于 2019-12-12 03:55:28

问题


I am trying to implement a simple Radio Button in my application(Extjs 4.2). But the Radio buttons are not visible. This is my code for generating radio Button(following code is inside Items array of panel):

{
    xtype:'form',
    header: false,
    items:[{
        xtype: 'radiogroup',
        fieldLabel: 'Choose',
        items: [
            { boxLabel: 'Option 1', name: 'rb', inputValue: '1' ,inputValue: 'Checked'},
            { boxLabel: 'Option 2', name: 'rb', inputValue: '2' }
        ]
    }]
}

This is how it displays it.

Can someone point out my mistake? Thanks


回答1:


Your CSS is lacking the radio button styles. So you have to be using Sencha Cmd, because otherwise CSS would be complete.

So let Cmd compile your code once again, then the CSS should be updated accordingly and everything should work.

The uncompiled version of your app still requires the compiled version of CSS, because browsers can't understand the SCSS file format.



来源:https://stackoverflow.com/questions/35845561/extjs-4-2-radio-button-not-rendering-properlybutton-is-missing-but-label-is-vi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!