📄 ext.form.radiogroup.html
字号:
<div class="body-wrap"> <div class="top-tools"> <a class="inner-link" href="#Ext.form.RadioGroup-props"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.form.RadioGroup-methods"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.form.RadioGroup-events"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="inner-link" href="#Ext.form.RadioGroup-configs"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> <a class="bookmark" href="../docs/?class=Ext.form.RadioGroup"><img src="ext-2.0/resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div> <div class="inheritance res-block"><pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a> <img src="resources/elbow-end.gif"/><a ext:cls="Ext.Component" ext:member="" href="output/Ext.Component.html">Component</a> <img src="resources/elbow-end.gif"/><a ext:cls="Ext.BoxComponent" ext:member="" href="output/Ext.BoxComponent.html">BoxComponent</a> <img src="resources/elbow-end.gif"/><a ext:cls="Ext.form.Field" ext:member="" href="output/Ext.form.Field.html">Field</a> <img src="resources/elbow-end.gif"/><a ext:cls="Ext.form.CheckboxGroup" ext:member="" href="output/Ext.form.CheckboxGroup.html">CheckboxGroup</a> <img src="resources/elbow-end.gif"/>RadioGroup</pre></div> <h1>Class Ext.form.RadioGroup</h1> <table cellspacing="0"> <tr><td class="label">Package:</td><td class="hd-info">Ext.form</td></tr> <tr><td class="label">Defined In:</td><td class="hd-info">RadioGroup.js</td></tr> <tr><td class="label">Class:</td><td class="hd-info">RadioGroup</td></tr> <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.form.CheckboxGroup" ext:member="" href="output/Ext.form.CheckboxGroup.html">CheckboxGroup</a></td></tr> </table> <div class="description"> A grouping container for <a ext:cls="Ext.form.Radio" href="output/Ext.form.Radio.html">Ext.form.Radio</a> controls. </div> <div class="hr"></div> <a id="Ext.form.RadioGroup-configs"></a> <h2>Config Options</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Config Options</th> <th class="msource-header">Defined By</th> </tr> <tr class="config-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-allowBlank"></a> <b>allowBlank</b> : Boolean <div class="mdesc"> <div class="short">True to allow every item in the group to be blank (defaults to false). If allowBlank = false and no items are selecte...</div> <div class="long"> True to allow every item in the group to be blank (defaults to false). If allowBlank = false and no items are selected at validation time, {@link @blankText} will be used as the error text. </div> </div> </td> <td class="msource">RadioGroup</td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-allowDomMove"></a> <b>allowDomMove</b> : Boolean <div class="mdesc"> Whether the component can move the Dom node when rendering (defaults to true). </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#allowDomMove" href="output/Ext.Component.html#allowDomMove">Component</a></td> </tr> <tr class="config-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-applyTo"></a> <b>applyTo</b> : Mixed <div class="mdesc"> <div class="short">The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document ...</div> <div class="long"> The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for <a ext:cls="Ext.Component" ext:member="renderTo" href="output/Ext.Component.html#renderTo">renderTo</a> will be ignored and the target element's parent node will automatically be used as the component's container. </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyTo" href="output/Ext.Component.html#applyTo">Component</a></td> </tr> <tr class="config-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-autoCreate"></a> <b>autoCreate</b> : String/Object <div class="mdesc"> <div class="short">A DomHelper element spec, or true for a default element spec (defaults to {tag: "input", type: "text", size: "20", au...</div> <div class="long"> A DomHelper element spec, or true for a default element spec (defaults to {tag: "input", type: "text", size: "20", autocomplete: "off"}) </div> </div> </td> <td class="msource"><a ext:cls="Ext.form.Field" ext:member="#autoCreate" href="output/Ext.form.Field.html#autoCreate">Field</a></td> </tr> <tr class="config-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-autoShow"></a> <b>autoShow</b> : Boolean <div class="mdesc"> <div class="short">True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render...</div> <div class="long"> True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false). </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td> </tr> <tr class="config-row alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-blankText"></a> <b>blankText</b> : String <div class="mdesc"> Error text to display if the <a ext:cls="Ext.form.RadioGroup" ext:member="allowBlank" href="output/Ext.form.RadioGroup.html#allowBlank">allowBlank</a> validation fails (defaults to "You must select one item in this group") </div> </td> <td class="msource">RadioGroup</td> </tr> <tr class="config-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-clearCls"></a> <b>clearCls</b> : String <div class="mdesc"> The CSS class used to provide field clearing (defaults to 'x-form-clear-left') </div> </td> <td class="msource"><a ext:cls="Ext.form.Field" ext:member="#clearCls" href="output/Ext.form.Field.html#clearCls">Field</a></td> </tr> <tr class="config-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-cls"></a> <b>cls</b> : String <div class="mdesc"> <div class="short">An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for a...</div> <div class="long"> An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules. </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</a></td> </tr> <tr class="config-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-columns"></a> <b>columns</b> : String/Number/Array <div class="mdesc"> <div class="short">Specifies the number of columns to use when displaying grouped checkbox/radio controls using automatic layout. This c...</div> <div class="long"> Specifies the number of columns to use when displaying grouped checkbox/radio controls using automatic layout. This config can take several types of values: <ul><li><b>'auto'</b> : <p class="sub-desc">The controls will be rendered one per column on one row and the width of each column will be evenly distributed based on the width of the overall field container. This is the default.</p></li> <li><b>Number</b> : <p class="sub-desc">If you specific a number (e.g., 3) that number of columns will be created and the contained controls will be automatically distributed based on the value of <a ext:cls="Ext.form.CheckboxGroup" ext:member="vertical" href="output/Ext.form.CheckboxGroup.html#vertical">vertical</a>.</p></li> <li><b>Array</b> : Object<p class="sub-desc">You can also specify an array of column widths, mixing integer (fixed width) and float (percentage width) values as needed (e.g., [100, .25, .75]). Any integer values will be rendered first, then any float values will be calculated as a percentage of the remaining space. Float values do not have to add up to 1 (100%) although if you want the controls to take up the entire field container you should do so.</p></li></ul> </div> </div> </td> <td class="msource"><a ext:cls="Ext.form.CheckboxGroup" ext:member="#columns" href="output/Ext.form.CheckboxGroup.html#columns">CheckboxGroup</a></td> </tr> <tr class="config-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-ctCls"></a> <b>ctCls</b> : String <div class="mdesc"> <div class="short">An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for...</div> <div class="long"> An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules. </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">Component</a></td> </tr> <tr class="config-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-disabled"></a> <b>disabled</b> : Boolean <div class="mdesc"> Render this component disabled (default is false). </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-disabledClass"></a> <b>disabledClass</b> : String <div class="mdesc"> CSS class added to the component when it is disabled (defaults to "x-item-disabled"). </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td> </tr> <tr class="config-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-fieldClass"></a> <b>fieldClass</b> : String <div class="mdesc"> The default CSS class for the field (defaults to "x-form-field") </div> </td> <td class="msource"><a ext:cls="Ext.form.Field" ext:member="#fieldClass" href="output/Ext.form.Field.html#fieldClass">Field</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-fieldLabel"></a> <b>fieldLabel</b> : String <div class="mdesc"> The label text to display next to this field (defaults to '') </div> </td> <td class="msource"><a ext:cls="Ext.form.Field" ext:member="#fieldLabel" href="output/Ext.form.Field.html#fieldLabel">Field</a></td> </tr> <tr class="config-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.form.RadioGroup-focusClass"></a> <b>focusClass</b> : String <div class="mdesc"> The CSS class to use when the field receives focus (defaults to "x-form-focus") </div> </td> <td class="msource"><a ext:cls="Ext.form.Field" ext:member="#focusClass" href="output/Ext.form.Field.html#focusClass">Field</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -