📄 form.combobox.tag
字号:
description="
(Number)The width in pixels of the dropdown list (defaults to the width of the ComboBox field)
" %>
<%@ attribute
name="listeners"
type="java.lang.Object"
required="false"
description="
(Object)A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
" %>
<%@ attribute
name="loadingText"
type="java.lang.String"
required="false"
description="
(String)The text to display in the dropdown list while data is loading. Only applies when mode = 'remote' (defaults to 'Loading...')
" %>
<%@ attribute
name="maskRe"
type="java.lang.String"
required="false"
description="
(RegExp)An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)
" %>
<%@ attribute
name="maxHeight"
type="java.lang.Integer"
required="false"
description="
(Number)The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300)
" %>
<%@ attribute
name="maxLength"
type="java.lang.Integer"
required="false"
description="
(Number)Maximum input field length allowed (defaults to Number.MAX_VALUE)
" %>
<%@ attribute
name="maxLengthText"
type="java.lang.String"
required="false"
description="
(String)Error text to display if the maximum length validation fails (defaults to 'The maximum length for this field is {maxLength}')
" %>
<%@ attribute
name="minChars"
type="java.lang.Integer"
required="false"
description="
(Number)The minimum number of characters the user must type before autocomplete and typeahead activate (defaults to 4 if remote or 0 if local, does not apply if editable = false)
" %>
<%@ attribute
name="minLength"
type="java.lang.Integer"
required="false"
description="
(Number)Minimum input field length required (defaults to 0)
" %>
<%@ attribute
name="minLengthText"
type="java.lang.String"
required="false"
description="
(String)Error text to display if the minimum length validation fails (defaults to 'The minimum length for this field is {minLength}')
" %>
<%@ attribute
name="minListWidth"
type="java.lang.Integer"
required="false"
description="
(Number)The minimum width of the dropdown list in pixels (defaults to 70, will be ignored if listWidth has a higher value)
" %>
<%@ attribute
name="mode"
type="java.lang.String"
required="false"
description="
(String)Set to 'local' if the ComboBox loads local data (defaults to 'remote' which loads from the server)
" %>
<%@ attribute
name="msgFx"
type="java.lang.String"
required="false"
description="
(String)Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
" %>
<%@ attribute
name="msgTarget"
type="java.lang.String"
required="false"
description="
(String)The location where error text should display. Should be one of the following values (defaults to 'qtip'):
Value Description----------- ----------------------------------------------------------------------qtipDisplay a quick tip when the user hovers over the fieldtitle Display a default browser title attribute popupunder Add a block div beneath the field containing the error textsideAdd an error icon to the right of the field with a popup on hover[element id]Add the error text directly to the innerHTML of the specified element
" %>
<%@ attribute
name="name"
type="java.lang.String"
required="false"
description="
(String)The field's HTML name attribute.
" %>
<%@ attribute
name="pageSize"
type="java.lang.Integer"
required="false"
description="
(Number)If greater than 0, a paging toolbar is displayed in the footer of the dropdown list and the filter queries will execute with page start and limit parameters. Only applies when mode = 'remote' (defaults to 0)
" %>
<%@ attribute
name="plugins"
type="java.lang.Object"
required="false"
description="
(Object/Array)An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality.
" %>
<%@ attribute
name="queryDelay"
type="java.lang.Integer"
required="false"
description="
(Number)The length of time in milliseconds to delay between the start of typing and sending the query to filter the dropdown list (defaults to 500 if mode = 'remote' or 10 if mode = 'local')
" %>
<%@ attribute
name="queryParam"
type="java.lang.String"
required="false"
description="
(String)Name of the query as it will be passed on the querystring (defaults to 'query')
" %>
<%@ attribute
name="readOnly"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute.
" %>
<%@ attribute
name="regex"
type="java.lang.String"
required="false"
description="
(RegExp)A JavaScript RegExp object to be tested against the field value during validation (defaults to null). If available, this regex will be evaluated only after the basic validators all return true, and will be passed the current field value. If the test fails, the field will be marked invalid using regexText.
" %>
<%@ attribute
name="regexText"
type="java.lang.String"
required="false"
description="
(String)The error text to display if regex is used and the test fails during validation (defaults to '')
" %>
<%@ attribute
name="renderTo"
type="java.lang.String"
required="false"
description="
(Mixed)The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required.
" %>
<%@ attribute
name="resizable"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to add a resize handle to the bottom of the dropdown list (defaults to false)
" %>
<%@ attribute
name="selectOnFocus"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to select any existing text in the field immediately on focus. Only applies when editable = true (defaults to false)
" %>
<%@ attribute
name="selectedClass"
type="java.lang.String"
required="false"
description="
(String)CSS class to apply to the selected item in the dropdown list (defaults to 'x-combo-selected')
" %>
<%@ attribute
name="shadow"
type="java.lang.String"
required="false"
description="
(Boolean/String)True or 'sides' for the default effect, 'frame' for 4-way shadow, and 'drop' for bottom-right
" %>
<%@ attribute
name="stateEvents"
type="java.lang.String"
required="false"
description="
(Array)An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be any types of events supported by this component, including browser or custom events (e.g., ['click', 'customerchange']).
" %>
<%@ attribute
name="stateId"
type="java.lang.String"
required="false"
description="
(String)The unique id for this component to use for state management purposes (defaults to the component id).
" %>
<%@ attribute
name="store"
type="java.lang.String"
required="false"
description="
(Ext.data.Store)The data store to which this combo is bound (defaults to undefined)
" %>
<%@ attribute
name="style"
type="java.lang.String"
required="false"
description="
(String)A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.applyStyles.
" %>
<%@ attribute
name="tabIndex"
type="java.lang.Integer"
required="false"
description="
(Number)The tabIndex for this field. Note this only applies to fields that are rendered, not those which are built via applyTo (defaults to undefined).
" %>
<%@ attribute
name="title"
type="java.lang.String"
required="false"
description="
(String)If supplied, a header element is created containing this text and added into the top of the dropdown list (defaults to undefined, with no header element)
" %>
<%@ attribute
name="tpl"
type="java.lang.String"
required="false"
description="
(String/Ext.XTemplate)The template string, or Ext.XTemplate instance to use to display each item in the dropdown list. Use this to create custom UI layouts for items in the list.
If you wish to preserve the default visual look of list items, add the CSS class name
x-combo-list-item
to the template's container element.
The template must contain one or more substitution parameters using field names from the Combo's Store. An example of a custom template would be adding an
ext:qtip
attribute which might display other fields from the Store.
The dropdown list is displayed in a DataView. See Ext.DataView for details.
" %>
<%@ attribute
name="transform"
type="java.lang.String"
required="false"
description="
(Mixed)The id, DOM node or element of an existing select to convert to a ComboBox
" %>
<%@ attribute
name="triggerAction"
type="java.lang.String"
required="false"
description="
(String)The action to execute when the trigger field is activated. Use 'all' to run the query specified by the allQuery config option (defaults to 'query')
" %>
<%@ attribute
name="triggerClass"
type="java.lang.String"
required="false"
description="
(String)An additional CSS class used to style the trigger button. The trigger will always get the class 'x-form-trigger' and triggerClass will be appended if specified (defaults to 'x-form-arrow-trigger' which displays a downward arrow icon).
" %>
<%@ attribute
name="typeAhead"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay) if it matches a known value (defaults to false)
" %>
<%@ attribute
name="typeAheadDelay"
type="java.lang.Integer"
required="false"
description="
(Number)The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true (defaults to 250)
" %>
<%@ attribute
name="validateOnBlur"
type="java.lang.Boolean"
required="false"
description="
(Boolean)Whether the field should validate when it loses focus (defaults to true).
" %>
<%@ attribute
name="validationDelay"
type="java.lang.Integer"
required="false"
description="
(Number)The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
" %>
<%@ attribute
name="validationEvent"
type="java.lang.String"
required="false"
description="
(String/Boolean)The event that should initiate field validation. Set to false to disable automatic validation (defaults to 'keyup').
" %>
<%@ attribute
name="validator"
type="java.lang.String"
required="false"
description="
(Function)A custom validation function to be called during field validation (defaults to null). If available, this function will be called only after the basic validators all return true, and will be passed the current field value and expected to return boolean true if the value is valid or a string error message if invalid.
" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -