📄 cfg.js
字号:
,completeOnEnter:{type:"Boolean",desc:"True to complete the edit when the enter key is pressed (defaults to false)"},cancelOnEsc:{type:"Boolean",desc:"True to cancel the edit when the escape key is pressed (defaults to false)"},updateEl:{type:"Boolean",desc:"True to update the innerHTML of the bound element when the update completes (defaults to false)"}},"form/Action.js":{url:{type:"String",desc:"The URL that the Action is to invoke."},method:{type:"String",desc:"The HTTP method to use to access the requested URL. Defaults to the {@link Ext.form.Form}'s method, or if that is not specified, the underlying DOM form's method."},params:{type:"Mixed",desc:"Extra parameter values to pass. These are added to the Form's {@link Ext.form.BasicForm#baseParams} and passed to the specified URL along with the Form's input fields."},success:{type:"Function",desc:"The function to call when a valid success return packet is recieved. The function is passed the following parameters: <ul> <li><code>form</code> : Ext.form.Form<div class=\"sub-desc\">The form that requested the action</div></li> <li><code>action</code> : Ext.form.Action<div class=\"sub-desc\">The Action class. The {@link #result} property of this object may be examined to perform custom postprocessing.</div></li> </ul>"},failure:{type:"Function",desc:"The function to call when a failure packet was recieved, or when an error ocurred in the Ajax communication. The function is passed the following parameters: <ul> <li><code>form</code> : Ext.form.Form<div class=\"sub-desc\">The form that requested the action</div></li> <li><code>action</code> : Ext.form.Action<div class=\"sub-desc\">The Action class. If an Ajax error ocurred, the failure type will be in {@link #failureType}. The {@link #result} property of this object may be examined to perform custom postprocessing.</div></li> </ul> / "},waitMsg:{type:"String",desc:"The message to be displayed by a call to {@link Ext.MessageBox#wait} during the time the action is being processed."},waitTitle:{type:"String",desc:"The title to be displayed by a call to {@link Ext.MessageBox#wait} during the time the action is being processed."},clientValidation:{type:"boolean",desc:"Applies to submit only. Pass true to call form.isValid() prior to posting to validate the form on the client (defaults to false)"}},"form/BasicForm.js":{method:{type:"String",desc:"The request method to use (GET or POST) for form actions if one isn't supplied in the action options."},reader:{type:"DataReader",desc:"An Ext.data.DataReader (e.g. {@link Ext.data.XmlReader}) to be used to read data when executing \"load\" actions. This is optional as there is built-in support for processing JSON."},errorReader:{type:"DataReader",desc:"An Ext.data.DataReader (e.g. {@link Ext.data.XmlReader}) to be used to read data when reading validation errors on \"submit\" actions. This is completely optional as there is built-in support for processing JSON."},url:{type:"String",desc:"The URL to use for form actions if one isn't supplied in the action options."},fileUpload:{type:"Boolean",desc:"Set to true if this form is a file upload."},baseParams:{type:"Object",desc:"Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}."},timeout:{type:"Number",desc:"Timeout for form actions in seconds (default is 30 seconds)."},trackResetOnLoad:{type:"Boolean",desc:"If set to true, form.reset() resets to the last loaded or setValues() data instead of when the form was first created."}},"form/Checkbox.js":{focusClass:{type:"String",desc:"The CSS class to use when the checkbox receives focus (defaults to undefined)"},fieldClass:{type:"String",desc:"The default CSS class for the checkbox (defaults to \"x-form-field\")"},checked:{type:"Boolean",desc:"True if the the checkbox should render already checked (defaults to false)"},autoCreate:{type:"String/Object",desc:"A DomHelper element spec, or true for a default element spec (defaults to {tag: \"input\", type: \"checkbox\", autocomplete: \"off\"})"},boxLabel:{type:"String",desc:"The text that appears beside the checkbox"},inputValue:{type:"String",desc:"The value that should go into the generated input element's value attribute"}},"form/Combo.js":{transform:{type:"Mixed",desc:"The id, DOM node or element of an existing select to convert to a ComboBox"},lazyRender:{type:"Boolean",desc:"True to prevent the ComboBox from rendering until requested (should always be used when rendering into an Ext.Editor, defaults to false)"},autoCreate:{type:"Boolean/Object",desc:"A DomHelper element spec, or true for a default element spec (defaults to: {tag: \"input\", type: \"text\", size: \"24\", autocomplete: \"off\"})"},store:{type:"Ext.data.Store",desc:"The data store to which this combo is bound (defaults to undefined)"},title:{type:"String",desc:"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)"},listWidth:{type:"Number",desc:"The width in pixels of the dropdown list (defaults to the width of the ComboBox field)"},displayField:{type:"String",desc:"The underlying data field name to bind to this CombBox (defaults to undefined if mode = 'remote' or 'text' if mode = 'local')"},valueField:{type:"String",desc:"The underlying data value name to bind to this CombBox (defaults to undefined if mode = 'remote' or 'value' if mode = 'local') Note: use of a valueField requires the user make a selection in order for a value to be mapped."},hiddenName:{type:"String",desc:"If specified, a hidden form field with this name is dynamically generated to store the field's data value (defaults to the underlying DOM element's name)"},listClass:{type:"String",desc:"CSS class to apply to the dropdown list element (defaults to '')"},selectedClass:{type:"String",desc:"CSS class to apply to the selected item in the dropdown list (defaults to 'x-combo-selected')"},triggerClass:{type:"String",desc:"An additional CSS class used to style the trigger button. The trigger will always get the class 'x-form-trigger' and triggerClass will be <b>appended</b> if specified (defaults to 'x-form-arrow-trigger' which displays a downward arrow icon)."},shadow:{type:"Boolean/String",desc:"True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right"},listAlign:{type:"String",desc:"A valid anchor position value. See {@link Ext.Element#alignTo} for details on supported anchor positions (defaults to 'tl-bl')"},maxHeight:{type:"Number",desc:"The maximum height in pixels of the dropdown list before scrollbars are shown (defaults to 300)"},triggerAction:{type:"String",desc:"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')"},minChars:{type:"Number",desc:"The minimum number of characters the user must type before autocomplete and typeahead activate (defaults to 4, does not apply if editable = false)"},typeAhead:{type:"Boolean",desc:"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)"},queryDelay:{type:"Number",desc:"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')"},pageSize:{type:"Number",desc:"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)"},selectOnFocus:{type:"Boolean",desc:"True to select any existing text in the field immediately on focus. Only applies when editable = true (defaults to false)"},queryParam:{type:"String",desc:"Name of the query as it will be passed on the querystring (defaults to 'query')"},loadingText:{type:"String",desc:"The text to display in the dropdown list while data is loading. Only applies when mode = 'remote' (defaults to 'Loading...')"},resizable:{type:"Boolean",desc:"True to add a resize handle to the bottom of the dropdown list (defaults to false)"},handleHeight:{type:"Number",desc:"The height in pixels of the dropdown list resize handle if resizable = true (defaults to 8)"},editable:{type:"Boolean",desc:"False to prevent the user from typing text directly into the field, just like a traditional select (defaults to true)"},allQuery:{type:"String",desc:"The text query to send to the server to return all records for the list with no filtering (defaults to '')"},mode:{type:"String",desc:"Set to 'local' if the ComboBox loads local data (defaults to 'remote' which loads from the server)"},minListWidth:{type:"Number",desc:"The minimum width of the dropdown list in pixels (defaults to 70, will be ignored if listWidth has a higher value)"},forceSelection:{type:"Boolean",desc:"True to restrict the selected value to one of the values in the list, false to allow the user to set arbitrary text into the field (defaults to false)"},typeAheadDelay:{type:"Number",desc:"The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true (defaults to 250)"},valueNotFoundText:{type:"String",desc:"When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined)"},lazyInit:{type:"Boolean",desc:"True to not initialize the list for this combo until the field is focused. (defaults to true)"}},"form/DateField.js":{format:{type:"String",desc:"The default date format string which can be overriden for localization support. The format must be valid according to {@link Date#parseDate} (defaults to 'm/d/y')."},altFormats:{type:"String",desc:"Multiple date formats separated by \"|\" to try when parsing a user input value and it doesn't match the defined format (defaults to 'm/d/Y|m-d-y|m-d-Y|m/d|m-d|d')."},disabledDays:{type:"Array",desc:"An array of days to disable, 0 based. For example, [0, 6] disables Sunday and Saturday (defaults to null)."},disabledDaysText:{type:"String",desc:"The tooltip to display when the date falls on a disabled day (defaults to 'Disabled')"},disabledDates:{type:"Array",desc:"An array of \"dates\" to disable, as strings. These strings will be used to build a dynamic regular expression so they are very powerful. Some examples: <ul> <li>[\"03/08/2003\", \"09/16/2003\"] would disable those exact dates</li> <li>[\"03/08\", \"09/16\"] would disable those days for every year</li> <li>[\"^03/08\"] would only match the beginning (useful if you are using short years)</li> <li>[\"03/../2006\"] would disable every day in March 2006</li> <li>[\"^03\"] would disable every day in every March</li> </ul> In order to support regular expressions, if you are using a date format that has \".\" in it, you will have to escape the dot when restricting dates. For example: [\"03\\.08\\.03\"]."},disabledDatesText:{type:"String",desc:"The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled')"},minValue:{type:"Date/String",desc:"The minimum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to null)."},maxValue:{type:"Date/String",desc:"The maximum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to null)."},minText:{type:"String",desc:"The error text to display when the date in the cell is before minValue (defaults to 'The date in this field must be after {minValue}')."},maxText:{type:"String",desc:"The error text to display when the date in the cell is after maxValue (defaults to 'The date in this field must be before {maxValue}')."},invalidText:{type:"String",desc:"The error text to display when the date in the field is invalid (defaults to '{value} is not a valid date - it must be in the format {format}')."},triggerClass:{type:"String",desc:"An additional CSS class used to style the trigger button. The trigger will always get the class 'x-form-trigger' and triggerClass will be <b>appended</b> if specified (defaults to 'x-form-date-trigger' which displays a calendar icon)."},autoCreate:{type:"String/Object",desc:"A DomHelper element spec, or true for a default element spec (defaults to {tag: \"input\", type: \"text\", size: \"10\", autocomplete: \"off\"})"}},"form/Field.js":{invalidClass:{type:"String",desc:"The CSS class to use when marking a field invalid (defaults to \"x-form-invalid\")"},invalidText:{type:"String",desc:"The error text to use when marking a field invalid and no message is provided (defaults to \"The value in this field is invalid\")"},focusClass:{type:"String",desc:"The CSS class to use when the field receives focus (defaults to \"x-form-focus\")"},validationEvent:{type:"String/Boolean",desc:"The event that should initiate field validation. Set to false to disable automatic validation (defaults to \"keyup\")."},validateOnBlur:{type:"Boolean",desc:"Whether the field should validate when it loses focus (defaults to true)."},validationDelay:{type:"Number",desc:"The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)"},autoCreate:{type:"String/Object",desc:"A DomHelper element spec, or true for a default element spec (defaults to {tag: \"input\", type: \"text\", size: \"20\", autocomplete: \"off\"})"},fieldClass:{type:"String",desc:"The default CSS class for the field (defaults to \"x-form-field\")"},msgTarget:{type:"String",desc:"The location where error text should display. Should be one of the following values (defaults to 'qtip'): <pre> Value Description ----------- ---------------------------------------------------------------------- qtip Display a quick tip when the user hovers over the field title Display a default browser title attribute popup under Add a block div beneath the field containing the error text side Add 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 </pre>"},msgFx:{type:"String",desc:"<b>Experimental</b> The effect used when displaying a validation message under the field (defaults to 'normal')."},readOnly:{type:"Boolean",desc:"True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute."},disabled:{type:"Boolean",desc:"True to disable the field (defaults to false)."},inputType:{type:"String",desc:"The type attribute for input fields -- e.g. radio, text, password (defaults to \"text\")."},tabIndex:{type:"Number",desc:"The tabIndex for this field. Note this only applies to fields that are rendered, not those which are built via applyTo (defaults to undefined)."},value:{type:"Mixed",desc:"A value to initialize this field with."},name:{type:"String",desc:"The field's HTML name attribute."},cls:{type:"String",desc:"A CSS class to apply to the field's underlying element."}},"form/FieldSet.js":{checkboxToggle:{type:"Boolean",desc:"True to render a checkbox into the fieldset frame just in front of the legend (defaults to false). The fieldset will be expanded or collapsed when the checkbox is toggled."},checkboxName:{type:"String",desc:"The name to assign to the fieldset's checkbox if {@link #checkboxToggle} = true (defaults to '[checkbox id]-checkbox')."},labelWidth:{type:"Number",desc:"The width of labels. This property cascades to child containers."},itemCls:{type:"String",desc:"A css class to apply to the x-form-item of fields. This property cascades to child containers."},baseCls:{type:"String",desc:"The base CSS class applied to the fieldset (defaults to 'x-fieldset')."},layout:{type:"String",desc:"The {@link Ext.Container#layout} to use inside the fieldset (defaults to 'form')."}},"form/Form.js":{labelWidth:{type:"Number",desc:"The width of labels. This property cascades to child containers."},itemCls:{type:"String",desc:"A css class to apply to the x-form-item of fields. This property cascades to child containers."},buttonAlign:{type:"String",desc:"Valid values are \"left,\" \"center\" and \"right\" (defaults to \"center\")"},minButtonWidth:{type:"Number",desc:"Minimum width of all buttons in pixels (defaults to 75)"},labelAlign:{type:"String",desc:"Valid values are \"left,\" \"top\" and \"right\" (defaults to \"left\"). This property cascades to child containers if not set."},monitorValid:{type:"Boolean",desc:"If true the form monitors its valid state <b>client-side</b> and fires a looping event with that state. This is required to bind buttons to the valid state using the config value formBind:true on the button."},monitorPoll:{type:"Number",desc:"The milliseconds to poll valid state, ignored if monitorValid is not true (defaults to 200)"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -