📄 cfg.js
字号:
DocRefs = {"BoxComponent.js":{height:{type:"Number",desc:"The height of this component in pixels (defaults to auto)."},width:{type:"Number",desc:"The width of this component in pixels (defaults to auto)."},autoHeight:{type:"Boolean",desc:"True to use height:'auto', false to use fixed height (defaults to false)."},autoWidth:{type:"Boolean",desc:"True to use width:'auto', false to use fixed width (defaults to false)."},deferHeight:{type:"Boolean",desc:"True to defer height calculations to an external component, false to allow this component to set its own height (defaults to false)."}},"Button.js":{text:{type:"String",desc:"The button text"},icon:{type:"String",desc:"The path to an image to display in the button (the image will be set as the background-image CSS property of the button by default, so if you want a mixed icon/text button, set cls:\"x-btn-text-icon\")"},handler:{type:"Function",desc:"A function called when the button is clicked (can be used instead of click event)"},scope:{type:"Object",desc:"The scope of the handler"},minWidth:{type:"Number",desc:"The minimum width for this button (used to give a set of buttons a common width)"},tooltip:{type:"String/Object",desc:"The tooltip for the button - can be a string or QuickTips config object"},hidden:{type:"Boolean",desc:"True to start hidden (defaults to false)"},disabled:{type:"Boolean",desc:"True to start disabled (defaults to false)"},pressed:{type:"Boolean",desc:"True to start pressed (only if enableToggle = true)"},toggleGroup:{type:"String",desc:"The group this toggle button is a member of (only 1 per group can be pressed, only applies if enableToggle = true)"},repeat:{type:"Boolean/Object",desc:"True to repeat fire the click event while the mouse is down. This can also be an {@link Ext.util.ClickRepeater} config object (defaults to false). @constructor Create a new button @param {Object} config The config object"},tabIndex:{type:"Number",desc:"Set a DOM tabIndex for this button (defaults to undefined)"},enableToggle:{type:"Boolean",desc:"True to enable pressed/not pressed toggling (defaults to false)"},menu:{type:"Mixed",desc:"Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined)."},menuAlign:{type:"String",desc:"The position to align the menu to (see {@link Ext.Element#alignTo} for more details, defaults to 'tl-bl?')."},iconCls:{type:"String",desc:"A css class which sets a background image to be used as the icon for this button"},type:{type:"String",desc:"submit, reset or button - defaults to 'button'"},clickEvent:{type:"String",desc:"The type of event to map to the button's event handler (defaults to 'click')"},handleMouseEvents:{type:"Boolean",desc:"False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)"},tooltipType:{type:"String",desc:"The type of tooltip to use. Either \"qtip\" (default) for QuickTips or \"title\" for title attribute."},cls:{type:"String",desc:"A CSS class string to apply to the button's main element."},template:{type:"Ext.Template",desc:"(Optional) An {@link Ext.Template} with which to create the Button's main element. This Template must contain numeric substitution parameter 0 if it is to display the text property. Changing the template could require code modifications if required elements (e.g. a button) aren't present."}},"ColorPalette.js":{itemCls:{type:"String",desc:"The CSS class to apply to the containing element (defaults to \"x-color-palette\")"},value:{type:"String",desc:"The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that the hex codes are case-sensitive."},allowReselect:{type:"Boolean",desc:"If set to true then reselecting a color that is already selected fires the selection event"}},"Component.js":{id:{type:"String",desc:"The unique id of this component (defaults to an auto-assigned id)."},cls:{type:"String",desc:"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."},style:{type:"String",desc:"A custom style specification to be applied to this component's Element. Should be a valid argument to {@link Ext.Element#applyStyles}."},ctCls:{type:"String",desc:"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."},plugins:{type:"Object/Array",desc:"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."},applyTo:{type:"Mixed",desc:"The id of the node, a DOM node or an existing Element corresponding to an existing element present in the DOM to render this component to. Using this config, a call to render() is not required."},renderTo:{type:"Mixed",desc:"The id of the node, a DOM node or an existing Element to render this component into. Using this config, a call to render() is not required."},disableClass:{type:"String",desc:"CSS class added to the component when it is disabled (defaults to \"x-item-disabled\")."},allowDomMove:{type:"Boolean",desc:"Whether the component can move the Dom node when rendering (defaults to true)."},autoShow:{type:"Boolean",desc:"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)."},hideMode:{type:"String",desc:"How this component should hidden. Supported values are \"visibility\" (css visibility), \"offsets\" (negative offset position) and \"display\" (css display) - defaults to \"display\"."},hideParent:{type:"Boolean",desc:"True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container."}},"ComponentMgr.js":{},"Container.js":{monitorResize:{type:"Boolean",desc:"True to automatically monitor window resize events to handle anything that is sensitive to the current size of the viewport. This value is typically managed by the chosen {@link #layout} and should not need to be set manually."},layout:{type:"String",desc:"The layout type to be used in this container. If not specified, a default {@link Ext.layout.ContainerLayout} will be created and used. Valid values are: accordion, anchor, border, card, column, fit, form and table. Specific config values for the chosen layout type can be specified using {@link #layoutConfig}."},layoutConfig:{type:"Object",desc:"This is a config object containing properties specific to the chosen layout (to be used in conjunction with the {@link #layout} config value). For complete details regarding the valid config options for each layout type, see the layout class corresponding to the type specified: {@link Ext.layout.Accordion}, {@link Ext.layout.AnchorLayout}, {@link Ext.layout.BorderLayout}, {@link Ext.layout.CardLayout}, {@link Ext.layout.ColumnLayout}, {@link Ext.layout.FitLayout}, {@link Ext.layout.FormLayout} and {@link Ext.layout.TableLayout}."},activeItem:{type:"String/Number",desc:"A string component id or the numeric index of the component that should be initially activated within the container's layout on render. For example, activeItem: 'item-1' or activeItem: 0 (index 0 = the first item in the container's collection). activeItem only applies to layout styles that can display items one at a time (like {@link Ext.layout.Accordion}, {@link Ext.layout.CardLayout} and {@link Ext.layout.FitLayout}). Related to {@link Ext.layout.ContainerLayout#activeItem}."},items:{type:"Mixed",desc:"A single item, or an array of items to be added to this container. Each item can be any type of object based on {@link Ext.Component}, or a valid config object for such an item. If a single item is being passed, it should be passed directly as an object reference (e.g., items: {...}). Multiple items should be passed as an array of objects (e.g., items: [{...}, {...}])."},defaults:{type:"Object",desc:"A config object that will be applied to all components added to this container either via the {@link #items} config or via the {@link #add} or {@link #insert} methods. The defaults config can contain any number of name/value property pairs to be added to each item, and should be valid for the types of items being added to the container. For example, to automatically apply padding to the body of each of a set of contained {@link Ext.Panel} items, you could pass: defaults: {bodyStyle:'padding:15px'}."},autoDestroy:{type:"Boolean",desc:"If true the container will automatically destroy any contained component that is removed from it, else destruction must be handled manually (defaults to true)."},hideBorders:{type:"Boolean",desc:"True to hide the borders of each contained component, false to defer to the component's existing border settings (defaults to false)."},defaultType:{type:"String",desc:"The default type of container represented by this object as registered in {@link Ext.ComponentMgr} (defaults to 'panel')."}},"CycleButton.js":{items:{type:"Array",desc:"An array of {@link Ext.menu.CheckItem} <b>config</b> objects to be used when creating the button's menu items (e.g., {text:'Foo', iconCls:'foo-icon'})"},showText:{type:"Boolean",desc:"True to display the active item's text as the button text (defaults to false)"},prependText:{type:"String",desc:"A static string to prepend before the active item's text when displayed as the button's text (only applies when showText = true, defaults to '')"},changeHandler:{type:"Function",desc:"A callback function that will be invoked each time the active menu item in the button's menu has changed. If this callback is not supplied, the SplitButton will instead fire the {@link #change} event on active item change. The changeHandler function will be called with the following argument list: (SplitButton this, Ext.menu.CheckItem item)"}},"DataView.js":{tpl:{type:"String/Array",desc:"The HTML fragment or an array of fragments that will make up the template used by this DataView. This should be specified in the same format expected by the constructor of {@link Ext.XTemplate}."},store:{type:"Ext.data.Store",desc:"The {@link Ext.data.Store} to bind this DataView to."},itemSelector:{type:"String",desc:"A CSS selector in any format supported by {@link Ext.DomQuery} that will be used to filter the data loaded from the store (defaults to '')."},multiSelect:{type:"Boolean",desc:"True to allow selection of more than one item at a time, false to allow selection of only a single item at a time or no selection at all, depending on the value of {@link #singleSelect} (defaults to false)."},singleSelect:{type:"Boolean",desc:"True to allow selection of exactly one item at a time, false to allow no selection at all (defaults to false). Note that if {@link #multiSelect} = true, this value will be ignored."},simpleSelect:{type:"Boolean",desc:"True to enable multiselection by clicking on multiple items without requiring the user to hold Shift or Ctrl, false to force the user to hold Ctrl or Shift to select more than on item (defaults to false)."},overClass:{type:"String",desc:"A CSS class to apply to each item in the view on mouseover (defaults to undefined)."},loadingText:{type:"String",desc:"A string to display during data load operations (defaults to undefined). If specified, this text will be displayed in a loading div and the view's contents will be cleared while loading, otherwise the view's contents will continue to display normally until the new data is loaded and the contents are replaced."},selectedClass:{type:"String",desc:"A CSS class to apply to each selected item in the view (defaults to 'x-view-selected')."},emptyText:{type:"String",desc:"The text to display in the view when there is no data to display (defaults to '')."}},"DatePicker.js":{todayText:{type:"String",desc:"The text to display on the button that selects the current date (defaults to \"Today\")"},okText:{type:"String",desc:"The text to display on the ok button"},cancelText:{type:"String",desc:"The text to display on the cancel button"},todayTip:{type:"String",desc:"The tooltip to display for the button that selects the current date (defaults to \"{current date} (Spacebar)\")"},minDate:{type:"Date",desc:"Minimum allowable date (JavaScript date object, defaults to null)"},maxDate:{type:"Date",desc:"Maximum allowable date (JavaScript date object, defaults to null)"},minText:{type:"String",desc:"The error text to display if the minDate validation fails (defaults to \"This date is before the minimum date\")"},maxText:{type:"String",desc:"The error text to display if the maxDate validation fails (defaults to \"This date is after the maximum date\")"},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')."},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 \"\")"},disabledDatesRE:{type:"RegExp",desc:"JavaScript regular expression used to disable a pattern of dates (defaults to null)"},disabledDatesText:{type:"String",desc:"The tooltip text to display when the date falls on a disabled date (defaults to \"\")"},constrainToViewport:{type:"Boolean",desc:"True to constrain the date picker to the viewport (defaults to true)"},monthNames:{type:"Array",desc:"An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)"},dayNames:{type:"Array",desc:"An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)"},nextText:{type:"String",desc:"The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')"},prevText:{type:"String",desc:"The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')"},monthYearText:{type:"String",desc:"The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')"},startDay:{type:"Number",desc:"Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)"}},"Editor.js":{autosize:{type:"Boolean/String",desc:"True for the editor to automatically adopt the size of the underlying field, \"width\" to adopt the width only, or \"height\" to adopt the height only (defaults to false)"},revertInvalid:{type:"Boolean",desc:"True to automatically revert the field value and cancel the edit when the user completes an edit and the field validation fails (defaults to true)"},ignoreNoChange:{type:"Boolean",desc:"True to skip the the edit completion process (no save, no events fired) if the user completes an edit and the value has not changed (defaults to false). Applies only to string values - edits for other data types will never be ignored."},hideEl:{type:"Boolean",desc:"False to keep the bound element visible while the editor is displayed (defaults to true)"},value:{type:"Mixed",desc:"The data value of the underlying field (defaults to \"\")"},alignment:{type:"String",desc:"The position to align to (see {@link Ext.Element#alignTo} for more details, defaults to \"c-c?\")."},shadow:{type:"Boolean/String",desc:"\"sides\" for sides/bottom only, \"frame\" for 4-way shadow, and \"drop\" for bottom-right shadow (defaults to \"frame\")"},constrain:{type:"Boolean",desc:"True to constrain the editor to the viewport"},swallowKeys:{type:"Boolean",desc:"Handle the keydown/keypress events so they don't propagate (defaults to true)"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -