1
기본 유형이 버튼 인 경우 toggleGroup의 값을 가져 오는 방법. allowblank : false도 작동하지 않습니다.Ext JS - 기본 유형이 버튼 일 때 toggleGroup의 값을 얻습니다.
의 ExtJS 5.x의에서{
xtype:'radiogroup',
fieldLabel: 'What is your title?',
layout:'hbox',
allowBlank:false,
defaultType: 'button',
id: 'titleSel',
defaults: {
enableToggle: true,
toggleGroup: 'titleGroup',
allowDepress: false,
width: '16.56%',
name: 'title',
},
items: [
{text: 'Mr', value: 'Mr', inputValue: 'sfsf'},
{text: 'Mrs', value: 'Mrs'},
{text: 'Madam', value: 'Madam'},
{text: 'Ms', value: 'Ms'},
{text: 'Dr', value: 'Dr'},
{text: 'Prof', value: 'Prof'},
],
},
RadioGroup에서 getChecked()를 사용해 보셨습니까? –
getChecked()가 값을 반환하지 않습니다. 제거 할 때 제출 버튼 - defaultType : 'button'에서 값을 얻을 수 있습니다. 기본적으로 라디오 모양을 단추로 변경하려고합니다. –
Ext.getCmp ('titleSel'). getChecked() - 아무 값도 반환하지 않습니다. –