X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Radio.html diff --git a/docs/source/Radio.html b/docs/source/Radio.html index 5307ffca..77f2bba9 100644 --- a/docs/source/Radio.html +++ b/docs/source/Radio.html @@ -1,5 +1,22 @@ -
+ +/** - * @class Ext.form.field.Radio + + + + +\ No newline at end of file +The source code + + + + + + +/** + * @class Ext.form.field.Radio * @extends Ext.form.field.Checkbox Single radio field. Similar to checkbox, but automatically handles making sure only one radio is checked @@ -95,19 +112,19 @@ __Example usage:__ var radio1 = Ext.getCmp('radio1'), radio2 = Ext.getCmp('radio2'), radio3 = Ext.getCmp('radio3'); - + //if L is selected, change to M if (radio2.getValue()) { radio1.setValue(true); return; } - + //if XL is selected, change to L if (radio3.getValue()) { radio2.setValue(true); return; } - + //if nothing is set, set size to S radio1.setValue(true); } @@ -118,19 +135,19 @@ __Example usage:__ var radio1 = Ext.getCmp('radio1'), radio2 = Ext.getCmp('radio2'), radio3 = Ext.getCmp('radio3'); - + //if M is selected, change to L if (radio1.getValue()) { radio2.setValue(true); return; } - + //if L is selected, change to XL if (radio2.getValue()) { radio3.setValue(true); return; } - + //if nothing is set, set size to XL radio3.setValue(true); } @@ -169,10 +186,6 @@ __Example usage:__ }); - * @constructor - * Creates a new Radio - * @param {Object} config Configuration options - * @xtype radio * @docauthor Robert Dougan <rob@sencha.com> * @markdown */ @@ -184,7 +197,7 @@ Ext.define('Ext.form.field.Radio', { isRadio: true, - /** + /** * @cfg {String} uncheckedValue @hide */ @@ -192,7 +205,7 @@ Ext.define('Ext.form.field.Radio', { inputType: 'radio', ariaRole: 'radio', - /** + /** * If this radio is part of a group, it will return the selected value * @return {String} */ @@ -201,7 +214,7 @@ Ext.define('Ext.form.field.Radio', { return selected ? selected.inputValue : null; }, - /** + /** * @private Handle click on the radio button */ onBoxClick: function(e) { @@ -211,7 +224,7 @@ Ext.define('Ext.form.field.Radio', { } }, - /** + /** * Sets either the checked/unchecked status of this Radio, or, if a string value * is passed, checks a sibling Radio of the same name whose value is the value specified. * @param value {String/Boolean} Checked value, or the value of the sibling radio button to check. @@ -232,7 +245,7 @@ Ext.define('Ext.form.field.Radio', { return me; }, - /** + /** * Returns the submit value for the checkbox which can be used when submitting forms. * @return {Boolean/null} True if checked, null if not. */ @@ -240,6 +253,10 @@ Ext.define('Ext.form.field.Radio', { return this.checked ? this.inputValue : null; }, + getModelData: function() { + return this.getSubmitData(); + }, + // inherit docs onChange: function(newVal, oldVal) { var me = this; @@ -265,4 +282,6 @@ Ext.define('Ext.form.field.Radio', { return Ext.form.RadioManager; } }); -