4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
13 * @class Roo.form.Radio
14 * @extends Roo.form.Checkbox
15 * Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type.
16 * Radio grouping is handled automatically by the browser if you give each radio in a group the same name.
19 * @param {Object} config Configuration options
21 Roo.form.Radio = function(){
22 Roo.form.Radio.superclass.constructor.apply(this, arguments);
24 Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
28 * If this radio is part of a group, it will return the selected value
31 getGroupValue : function(){
32 return this.el.up('form').child('input[name='+this.el.dom.name+']:checked', true).value;