Home  >  Article  >  Web Front-end  >  How to set and get the selection status of radio control in ExtJS_extjs

How to set and get the selection status of radio control in ExtJS_extjs

WBOY
WBOYOriginal
2016-05-16 17:02:581075browse

Get

Copy code The code is as follows:

function IsChecked(radioId) {
return Ext .getCmp(radioId).checked;
}

Settings
Copy code The code is as follows :

function SetRadio(radioId, isChecked) {
Ext.getCmp(radioId).setValue(isChecked);//or setValue("on") can also be set to checked
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn