From 2eebee645a69c2fd4edcc472e79f3480d60caa3e Mon Sep 17 00:00:00 2001 From: Brian Kotek Date: Tue, 11 Jun 2013 01:17:50 -0400 Subject: [PATCH] Add Ext JS 4.2.1 as latest. Fixes to both versions (mainly around static methods for singleton classes, but other tweaks as well). --- extjs/ExtJS-4.2.0.d.ts | 30703 +++++++++++++++++++++++++++++++++++++++ extjs/ExtJS.d.ts | 24804 ++++++++++++++++++++----------- 2 files changed, 46997 insertions(+), 8510 deletions(-) create mode 100644 extjs/ExtJS-4.2.0.d.ts diff --git a/extjs/ExtJS-4.2.0.d.ts b/extjs/ExtJS-4.2.0.d.ts new file mode 100644 index 0000000000..c5a6c37d4e --- /dev/null +++ b/extjs/ExtJS-4.2.0.d.ts @@ -0,0 +1,30703 @@ +// Type definitions for ExtJS 4.2.0 +// Project: http://www.sencha.com/products/extjs/ +// Definitions by: Brian Kotek +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Ext { + export interface IAbstractComponent extends Ext.IBase,Ext.state.IStateful,Ext.util.IAnimate,Ext.util.IElementContainer,Ext.util.IObservable,Ext.util.IPositionable,Ext.util.IRenderable { + /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + autoEl?: any; + /** [Config Option] (Ext.ComponentLoader/Object/String/Boolean) An alias for loader config which also allows to specify just a string which will be used as the url that's automatica... */ + autoLoad?: any; + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) This config is intended mainly for non-floating Components which may or may not be shown. ... */ + autoRender?: any; + /** [Config Option] (Boolean) true to automatically show the component upon creation. ... */ + autoShow?: bool; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (Object[]) An array describing the child elements of the Component. ... */ + childEls?: Object[]; + /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + cls?: string; + /** [Config Option] (String) */ + componentCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) Specify an existing HTML element, or the id of an existing HTML element to use as the content for this component. ... */ + contentEl?: string; + /** [Config Option] (Object) */ + data?: any; + /** [Config Option] (Boolean) true to disable the component. ... */ + disabled?: bool; + /** [Config Option] (String) CSS class to add when the Component is disabled. ... */ + disabledCls?: string; + /** [Config Option] (Boolean) Allows the component to be dragged. ... */ + draggable?: bool; + /** [Config Option] (Boolean) Create the Component as a floating and use absolute positioning. ... */ + floating?: bool; + /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + frame?: bool; + /** [Config Option] (Number) */ + height?: number; + /** [Config Option] (Boolean) true to hide the component. ... */ + hidden?: bool; + /** [Config Option] (String) A String which specifies how this Component's encapsulating DOM element will be hidden. ... */ + hideMode?: string; + /** [Config Option] (String/Object) An HTML fragment, or a DomHelper specification to use as the layout element content. ... */ + html?: any; + /** [Config Option] (String) The unique id of this component instance. ... */ + id?: string; + /** [Config Option] (String) An itemId can be used as an alternative way to get a reference to a component when no object reference is available. ... */ + itemId?: string; + /** [Config Option] (Ext.ComponentLoader/Object) A configuration object or an instance of a Ext.ComponentLoader to load remote content for this Component. ... */ + loader?: any; + /** [Config Option] (Number/String) Specifies the margin for this component. ... */ + margin?: any; + /** [Config Option] (Number) The maximum value in pixels which this Component will set its height to. ... */ + maxHeight?: number; + /** [Config Option] (Number) The maximum value in pixels which this Component will set its width to. ... */ + maxWidth?: number; + /** [Config Option] (Number) The minimum value in pixels which this Component will set its height to. ... */ + minHeight?: number; + /** [Config Option] (Number) The minimum value in pixels which this Component will set its width to. ... */ + minWidth?: number; + /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and... */ + overCls?: string; + /** [Config Option] (Number/String) Specifies the padding for this component. ... */ + padding?: any; + /** [Config Option] (Ext.AbstractPlugin[]/Ext.AbstractPlugin/Object[]/Object/Ext.enums.Plugin[]/Ext.enums.Plugin) An array of plugins to be added to this component. ... */ + plugins?: any; + /** [Config Option] (Object) The data used by renderTpl in addition to the following property values of the component: id ui uiCls baseCls compo... */ + renderData?: any; + /** [Config Option] (Object) An object containing properties specifying DomQuery selectors which identify child elements created by the render pro... */ + renderSelectors?: any; + /** [Config Option] (String/HTMLElement/Ext.Element) Specify the id of the element, a DOM element or an existing Element that this component will be rendered into. ... */ + renderTo?: any; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Boolean) True to layout this component and its descendants in "rtl" (right-to-left) mode. ... */ + rtl?: bool; + /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + shrinkWrap?: any; + /** [Config Option] (String/Object) A custom style specification to be applied to this component's Element. ... */ + style?: any; + /** [Config Option] (Ext.XTemplate/Ext.Template/String/String[]) An Ext.Template, Ext.XTemplate or an array of strings to form an Ext.XTemplate. ... */ + tpl?: any; + /** [Config Option] (String) The Ext.(X)Template method to use when updating the content area of the Component. ... */ + tplWriteMode?: string; + /** [Config Option] (String) A UI style for a component. ... */ + ui?: string; + /** [Config Option] (Number) */ + width?: number; + /** [Config Option] (Ext.enums.Widget) This property provides a shorter alternative to creating objects than using a full class name. ... */ + xtype?: Ext.enums.IWidget; + /** [Property] (Boolean) Setting this property to true causes the isLayoutRoot method to return true and stop the search for the top-most comp... */ + _isLayoutRoot?: bool; + /** [Property] (String) The name of the padding property that is used by the layout to manage padding. ... */ + contentPaddingProperty?: string; + /** [Property] (Object) Indicates the width of any framing elements which were added within the encapsulating element to provide graphical, r... */ + frameSize?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Component, or subclass thereof. ... */ + isComponent?: bool; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Property] (Ext.Container) This Component's owner Container (is set automatically when this Component is added to a Container). ... */ + ownerCt?: Ext.IContainer; + /** [Property] (Boolean) Indicates whether or not the component has been rendered. ... */ + rendered?: bool; + /** [Method] Adds each argument passed to this method to the childEls array */ + addChildEls?(): void; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls any The CSS class name to add. + */ + addCls?( cls?:any ): any; + addCls?( cls?:string ): Ext.IComponent; + addCls?( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a cls to the uiCls array which will also call addUIClsToElement and adds to all elements of this component + * @param classes String A string or an array of strings to add to the uiCls. + * @param skip Object (Boolean) skip true to skip adding it to the class and do it later (via the return). + */ + addClsWithUI?( classes?:string, skip?:any ): void; + addClsWithUI?( classes?:string[], skip?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Save a property to the given state object if it is not its default or configured value + * @param state Object The state object. + * @param propName String The name of the property on this object to save. + * @param value String The value of the state property (defaults to this[propName]). + */ + addPropertyToState?( state?:any, propName?:string, value?:string ): bool; + /** [Method] Add events that will trigger the state to be saved + * @param events String The event name or an array of event names. + */ + addStateEvents?( events?:string ): void; + addStateEvents?( events?:string[] ): void; + /** [Method] Method which adds a specified UI uiCls to the components element + * @param ui String The UI to remove from the element. + */ + addUIClsToElement?( ui?:string ): void; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Template method called after a Component has been positioned + * @param x Number + * @param y Number + */ + afterSetPosition?( x?:number, y?:number ): void; + /** [Method] Aligns the element with another element relative to the specified anchor points + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + * @param animate any true for the default animation or a standard Element animation config object + */ + alignTo?( element?:any, position?:any, offsets?:any, animate?:any ): any; + alignTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + alignTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + alignTo?( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Anchors an element to another element and realigns it when the window is resized + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + * @param animate any true for the default animation or a standard Element animation config object + * @param monitorScroll any True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback any The function to call after the animation finishes + */ + anchorTo?( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; + anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + /** [Method] Performs custom animation on this object. ... */ + animate?: any; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run + * @param adjWidth Number The box-adjusted width that was set. + * @param adjHeight Number The box-adjusted height that was set. + */ + beforeComponentLayout?( adjWidth?:number, adjHeight?:number ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Template method to do any pre focus processing + * @param e Ext.IEventObject The event object + */ + beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run */ + beforeLayout?(): void; + /** [Method] Calculates the new x y position to move this Positionable into a constrain region + * @param constrainTo any The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition any A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local any The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize any A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + */ + calculateConstrainedPosition?( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; + calculateConstrainedPosition?( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:HTMLElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:Ext.IElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Destroys the Component */ + destroy?(): void; + /** [Method] Disable the component + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): void; + /** [Method] Handles autoRender */ + doAutoRender?(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + doComponentLayout?(): Ext.container.IContainer; + /** [Method] Enable the component + * @param silent Boolean Passing true will suppress the enable event from being fired. + */ + enable?( silent?:bool ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Ensures that this component is attached to document body + * @param runLayout Boolean True to run the component's layout. + */ + ensureAttachedToBody?( runLayout?:bool ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): bool; + /** [Method] Gets the x y coordinates to align this element with another element + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + */ + getAlignToXY?( element?:any, position?:any, offsets?:any ): any; + getAlignToXY?( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; + getAlignToXY?( element?:HTMLElement, position?:string, offsets?:number[] ): number[]; + getAlignToXY?( element?:string, position?:string, offsets?:number[] ): number[]; + /** [Method] Gets the x y coordinates specified by the anchor position on the element + * @param anchor String The specified anchor position. See alignTo for details on supported anchor positions. + * @param local Boolean True to get the local (element top/left-relative) anchor position instead of page coordinates + * @param size Object An object containing the size to use for calculating anchor position {width: (target width), height: (target height)} (defaults to the element's current size) + */ + getAnchorXY?( anchor?:string, local?:bool, size?:any ): number[]; + /** [Method] Return an object defining the area of this Element which can be passed to setBox to set another Element s size locati + * @param contentBox Boolean If true a box for the content of the element is returned. + * @param local Boolean If true the element's left and top relative to its offsetParent are returned instead of page x/y. + */ + getBox?( contentBox?:bool, local?:bool ): any; + /** [Method] Provides the link for Observable s fireEvent method to bubble up the ownership hierarchy */ + getBubbleTarget?(): Ext.container.IContainer; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo any The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition any A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize any A proposed [width, height] size to constrain instead of using the element's current size + */ + getConstrainVector?( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; + getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.IPositionable The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): bool; + /** [Method] Retrieves the top level element representing this component */ + getEl?(): Ext.dom.IElement; + /** [Method] Gets the current height of the component s underlying element */ + getHeight?(): number; + /** [Method] Retrieves the id of this component */ + getId?(): string; + /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert + * @param position any Index, element id or element you want to put this component before. + */ + getInsertPosition?( position?:any ): any; + getInsertPosition?( position?:string ): HTMLElement; + getInsertPosition?( position?:number ): HTMLElement; + getInsertPosition?( position?:Ext.dom.IElement ): HTMLElement; + getInsertPosition?( position?:HTMLElement ): HTMLElement; + /** [Method] Returns the value of itemId assigned to this component or when that is not set returns the value of id */ + getItemId?(): string; + /** [Method] Gets the Ext ComponentLoader for this Component */ + getLoader?(): Ext.IComponentLoader; + /** [Method] Overridden in Ext rtl AbstractComponent */ + getLocalX?(): number; + /** [Method] Overridden in Ext rtl AbstractComponent */ + getLocalXY?(): number[]; + /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ + getLocalY?(): number; + /** [Method] Returns the offsets of this element from the passed element + * @param offsetsTo any The Positionable, HTMLElement, or element id to get get the offsets from. + */ + getOffsetsTo?( offsetsTo?:any ): any; + getOffsetsTo?( offsetsTo?:Ext.util.IPositionable ): number[]; + getOffsetsTo?( offsetsTo?:HTMLElement ): number[]; + getOffsetsTo?( offsetsTo?:string ): number[]; + /** [Method] Retrieves a plugin by its pluginId which has been bound to this component + * @param pluginId String + */ + getPlugin?( pluginId?:string ): Ext.IAbstractPlugin; + /** [Method] Returns a region object that defines the area of this element */ + getRegion?(): Ext.util.IRegion; + /** [Method] Gets the current size of the component s underlying element */ + getSize?(): any; + /** [Method] Returns an object that describes how this component s width and height are managed + * @param ownerCtSizeModel Object + */ + getSizeModel?( ownerCtSizeModel?:any ): any; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Returns the content region of this element */ + getViewRegion?(): Ext.util.IRegion; + /** [Method] Gets the current width of the component s underlying element */ + getWidth?(): number; + /** [Method] Gets the current X position of the DOM element based on page coordinates */ + getX?(): number; + /** [Method] Returns this Component s xtype hierarchy as a slash delimited string */ + getXTypes?(): string; + /** [Method] Gets the current position of the DOM element based on page coordinates */ + getXY?(): number[]; + /** [Method] Gets the current Y position of the DOM element based on page coordinates */ + getY?(): number; + /** [Method] Checks if the specified CSS class exists on this element s DOM node + * @param className String The CSS class to check for. + */ + hasCls?( className?:string ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Checks if there is currently a specified uiCls + * @param cls String The cls to check. + */ + hasUICls?( cls?:string ): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Tests whether this Component matches the selector string + * @param selector String The selector string to test against. + */ + is?( selector?:string ): bool; + /** [Method] Determines whether this component is the descendant of a particular container + * @param container Ext.IContainer + */ + isDescendantOf?( container?:Ext.IContainer ): bool; + /** [Method] Method to determine whether this Component is currently disabled */ + isDisabled?(): bool; + /** [Method] Method to determine whether this Component is draggable */ + isDraggable?(): bool; + /** [Method] Method to determine whether this Component is droppable */ + isDroppable?(): bool; + /** [Method] Method to determine whether this Component is floating */ + isFloating?(): bool; + /** [Method] Method to determine whether this Component is currently set to hidden */ + isHidden?(): bool; + /** [Method] Determines whether this Component is the root of a layout */ + isLayoutRoot?(): void; + /** [Method] Returns true if layout is suspended for this component */ + isLayoutSuspended?(): bool; + /** [Method] Returns true if this component is visible + * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Tests whether or not this Component is of a specific xtype + * @param xtype String The xtype to check for this Component + * @param shallow Boolean true to check whether this Component is directly of the specified xtype, false to check whether this Component is descended from the xtype. + */ + isXType?( xtype?:string, shallow?:bool ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Move the element relative to its current position + * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") + * @param distance Number How far to move the element in pixels + * @param animate any true for the default animation or a standard Element animation config object + */ + move?( direction?:string, distance?:number, animate?:any ): void; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Returns the next node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the following nodes. + */ + nextNode?( selector?:string ): Ext.IComponent; + /** [Method] Returns the next sibling of this Component + * @param selector String A ComponentQuery selector to filter the following items. + */ + nextSibling?( selector?:string ): Ext.IComponent; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event + * @param container Ext.container.IContainer Container which holds the component. + * @param pos Number Position at which the component was added. + */ + onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need + * @param x Number The new x position. + * @param y Number The new y position. + */ + onPosition?( x?:number, y?:number ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the resize operation + * @param width Object + * @param height Object + * @param oldWidth Object + * @param oldHeight Object + */ + onResize?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Returns the previous node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the preceding nodes. + */ + previousNode?( selector?:string ): Ext.IComponent; + /** [Method] Returns the previous sibling of this Component + * @param selector String A ComponentQuery selector to filter the preceding items. + */ + previousSibling?( selector?:string ): Ext.IComponent; + /** [Method] Called by Component doAutoRender Register a Container configured floating true with this Component s ZIndexManager + * @param cmp Object + */ + registerFloatingItem?( cmp?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove any anchor to this element */ + removeAnchor?(): Ext.util.IPositionable; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + removeChildEls?( testFn?:any ): void; + /** [Method] Removes a CSS class from the top level element representing this component + * @param cls any The CSS class name to remove. + */ + removeCls?( cls?:any ): any; + removeCls?( cls?:string ): Ext.IComponent; + removeCls?( cls?:string[] ): Ext.IComponent; + /** [Method] Removes a cls to the uiCls array which will also call removeUIClsFromElement and removes it from all elements of thi + * @param cls String A string or an array of strings to remove to the uiCls. + */ + removeClsWithUI?( cls?:string ): void; + removeClsWithUI?( cls?:string[] ): void; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Method which removes a specified UI uiCls from the components element + * @param ui String The UI to add to the element. + */ + removeUIClsFromElement?( ui?:string ): void; + /** [Method] Renders the Component into the passed HTML element + * @param container Ext.IElement The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + */ + render?( container?:Ext.IElement, position?:string ): void; + render?( container?:HTMLElement, position?:string ): void; + render?( container?:string, position?:string ): void; + render?( container?:Ext.IElement, position?:number ): void; + render?( container?:HTMLElement, position?:number ): void; + render?( container?:string, position?:number ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Conditionally saves a single property from this object to the given state object + * @param propName String The name of the property to save. + * @param state Object The state object in to which to save the property. + * @param stateName String The name to use for the property in state. + */ + savePropToState?( propName?:string, state?:any, stateName?:string ): bool; + /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object + * @param propNames any The name (or array of names) of the property to save. + * @param state any The state object in to which to save the property values. + */ + savePropsToState?( propNames?:any, state?:any ): any; + savePropsToState?( propNames?:string, state?:any ): any; + savePropsToState?( propNames?:string[], state?:any ): any; + /** [Method] Saves the state of the object to the persistence store */ + saveState?(): void; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + sequenceFx?(): any; + /** [Method] + * @param border String The border, see border. If a falsey value is passed the border will be removed. + */ + setBorder?( border?:string ): void; + setBorder?( border?:number ): void; + /** [Method] Sets the element s box + * @param box Object The box to fill {x, y, width, height} + * @param animate any true for the default animation or a standard Element animation config object + */ + setBox?( box?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Enable or disable the component + * @param disabled Boolean true to disable. + */ + setDisabled?( disabled?:bool ): void; + /** [Method] Sets the dock position of this component in its parent panel + * @param dock Object The dock position. + * @param layoutParent Boolean true to re-layout parent. + */ + setDocked?( dock?:any, layoutParent?:bool ): Ext.IComponent; + /** [Method] Sets the height of the component + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + */ + setHeight?( height?:number ): Ext.IComponent; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x Number The x coordinate. A value of null sets the left style to 'auto'. + */ + setLocalX?( x?:number ): Ext.util.IPositionable; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x any The x coordinate or an array containing [x, y]. A value of null sets the left style to 'auto' + * @param y any The y coordinate, required if x is not an array. A value of null sets the top style to 'auto' + */ + setLocalXY?( x?:any, y?:any ): any; + setLocalXY?( x?:number, y?:number ): Ext.util.IPositionable; + setLocalXY?( x?:any[], y?:number ): Ext.util.IPositionable; + /** [Method] Sets the local y coordinate of this element using CSS style + * @param y Number The y coordinate. A value of null sets the top style to 'auto'. + */ + setLocalY?( y?:number ): Ext.util.IPositionable; + /** [Method] Sets the margin on the target element + * @param margin Number The margin to set. See the margin config. + */ + setMargin?( margin?:number ): void; + setMargin?( margin?:string ): void; + /** [Method] Sets the element s position and size to the specified region + * @param region Ext.util.IRegion The region to fill + * @param animate any true for the default animation or a standard Element animation config object + */ + setRegion?( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the width and height of this Component + * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:any, height?:number ): Ext.IComponent; + setSize?( width?:any, height?:string ): Ext.IComponent; + /** [Method] Sets the UI for the component + * @param ui String The new UI for the component. + */ + setUI?( ui?:string ): void; + /** [Method] Convenience function to hide or show this component by Boolean + * @param visible Boolean true to show, false to hide. + */ + setVisible?( visible?:bool ): Ext.IComponent; + /** [Method] Sets the width of the component + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + */ + setWidth?( width?:number ): Ext.IComponent; + /** [Method] Sets the X position of the DOM element based on page coordinates + * @param The Number X position + * @param animate any True for the default animation, or a standard Element animation config object + */ + setX?( The?:number, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the position of the DOM element in page coordinates + * @param pos Number[] Contains X & Y [x, y] values for new position (coordinates are page-based) + * @param animate any True for the default animation, or a standard Element animation config object + */ + setXY?( pos?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the Y position of the DOM element based on page coordinates + * @param The Number Y position + * @param animate any True for the default animation, or a standard Element animation config object + */ + setY?( The?:number, animate?:any ): Ext.util.IPositionable; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopAnimation?(): Ext.IElement; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + syncFx?(): any; + /** [Method] Translates the passed page coordinates into left top css values for the element + * @param x any The page x or an array containing [x, y] + * @param y any The page y, required if x is not an array + */ + translatePoints?( x?:any, y?:any ): any; + translatePoints?( x?:number, y?:number ): any; + translatePoints?( x?:any[], y?:number ): any; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Navigates up the ownership hierarchy searching for an ancestor Container which matches any passed simple selector or + * @param selector any The simple selector component or actual component to test. If not passed the immediate owner/activater is returned. + */ + up?( selector?:any ): any; + up?( selector?:string ): Ext.container.IContainer; + up?( selector?:Ext.IComponent ): Ext.container.IContainer; + /** [Method] Update the content area of a component + * @param htmlOrData any If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. If this component was not configured with a template, the components content area will be updated via Ext.Element update. + * @param loadScripts Boolean Only legitimate when using the html configuration. + * @param callback Function Only legitimate when using the html configuration. Callback to execute when scripts have finished loading. + */ + update?( htmlOrData?:any, loadScripts?:bool, callback?:any ): void; + /** [Method] Updates this component s layout + * @param options Object An object with layout options. + */ + updateLayout?( options?:any ): void; + } +} +declare module Ext { + export interface IAbstractManager extends Ext.IBase { + /** [Property] (Ext.util.HashMap) */ + all?: Ext.util.IHashMap; + /** [Method] Creates and returns an instance of whatever this manager manages based on the supplied type and config object + * @param config Object The config object + * @param defaultType String If no type is discovered in the config object, we fall back to this type + */ + create?( config?:any, defaultType?:string ): any; + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + get?( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + getCount?(): number; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + isRegistered?( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + onAvailable?( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + register?( item?:any ): void; + /** [Method] Registers a new item constructor keyed by a type key + * @param type String The mnemonic string by which the class may be looked up. + * @param cls Function The new instance class. + */ + registerType?( type?:string, cls?:any ): void; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + unregister?( item?:any ): void; + } +} +declare module Ext { + export interface IAbstractPlugin extends Ext.IBase { + /** [Config Option] (String) A name for the plugin that can be set at creation time to then retrieve the plugin through getPlugin method. ... */ + pluginId?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Plugin, or subclass thereof. ... */ + isPlugin?: bool; + /** [Method] The destroy method is invoked by the owning Component at the time the Component is being destroyed */ + destroy?(): void; + /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ + disable?(): void; + /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ + enable?(): void; + /** [Method] The init method is invoked after initComponent method has been run for the client Component + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + } +} +declare module Ext { + export interface IAction extends Ext.IBase { + /** [Config Option] (Boolean) True to disable all components configured by this Action, false to enable them. ... */ + disabled?: bool; + /** [Config Option] (Function) */ + handler?: any; + /** [Config Option] (Boolean) True to hide all components configured by this Action, false to show them. ... */ + hidden?: bool; + /** [Config Option] (String) The CSS class selector that specifies a background image to be used as the header icon for all components configured ... */ + iconCls?: string; + /** [Config Option] (String) */ + itemId?: string; + /** [Config Option] (Object) The scope (this reference) in which the handler is executed. ... */ + scope?: any; + /** [Config Option] (String) The text to set for all components configured by this Action. ... */ + text?: string; + /** [Method] Disables all components configured by this Action */ + disable?(): void; + /** [Method] Executes the specified function once for each Component currently tied to this Action + * @param fn Function The function to execute for each component + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Component. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Enables all components configured by this Action */ + enable?(): void; + /** [Method] Executes this Action manually using the handler function specified in the original config object or the handler funct + * @param args Object... Variable number of arguments passed to the handler function + */ + execute?( ...args:any[] ): void; + /** [Method] Gets the icon CSS class currently used by all components configured by this Action */ + getIconCls?(): void; + /** [Method] Gets the text currently displayed by all components configured by this Action */ + getText?(): void; + /** [Method] Hides all components configured by this Action */ + hide?(): void; + /** [Method] Returns true if the components using this Action are currently disabled else returns false */ + isDisabled?(): void; + /** [Method] Returns true if the components configured by this Action are currently hidden else returns false */ + isHidden?(): void; + /** [Method] Sets the disabled state of all components configured by this Action + * @param disabled Boolean True to disable the component, false to enable it + */ + setDisabled?( disabled?:bool ): void; + /** [Method] Sets the function that will be called by each Component using this action when its primary event is triggered + * @param fn Function The function that will be invoked by the action's components. The function will be called with no arguments. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Component firing the event. + */ + setHandler?( fn?:any, scope?:any ): void; + /** [Method] Sets the hidden state of all components configured by this Action + * @param hidden Boolean True to hide the component, false to show it. + */ + setHidden?( hidden?:bool ): void; + /** [Method] Sets the icon CSS class for all components configured by this Action + * @param cls String The CSS class supplying the icon image + */ + setIconCls?( cls?:string ): void; + /** [Method] Sets the text to be displayed by all components configured by this Action + * @param text String The text to display + */ + setText?( text?:string ): void; + /** [Method] Shows all components configured by this Action */ + show?(): void; + } +} +declare module Ext { + export interface IAjax extends Ext.data.IConnection { + } + export class Ajax { + } +} +declare module Ext.app { + export interface IApplication extends Ext.app.IController { + /** [Config Option] (String) The path to the directory which contains all application's classes. ... */ + appFolder?: string; + /** [Config Option] (String) The name of a property to be assigned to the main namespace to gain a reference to this application. ... */ + appProperty?: string; + /** [Config Option] (Boolean) True to automatically load and instantiate AppName.view.Viewport before firing the launch function. ... */ + autoCreateViewport?: bool; + /** [Config Option] (String[]) */ + controllers?: string[]; + /** [Config Option] (Boolean) True to automatically set up Ext.tip.QuickTip support. ... */ + enableQuickTips?: bool; + /** [Config Option] (String) The name of your application. ... */ + name?: string; + /** [Config Option] (String[]) The list of namespace prefixes used in the application to resolve dependencies like Views and Stores: Ext.applicati... */ + namespaces?: string[]; + /** [Config Option] (Object) Additional load paths to add to Ext.Loader. ... */ + paths?: any; + /** [Config Option] (Object) The scope to execute the launch function in. ... */ + scope?: any; + /** [Method] Returns the base Ext app Application for this controller */ + getApplication?(): Ext.app.IApplication; + /** [Method] Returns instance of a Controller with the given id + * @param id String + */ + getController?( id?:string ): Ext.app.IController; + /** [Method] Called automatically when the page has completely loaded + * @param profile String The detected application profile + */ + launch?( profile?:string ): bool; + } +} +declare module Ext.app { + export interface IController extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) The id of this controller. ... */ + id?: string; + /** [Config Option] (String[]) Array of models to require from AppName.model namespace. ... */ + models?: string[]; + /** [Config Option] (Object[]) Array of configs to build up references to views on page. ... */ + refs?: Object[]; + /** [Config Option] (String[]) Array of stores to require from AppName.store namespace and to generate getter methods for. ... */ + stores?: string[]; + /** [Config Option] (String[]) Array of views to require from AppName.view namespace and to generate getter methods for. ... */ + views?: string[]; + /** [Property] (Ext.app.Application) */ + application?: Ext.app.IApplication; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Registers one or more references + * @param refs any + */ + addRef?( refs?:any ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Adds listeners to components selected via Ext ComponentQuery + * @param selectors any If a String, the second argument is used as the listeners, otherwise an object of selectors -> listeners is assumed + * @param listeners Object Config for listeners. + */ + control?( selectors?:any, listeners?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the base Ext app Application for this controller */ + getApplication?(): Ext.app.IApplication; + /** [Method] Returns instance of a Controller with the given id + * @param id String + */ + getController?( id?:string ): Ext.app.IController; + /** [Method] Returns a Model class with the given name + * @param name String + */ + getModel?( name?:string ): Ext.data.IModel; + /** [Method] Returns instance of a Store with the given name + * @param name String + */ + getStore?( name?:string ): Ext.data.IStore; + /** [Method] Returns a View class with the given name + * @param name String + */ + getView?( name?:string ): Ext.IBase; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Returns true if a reference is registered + * @param ref Object + */ + hasRef?( ref?:any ): bool; + /** [Method] A template method that is called when your application boots + * @param application Ext.app.IApplication + */ + init?( application?:Ext.app.IApplication ): void; + /** [Method] Adds listeners to different event sources also called event domains + * @param to Object Config object containing domains, selectors and listeners. + */ + listen?( to?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] A template method like init but called after the viewport is created + * @param application Ext.app.IApplication + */ + onLaunch?( application?:Ext.app.IApplication ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.app.domain { + export interface IComponent extends Ext.app.IEventDomain { + } + export class Component { + /** [Method] */ + constructor(); + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + static match( target?:any, selector?:string ): bool; + } +} +declare module Ext.app.domain { + export interface IController extends Ext.app.IEventDomain { + } + export class Controller { + /** [Method] */ + constructor(); + } +} +declare module Ext.app.domain { + export interface IDirect extends Ext.app.IEventDomain { + } + export class Direct { + /** [Method] */ + constructor(); + } +} +declare module Ext.app.domain { + export interface IGlobal extends Ext.app.IEventDomain { + } + export class Global { + /** [Method] */ + constructor(); + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + static match( target?:any, selector?:string ): bool; + } +} +declare module Ext.app.domain { + export interface IStore extends Ext.app.IEventDomain { + } + export class Store { + /** [Method] */ + constructor(); + } +} +declare module Ext.app { + export interface IEventBus extends Ext.IBase { + } + export class EventBus { + /** [Method] */ + constructor(); + /** [Method] Adds a set of component event listeners for a controller + * @param selectors Object Config object containing selectors and listeners. + * @param controller Ext.app.IController The listening controller instance. + */ + static control( selectors?:any, controller?:Ext.app.IController ): void; + /** [Method] Adds a set of event domain listeners for a controller + * @param to Object Config object containing domains, selectors and listeners. + * @param controller Ext.app.IController The listening controller instance. + */ + static listen( to?:any, controller?:Ext.app.IController ): void; + /** [Method] Removes all of a controller s attached listeners + * @param controllerId String The id of the controller. + */ + static unlisten( controllerId?:string ): void; + } +} +declare module Ext.app { + export interface IEventDomain extends Ext.IBase { + /** [Config Option] (String) */ + idProperty?: string; + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + match?( target?:any, selector?:string ): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.IClass The Observable to monitor for events. + */ + monitor?( observable?:Ext.IClass ): void; + } +} +declare module Ext { + export interface IArray { + } + export class Array { + /** [Method] Filter through an array and remove empty item as defined in Ext isEmpty See filter + * @param array Array + */ + static clean( array?:any[] ): any[]; + /** [Method] Clone a flat array without referencing the previous one + * @param array Array The array + */ + static clone( array?:any[] ): any[]; + /** [Method] Checks whether or not the given array contains the specified item + * @param array Array The array to check + * @param item Object The item to look for + */ + static contains( array?:any[], item?:any ): bool; + /** [Method] Perform a set difference A B by subtracting all items in array B from array A + * @param arrayA Array + * @param arrayB Array + */ + static difference( arrayA?:any[], arrayB?:any[] ): any[]; + /** [Method] Iterates an array or an iterable value and invoke the given callback function for each item + * @param iterable any The value to be iterated. If this argument is not iterable, the callback function is called once. + * @param fn Function The callback function. If it returns false, the iteration stops and this method returns the current index. + * @param scope Object The scope (this reference) in which the specified function is executed. + * @param reverse Boolean Reverse the iteration order (loop from the end to the beginning) Defaults false + */ + static each( iterable?:any, fn?:any, scope?:any, reverse?:bool ): bool; + /** [Method] Shallow compares the contents of 2 arrays using strict equality + * @param array1 Array + * @param array2 Array + */ + static equals( array1?:any[], array2?:any[] ): bool; + /** [Method] Removes items from an array + * @param array Array The Array on which to replace. + * @param index Number The index in the array at which to operate. + * @param removeCount Number The number of items to remove at index. + */ + static erase( array?:any[], index?:number, removeCount?:number ): any[]; + /** [Method] Executes the specified function for each array element until the function returns a falsy value + * @param array Array + * @param fn Function Callback function for each item + * @param scope Object Callback function scope + */ + static every( array?:any[], fn?:any, scope?:any ): bool; + /** [Method] Creates a new array with all of the elements of this array for which the provided filtering function returns true + * @param array Array + * @param fn Function Callback function for each item + * @param scope Object Callback function scope + */ + static filter( array?:any[], fn?:any, scope?:any ): any[]; + /** [Method] Returns the first item in the array which elicits a true return value from the passed selection function + * @param array Array The array to search + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the array + */ + static findBy( array?:any[], fn?:any, scope?:any ): any; + /** [Method] Recursively flattens into 1 d Array + * @param array Array The array to flatten + */ + static flatten( array?:any[] ): any[]; + /** [Method] Iterates an array and invoke the given callback function for each item + * @param array Array The array to iterate + * @param fn Function The callback function. + * @param scope Object The execution scope (this) in which the specified function is executed. + */ + static forEach( array?:any[], fn?:any, scope?:any ): void; + /** [Method] Converts a value to an array if it s not already an array returns An empty array if given value is undefined or n + * @param value Object The value to convert to an array if it's not already is an array + * @param newReference Boolean True to clone the given array and return a new reference if necessary, defaults to false + */ + static from( value?:any, newReference?:bool ): any[]; + /** [Method] Push an item into the array only if the array doesn t contain it yet + * @param array Array The array + * @param item Object The item to include + */ + static include( array?:any[], item?:any ): void; + /** [Method] Get the index of the provided item in the given array a supplement for the missing arrayPrototype indexOf in Interne + * @param array Array The array to check + * @param item Object The item to look for + * @param from Number The index at which to begin the search + */ + static indexOf( array?:any[], item?:any, from?:number ): number; + /** [Method] Inserts items in to an array + * @param array Array The Array in which to insert. + * @param index Number The index in the array at which to operate. + * @param items Array The array of items to insert at index. + */ + static insert( array?:any[], index?:number, items?:any[] ): any[]; + /** [Method] Merge multiple arrays into one with unique items that exist in all of the arrays + * @param array1 Array + * @param array2 Array + * @param etc Array + */ + static intersect( array1?:any[], array2?:any[], etc?:any[] ): any[]; + /** [Method] Creates a new array with the results of calling a provided function on every element in this array + * @param array Array + * @param fn Function Callback function for each item + * @param scope Object Callback function scope + */ + static map( array?:any[], fn?:any, scope?:any ): any[]; + /** [Method] Returns the maximum value in the Array + * @param array any The Array from which to select the maximum value. + * @param comparisonFn any a function to perform the comparision which determines maximization. If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 + */ + static max( array?:any, comparisonFn?:any ): any; + static max( array?:any[], comparisonFn?:any ): any; + static max( array?:NodeList, comparisonFn?:any ): any; + /** [Method] Calculates the mean of all items in the array + * @param array Array The Array to calculate the mean value of. + */ + static mean( array?:any[] ): number; + /** [Method] Merge multiple arrays into one with unique items + * @param array1 Array + * @param array2 Array + * @param etc Array + */ + static merge( array1?:any[], array2?:any[], etc?:any[] ): any[]; + /** [Method] Returns the minimum value in the Array + * @param array any The Array from which to select the minimum value. + * @param comparisonFn any a function to perform the comparision which determines minimization. If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 + */ + static min( array?:any, comparisonFn?:any ): any; + static min( array?:any[], comparisonFn?:any ): any; + static min( array?:NodeList, comparisonFn?:any ): any; + /** [Method] Plucks the value of a property from each item in the Array + * @param array any The Array of items to pluck the value from. + * @param propertyName any The property name to pluck from each element. + */ + static pluck( array?:any, propertyName?:any ): any; + static pluck( array?:any[], propertyName?:string ): any[]; + static pluck( array?:NodeList, propertyName?:string ): any[]; + /** [Method] Pushes new items onto the end of an Array + * @param target Array The Array onto which to push new items + * @param elements Object... The elements to add to the array. Each parameter may be an Array, in which case all the elements of that Array will be pushed into the end of the destination Array. + */ + static push( target:any[], ...elements:any[] ): any[]; + /** [Method] Removes the specified item from the array if it exists + * @param array Array The array + * @param item Object The item to remove + */ + static remove( array?:any[], item?:any ): any[]; + /** [Method] Replaces items in an array + * @param array Array The Array on which to replace. + * @param index Number The index in the array at which to operate. + * @param removeCount Number The number of items to remove at index (can be 0). + * @param insert Array An array of items to insert at index. + */ + static replace( array?:any[], index?:number, removeCount?:number, insert?:any[] ): any[]; + /** [Method] Returns a shallow copy of a part of an array + * @param array Array The array (or arguments object). + * @param begin Number The index at which to begin. Negative values are offsets from the end of the array. + * @param end Number The index at which to end. The copied items do not include end. Negative values are offsets from the end of the array. If end is omitted, all items up to the end of the array are copied. + */ + static slice( array?:any[], begin?:number, end?:number ): any[]; + /** [Method] Executes the specified function for each array element until the function returns a truthy value + * @param array Array + * @param fn Function Callback function for each item + * @param scope Object Callback function scope + */ + static some( array?:any[], fn?:any, scope?:any ): bool; + /** [Method] Sorts the elements of an Array + * @param array Array The array to sort. + * @param sortFn Function The comparison function. + */ + static sort( array?:any[], sortFn?:any ): any[]; + /** [Method] Replaces items in an array + * @param array Array The Array on which to replace. + * @param index Number The index in the array at which to operate. + * @param removeCount Number The number of items to remove at index (can be 0). + * @param elements Object... The elements to add to the array. If you don't specify any elements, splice simply removes elements from the array. + */ + static splice( array:any[], index:number, removeCount:number, ...elements:any[] ): any[]; + /** [Method] Calculates the sum of all items in the given array + * @param array Array The Array to calculate the sum value of. + */ + static sum( array?:any[] ): number; + /** [Method] Converts any iterable numeric indices and a length property into a true array + * @param iterable Object the iterable object to be turned into a true Array. + * @param start Number a zero-based index that specifies the start of extraction. Defaults to 0 + * @param end Number a 1-based index that specifies the end of extraction. Defaults to the last index of the iterable value + */ + static toArray( iterable?:any, start?:number, end?:number ): any[]; + /** [Method] Creates a map object keyed by the elements of the given array + * @param array any The Array to create the map from. + * @param getKey any Name of the object property to use as a key or a function to extract the key. + * @param scope any Value of this inside callback. + */ + static toMap( array?:any, getKey?:any, scope?:any ): any; + static toMap( array?:any[], getKey?:string, scope?:any ): any; + static toMap( array?:any[], getKey?:any, scope?:any ): any; + /** [Method] Creates a map object keyed by a property of elements of the given array + * @param array any The Array to create the map from. + * @param getKey any Name of the object property to use as a key or a function to extract the key. + * @param scope any Value of this inside callback. + */ + static toValueMap( array?:any, getKey?:any, scope?:any ): any; + static toValueMap( array?:any[], getKey?:string, scope?:any ): any; + static toValueMap( array?:any[], getKey?:any, scope?:any ): any; + /** [Method] Merge multiple arrays into one with unique items + * @param array1 Array + * @param array2 Array + * @param etc Array + */ + static union( array1?:any[], array2?:any[], etc?:any[] ): any[]; + /** [Method] Returns a new array with unique items + * @param array Array + */ + static unique( array?:any[] ): any[]; + } +} +declare module Ext { + export interface IBase extends Ext.IClass { + /** [Property] (Ext.Class) Get the reference to the current class from which this object was instantiated. ... */ + self?: Ext.IClass; + /** [Method] Call the parent method of the current method + * @param args any The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + callParent?( args?:any ): any; + callParent?( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args any The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + callSuper?( args?:any ): any; + callSuper?( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + getInitialConfig?( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + initConfig?( config?:any ): Ext.IBase; + } +} +declare module Ext.button { + export interface IButton extends Ext.IComponent { + /** [Config Option] (Boolean) False to not allow a pressed Button to be depressed. ... */ + allowDepress?: bool; + /** [Config Option] (String) The side of the Button box to render the arrow if the button has an associated menu. ... */ + arrowAlign?: string; + /** [Config Option] (String) The className used for the inner arrow element if the button has a menu. ... */ + arrowCls?: string; + /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + baseCls?: string; + /** [Config Option] (Object) */ + baseParams?: any; + /** [Config Option] (String) The DOM event that will fire the handler of the button. ... */ + clickEvent?: string; + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) Whether or not to destroy any associated menu when this button is destroyed. ... */ + destroyMenu?: bool; + /** [Config Option] (Boolean) True to start disabled. ... */ + disabled?: bool; + /** [Config Option] (Boolean) True to enable pressed/not pressed toggling. ... */ + enableToggle?: bool; + /** [Config Option] (String) The CSS class to add to a button when it is in the focussed state. ... */ + focusCls?: string; + /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + frame?: bool; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this button. ... */ + glyph?: any; + /** [Config Option] (Boolean) False to disable visual cues on mouseover, mouseout and mousedown. ... */ + handleMouseEvents?: bool; + /** [Config Option] (Function) A function called when the button is clicked (can be used instead of click event). ... */ + handler?: any; + /** [Config Option] (Boolean) True to start hidden. ... */ + hidden?: bool; + /** [Config Option] (String) The URL to open when the button is clicked. ... */ + href?: string; + /** [Config Option] (String) The target attribute to use for the underlying anchor. ... */ + hrefTarget?: string; + /** [Config Option] (String) */ + icon?: string; + /** [Config Option] (String) The side of the Button box to render the icon. ... */ + iconAlign?: string; + /** [Config Option] (String) */ + iconCls?: string; + /** [Config Option] (Ext.menu.Menu/String/Object) */ + menu?: any; + /** [Config Option] (String) The CSS class to add to a button when it's menu is active. ... */ + menuActiveCls?: string; + /** [Config Option] (String) The position to align the menu to (see Ext.util.Positionable.alignTo for more details). ... */ + menuAlign?: string; + /** [Config Option] (Number) The minimum width for this button (used to give a set of buttons a common width). ... */ + minWidth?: number; + /** [Config Option] (String) The CSS class to add to a button when it is in the over (hovered) state. ... */ + overCls?: string; + /** [Config Option] (String) If used in a Toolbar, the text to be used if this item is shown in the overflow menu. ... */ + overflowText?: string; + /** [Config Option] (Object) An object literal of parameters to pass to the url when the href property is specified. ... */ + params?: any; + /** [Config Option] (Boolean) True to start pressed (only if enableToggle = true) ... */ + pressed?: bool; + /** [Config Option] (String) The CSS class to add to a button when it is in the pressed state. ... */ + pressedCls?: string; + /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + preventDefault?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) We have to keep "unselectable" attribute on all elements because it's not inheritable. ... */ + renderTpl?: any; + /** [Config Option] (Boolean/Object) True to repeat fire the click event while the mouse is down. ... */ + repeat?: any; + /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + scale?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler and toggleHandler is executed. ... */ + scope?: any; + /** [Config Option] (Boolean) True to force an attached menu with no items to be shown when clicking this button. ... */ + showEmptyMenu?: bool; + /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + shrinkWrap?: any; + /** [Config Option] (Number) */ + tabIndex?: number; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (String) The text alignment for this button (center, left, right). ... */ + textAlign?: string; + /** [Config Option] (String) The group this toggle button is a member of (only 1 per group can be pressed). ... */ + toggleGroup?: string; + /** [Config Option] (Function) Function called when a Button with enableToggle set to true is clicked. ... */ + toggleHandler?: any; + /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + tooltip?: any; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Config Option] (String) The type of <input> to create: submit, reset or button. ... */ + type?: string; + /** [Property] (Ext.Template) A Template used to create the Button's DOM structure. ... */ + template?: Ext.ITemplate; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] inherit docs Disable the component + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): void; + /** [Method] inherit docs Enable the component + * @param silent Boolean Passing true will suppress the enable event from being fired. + */ + enable?( silent?:bool ): void; + /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ + getTemplateArgs?(): any; + /** [Method] Gets the text for this Button */ + getText?(): string; + /** [Method] Returns true if the button has a menu and it is visible */ + hasVisibleMenu?(): bool; + /** [Method] Hides this button s menu if it has one */ + hideMenu?(): Ext.button.IButton; + /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] See comments in onFocus Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Sets this button s glyph + * @param glyph any the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + */ + setGlyph?( glyph?:any ): any; + setGlyph?( glyph?:number ): Ext.button.IButton; + setGlyph?( glyph?:string ): Ext.button.IButton; + /** [Method] Assigns this Button s click handler + * @param handler Function The function to call when the button is clicked + * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to this Button. + */ + setHandler?( handler?:any, scope?:any ): Ext.button.IButton; + /** [Method] Sets the href of the embedded anchor element to the passed URL + * @param href String The URL to set in the anchor element. + */ + setHref?( href?:string ): void; + /** [Method] Sets the background image inline style of the button + * @param icon String The path to an image to display in the button + */ + setIcon?( icon?:string ): Ext.button.IButton; + /** [Method] Sets the CSS class that provides a background image to use as the button s icon + * @param cls String The CSS class providing the icon image + */ + setIconCls?( cls?:string ): Ext.button.IButton; + /** [Method] Sets the href of the link dynamically according to the params passed and any baseParams configured + * @param params Object Parameters to use in the href URL. + */ + setParams?( params?:any ): void; + /** [Method] Method to change the scale of the button + * @param scale String The scale to change to. + */ + setScale?( scale?:string ): void; + /** [Method] Sets this Button s text + * @param text String The button text + */ + setText?( text?:string ): Ext.button.IButton; + /** [Method] Sets the text alignment for this button + * @param align String The new alignment of the button text. See textAlign. + */ + setTextAlign?( align?:string ): void; + /** [Method] Sets the tooltip for this Button + * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + */ + setTooltip?( tooltip?:any ): Ext.button.IButton; + /** [Method] inherit docs Sets the UI for the component + * @param ui String The new UI for the component. + */ + setUI?( ui?:string ): void; + /** [Method] Shows this button s menu if it has one + * @param fromEvent Object + */ + showMenu?( fromEvent?:any ): void; + /** [Method] If a state it passed it becomes the pressed state otherwise the current state is toggled + * @param state Boolean Force a particular state + * @param suppressEvent Boolean True to stop events being fired when calling this method. + */ + toggle?( state?:bool, suppressEvent?:bool ): Ext.button.IButton; + } +} +declare module Ext { + export interface IButton extends Ext.IComponent { + /** [Config Option] (Boolean) False to not allow a pressed Button to be depressed. ... */ + allowDepress?: bool; + /** [Config Option] (String) The side of the Button box to render the arrow if the button has an associated menu. ... */ + arrowAlign?: string; + /** [Config Option] (String) The className used for the inner arrow element if the button has a menu. ... */ + arrowCls?: string; + /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + baseCls?: string; + /** [Config Option] (Object) */ + baseParams?: any; + /** [Config Option] (String) The DOM event that will fire the handler of the button. ... */ + clickEvent?: string; + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) Whether or not to destroy any associated menu when this button is destroyed. ... */ + destroyMenu?: bool; + /** [Config Option] (Boolean) True to start disabled. ... */ + disabled?: bool; + /** [Config Option] (Boolean) True to enable pressed/not pressed toggling. ... */ + enableToggle?: bool; + /** [Config Option] (String) The CSS class to add to a button when it is in the focussed state. ... */ + focusCls?: string; + /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + frame?: bool; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this button. ... */ + glyph?: any; + /** [Config Option] (Boolean) False to disable visual cues on mouseover, mouseout and mousedown. ... */ + handleMouseEvents?: bool; + /** [Config Option] (Function) A function called when the button is clicked (can be used instead of click event). ... */ + handler?: any; + /** [Config Option] (Boolean) True to start hidden. ... */ + hidden?: bool; + /** [Config Option] (String) The URL to open when the button is clicked. ... */ + href?: string; + /** [Config Option] (String) The target attribute to use for the underlying anchor. ... */ + hrefTarget?: string; + /** [Config Option] (String) */ + icon?: string; + /** [Config Option] (String) The side of the Button box to render the icon. ... */ + iconAlign?: string; + /** [Config Option] (String) */ + iconCls?: string; + /** [Config Option] (Ext.menu.Menu/String/Object) */ + menu?: any; + /** [Config Option] (String) The CSS class to add to a button when it's menu is active. ... */ + menuActiveCls?: string; + /** [Config Option] (String) The position to align the menu to (see Ext.util.Positionable.alignTo for more details). ... */ + menuAlign?: string; + /** [Config Option] (Number) The minimum width for this button (used to give a set of buttons a common width). ... */ + minWidth?: number; + /** [Config Option] (String) The CSS class to add to a button when it is in the over (hovered) state. ... */ + overCls?: string; + /** [Config Option] (String) If used in a Toolbar, the text to be used if this item is shown in the overflow menu. ... */ + overflowText?: string; + /** [Config Option] (Object) An object literal of parameters to pass to the url when the href property is specified. ... */ + params?: any; + /** [Config Option] (Boolean) True to start pressed (only if enableToggle = true) ... */ + pressed?: bool; + /** [Config Option] (String) The CSS class to add to a button when it is in the pressed state. ... */ + pressedCls?: string; + /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + preventDefault?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) We have to keep "unselectable" attribute on all elements because it's not inheritable. ... */ + renderTpl?: any; + /** [Config Option] (Boolean/Object) True to repeat fire the click event while the mouse is down. ... */ + repeat?: any; + /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + scale?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler and toggleHandler is executed. ... */ + scope?: any; + /** [Config Option] (Boolean) True to force an attached menu with no items to be shown when clicking this button. ... */ + showEmptyMenu?: bool; + /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + shrinkWrap?: any; + /** [Config Option] (Number) */ + tabIndex?: number; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (String) The text alignment for this button (center, left, right). ... */ + textAlign?: string; + /** [Config Option] (String) The group this toggle button is a member of (only 1 per group can be pressed). ... */ + toggleGroup?: string; + /** [Config Option] (Function) Function called when a Button with enableToggle set to true is clicked. ... */ + toggleHandler?: any; + /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + tooltip?: any; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Config Option] (String) The type of <input> to create: submit, reset or button. ... */ + type?: string; + /** [Property] (Ext.Template) A Template used to create the Button's DOM structure. ... */ + template?: Ext.ITemplate; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] inherit docs Disable the component + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): void; + /** [Method] inherit docs Enable the component + * @param silent Boolean Passing true will suppress the enable event from being fired. + */ + enable?( silent?:bool ): void; + /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ + getTemplateArgs?(): any; + /** [Method] Gets the text for this Button */ + getText?(): string; + /** [Method] Returns true if the button has a menu and it is visible */ + hasVisibleMenu?(): bool; + /** [Method] Hides this button s menu if it has one */ + hideMenu?(): Ext.button.IButton; + /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] See comments in onFocus Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Sets this button s glyph + * @param glyph any the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + */ + setGlyph?( glyph?:any ): any; + setGlyph?( glyph?:number ): Ext.button.IButton; + setGlyph?( glyph?:string ): Ext.button.IButton; + /** [Method] Assigns this Button s click handler + * @param handler Function The function to call when the button is clicked + * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to this Button. + */ + setHandler?( handler?:any, scope?:any ): Ext.button.IButton; + /** [Method] Sets the href of the embedded anchor element to the passed URL + * @param href String The URL to set in the anchor element. + */ + setHref?( href?:string ): void; + /** [Method] Sets the background image inline style of the button + * @param icon String The path to an image to display in the button + */ + setIcon?( icon?:string ): Ext.button.IButton; + /** [Method] Sets the CSS class that provides a background image to use as the button s icon + * @param cls String The CSS class providing the icon image + */ + setIconCls?( cls?:string ): Ext.button.IButton; + /** [Method] Sets the href of the link dynamically according to the params passed and any baseParams configured + * @param params Object Parameters to use in the href URL. + */ + setParams?( params?:any ): void; + /** [Method] Method to change the scale of the button + * @param scale String The scale to change to. + */ + setScale?( scale?:string ): void; + /** [Method] Sets this Button s text + * @param text String The button text + */ + setText?( text?:string ): Ext.button.IButton; + /** [Method] Sets the text alignment for this button + * @param align String The new alignment of the button text. See textAlign. + */ + setTextAlign?( align?:string ): void; + /** [Method] Sets the tooltip for this Button + * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + */ + setTooltip?( tooltip?:any ): Ext.button.IButton; + /** [Method] inherit docs Sets the UI for the component + * @param ui String The new UI for the component. + */ + setUI?( ui?:string ): void; + /** [Method] Shows this button s menu if it has one + * @param fromEvent Object + */ + showMenu?( fromEvent?:any ): void; + /** [Method] If a state it passed it becomes the pressed state otherwise the current state is toggled + * @param state Boolean Force a particular state + * @param suppressEvent Boolean True to stop events being fired when calling this method. + */ + toggle?( state?:bool, suppressEvent?:bool ): Ext.button.IButton; + } +} +declare module Ext.button { + export interface ICycle extends Ext.button.ISplit { + /** [Config Option] (Function) A callback function that will be invoked each time the active menu item in the button's menu has changed. ... */ + changeHandler?: any; + /** [Config Option] (Number/String) The charCode to be used as the static icon for this button. ... */ + forceGlyph?: any; + /** [Config Option] (String) A css class which sets an image to be used as the static icon for this button. ... */ + forceIcon?: string; + /** [Config Option] (Object[]) An array of Ext.menu.CheckItem config objects to be used when creating the button's menu items (e.g., {text:'Foo', ic... */ + items?: Object[]; + /** [Config Option] (String) A static string to prepend before the active item's text when displayed as the button's text (only applies when showT... */ + prependText?: string; + /** [Config Option] (Boolean) True to display the active item's text as the button text. ... */ + showText?: bool; + /** [Property] (Ext.menu.Menu) */ + menu?: Ext.menu.IMenu; + /** [Method] Gets the currently active menu item */ + getActiveItem?(): Ext.menu.ICheckItem; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Sets the button s active menu item + * @param item Ext.menu.ICheckItem The item to activate + * @param suppressEvent Boolean True to prevent the button's change event from firing. + */ + setActiveItem?( item?:Ext.menu.ICheckItem, suppressEvent?:bool ): void; + /** [Method] This is normally called internally on button click but can be called externally to advance the button s active item */ + toggleSelected?(): void; + } +} +declare module Ext { + export interface ICycleButton extends Ext.button.ISplit { + /** [Config Option] (Function) A callback function that will be invoked each time the active menu item in the button's menu has changed. ... */ + changeHandler?: any; + /** [Config Option] (Number/String) The charCode to be used as the static icon for this button. ... */ + forceGlyph?: any; + /** [Config Option] (String) A css class which sets an image to be used as the static icon for this button. ... */ + forceIcon?: string; + /** [Config Option] (Object[]) An array of Ext.menu.CheckItem config objects to be used when creating the button's menu items (e.g., {text:'Foo', ic... */ + items?: Object[]; + /** [Config Option] (String) A static string to prepend before the active item's text when displayed as the button's text (only applies when showT... */ + prependText?: string; + /** [Config Option] (Boolean) True to display the active item's text as the button text. ... */ + showText?: bool; + /** [Property] (Ext.menu.Menu) */ + menu?: Ext.menu.IMenu; + /** [Method] Gets the currently active menu item */ + getActiveItem?(): Ext.menu.ICheckItem; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Sets the button s active menu item + * @param item Ext.menu.ICheckItem The item to activate + * @param suppressEvent Boolean True to prevent the button's change event from firing. + */ + setActiveItem?( item?:Ext.menu.ICheckItem, suppressEvent?:bool ): void; + /** [Method] This is normally called internally on button click but can be called externally to advance the button s active item */ + toggleSelected?(): void; + } +} +declare module Ext.button { + export interface IManager extends Ext.IBase { + } + export class Manager { + } +} +declare module Ext { + export interface IButtonToggleManager extends Ext.IBase { + } + export class ButtonToggleManager { + } +} +declare module Ext.button { + export interface ISplit extends Ext.button.IButton { + /** [Config Option] (Function) A function called when the arrow button is clicked (can be used instead of click event) ... */ + arrowHandler?: any; + /** [Config Option] (String) */ + arrowTooltip?: string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Sets this button s arrow click handler + * @param handler Function The function to call when the arrow is clicked. + * @param scope Object Scope for the function passed above. + */ + setArrowHandler?( handler?:any, scope?:any ): void; + } +} +declare module Ext { + export interface ISplitButton extends Ext.button.IButton { + /** [Config Option] (Function) A function called when the arrow button is clicked (can be used instead of click event) ... */ + arrowHandler?: any; + /** [Config Option] (String) */ + arrowTooltip?: string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Sets this button s arrow click handler + * @param handler Function The function to call when the arrow is clicked. + * @param scope Object Scope for the function passed above. + */ + setArrowHandler?( handler?:any, scope?:any ): void; + } +} +declare module Ext.chart.axis { + export interface IAbstract extends Ext.IBase { + /** [Config Option] (String[]) The fields of model to bind to this axis. ... */ + fields?: string[]; + /** [Config Option] (Ext.chart.Label) */ + label?: Ext.chart.ILabel; + } +} +declare module Ext.chart.axis { + export interface IAxis extends Ext.chart.axis.IAbstract { + /** [Config Option] (Boolean) Whether to adjust the label at the end of the axis. ... */ + adjustEnd?: bool; + /** [Config Option] (Number) The size of the dash marker. ... */ + dashSize?: number; + /** [Config Option] (Boolean/Object) The grid configuration enables you to set a background grid for an axis. ... */ + grid?: any; + /** [Config Option] (Number) Offset axis position. ... */ + length?: number; + /** [Config Option] (Number) If minimum and maximum are specified it forces the number of major ticks to the specified value. ... */ + majorTickSteps?: number; + /** [Config Option] (Number) The number of small ticks between two major ticks. ... */ + minorTickSteps?: number; + /** [Config Option] (String) Where to set the axis. ... */ + position?: string; + /** [Config Option] (String) */ + title?: string; + /** [Config Option] (Number) Offset axis width. ... */ + width?: number; + /** [Method] Renders the axis into the screen and updates its position + * @param init Object + */ + drawAxis?( init?:any ): void; + /** [Method] Renders an horizontal and or vertical grid into the Surface */ + drawGrid?(): void; + /** [Method] Renders the labels in the axes */ + drawLabel?(): void; + /** [Method] Updates the title of this axis + * @param title String + */ + setTitle?( title?:string ): void; + } +} +declare module Ext.chart { + export interface IAxis extends Ext.chart.axis.IAbstract { + /** [Config Option] (Boolean) Whether to adjust the label at the end of the axis. ... */ + adjustEnd?: bool; + /** [Config Option] (Number) The size of the dash marker. ... */ + dashSize?: number; + /** [Config Option] (Boolean/Object) The grid configuration enables you to set a background grid for an axis. ... */ + grid?: any; + /** [Config Option] (Number) Offset axis position. ... */ + length?: number; + /** [Config Option] (Number) If minimum and maximum are specified it forces the number of major ticks to the specified value. ... */ + majorTickSteps?: number; + /** [Config Option] (Number) The number of small ticks between two major ticks. ... */ + minorTickSteps?: number; + /** [Config Option] (String) Where to set the axis. ... */ + position?: string; + /** [Config Option] (String) */ + title?: string; + /** [Config Option] (Number) Offset axis width. ... */ + width?: number; + /** [Method] Renders the axis into the screen and updates its position + * @param init Object + */ + drawAxis?( init?:any ): void; + /** [Method] Renders an horizontal and or vertical grid into the Surface */ + drawGrid?(): void; + /** [Method] Renders the labels in the axes */ + drawLabel?(): void; + /** [Method] Updates the title of this axis + * @param title String + */ + setTitle?( title?:string ): void; + } +} +declare module Ext.chart.axis { + export interface ICategory extends Ext.chart.axis.IAxis { + /** [Config Option] (Boolean) Indicates whether or not to calculate the number of categories (ticks and labels) when there is not enough room to di... */ + calculateCategoryCount?: bool; + /** [Config Option] (String) */ + categoryNames?: string; + } +} +declare module Ext.chart { + export interface ICategoryAxis extends Ext.chart.axis.IAxis { + /** [Config Option] (Boolean) Indicates whether or not to calculate the number of categories (ticks and labels) when there is not enough room to di... */ + calculateCategoryCount?: bool; + /** [Config Option] (String) */ + categoryNames?: string; + } +} +declare module Ext.chart.axis { + export interface IGauge extends Ext.chart.axis.IAbstract { + /** [Config Option] (Number) The offset positioning of the tick marks and labels in pixels. ... */ + margin?: number; + /** [Config Option] (Number) */ + maximum?: number; + /** [Config Option] (Number) */ + minimum?: number; + /** [Config Option] (Number) */ + steps?: number; + /** [Config Option] (String) */ + title?: string; + /** [Method] Updates the title of this axis + * @param title String + */ + setTitle?( title?:string ): void; + } +} +declare module Ext.chart.axis { + export interface INumeric extends Ext.chart.axis.IAxis { + /** [Config Option] (Boolean) Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit. ... */ + adjustMaximumByMajorUnit?: bool; + /** [Config Option] (Boolean) Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit. ... */ + adjustMinimumByMajorUnit?: bool; + /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between minimum and maximum If false, all value... */ + constrain?: bool; + /** [Config Option] (Number) The number of decimals to round the value to. ... */ + decimals?: number; + /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + maximum?: number; + /** [Config Option] (Number) The minimum value drawn by the axis. ... */ + minimum?: number; + /** [Config Option] (String) Indicates the position of the axis relative to the chart ... */ + position?: string; + } +} +declare module Ext.chart { + export interface INumericAxis extends Ext.chart.axis.IAxis { + /** [Config Option] (Boolean) Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit. ... */ + adjustMaximumByMajorUnit?: bool; + /** [Config Option] (Boolean) Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit. ... */ + adjustMinimumByMajorUnit?: bool; + /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between minimum and maximum If false, all value... */ + constrain?: bool; + /** [Config Option] (Number) The number of decimals to round the value to. ... */ + decimals?: number; + /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + maximum?: number; + /** [Config Option] (Number) The minimum value drawn by the axis. ... */ + minimum?: number; + /** [Config Option] (String) Indicates the position of the axis relative to the chart ... */ + position?: string; + } +} +declare module Ext.chart.axis { + export interface IRadial extends Ext.chart.axis.INumeric { + /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + maximum?: number; + /** [Config Option] (String) End Definitions Indicates the position of the axis relative to the chart ... */ + position?: string; + /** [Config Option] (Number) The number of circles to draw outward from the center. ... */ + steps?: number; + /** [Method] Renders the labels in the axes */ + drawLabel?(): void; + } +} +declare module Ext.chart.axis { + export interface ITime extends Ext.chart.axis.INumeric { + /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between the fromDate and toDate. ... */ + constrain?: bool; + /** [Config Option] (String/Boolean) Indicates the format the date will be rendered on. ... */ + dateFormat?: any; + /** [Config Option] (Date) The starting date for the time axis. ... */ + fromDate?: any; + /** [Config Option] (Array) An array with two components: The first is the unit of the step (day, month, year, etc). ... */ + step?: any[]; + /** [Config Option] (Date) The ending date for the time axis. ... */ + toDate?: any; + } +} +declare module Ext.chart { + export interface ITimeAxis extends Ext.chart.axis.INumeric { + /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between the fromDate and toDate. ... */ + constrain?: bool; + /** [Config Option] (String/Boolean) Indicates the format the date will be rendered on. ... */ + dateFormat?: any; + /** [Config Option] (Date) The starting date for the time axis. ... */ + fromDate?: any; + /** [Config Option] (Array) An array with two components: The first is the unit of the step (day, month, year, etc). ... */ + step?: any[]; + /** [Config Option] (Date) The ending date for the time axis. ... */ + toDate?: any; + } +} +declare module Ext.chart { + export interface ICallout extends Ext.IBase { + } +} +declare module Ext.chart { + export interface IChart extends Ext.draw.IComponent,Ext.chart.IMask,Ext.chart.INavigation,Ext.chart.theme.ITheme,Ext.util.IBindable,Ext.util.IObservable { + /** [Config Option] (Boolean/Object) True for the default animation (easing: 'ease' and duration: 500) or a standard animation config object to be used fo... */ + animate?: any; + /** [Config Option] (Ext.chart.axis.Axis[]) Array of Axis instances or config objects. ... */ + axes?: Ext.chart.axis.IAxis[]; + /** [Config Option] (Object/Boolean) The chart background. ... */ + background?: any; + /** [Config Option] (Object[]) Define a set of gradients that can be used as fill property in sprites. ... */ + gradients?: Object[]; + /** [Config Option] (Number) The amount of inset padding in pixels for the chart. ... */ + insetPadding?: number; + /** [Config Option] (Boolean/Object) True for the default legend display or a legend config object. ... */ + legend?: any; + /** [Config Option] (Ext.chart.series.Series[]) Array of Series instances or config objects. ... */ + series?: Ext.chart.series.ISeries[]; + /** [Config Option] (Ext.data.Store) */ + store?: Ext.data.IStore; + /** [Config Option] (String) The name of the theme to be used. ... */ + theme?: string; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] overrides the component method to set the correct dimensions to the chart + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] set the store after rendering the chart */ + afterRender?(): void; + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Redraws the chart + * @param resize Boolean flag which changes the default origin points of the chart for animations. + */ + redraw?( resize?:bool ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Restores the zoom to the original value */ + restoreZoom?(): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Saves the chart by either triggering a download or returning a string containing the chart data as SVG + * @param config Object The configuration to be passed to the exporter. See the export method for the appropriate exporter for the relevant configuration options + */ + save?( config?:any ): any; + /** [Method] Zooms the chart to the specified selection range + * @param zoomConfig Object + */ + setZoom?( zoomConfig?:any ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.chart { + export interface IHighlight extends Ext.IBase { + /** [Config Option] (Boolean/Object) Set to true to enable highlighting using the default highlight attributes. ... */ + highlight?: any; + /** [Property] (Object) The default properties to apply as a highight. ... */ + highlightCfg?: any; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface ILabel extends Ext.IBase { + /** [Config Option] (Object) Object with the following properties: ... */ + label?: any; + /** [Method] Called each time a new label is created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] Called for updating the position of the label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart { + export interface ILegend extends Ext.IBase { + /** [Config Option] (String) Fill style for the legend box ... */ + boxFill?: string; + /** [Config Option] (String) Style of the stroke for the legend box ... */ + boxStroke?: string; + /** [Config Option] (String) Width of the stroke for the legend box ... */ + boxStrokeWidth?: string; + /** [Config Option] (Number) Sets the z-index for the legend. ... */ + boxZIndex?: number; + /** [Config Option] (Number) Amount of space between legend items ... */ + itemSpacing?: number; + /** [Config Option] (String) Color to be used for the legend labels, eg '#000' ... */ + labelColor?: string; + /** [Config Option] (String) Font to be used for the legend labels, eg '12px Helvetica' ... */ + labelFont?: string; + /** [Config Option] (Number) Amount of padding between the legend box's border and its items ... */ + padding?: number; + /** [Config Option] (String) The position of the legend in relation to the chart. ... */ + position?: string; + /** [Config Option] (Boolean) If set to true the legend will be refreshed when the chart is. ... */ + update?: bool; + /** [Config Option] (Boolean) Whether or not the legend should be displayed. ... */ + visible?: bool; + /** [Config Option] (Number) X-position of the legend box. ... */ + x?: number; + /** [Config Option] (Number) Y-position of the legend box. ... */ + y?: number; + /** [Property] (Boolean) Whether the legend box is oriented vertically, i.e. ... */ + isVertical?: bool; + /** [Method] toggle + * @param show Boolean Whether to show or hide the legend. + */ + toggle?( show?:bool ): void; + } +} +declare module Ext.chart { + export interface ILegendItem extends Ext.draw.ICompositeSprite { + /** [Method] Creates all the individual sprites for this legend item + * @param config Object + */ + createLegend?( config?:any ): void; + /** [Method] Update the positions of all this item s sprites to match the root position of the legend box + * @param relativeTo Object If specified, this object's 'x' and 'y' values will be used as the reference point for the relative positioning. Defaults to the Legend. + */ + updatePosition?( relativeTo?:any ): void; + } +} +declare module Ext.chart { + export interface IMask extends Ext.IBase { + /** [Config Option] (Boolean/String) Enables selecting a region on chart. ... */ + mask?: any; + } +} +declare module Ext.chart { + export interface IMaskLayer extends Ext.IComponent { + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext.chart { + export interface INavigation extends Ext.IBase { + /** [Method] Restores the zoom to the original value */ + restoreZoom?(): void; + /** [Method] Zooms the chart to the specified selection range + * @param zoomConfig Object + */ + setZoom?( zoomConfig?:any ): void; + } +} +declare module Ext.chart.series { + export interface IArea extends Ext.chart.series.ICartesian { + /** [Config Option] (Object) Append styling properties to this object for it to override theme properties. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object Info about the item; same format as returned by getItemForPoint + */ + getLegendColor?( item?:any ): void; + /** [Method] Highlight the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + highlightItem?( item?:any ): void; + /** [Method] Highlight this entire series + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightSeries?( item?:any ): void; + /** [Method] Called each time a new label is created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] Called for updating the position of the label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlights the specified item + * @param item Object Info about the item; same format as returned by getItemForPoint + */ + unHighlightItem?( item?:any ): void; + /** [Method] UnHighlight this entire series + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + unHighlightSeries?( item?:any ): void; + } +} +declare module Ext.chart.series { + export interface IBar extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + groupGutter?: number; + /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + gutter?: number; + /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + stacked?: bool; + /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object + */ + getLegendColor?( index?:any ): void; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] handled when creating a label + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback used when placing a label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface IBarChart extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + groupGutter?: number; + /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + gutter?: number; + /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + stacked?: bool; + /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object + */ + getLegendColor?( index?:any ): void; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] handled when creating a label + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback used when placing a label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface IBarSeries extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + groupGutter?: number; + /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + gutter?: number; + /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + stacked?: bool; + /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object + */ + getLegendColor?( index?:any ): void; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] handled when creating a label + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback used when placing a label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface IStackedBarChart extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + groupGutter?: number; + /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + gutter?: number; + /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + stacked?: bool; + /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object + */ + getLegendColor?( index?:any ): void; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] handled when creating a label + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback used when placing a label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart.series { + export interface ICartesian extends Ext.chart.series.ISeries { + /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ + axis?: any; + /** [Config Option] (String) */ + xField?: string; + /** [Config Option] (String/String[]) */ + yField?: any; + /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value + * @param record Ext.data.IModel + * @param fn Function + * @param scope Object + */ + eachYValue?( record?:Ext.data.IModel, fn?:any, scope?:any ): void; + /** [Method] Calculate the min and max values for this series s xField */ + getMinMaxXValues?(): any[]; + /** [Method] Calculate the min and max values for this series s yField s */ + getMinMaxYValues?(): any[]; + /** [Method] Returns an array of functions each of which returns the value of the yField corresponding to function s index in the */ + getYValueAccessors?(): any[]; + /** [Method] Returns the number of yField values taking into account fields combined via legend drag drop */ + getYValueCount?(): number; + } +} +declare module Ext.chart { + export interface ICartesianChart extends Ext.chart.series.ISeries { + /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ + axis?: any; + /** [Config Option] (String) */ + xField?: string; + /** [Config Option] (String/String[]) */ + yField?: any; + /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value + * @param record Ext.data.IModel + * @param fn Function + * @param scope Object + */ + eachYValue?( record?:Ext.data.IModel, fn?:any, scope?:any ): void; + /** [Method] Calculate the min and max values for this series s xField */ + getMinMaxXValues?(): any[]; + /** [Method] Calculate the min and max values for this series s yField s */ + getMinMaxYValues?(): any[]; + /** [Method] Returns an array of functions each of which returns the value of the yField corresponding to function s index in the */ + getYValueAccessors?(): any[]; + /** [Method] Returns the number of yField values taking into account fields combined via legend drag drop */ + getYValueCount?(): number; + } +} +declare module Ext.chart { + export interface ICartesianSeries extends Ext.chart.series.ISeries { + /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ + axis?: any; + /** [Config Option] (String) */ + xField?: string; + /** [Config Option] (String/String[]) */ + yField?: any; + /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value + * @param record Ext.data.IModel + * @param fn Function + * @param scope Object + */ + eachYValue?( record?:Ext.data.IModel, fn?:any, scope?:any ): void; + /** [Method] Calculate the min and max values for this series s xField */ + getMinMaxXValues?(): any[]; + /** [Method] Calculate the min and max values for this series s yField s */ + getMinMaxYValues?(): any[]; + /** [Method] Returns an array of functions each of which returns the value of the yField corresponding to function s index in the */ + getYValueAccessors?(): any[]; + /** [Method] Returns the number of yField values taking into account fields combined via legend drag drop */ + getYValueCount?(): number; + } +} +declare module Ext.chart.series { + export interface IColumn extends Ext.chart.series.IBar { + /** [Config Option] (String) The position of the axis to bind the values to. ... */ + axis?: string; + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + } +} +declare module Ext.chart { + export interface IColumnChart extends Ext.chart.series.IBar { + /** [Config Option] (String) The position of the axis to bind the values to. ... */ + axis?: string; + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + } +} +declare module Ext.chart { + export interface IColumnSeries extends Ext.chart.series.IBar { + /** [Config Option] (String) The position of the axis to bind the values to. ... */ + axis?: string; + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + } +} +declare module Ext.chart { + export interface IStackedColumnChart extends Ext.chart.series.IBar { + /** [Config Option] (String) The position of the axis to bind the values to. ... */ + axis?: string; + /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + column?: bool; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + xPadding?: any; + /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + yPadding?: any; + } +} +declare module Ext.chart.series { + export interface IGauge extends Ext.chart.series.ISeries { + /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + angleField?: string; + /** [Config Option] (Boolean/Number) Use the entire disk or just a fraction of it for the gauge. ... */ + donut?: any; + /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + highlightDuration?: number; + /** [Config Option] (Boolean) Use the Gauge Series as an area series or add a needle to it. ... */ + needle?: bool; + /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + showInLegend?: bool; + /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + getLegendColor?( item?:any ): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Sets the Gauge chart to the current specified value + * @param value Object + */ + setValue?( value?:any ): void; + } +} +declare module Ext.chart.series { + export interface ILine extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ + fill?: bool; + /** [Config Option] (Object) The display style for the markers. ... */ + markerConfig?: any; + /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ + selectionTolerance?: number; + /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ + showMarkers?: bool; + /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ + smooth?: any; + /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] called when a label is to be created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] called when a label is to be created + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart { + export interface ILineChart extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ + fill?: bool; + /** [Config Option] (Object) The display style for the markers. ... */ + markerConfig?: any; + /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ + selectionTolerance?: number; + /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ + showMarkers?: bool; + /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ + smooth?: any; + /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] called when a label is to be created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] called when a label is to be created + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart { + export interface ILineSeries extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ + fill?: bool; + /** [Config Option] (Object) The display style for the markers. ... */ + markerConfig?: any; + /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ + selectionTolerance?: number; + /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ + showMarkers?: bool; + /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ + smooth?: any; + /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] called when a label is to be created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] called when a label is to be created + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart.series { + export interface IPie extends Ext.chart.series.ISeries { + /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + angleField?: string; + /** [Config Option] (Array) */ + colorSet?: any[]; + /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ + donut?: any; + /** [Config Option] (String) */ + field?: string; + /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + highlightDuration?: number; + /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ + lengthField?: string; + /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + showInLegend?: bool; + /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (String) */ + xField?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + getLegendColor?( item?:any ): void; + /** [Method] Highlight the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + highlightItem?( item?:any ): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlights the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + unHighlightItem?( item?:any ): void; + } +} +declare module Ext.chart { + export interface IPieChart extends Ext.chart.series.ISeries { + /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + angleField?: string; + /** [Config Option] (Array) */ + colorSet?: any[]; + /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ + donut?: any; + /** [Config Option] (String) */ + field?: string; + /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + highlightDuration?: number; + /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ + lengthField?: string; + /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + showInLegend?: bool; + /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (String) */ + xField?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + getLegendColor?( item?:any ): void; + /** [Method] Highlight the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + highlightItem?( item?:any ): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlights the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + unHighlightItem?( item?:any ): void; + } +} +declare module Ext.chart { + export interface IPieSeries extends Ext.chart.series.ISeries { + /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + angleField?: string; + /** [Config Option] (Array) */ + colorSet?: any[]; + /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ + donut?: any; + /** [Config Option] (String) */ + field?: string; + /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + highlightDuration?: number; + /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ + lengthField?: string; + /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + showInLegend?: bool; + /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (String) */ + xField?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + getLegendColor?( item?:any ): void; + /** [Method] Highlight the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + highlightItem?( item?:any ): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Un highlights the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + unHighlightItem?( item?:any ): void; + } +} +declare module Ext.chart.series { + export interface IRadar extends Ext.chart.series.ISeries { + /** [Config Option] (Object) The display style for the markers. ... */ + markerConfig?: any; + /** [Config Option] (Boolean) Whether to show this series in the legend. ... */ + showInLegend?: bool; + /** [Config Option] (Boolean) Whether markers should be displayed at the data points of the series. ... */ + showMarkers?: bool; + /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Config Option] (String) */ + xField?: string; + /** [Config Option] (String) */ + yField?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart.series { + export interface IScatter extends Ext.chart.series.ICartesian { + /** [Config Option] (Object) */ + markerConfig?: any; + /** [Config Option] (Object) */ + style?: any; + /** [Config Option] (String) End Definitions The type of series. ... */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] callback for when creating a label sprite + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] callback for when placing a label sprite + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + } +} +declare module Ext.chart.series { + export interface ISeries extends Ext.IBase,Ext.chart.ICallout,Ext.chart.IHighlight,Ext.chart.ILabel,Ext.chart.ITip,Ext.util.IObservable { + /** [Config Option] (Boolean/Object) If set to true it will highlight the markers or the series when hovering with the mouse. ... */ + highlight?: any; + /** [Config Option] (Object) An (optional) object with event callbacks. ... */ + listeners?: any; + /** [Config Option] (Function) A function that can be overridden to set custom styling properties to each rendered element. ... */ + renderer?: any; + /** [Config Option] (Array) */ + shadowAttributes?: any[]; + /** [Config Option] (Boolean) Whether to show this series in the legend. ... */ + showInLegend?: bool; + /** [Config Option] (Object) Add tooltips to the visualization's markers. ... */ + tips?: any; + /** [Config Option] (String) */ + title?: string; + /** [Config Option] (String) The type of series. ... */ + type?: string; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Iterate over each of the records for this series + * @param fn Function The function to execute for each record. + * @param scope Object Scope for the fn. + */ + eachRecord?( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] For a given x y point relative to the Surface find a corresponding item from this series if any + * @param x Number + * @param y Number + */ + getItemForPoint?( x?:number, y?:number ): any; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object + */ + getLegendColor?( index?:any ): void; + /** [Method] Return the number of records being displayed in this series */ + getRecordCount?(): void; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Hides all the elements in the series */ + hideAll?(): void; + /** [Method] Highlight the given series item + * @param item Object Info about the item; same format as returned by getItemForPoint. + */ + highlightItem?( item?:any ): void; + /** [Method] Determines whether the series item at the given index has been excluded i e + * @param index Object + */ + isExcluded?( index?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Called each time a new label is created + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element created (i.e the first created label, second created label, etc). + * @param display Boolean The display type. May be false if the label is hidden + */ + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + /** [Method] Called for updating the position of the label + * @param label Ext.draw.ISprite The sprite label. + * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. + * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) + * @param display Boolean The display type. May be false if the label is hidden + * @param animate Boolean A boolean value to set or unset animations for the labels. + * @param index Number The series index. + */ + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Changes the value of the title for the series + * @param index Number + * @param title String + */ + setTitle?( index?:number, title?:string ): void; + /** [Method] Shows all the elements in the series */ + showAll?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface IShape extends Ext.IBase { + } + export class Shape { + } +} +declare module Ext.chart.theme { + export interface IBase extends Ext.IBase { + } +} +declare module Ext.chart.theme { + export interface ITheme { + } +} +declare module Ext.chart { + export interface ITip extends Ext.IBase { + } +} +declare module Ext.chart { + export interface ITipSurface extends Ext.draw.IComponent { + } +} +declare module Ext { + export interface IClass { + /** [Config Option] (String[]) List of short aliases for class names. ... */ + alias?: string[]; + /** [Config Option] (String/String[]) Defines alternate names for this class. ... */ + alternateClassName?: any; + /** [Config Option] (Object) List of configuration options with their default values, for which automatically accessor methods are generated. ... */ + config?: any; + /** [Config Option] (String) The parent class that this class extends. ... */ + extend?: string; + /** [Config Option] (Object) List of inheritable static methods for this class. ... */ + inheritableStatics?: any; + /** [Config Option] (String[]/Object) List of classes to mix into this class. ... */ + mixins?: any; + /** [Config Option] (String[]) List of classes that have to be loaded before instantiating this class. ... */ + requires?: string[]; + /** [Config Option] (Boolean) When set to true, the class will be instantiated as singleton. ... */ + singleton?: bool; + /** [Config Option] (Object) List of static methods for this class. ... */ + statics?: any; + /** [Config Option] (String[]) List of optional classes to load together with this class. ... */ + uses?: string[]; + } +} +declare module Ext { + export interface IClassManager { + } + export class ClassManager { + /** [Method] Adds a batch of class name to alias mappings + * @param aliases Object The set of mappings of the form className : [values...] + */ + static addNameAliasMappings( aliases?:any ): Ext.IClassManager; + /** [Method] + * @param alternates Object The set of mappings of the form className : [values...] + */ + static addNameAlternateMappings( alternates?:any ): Ext.IClassManager; + /** [Method] Retrieve a class by its name + * @param name String + */ + static get( name?:string ): Ext.IClass; + /** [Method] Get the aliases of a class by the class name + * @param name String + */ + static getAliasesByName( name?:string ): any[]; + /** [Method] Get a reference to the class by its alias + * @param alias String + */ + static getByAlias( alias?:string ): Ext.IClass; + /** [Method] Get the class of the provided object returns null if it s not an instance of any class created with Ext define + * @param object Object + */ + static getClass( object?:any ): Ext.IClass; + /** [Method] Returns the displayName property or className or object + * @param object Object + */ + static getDisplayName( object?:any ): string; + /** [Method] Get the name of the class by its reference or its instance getName is usually invoked by the shorthand Ext getClass + * @param object any + */ + static getName( object?:any ): string; + /** [Method] Get the name of a class by its alias + * @param alias String + */ + static getNameByAlias( alias?:string ): string; + /** [Method] Get the name of a class by its alternate name + * @param alternate String + */ + static getNameByAlternate( alternate?:string ): string; + /** [Method] Converts a string expression to an array of matching class names + * @param expression String + */ + static getNamesByExpression( expression?:string ): string[]; + /** [Method] Instantiate a class by its alias + * @param alias String + * @param args Object... Additional arguments after the alias will be passed to the class constructor. + */ + static instantiateByAlias( alias:string, ...args:any[] ): any; + /** [Method] Checks if a class has already been created + * @param className String + */ + static isCreated( className?:string ): bool; + /** [Method] Sets a name reference to a class + * @param name String + * @param value Object + */ + static set( name?:string, value?:any ): Ext.IClassManager; + /** [Method] Register the alias for a class + * @param cls any a reference to a class or a className + * @param alias any Alias to use when referring to this class + */ + static setAlias( cls?:any, alias?:any ): any; + static setAlias( cls?:Ext.IClass, alias?:string ): Ext.IClassManager; + static setAlias( cls?:string, alias?:string ): Ext.IClassManager; + /** [Method] Creates a namespace and assign the value to the created object Ext ClassManager setNamespace MyCompany pkg Example + * @param name String + * @param value Object + */ + static setNamespace( name?:string, value?:any ): void; + } +} +declare module Ext { + export interface IComponent extends Ext.IAbstractComponent,Ext.util.IFloating { + /** [Config Option] (Boolean) true to use overflow:'auto' on the components layout element and show scroll bars automatically when necessary, false... */ + autoScroll?: bool; + /** [Config Option] (Number/String) Defines the column width inside column layout. ... */ + columnWidth?: any; + /** [Config Option] (Ext.util.Region/Ext.Element) A Region (or an element from which a Region measurement will be read) which is used to constrain the component. ... */ + constrainTo?: any; + /** [Config Option] (String) The default Ext.Element#getAlignToXY anchor position value for this menu relative to its element of origin. ... */ + defaultAlign?: string; + /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + floating?: bool; + /** [Config Option] (Boolean) When inside FormPanel, any component configured with formBind: true will be enabled/disabled depending on the validit... */ + formBind?: bool; + /** [Config Option] (String) Possible values are: * 'auto' to enable automatic horizontal scrollbar (overflow-x: 'auto'). ... */ + overflowX?: string; + /** [Config Option] (String) Possible values are: * 'auto' to enable automatic vertical scrollbar (overflow-y: 'auto'). ... */ + overflowY?: string; + /** [Config Option] ("north"/"south"/"east"/"west"/"center") Defines the region inside border layout. ... */ + region?: any; + /** [Config Option] (Boolean/Object) Specify as true to apply a Resizer to this Component after rendering. ... */ + resizable?: any; + /** [Config Option] (String) A valid Ext.resizer.Resizer handles config string. ... */ + resizeHandles?: string; + /** [Config Option] (Boolean) True to automatically call toFront when the show method is called on an already visible, floating component. ... */ + toFrontOnShow?: bool; + /** [Property] (Ext.Container) Only present for floating Components which were inserted as child items of Containers. ... */ + floatParent?: Ext.IContainer; + /** [Property] (Object) An object property which provides unified information as to which dimensions are scrollable based upon the autoScroll... */ + scrollFlags?: any; + /** [Property] (Ext.ZIndexManager) Only present for floating Components after they have been rendered. ... */ + zIndexManager?: Ext.IZIndexManager; + /** [Property] (Ext.Container) Only present for floating Components which were inserted as child items of Containers, and which have a floating Cont... */ + zIndexParent?: Ext.IContainer; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Invoked after the Component has been hidden + * @param callback Function + * @param scope Object + */ + afterHide?( callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Template method called after a Component has been positioned + * @param x Number + * @param y Number + */ + afterSetPosition?( x?:number, y?:number ): void; + /** [Method] Invoked after the Component is shown after onShow is called + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + afterShow?( animateTarget?:string, callback?:any, scope?:any ): void; + afterShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Invoked before the Component is shown */ + beforeShow?(): void; + /** [Method] Bubbles up the component container heirarchy calling the specified function with each component + * @param fn Function The function to call + * @param scope Object The scope of the function. Defaults to current node. + * @param args Array The args to call the function with. Defaults to passing the current component. + */ + bubble?( fn?:any, scope?:any, args?:any[] ): Ext.IComponent; + /** [Method] Cancel any deferred focus on this component */ + cancelFocus?(): void; + /** [Method] Center this Component in its container */ + center?(): Ext.IComponent; + /** [Method] Clone the current component using the original config values passed into this instance by default + * @param overrides Object A new config containing any properties to override in the cloned version. An id property can be passed on this object, otherwise one will be generated to avoid duplicates. + */ + cloneConfig?( overrides?:any ): Ext.IComponent; + /** [Method] Moves this floating Component into a constrain region + * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + */ + doConstrain?( constrainTo?:string ): void; + doConstrain?( constrainTo?:HTMLElement ): void; + doConstrain?( constrainTo?:Ext.IElement ): void; + doConstrain?( constrainTo?:Ext.util.IRegion ): void; + /** [Method] Find a container above this component at any level by a custom function + * @param fn Function The custom function to call with the arguments (container, this component). + */ + findParentBy?( fn?:any ): Ext.container.IContainer; + /** [Method] Find a container above this component at any level by xtype or class See also the up method + * @param xtype any The xtype string for a component, or the class of the component directly + */ + findParentByType?( xtype?:any ): any; + findParentByType?( xtype?:string ): Ext.container.IContainer; + findParentByType?( xtype?:Ext.IClass ): Ext.container.IContainer; + /** [Method] Try to focus this component + * @param selectText any If applicable, true to also select the text in this component + * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + */ + focus?( selectText?:any, delay?:any ): any; + focus?( selectText?:bool, delay?:bool ): Ext.IComponent; + focus?( selectText?:bool, delay?:number ): Ext.IComponent; + /** [Method] Implements an upward event bubbling policy */ + getBubbleTarget?(): void; + /** [Method] Retrieves the top level element representing this component */ + getEl?(): Ext.dom.IElement; + /** [Method] Retrieves the id of this component */ + getId?(): string; + /** [Method] Gets the current XY position of the component s underlying element + * @param local Boolean If true the element's left and top are returned instead of page XY. + */ + getPosition?( local?:bool ): number[]; + /** [Method] Used by ComponentQuery and the up method to find the owning Component in the linkage hierarchy */ + getRefOwner?(): void; + /** [Method] Gets the xtype for this component as registered with Ext ComponentManager */ + getXType?(): string; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event + * @param container Ext.container.IContainer Container which holds the component. + * @param pos Number Position at which the component was added. + */ + onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Invoked after the afterShow method is complete + * @param callback Function + * @param scope Object + */ + onShowComplete?( callback?:any, scope?:any ): void; + /** [Method] Scrolls this Component s target element by the passed delta values optionally animating + * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY any Either the y delta, or an animate flag or config object. + * @param animate any Animate flag/config object if the delta values were passed separately. + */ + scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): void; + /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th + * @param active Boolean True to activate the Component, false to deactivate it. + * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + */ + setActive?( active?:bool, newActive?:Ext.IComponent ): void; + /** [Method] Sets the overflow on the content element of the component + * @param scroll Boolean True to allow the Component to auto scroll. + */ + setAutoScroll?( scroll?:bool ): Ext.IComponent; + /** [Method] This method allows you to show or hide a LoadMask on top of this component + * @param load any True to show the default LoadMask, a config object that will be passed to the LoadMask constructor, or a message String to show. False to hide the current LoadMask. + * @param targetEl Boolean True to mask the targetEl of this Component instead of the this.el. For example, setting this to true on a Panel will cause only the body to be masked. + */ + setLoading?( load?:any, targetEl?:bool ): Ext.ILoadMask; + /** [Method] Sets the overflow x y on the content element of the component + * @param overflowX String The overflow-x value. + * @param overflowY String The overflow-y value. + */ + setOverflowXY?( overflowX?:string, overflowY?:string ): Ext.IComponent; + /** [Method] Sets the page XY position of the component + * @param x any The new x position or an array of [x,y]. + * @param y any The new y position. + * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + */ + setPagePosition?( x?:any, y?:any, animate?:any ): any; + setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; + setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the left and top of the component + * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. + * @param y Number The new top. + * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. + */ + setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Shows this Component rendering it first if autoRender or floating are true + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + show?( animateTarget?:any, callback?:any, scope?:any ): any; + show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Displays component at specific xy position + * @param x any The new x position or array of [x,y]. + * @param y any The new y position + * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + */ + showAt?( x?:any, y?:any, animate?:any ): any; + showAt?( x?:number, y?:number, animate?:any ): Ext.IComponent; + showAt?( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Shows this component by the specified Component or Element + * @param component any The Ext.Component or Ext.Element to show the component by. + * @param position any Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. + * @param offsets any Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + */ + showBy?( component?:any, position?:any, offsets?:any ): any; + showBy?( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; + showBy?( component?:Ext.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + /** [Method] Sends this Component to the back of lower z index than any other visible windows */ + toBack?(): Ext.IComponent; + /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag + * @param preventFocus Boolean Specify true to prevent the Component from being focused. + */ + toFront?( preventFocus?:bool ): Ext.IComponent; + /** [Method] Sets the current box measurements of the component s underlying element + * @param box Object An object in the format {x, y, width, height} + */ + updateBox?( box?:any ): Ext.IComponent; + } +} +declare module Ext { + export interface IComponentLoader extends Ext.IElementLoader { + /** [Config Option] (Boolean/Object) True or a Ext.LoadMask configuration to enable masking during loading. ... */ + loadMask?: any; + /** [Config Option] (Boolean) True to parse any inline script tags in the response. ... */ + scripts?: bool; + /** [Config Option] (Ext.Component/String) The target Ext.Component for the loader. ... */ + target?: any; + /** [Method] Set a Ext Component as the target of this loader + * @param target String The component to be the target of this loader. If a string is passed it will be looked up via its id. + */ + setTarget?( target?:string ): void; + setTarget?( target?:Ext.IComponent ): void; + } +} +declare module Ext { + export interface IComponentManager extends Ext.IAbstractManager { + } + export class ComponentManager { + /** [Method] Creates a new Component from the specified config object using the config object s xtype to determine the class to in + * @param config Object A configuration object for the Component you wish to create. + * @param defaultType String The xtype to use if the config object does not contain a xtype. (Optional if the config contains a xtype). + */ + static create( config?:any, defaultType?:string ): Ext.IComponent; + /** [Method] Registers a new item constructor keyed by a type key + * @param type String The mnemonic string by which the class may be looked up. + * @param cls Function The new instance class. + */ + static registerType( type?:string, cls?:any ): void; + } +} +declare module Ext { + export interface IComponentMgr extends Ext.IAbstractManager { + } + export class ComponentMgr { + /** [Method] Creates a new Component from the specified config object using the config object s xtype to determine the class to in + * @param config Object A configuration object for the Component you wish to create. + * @param defaultType String The xtype to use if the config object does not contain a xtype. (Optional if the config contains a xtype). + */ + static create( config?:any, defaultType?:string ): Ext.IComponent; + /** [Method] Registers a new item constructor keyed by a type key + * @param type String The mnemonic string by which the class may be looked up. + * @param cls Function The new instance class. + */ + static registerType( type?:string, cls?:any ): void; + } +} +declare module Ext { + export interface IComponentQuery extends Ext.IBase { + } + export class ComponentQuery { + /** [Method] Tests whether the passed Component matches the selector string + * @param component Ext.IComponent The Component to test + * @param selector String The selector string to test against. + */ + static is( component?:Ext.IComponent, selector?:string ): bool; + /** [Method] Returns an array of matched Components from within the passed root object + * @param selector String The selector string to filter returned Components + * @param root Ext.container.IContainer The Container within which to perform the query. If omitted, all Components within the document are included in the search. This parameter may also be an array of Components to filter according to the selector. + */ + static query( selector?:string, root?:Ext.container.IContainer ): Ext.IComponent[]; + } +} +declare module Ext.container { + export interface IAbstractContainer extends Ext.IComponent { + /** [Config Option] (String/Number) A string component id or the numeric index of the component that should be initially activated within the container's... */ + activeItem?: any; + /** [Config Option] (Boolean) If true the container will automatically destroy any contained component that is removed from it, else destruction mu... */ + autoDestroy?: bool; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String[]) An array of events that, when fired, should be bubbled to any parent container. ... */ + bubbleEvents?: string[]; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Object/Function) This option is a means of applying default settings to all added items whether added through the items config or via ... */ + defaults?: any; + /** [Config Option] (Boolean) True to move any component to the detachedBody when the component is removed from this container. ... */ + detachOnRemove?: bool; + /** [Config Option] (Object/Object[]) A single item, or an array of child Components to be added to this container Unless configured with a layout, a Cont... */ + items?: any; + /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + layout?: any; + /** [Config Option] (Ext.XTemplate/String/String[]) End Definitions An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Boolean) If true, suspend calls to doLayout. ... */ + suspendLayout?: bool; + /** [Method] Adds Component s to this Container + * @param component any Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + add?( component?:any ): Ext.IComponent[]; + /** [Method] Adds Component s to this Container + * @param component any Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + add?( component?:any ): Ext.IComponent; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components + * @param layout Ext.layout.container.IContainer + */ + afterLayout?( layout?:Ext.layout.container.IContainer ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified + * @param fn Function The function to call + * @param scope Object The scope of the function (defaults to current component) + * @param args Array The args to call the function with. The current component always passed as the last argument. + */ + cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector any An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Determines whether the passed Component is either an immediate child of this Container or whether it is a descendant + * @param comp Ext.IComponent The Component to test. + * @param deep Boolean Pass true to test for the Component being a descendant at any level. + */ + contains?( comp?:Ext.IComponent, deep?:bool ): bool; + /** [Method] Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): Ext.container.IAbstractContainer; + /** [Method] Manually force this container s layout to be recalculated */ + doLayout?(): Ext.container.IContainer; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector any An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; + /** [Method] Examines this container s items property and gets a direct child component of this container + * @param comp any This parameter may be any of the following: a String : representing the itemId or id of the child component. a Number : representing the position of the child component within the items property For additional information see Ext.util.MixedCollection.get. + */ + getComponent?( comp?:any ): any; + getComponent?( comp?:string ): Ext.IComponent; + getComponent?( comp?:number ): Ext.IComponent; + /** [Method] Returns the layout instance currently associated with this Container */ + getLayout?(): Ext.layout.container.IContainer; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + getRefItems?( deep?:any ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Inserts a Component into this Container at a specified index + * @param index Number The index at which the Component will be inserted into the Container's items collection + * @param component any The child Component to insert. Ext uses lazy rendering, and will only render the inserted Component should it become necessary. A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.enums.Widget. + */ + insert?( index?:number, component?:any ): Ext.IComponent; + /** [Method] Determines whether this Container is an ancestor of the passed Component + * @param possibleDescendant Ext.IComponent The Component to test for presence within this Container's subtree. + */ + isAncestor?( possibleDescendant?:Ext.IComponent ): void; + /** [Method] Moves a Component within the Container + * @param fromIdx Number The index the Component you wish to move is currently at. + * @param toIdx Number The new index for the Component. + */ + move?( fromIdx?:number, toIdx?:number ): Ext.IComponent; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] This method is invoked before adding a new child Component + * @param item Ext.IComponent + */ + onBeforeAdd?( item?:Ext.IComponent ): void; + /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need + * @param x Number The new x position. + * @param y Number The new y position. + */ + onPosition?( x?:number, y?:number ): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Allows addition of behavior to the resize operation + * @param width Object + * @param height Object + * @param oldWidth Object + * @param oldHeight Object + */ + onResize?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; + /** [Method] Removes a component from this container + * @param component any The component reference or id to remove. + * @param autoDestroy any True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + remove?( component?:any, autoDestroy?:any ): any; + remove?( component?:Ext.IComponent, autoDestroy?:bool ): Ext.IComponent; + remove?( component?:string, autoDestroy?:bool ): Ext.IComponent; + /** [Method] Removes all components from this container + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + removeAll?( autoDestroy?:bool ): Ext.IComponent[]; + } +} +declare module Ext.container { + export interface IButtonGroup extends Ext.panel.IPanel { + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Number) The columns configuration property passed to the configured layout manager. ... */ + columns?: number; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + frame?: bool; + /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + layout?: any; + /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + titleAlign?: string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private This method is invoked before adding a new child Component + * @param item Ext.IComponent + */ + onBeforeAdd?( item?:Ext.IComponent ): void; + } +} +declare module Ext { + export interface IButtonGroup extends Ext.panel.IPanel { + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Number) The columns configuration property passed to the configured layout manager. ... */ + columns?: number; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + frame?: bool; + /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + layout?: any; + /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + titleAlign?: string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private This method is invoked before adding a new child Component + * @param item Ext.IComponent + */ + onBeforeAdd?( item?:Ext.IComponent ): void; + } +} +declare module Ext.container { + export interface IContainer extends Ext.container.IAbstractContainer { + /** [Config Option] (Number/Object) Defines the anchoring size of container. ... */ + anchorSize?: any; + /** [Method] Return the immediate child Component in which the passed element is located + * @param el any The element to test (or ID of element). + * @param deep any If true, returns the deepest descendant Component which contains the passed element. + */ + getChildByElement?( el?:any, deep?:any ): any; + getChildByElement?( el?:Ext.IElement, deep?:bool ): Ext.IComponent; + getChildByElement?( el?:HTMLElement, deep?:bool ): Ext.IComponent; + getChildByElement?( el?:string, deep?:bool ): Ext.IComponent; + } +} +declare module Ext { + export interface IContainer extends Ext.container.IAbstractContainer { + /** [Config Option] (Number/Object) Defines the anchoring size of container. ... */ + anchorSize?: any; + /** [Method] Return the immediate child Component in which the passed element is located + * @param el any The element to test (or ID of element). + * @param deep any If true, returns the deepest descendant Component which contains the passed element. + */ + getChildByElement?( el?:any, deep?:any ): any; + getChildByElement?( el?:Ext.IElement, deep?:bool ): Ext.IComponent; + getChildByElement?( el?:HTMLElement, deep?:bool ): Ext.IComponent; + getChildByElement?( el?:string, deep?:bool ): Ext.IComponent; + } +} +declare module Ext.container { + export interface IDockingContainer extends Ext.IBase { + /** [Config Option] (Object) This object holds the default weights applied to dockedItems that have no weight. ... */ + defaultDockWeights?: any; + /** [Method] Adds docked item s to the container + * @param component any The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param pos Number The index at which the Component will be added + */ + addDocked?( component?:any, pos?:number ): Ext.IComponent[]; + /** [Method] Finds a docked component by id itemId or position + * @param comp any The id, itemId or position of the docked component (see getComponent for details) + */ + getDockedComponent?( comp?:any ): any; + getDockedComponent?( comp?:string ): Ext.IComponent; + getDockedComponent?( comp?:number ): Ext.IComponent; + /** [Method] Retrieves an array of all currently docked Components + * @param selector String A ComponentQuery selector string to filter the returned items. + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + getDockedItems?( selector?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Inserts docked item s to the panel at the indicated position + * @param pos Number The index at which the Component will be inserted + * @param component any The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + */ + insertDocked?( pos?:number, component?:any ): void; + /** [Method] Invoked after a docked item is added to the Panel + * @param component Ext.IComponent + */ + onDockedAdd?( component?:Ext.IComponent ): void; + /** [Method] Invoked after a docked item is removed from the Panel + * @param component Ext.IComponent + */ + onDockedRemove?( component?:Ext.IComponent ): void; + /** [Method] Removes the docked item from the panel + * @param item Ext.IComponent The Component to remove. + * @param autoDestroy Boolean Destroy the component after removal. + */ + removeDocked?( item?:Ext.IComponent, autoDestroy?:bool ): void; + } +} +declare module Ext.container { + export interface IMonitor extends Ext.IBase { + } +} +declare module Ext.container { + export interface IViewport extends Ext.container.IContainer { + /** [Property] (Boolean) true in this class to identify an object as an instantiated Viewport, or subclass thereof. ... */ + isViewport?: bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + } +} +declare module Ext { + export interface IViewport extends Ext.container.IContainer { + /** [Property] (Boolean) true in this class to identify an object as an instantiated Viewport, or subclass thereof. ... */ + isViewport?: bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + } +} +declare module Ext.data { + export interface IAbstractStore extends Ext.IBase,Ext.util.IObservable,Ext.util.ISortable { + /** [Config Option] (Boolean/Object) If data is not specified, and if autoLoad is true or an Object, this store's load method is automatically called afte... */ + autoLoad?: any; + /** [Config Option] (Boolean) True to automatically sync the Store with its Proxy after every edit to one of its Records. ... */ + autoSync?: bool; + /** [Config Option] (String) Sets the updating behavior based on batch synchronization. ... */ + batchUpdateMode?: string; + /** [Config Option] (Object[]) This may be used in place of specifying a model configuration. ... */ + fields?: Object[]; + /** [Config Option] (Boolean) If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + filterOnLoad?: bool; + /** [Config Option] (Object[]/Function[]) Array of Filters for this store. ... */ + filters?: any; + /** [Config Option] (String) Name of the Model associated with this store. ... */ + model?: string; + /** [Config Option] (String/Ext.data.proxy.Proxy/Object) The Proxy to use for this Store. ... */ + proxy?: any; + /** [Config Option] (Boolean) True to defer any filtering operation to the server. ... */ + remoteFilter?: bool; + /** [Config Option] (Boolean) True to defer any sorting operation to the server. ... */ + remoteSort?: bool; + /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + sortOnLoad?: bool; + /** [Config Option] (Boolean) Configure as true to have the filters saved when a client grid saves its state. ... */ + statefulFilters?: bool; + /** [Config Option] (String) Unique identifier for this store. ... */ + storeId?: string; + /** [Property] (String) The string type of the Proxy to create if none is specified. ... */ + defaultProxyType?: string; + /** [Property] (Boolean) True if the Store has already been destroyed. ... */ + isDestroyed?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Store, or subclass thereof. ... */ + isStore?: bool; + /** [Property] (Ext.data.Model[]) Temporary cache in which removed model instances are kept until successfully synchronised with a Proxy, at which poin... */ + removed?: Ext.data.IModel[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + generateComparator?(): void; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + getFirstSorter?(): Ext.util.ISorter; + /** [Method] Gets all records added or updated since the last commit */ + getModifiedRecords?(): Ext.data.IModel[]; + /** [Method] Returns all Model instances that are either currently a phantom e g */ + getNewRecords?(): Ext.data.IModel[]; + /** [Method] Returns the proxy currently attached to this proxy instance */ + getProxy?(): Ext.data.proxy.IProxy; + /** [Method] Returns any records that have been removed from the store but not yet destroyed on the proxy */ + getRemovedRecords?(): Ext.data.IModel[]; + /** [Method] Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy */ + getUpdatedRecords?(): Ext.data.IModel[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Performs initialization of this mixin */ + initSortable?(): void; + /** [Method] Returns true if the Store is currently performing a load operation */ + isLoading?(): bool; + /** [Method] Loads the Store using its configured proxy + * @param options Object config object. This is passed into the Operation object that is created and then sent to the proxy's Ext.data.proxy.Proxy.read function + */ + load?( options?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Reloads the store using the last options passed to the load method + * @param options Object A config object which contains options which may override the options passed to the previous load call. + */ + reload?( options?:any ): void; + /** [Method] Removes all records from the store */ + removeAll?(): void; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes automatically syncing the Store with its Proxy */ + resumeAutoSync?(): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the Store s Proxy by string config object or Proxy instance + * @param proxy any The new Proxy, which can be either a type string, a configuration object or an Ext.data.proxy.Proxy instance + */ + setProxy?( proxy?:any ): Ext.data.proxy.IProxy; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction any The overall direction to sort the data by. + */ + sort?( sorters?:any, direction?:any ): any; + sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; + sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Suspends automatically syncing the Store with its Proxy */ + suspendAutoSync?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Synchronizes the store with its proxy + * @param options Object Object containing one or more properties supported by the sync method (these get passed along to the underlying proxy's batch method): + */ + sync?( options?:any ): Ext.data.IStore; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IArrayStore extends Ext.data.IStore { + /** [Method] Loads an array of data straight into the Store + * @param data any Array of data to load. Any non-model instances will be cast into model instances first. + * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. + */ + loadData?( data?:any, append?:bool ): void; + } +} +declare module Ext.data.association { + export interface IAssociation extends Ext.IBase { + /** [Config Option] (String) The string name of the model that is being associated with. ... */ + associatedModel?: string; + /** [Config Option] (String) The name of the property in the data to read the association from. ... */ + associationKey?: string; + /** [Config Option] (String) The string name of the model that is being associated with. ... */ + model?: string; + /** [Config Option] (String) The string name of the model that owns the association. ... */ + ownerModel?: string; + /** [Config Option] (String) The name of the primary key on the associated model. ... */ + primaryKey?: string; + /** [Config Option] (Ext.data.reader.Reader) */ + reader?: Ext.data.reader.IReader; + /** [Property] (String) The name of the model is on the other end of the association (e.g. ... */ + associatedName?: string; + /** [Property] (String) */ + ownerName?: string; + /** [Method] Get a specialized reader for reading associated data */ + getReader?(): Ext.data.reader.IReader; + } +} +declare module Ext.data { + export interface IAssociation extends Ext.IBase { + /** [Config Option] (String) The string name of the model that is being associated with. ... */ + associatedModel?: string; + /** [Config Option] (String) The name of the property in the data to read the association from. ... */ + associationKey?: string; + /** [Config Option] (String) The string name of the model that is being associated with. ... */ + model?: string; + /** [Config Option] (String) The string name of the model that owns the association. ... */ + ownerModel?: string; + /** [Config Option] (String) The name of the primary key on the associated model. ... */ + primaryKey?: string; + /** [Config Option] (Ext.data.reader.Reader) */ + reader?: Ext.data.reader.IReader; + /** [Property] (String) The name of the model is on the other end of the association (e.g. ... */ + associatedName?: string; + /** [Property] (String) */ + ownerName?: string; + /** [Method] Get a specialized reader for reading associated data */ + getReader?(): Ext.data.reader.IReader; + } +} +declare module Ext.data.association { + export interface IBelongsTo extends Ext.data.association.IAssociation { + /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + getterName?: string; + /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + setterName?: string; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data { + export interface IBelongsToAssociation extends Ext.data.association.IAssociation { + /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + getterName?: string; + /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + setterName?: string; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data.association { + export interface IHasMany extends Ext.data.association.IAssociation { + /** [Config Option] (Boolean) True to automatically load the related store from a remote source when instantiated. ... */ + autoLoad?: bool; + /** [Config Option] (String) Optionally overrides the default filter that is set up on the associated Store. ... */ + filterProperty?: string; + /** [Config Option] (String) The name of the foreign key on the associated model that links it to the owner model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the function to create on the owner model to retrieve the child store. ... */ + name?: string; + /** [Config Option] (Object) Optional configuration object that will be passed to the generated Store. ... */ + storeConfig?: any; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data { + export interface IHasManyAssociation extends Ext.data.association.IAssociation { + /** [Config Option] (Boolean) True to automatically load the related store from a remote source when instantiated. ... */ + autoLoad?: bool; + /** [Config Option] (String) Optionally overrides the default filter that is set up on the associated Store. ... */ + filterProperty?: string; + /** [Config Option] (String) The name of the foreign key on the associated model that links it to the owner model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the function to create on the owner model to retrieve the child store. ... */ + name?: string; + /** [Config Option] (Object) Optional configuration object that will be passed to the generated Store. ... */ + storeConfig?: any; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data.association { + export interface IHasOne extends Ext.data.association.IAssociation { + /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + getterName?: string; + /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + setterName?: string; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data { + export interface IHasOneAssociation extends Ext.data.association.IAssociation { + /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + foreignKey?: string; + /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + getterName?: string; + /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + setterName?: string; + /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + type?: string; + } +} +declare module Ext.data { + export interface IBatch extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) True to immediately start processing the batch as soon as it is constructed (defaults to false) ... */ + autoStart?: bool; + /** [Config Option] (Boolean) True to pause the execution of the batch if any operation encounters an exception (defaults to false). ... */ + pauseOnException?: bool; + /** [Property] (Number) The index of the current operation being executed. ... */ + current?: number; + /** [Property] (Ext.data.Operation[]) Ordered array of operations that raised an exception during the most recent batch execution and did not successfully ... */ + exceptions?: Ext.data.IOperation[]; + /** [Property] (Boolean) True if this batch has encountered an exception. ... */ + hasException?: bool; + /** [Property] (Boolean) True if this batch has been executed completely. ... */ + isComplete?: bool; + /** [Property] (Boolean) True if the batch is currently running. ... */ + isRunning?: bool; + /** [Property] (Ext.data.Operation[]) */ + operations?: Ext.data.IOperation[]; + /** [Property] (Number) The total number of operations in this batch. ... */ + total?: number; + /** [Method] Adds a new operation to this batch at the end of the operations array + * @param operation Object The Operation object + */ + add?( operation?:any ): Ext.data.IBatch; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Pauses execution of the batch but does not cancel the current operation */ + pause?(): Ext.data.IBatch; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Kicks off execution of the batch continuing from the current operation */ + retry?(): Ext.data.IBatch; + /** [Method] Executes an operation by its numeric index in the operations array + * @param index Number The operation index to run + */ + runOperation?( index?:number ): Ext.data.IBatch; + /** [Method] Kicks off execution of the batch continuing from the next operation if the previous operation encountered an excepti + * @param index Object + */ + start?( index?:any ): Ext.data.IBatch; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IBufferStore extends Ext.data.IStore { + /** [Config Option] (Boolean) If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + filterOnLoad?: bool; + /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + sortOnLoad?: bool; + } +} +declare module Ext.data { + export interface IConnection extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) Whether this request should abort any pending requests. ... */ + autoAbort?: bool; + /** [Config Option] (Boolean) True if the response should be treated as binary data. ... */ + binary?: bool; + /** [Config Option] (Boolean) True to enable CORS support on the XHR object. ... */ + cors?: bool; + /** [Config Option] (Object) */ + defaultHeaders?: any; + /** [Config Option] (Boolean) True to add a unique cache-buster param to GET requests. ... */ + disableCaching?: bool; + /** [Config Option] (String) Change the parameter which is sent went disabling caching through a cache buster. ... */ + disableCachingParam?: string; + /** [Config Option] (Object) */ + extraParams?: any; + /** [Config Option] (String) The default HTTP method to be used for requests. ... */ + method?: string; + /** [Config Option] (Number) The timeout in milliseconds to be used for requests. ... */ + timeout?: number; + /** [Config Option] (Boolean) True to set withCredentials = true on the XHR object ... */ + withCredentials?: bool; + /** [Method] Aborts an active request + * @param request Object Defaults to the last request + */ + abort?( request?:any ): void; + /** [Method] Aborts all active requests */ + abortAll?(): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Determines whether this object has a request outstanding + * @param request Object Defaults to the last transaction + */ + isLoading?( request?:any ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Checks if the response status was successful + * @param status Number The status code + */ + parseStatus?( status?:number ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Sends an HTTP request to a remote server + * @param options Object An object which may contain the following properties: (The options object may also contain any other property which might be needed to perform postprocessing in a callback because it is passed to callback functions.) + */ + request?( options?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets various options such as the url params for the request + * @param options Object The initial options + * @param scope Object The scope to execute in + */ + setOptions?( options?:any, scope?:any ): any; + /** [Method] Template method for overriding method + * @param options Object + * @param method String + */ + setupMethod?( options?:any, method?:string ): string; + /** [Method] Template method for overriding params + * @param options Object + * @param params String + */ + setupParams?( options?:any, params?:string ): string; + /** [Method] Template method for overriding url + * @param options Object + * @param url String + */ + setupUrl?( options?:any, url?:string ): string; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Uploads a form using a hidden iframe + * @param form String The form to upload + * @param url String The url to post to + * @param params String Any extra parameters to pass + * @param options Object The initial options + */ + upload?( form?:string, url?:string, params?:string, options?:any ): void; + upload?( form?:HTMLElement, url?:string, params?:string, options?:any ): void; + upload?( form?:Ext.IElement, url?:string, params?:string, options?:any ): void; + } +} +declare module Ext.data { + export interface IDirectStore extends Ext.data.IStore { + } +} +declare module Ext.data { + export interface IErrors extends Ext.util.IMixedCollection { + /** [Method] Returns all of the errors for the given field + * @param fieldName String The field to get errors for + */ + getByField?( fieldName?:string ): Object[]; + /** [Method] Returns true if there are no errors in the collection */ + isValid?(): bool; + } +} +declare module Ext.data { + export interface IField extends Ext.IBase { + /** [Config Option] (Function) A function which converts the value provided by the Reader into an object that will be stored in the Model. ... */ + convert?: any; + /** [Config Option] (String) Serves as a default for the dateReadFormat and dateWriteFormat config options. ... */ + dateFormat?: string; + /** [Config Option] (String) Used when converting received data into a Date when the type is specified as "date". ... */ + dateReadFormat?: string; + /** [Config Option] (String) Used to provide a custom format when serializing dates with a Ext.data.writer.Writer. ... */ + dateWriteFormat?: string; + /** [Config Option] (Object) The default value used when the creating an instance from a raw data object, and the property referenced by the mappi... */ + defaultValue?: any; + /** [Config Option] (String/Number) (Optional) A path expression for use by the Ext.data.reader.Reader implementation that is creating the Model to extra... */ + mapping?: any; + /** [Config Option] (String) The name by which the field is referenced within the Model. ... */ + name?: string; + /** [Config Option] (Boolean) False to exclude this field from the Ext.data.Model.modified fields in a model. ... */ + persist?: bool; + /** [Config Option] (Function) A function which converts the Model's value for this Field into a form which can be used by whatever Writer is being ... */ + serialize?: any; + /** [Config Option] (String) Initial direction to sort ("ASC" or "DESC"). ... */ + sortDir?: string; + /** [Config Option] (Function/String) A function which converts a Field's value to a comparable value in order to ensure correct sort ordering. ... */ + sortType?: any; + /** [Config Option] (String/Object) The data type for automatic conversion from received data to the stored value if convert has not been specified. ... */ + type?: any; + /** [Config Option] (Boolean) Use when converting received data into a INT, FLOAT, BOOL or STRING type. ... */ + useNull?: bool; + } +} +declare module Ext.data.flash { + export interface IBinaryXhr extends Ext.IBase { + /** [Property] (number) The connection's simulated readyState. ... */ + readyState?: number; + /** [Property] (Array) */ + responseBytes?: any[]; + /** [Property] (number) Connection status code returned by flash or the server. ... */ + status?: number; + /** [Property] (String) Status text (if any) returned by flash or the server. ... */ + statusText?: string; + /** [Method] Abort this connection */ + abort?(): void; + /** [Method] As in XMLHttpRequest */ + getAllResponseHeaders?(): void; + /** [Method] As in XMLHttpRequest + * @param header Object + */ + getResponseHeader?( header?:any ): void; + /** [Method] As in XMLHttpRequest */ + onreadystatechange?(): void; + /** [Method] As in XMLHttpRequest + * @param method Object + * @param url Object + * @param async Object + * @param user Object + * @param password Object + */ + open?( method?:any, url?:any, async?:any, user?:any, password?:any ): void; + /** [Method] As in XMLHttpRequest + * @param mimeType Object + */ + overrideMimeType?( mimeType?:any ): void; + /** [Method] Initiate the request + * @param body Array an array of byte values to send. + */ + send?( body?:any[] ): void; + /** [Method] As in XMLHttpRequest + * @param header Object + * @param value Object + */ + setRequestHeader?( header?:any, value?:any ): void; + } +} +declare module Ext.data { + export interface IGroup extends Ext.util.IObservable { + } +} +declare module Ext.data { + export interface IIdGenerator extends Ext.IBase { + /** [Config Option] (String) The id by which to register a new instance. ... */ + id?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated IdGenerator, or subclass thereof. ... */ + isGenerator?: bool; + /** [Method] Generates and returns the next id */ + generate?(): string; + } +} +declare module Ext.data { + export interface IJsonP extends Ext.IBase { + } + export class JsonP { + /** [Method] Abort a request + * @param request any The request to abort + */ + static abort( request?:any ): void; + /** [Method] Makes a JSONP request + * @param options Object An object which may contain the following properties. Note that options will take priority over any defaults that are specified in the class. url : String The URL to request. params : Object (Optional)An object containing a series of key value pairs that will be sent along with the request. timeout : Number (Optional) See timeout callbackKey : String (Optional) See callbackKey callbackName : String (Optional) The function name to use for this request. By default this name will be auto-generated: Ext.data.JsonP.callback1, Ext.data.JsonP.callback2, etc. Setting this option to "my_name" will force the function name to be Ext.data.JsonP.my_name. Use this if you want deterministic behavior, but be careful - the callbackName should be different in each JsonP request that you make. disableCaching : Boolean (Optional) See disableCaching disableCachingParam : String (Optional) See disableCachingParam success : Function (Optional) A function to execute if the request succeeds. failure : Function (Optional) A function to execute if the request fails. callback : Function (Optional) A function to execute when the request completes, whether it is a success or failure. scope : Object (Optional)The scope in which to execute the callbacks: The "this" object for the callback function. Defaults to the browser window. + */ + static request( options?:any ): any; + } +} +declare module Ext.data { + export interface IJsonPStore extends Ext.data.IStore { + } +} +declare module Ext.data { + export interface IJsonStore extends Ext.data.IStore { + } +} +declare module Ext.data { + export interface IModel extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Object[]) */ + associations?: Object[]; + /** [Config Option] (String/Object/String[]/Object[]) */ + belongsTo?: any; + /** [Config Option] (String) The name of a property that is used for submitting this Model's unique client-side identifier to the server when mult... */ + clientIdProperty?: string; + /** [Config Option] (String) The string type of the default Model Proxy. ... */ + defaultProxyType?: string; + /** [Config Option] (Object[]/String[]) The fields for this model. ... */ + fields?: any; + /** [Config Option] (String/Object/String[]/Object[]) */ + hasMany?: any; + /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + idProperty?: any; + /** [Config Option] (String/Object) The id generator to use for this model. ... */ + idgen?: any; + /** [Config Option] (String) The name of the property on this Persistable object that its data is saved to. ... */ + persistenceProperty?: string; + /** [Config Option] (String/Object/Ext.data.proxy.Proxy) */ + proxy?: any; + /** [Config Option] (Object[]) */ + validations?: Object[]; + /** [Property] (Boolean) True if this Record has been modified. ... */ + dirty?: bool; + /** [Property] (Boolean) Internal flag used to track whether or not the model instance is currently being edited. ... */ + editing?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Model, or subclass thereof. ... */ + isModel?: bool; + /** [Property] (Object) */ + modified?: any; + /** [Property] (Boolean) True when the record does not yet exist in a server-side database (see setDirty). ... */ + phantom?: bool; + /** [Property] (Object) */ + raw?: any; + /** [Property] (Ext.data.Store) The Store to which this instance belongs. ... */ + store?: Ext.data.IStore; + /** [Property] (Ext.data.Store[]) */ + stores?: Ext.data.IStore[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Begins an edit */ + beginEdit?(): void; + /** [Method] Cancels all changes made in the current edit operation */ + cancelEdit?(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Usually called by the Ext data Store which owns the model instance + * @param silent Boolean Pass true to skip notification of the owning store of the change. + * @param modifiedFieldNames String[] Array of field names changed during sync with server if known. Omit or pass null if unknown. An empty array means that it is known that no fields were modified by the server's response. Defaults to false. + */ + commit?( silent?:bool, modifiedFieldNames?:string[] ): void; + /** [Method] Creates a copy clone of this Model instance + * @param id String A new id, defaults to the id of the instance being copied. See id. To generate a phantom instance with a new id use: var rec = record.copy(); // clone the record Ext.data.Model.id(rec); // automatically generate a unique sequential id + */ + copy?( id?:string ): Ext.data.IModel; + /** [Method] Destroys the model using the configured proxy + * @param options Object Options to pass to the proxy. Config object for Ext.data.Operation. + */ + destroy?( options?:any ): Ext.data.IModel; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Ends an edit + * @param silent Boolean True to not notify the store of the change + * @param modifiedFieldNames String[] Array of field names changed during edit. + */ + endEdit?( silent?:bool, modifiedFieldNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the value of the given field + * @param fieldName String The field to fetch the value for + */ + get?( fieldName?:string ): any; + /** [Method] Gets all of the data from this Models loaded associations */ + getAssociatedData?(): any; + /** [Method] Gets a hash of only the fields that have been modified since this Model was created or commited */ + getChanges?(): any; + /** [Method] Gets all values for each field in this model and returns an object containing the current data + * @param includeAssociated Boolean True to also include associated data. Defaults to false. + */ + getData?( includeAssociated?:bool ): any; + /** [Method] Returns the unique ID allocated to this model instance as defined by idProperty */ + getId?(): number; + /** [Method] Returns the unique ID allocated to this model instance as defined by idProperty */ + getId?(): string; + /** [Method] Returns the configured Proxy for this Model */ + getProxy?(): Ext.data.proxy.IProxy; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Returns true if the passed field name has been modified since the load or last commit + * @param fieldName String Ext.data.Field.name + */ + isModified?( fieldName?:string ): bool; + /** [Method] Checks if the model is valid */ + isValid?(): bool; + /** [Method] Tells this model instance that it has been added to a store + * @param store Ext.data.IStore The store to which this model has been added. + */ + join?( store?:Ext.data.IStore ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Usually called by the Ext data Store to which this model instance has been joined + * @param silent Boolean True to skip notification of the owning store of the change. Defaults to false. + */ + reject?( silent?:bool ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Saves the model instance using the configured proxy + * @param options Object Options to pass to the proxy. Config object for Ext.data.Operation. + */ + save?( options?:any ): Ext.data.IModel; + /** [Method] Sets the given field to the given value marks the instance as dirty + * @param fieldName any The field to set, or an object containing key/value pairs + * @param newValue Object The value to set + */ + set?( fieldName?:any, newValue?:any ): string[]; + /** [Method] Marks this Record as dirty */ + setDirty?(): void; + /** [Method] Sets the model instance s id field to the given id + * @param id Number The new id + */ + setId?( id?:number ): void; + setId?( id?:string ): void; + /** [Method] Sets the Proxy to use for this model + * @param proxy any The proxy + */ + setProxy?( proxy?:any ): Ext.data.proxy.IProxy; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Tells this model instance that it has been removed from the store + * @param store Ext.data.IStore The store from which this model has been removed. + */ + unjoin?( store?:Ext.data.IStore ): void; + /** [Method] Validates the current data against all of its configured validations */ + validate?(): Ext.data.IErrors; + } +} +declare module Ext.data { + export interface IRecord extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Object[]) */ + associations?: Object[]; + /** [Config Option] (String/Object/String[]/Object[]) */ + belongsTo?: any; + /** [Config Option] (String) The name of a property that is used for submitting this Model's unique client-side identifier to the server when mult... */ + clientIdProperty?: string; + /** [Config Option] (String) The string type of the default Model Proxy. ... */ + defaultProxyType?: string; + /** [Config Option] (Object[]/String[]) The fields for this model. ... */ + fields?: any; + /** [Config Option] (String/Object/String[]/Object[]) */ + hasMany?: any; + /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + idProperty?: any; + /** [Config Option] (String/Object) The id generator to use for this model. ... */ + idgen?: any; + /** [Config Option] (String) The name of the property on this Persistable object that its data is saved to. ... */ + persistenceProperty?: string; + /** [Config Option] (String/Object/Ext.data.proxy.Proxy) */ + proxy?: any; + /** [Config Option] (Object[]) */ + validations?: Object[]; + /** [Property] (Boolean) True if this Record has been modified. ... */ + dirty?: bool; + /** [Property] (Boolean) Internal flag used to track whether or not the model instance is currently being edited. ... */ + editing?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Model, or subclass thereof. ... */ + isModel?: bool; + /** [Property] (Object) */ + modified?: any; + /** [Property] (Boolean) True when the record does not yet exist in a server-side database (see setDirty). ... */ + phantom?: bool; + /** [Property] (Object) */ + raw?: any; + /** [Property] (Ext.data.Store) The Store to which this instance belongs. ... */ + store?: Ext.data.IStore; + /** [Property] (Ext.data.Store[]) */ + stores?: Ext.data.IStore[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Begins an edit */ + beginEdit?(): void; + /** [Method] Cancels all changes made in the current edit operation */ + cancelEdit?(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Usually called by the Ext data Store which owns the model instance + * @param silent Boolean Pass true to skip notification of the owning store of the change. + * @param modifiedFieldNames String[] Array of field names changed during sync with server if known. Omit or pass null if unknown. An empty array means that it is known that no fields were modified by the server's response. Defaults to false. + */ + commit?( silent?:bool, modifiedFieldNames?:string[] ): void; + /** [Method] Creates a copy clone of this Model instance + * @param id String A new id, defaults to the id of the instance being copied. See id. To generate a phantom instance with a new id use: var rec = record.copy(); // clone the record Ext.data.Model.id(rec); // automatically generate a unique sequential id + */ + copy?( id?:string ): Ext.data.IModel; + /** [Method] Destroys the model using the configured proxy + * @param options Object Options to pass to the proxy. Config object for Ext.data.Operation. + */ + destroy?( options?:any ): Ext.data.IModel; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Ends an edit + * @param silent Boolean True to not notify the store of the change + * @param modifiedFieldNames String[] Array of field names changed during edit. + */ + endEdit?( silent?:bool, modifiedFieldNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the value of the given field + * @param fieldName String The field to fetch the value for + */ + get?( fieldName?:string ): any; + /** [Method] Gets all of the data from this Models loaded associations */ + getAssociatedData?(): any; + /** [Method] Gets a hash of only the fields that have been modified since this Model was created or commited */ + getChanges?(): any; + /** [Method] Gets all values for each field in this model and returns an object containing the current data + * @param includeAssociated Boolean True to also include associated data. Defaults to false. + */ + getData?( includeAssociated?:bool ): any; + /** [Method] Returns the unique ID allocated to this model instance as defined by idProperty */ + getId?(): number; + /** [Method] Returns the unique ID allocated to this model instance as defined by idProperty */ + getId?(): string; + /** [Method] Returns the configured Proxy for this Model */ + getProxy?(): Ext.data.proxy.IProxy; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Returns true if the passed field name has been modified since the load or last commit + * @param fieldName String Ext.data.Field.name + */ + isModified?( fieldName?:string ): bool; + /** [Method] Checks if the model is valid */ + isValid?(): bool; + /** [Method] Tells this model instance that it has been added to a store + * @param store Ext.data.IStore The store to which this model has been added. + */ + join?( store?:Ext.data.IStore ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Usually called by the Ext data Store to which this model instance has been joined + * @param silent Boolean True to skip notification of the owning store of the change. Defaults to false. + */ + reject?( silent?:bool ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Saves the model instance using the configured proxy + * @param options Object Options to pass to the proxy. Config object for Ext.data.Operation. + */ + save?( options?:any ): Ext.data.IModel; + /** [Method] Sets the given field to the given value marks the instance as dirty + * @param fieldName any The field to set, or an object containing key/value pairs + * @param newValue Object The value to set + */ + set?( fieldName?:any, newValue?:any ): string[]; + /** [Method] Marks this Record as dirty */ + setDirty?(): void; + /** [Method] Sets the model instance s id field to the given id + * @param id Number The new id + */ + setId?( id?:number ): void; + setId?( id?:string ): void; + /** [Method] Sets the Proxy to use for this model + * @param proxy any The proxy + */ + setProxy?( proxy?:any ): Ext.data.proxy.IProxy; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Tells this model instance that it has been removed from the store + * @param store Ext.data.IStore The store from which this model has been removed. + */ + unjoin?( store?:Ext.data.IStore ): void; + /** [Method] Validates the current data against all of its configured validations */ + validate?(): Ext.data.IErrors; + } +} +declare module Ext.data { + export interface INodeInterface extends Ext.IBase { + /** [Config Option] (Boolean) Set to false to deny dragging of this node. ... */ + allowDrag?: bool; + /** [Config Option] (Boolean) Set to false to deny dropping on this node. ... */ + allowDrop?: bool; + /** [Config Option] (Boolean) Set to true or false to show a checkbox alongside this node. ... */ + checked?: bool; + /** [Config Option] (Ext.data.NodeInterface[]) */ + children?: Ext.data.INodeInterface[]; + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (Number) The number of parents this node has. ... */ + depth?: number; + /** [Config Option] (Boolean) Set to true to allow for expanding/collapsing of this node. ... */ + expandable?: bool; + /** [Config Option] (Boolean) True if the node is expanded. ... */ + expanded?: bool; + /** [Config Option] (String) */ + href?: string; + /** [Config Option] (String) Target for link. ... */ + hrefTarget?: string; + /** [Config Option] (String) */ + icon?: string; + /** [Config Option] (String) */ + iconCls?: string; + /** [Config Option] (Number) The position of the node inside its parent. ... */ + index?: number; + /** [Config Option] (Boolean) */ + isFirst?: bool; + /** [Config Option] (Boolean) */ + isLast?: bool; + /** [Config Option] (Boolean) Set to true to indicate that this child can have no children. ... */ + leaf?: bool; + /** [Config Option] (Boolean) True if the node has finished loading. ... */ + loaded?: bool; + /** [Config Option] (Boolean) True if the node is currently loading. ... */ + loading?: bool; + /** [Config Option] (String) */ + parentId?: string; + /** [Config Option] (Number) */ + qshowDelay?: number; + /** [Config Option] (String) */ + qtip?: string; + /** [Config Option] (String) */ + qtitle?: string; + /** [Config Option] (Boolean) */ + root?: bool; + /** [Config Option] (String) */ + text?: string; + /** [Property] (Ext.data.NodeInterface[]) An array of this nodes children. ... */ + childNodes?: Ext.data.INodeInterface[]; + /** [Property] (Ext.data.NodeInterface) A reference to this node's first child node. ... */ + firstChild?: Ext.data.INodeInterface; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Node, or subclass thereof. ... */ + isNode?: bool; + /** [Property] (Ext.data.NodeInterface) A reference to this node's last child node. ... */ + lastChild?: Ext.data.INodeInterface; + /** [Property] (Ext.data.NodeInterface) A reference to this node's next sibling node. ... */ + nextSibling?: Ext.data.INodeInterface; + /** [Property] (Ext.data.NodeInterface) A reference to this node's parent node. ... */ + parentNode?: Ext.data.INodeInterface; + /** [Property] (Ext.data.NodeInterface) A reference to this node's previous sibling node. ... */ + previousSibling?: Ext.data.INodeInterface; + /** [Method] Inserts node s as the last child node of this node + * @param node any The node or Array of nodes to append + */ + appendChild?( node?:any ): any; + appendChild?( node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; + appendChild?( node?:Ext.data.INodeInterface[] ): Ext.data.INodeInterface; + /** [Method] Bubbles up the tree from this node calling the specified function with each node + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Node. + * @param args Array The args to call the function with. Defaults to passing the current Node. + */ + bubble?( fn?:any, scope?:any, args?:any[] ): void; + /** [Method] Cascades down the tree from this node calling the specified function with each node + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Node. + * @param args Array The args to call the function with. Defaults to passing the current Node. + */ + cascadeBy?( fn?:any, scope?:any, args?:any[] ): void; + /** [Method] Collapse this node + * @param recursive Boolean True to recursively collapse all the children + * @param callback Function The function to execute once the collapse completes + * @param scope Object The scope to run the callback in + */ + collapse?( recursive?:bool, callback?:any, scope?:any ): void; + /** [Method] Collapse all the children of this node + * @param recursive Function True to recursively collapse all the children + * @param callback Function The function to execute once all the children are collapsed + * @param scope Object The scope to run the callback in + */ + collapseChildren?( recursive?:any, callback?:any, scope?:any ): void; + /** [Method] Returns true if this node is an ancestor at any point of the passed node + * @param node Ext.data.INodeInterface + */ + contains?( node?:Ext.data.INodeInterface ): bool; + /** [Method] Creates a copy clone of this Node + * @param id String A new id, defaults to this Node's id. + * @param deep Boolean True to recursively copy all child Nodes into the new Node. False to copy without child Nodes. + */ + copy?( id?:string, deep?:bool ): Ext.data.INodeInterface; + /** [Method] Ensures that the passed object is an instance of a Record with the NodeInterface applied + * @param node Object + */ + createNode?( node?:any ): Ext.data.INodeInterface; + /** [Method] Destroys the node + * @param silent Object + */ + destroy?( silent?:any ): void; + /** [Method] Interates the child nodes of this node calling the specified function with each node + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Node in iteration. + * @param args Array The args to call the function with. Defaults to passing the current Node. + */ + eachChild?( fn?:any, scope?:any, args?:any[] ): void; + /** [Method] Expand this node + * @param recursive Boolean True to recursively expand all the children + * @param callback Function The function to execute once the expand completes + * @param scope Object The scope to run the callback in + */ + expand?( recursive?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand all the children of this node + * @param recursive Boolean True to recursively expand all the children + * @param callback Function The function to execute once all the children are expanded + * @param scope Object The scope to run the callback in + */ + expandChildren?( recursive?:bool, callback?:any, scope?:any ): void; + /** [Method] Finds the first child that has the attribute with the specified value + * @param attribute String The attribute name + * @param value Object The value to search for + * @param deep Boolean True to search through nodes deeper than the immediate children + */ + findChild?( attribute?:string, value?:any, deep?:bool ): Ext.data.INodeInterface; + /** [Method] Finds the first child by a custom function + * @param fn Function A function which must return true if the passed Node is the required Node. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Node being tested. + * @param deep Boolean True to search through nodes deeper than the immediate children + */ + findChildBy?( fn?:any, scope?:any, deep?:bool ): Ext.data.INodeInterface; + /** [Method] Returns the child node at the specified index + * @param index Number + */ + getChildAt?( index?:number ): Ext.data.INodeInterface; + /** [Method] Returns depth of this node the root node has a depth of 0 */ + getDepth?(): number; + /** [Method] Returns the tree this node is in */ + getOwnerTree?(): Ext.tree.IPanel; + /** [Method] Gets the hierarchical path from the root of the current node + * @param field String The field to construct the path from. Defaults to the model idProperty. + * @param separator String A separator to use. + */ + getPath?( field?:string, separator?:string ): string; + /** [Method] Returns true if this node has one or more child nodes else false */ + hasChildNodes?(): bool; + /** [Method] Returns the index of a child node + * @param node Ext.data.INodeInterface + */ + indexOf?( node?:Ext.data.INodeInterface ): number; + /** [Method] Returns the index of a child node that matches the id + * @param id String The id of the node to find + */ + indexOfId?( id?:string ): number; + /** [Method] Inserts the first node before the second node in this nodes childNodes collection + * @param node Ext.data.INodeInterface The node to insert + * @param refNode Ext.data.INodeInterface The node to insert before (if null the node is appended) + */ + insertBefore?( node?:Ext.data.INodeInterface, refNode?:Ext.data.INodeInterface ): Ext.data.INodeInterface; + /** [Method] Inserts a node into this node + * @param index Number The zero-based index to insert the node at + * @param node Ext.data.INodeInterface The node to insert + */ + insertChild?( index?:number, node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; + /** [Method] Returns true if the passed node is an ancestor at any point of this node + * @param node Ext.data.INodeInterface + */ + isAncestor?( node?:Ext.data.INodeInterface ): bool; + /** [Method] Returns true if this node has one or more child nodes or if the expandable node attribute is explicitly specified as */ + isExpandable?(): bool; + /** [Method] Returns true if this node is expaned */ + isExpanded?(): bool; + /** [Method] Returns true if this node is a leaf */ + isLeaf?(): bool; + /** [Method] Returns true if this node is loaded */ + isLoaded?(): bool; + /** [Method] Returns true if this node is loading */ + isLoading?(): bool; + /** [Method] Returns true if this node is the root node */ + isRoot?(): bool; + /** [Method] Returns true if this node is visible */ + isVisible?(): bool; + /** [Method] Removes this node from its parent + * @param destroy Boolean True to destroy the node upon removal. + */ + remove?( destroy?:bool ): Ext.data.INodeInterface; + /** [Method] Removes all child nodes from this node + * @param destroy Boolean True to destroy the node upon removal. + */ + removeAll?( destroy?:bool ): Ext.data.INodeInterface; + /** [Method] Removes a child node from this node + * @param node Ext.data.INodeInterface The node to remove + * @param destroy Boolean True to destroy the node upon removal. + */ + removeChild?( node?:Ext.data.INodeInterface, destroy?:bool ): Ext.data.INodeInterface; + /** [Method] Replaces one child node in this node with another + * @param newChild Ext.data.INodeInterface The replacement node + * @param oldChild Ext.data.INodeInterface The node to replace + */ + replaceChild?( newChild?:Ext.data.INodeInterface, oldChild?:Ext.data.INodeInterface ): Ext.data.INodeInterface; + /** [Method] Creates an object representation of this node including its children */ + serialize?(): void; + /** [Method] Sorts this nodes children using the supplied sort function + * @param fn Function A function which, when passed two Nodes, returns -1, 0 or 1 depending upon required sort order. + * @param recursive Boolean True to apply this sort recursively + * @param suppressEvent Boolean True to not fire a sort event. + */ + sort?( fn?:any, recursive?:bool, suppressEvent?:bool ): void; + /** [Method] Updates general data of this node like isFirst isLast depth + * @param commit Boolean + * @param info Object The info to update. May contain any of the following + */ + updateInfo?( commit?:bool, info?:any ): void; + } +} +declare module Ext.data { + export interface INodeStore extends Ext.data.IStore { + /** [Config Option] (Ext.data.Model) The Record you want to bind this Store to. ... */ + node?: Ext.data.IModel; + /** [Config Option] (Boolean) Set this to true if you want this NodeStore to represent all the descendents of the node in its flat data collection. ... */ + recursive?: bool; + /** [Config Option] (Boolean) False to not include the root node in this Stores collection. ... */ + rootVisible?: bool; + /** [Config Option] (Ext.data.TreeStore) */ + treeStore?: Ext.data.ITreeStore; + /** [Property] (Number) Recursion level counter. ... */ + isExpandingOrCollapsing?: number; + /** [Property] (Boolean) true in this class to identify an object as an instantiated NodeStore, or subclass thereof. ... */ + isNodeStore?: bool; + /** [Method] NodeStores are never buffered or paged */ + getTotalCount?(): number; + } +} +declare module Ext.data { + export interface IOperation extends Ext.IBase { + /** [Config Option] (String) The action being performed by this Operation. ... */ + action?: string; + /** [Config Option] (Ext.data.Batch) */ + batch?: Ext.data.IBatch; + /** [Config Option] (Function) Function to execute when operation completed. ... */ + callback?: any; + /** [Config Option] (Ext.util.Filter[]) Optional array of filter objects. ... */ + filters?: Ext.util.IFilter[]; + /** [Config Option] (Ext.util.Grouper[]) Optional grouping configuration. ... */ + groupers?: Ext.util.IGrouper[]; + /** [Config Option] (Number) The number of records to load. ... */ + limit?: number; + /** [Config Option] (Object) */ + params?: any; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (Ext.util.Sorter[]) Optional array of sorter objects. ... */ + sorters?: Ext.util.ISorter[]; + /** [Config Option] (Number) */ + start?: number; + /** [Config Option] (Boolean) True if this Operation is to be executed synchronously. ... */ + synchronous?: bool; + /** [Property] (RegExp) The RegExp used to categorize actions that require record commits. ... */ + actionCommitRecordsRe?: RegExp; + /** [Property] (RegExp) The RegExp used to categorize actions that skip local record synchronization. ... */ + actionSkipSyncRe?: RegExp; + /** [Method] Checks whether this operation should cause writing to occur */ + allowWrite?(): bool; + /** [Method] This method is called to commit data to this instance s records given the records in the server response + * @param serverRecords Ext.data.IModel[] An array of Ext.data.Model objects returned by the server. + */ + commitRecords?( serverRecords?:Ext.data.IModel[] ): void; + /** [Method] Returns the error string or object that was set using setException */ + getError?(): any; + /** [Method] Returns the records associated with this operation */ + getRecords?(): Ext.data.IModel[]; + /** [Method] Returns the ResultSet object if set by the Proxy */ + getResultSet?(): Ext.data.IResultSet; + /** [Method] Returns true if this Operation encountered an exception see also getError */ + hasException?(): bool; + /** [Method] Returns true if the Operation has been completed */ + isComplete?(): bool; + /** [Method] Returns true if the Operation has been started but has not yet completed */ + isRunning?(): bool; + /** [Method] Returns true if the Operation has been started */ + isStarted?(): bool; + /** [Method] Marks the Operation as completed */ + setCompleted?(): void; + /** [Method] Marks the Operation as having experienced an exception + * @param error any error string/object + */ + setException?( error?:any ): void; + /** [Method] Marks the Operation as started */ + setStarted?(): void; + /** [Method] Marks the Operation as successful */ + setSuccessful?(): void; + /** [Method] Returns true if the Operation has completed and was successful */ + wasSuccessful?(): bool; + } +} +declare module Ext.data.proxy { + export interface IAjax extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) True to request binary data from the server. ... */ + binary?: bool; + /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ + headers?: any; + /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + actionMethods?: any; + /** [Method] Returns the HTTP method name for a given request + * @param request Ext.data.IRequest The request object + */ + getMethod?( request?:Ext.data.IRequest ): string; + } +} +declare module Ext.data { + export interface IAjaxProxy extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) True to request binary data from the server. ... */ + binary?: bool; + /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ + headers?: any; + /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + actionMethods?: any; + /** [Method] Returns the HTTP method name for a given request + * @param request Ext.data.IRequest The request object + */ + getMethod?( request?:Ext.data.IRequest ): string; + } +} +declare module Ext.data { + export interface IHttpProxy extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) True to request binary data from the server. ... */ + binary?: bool; + /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ + headers?: any; + /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + actionMethods?: any; + /** [Method] Returns the HTTP method name for a given request + * @param request Ext.data.IRequest The request object + */ + getMethod?( request?:Ext.data.IRequest ): string; + } +} +declare module Ext.data.proxy { + export interface IClient extends Ext.data.proxy.IProxy { + /** [Property] (Boolean) true in this class to identify that requests made on this proxy are performed synchronously ... */ + isSynchronous?: bool; + /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ + clear?(): void; + } +} +declare module Ext.data { + export interface IClientProxy extends Ext.data.proxy.IProxy { + /** [Property] (Boolean) true in this class to identify that requests made on this proxy are performed synchronously ... */ + isSynchronous?: bool; + /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ + clear?(): void; + } +} +declare module Ext.data.proxy { + export interface IDirect extends Ext.data.proxy.IServer { + /** [Config Option] (Object) The same as Ext.data.proxy.Server.api, however instead of providing urls, you should provide a direct function call. ... */ + api?: any; + /** [Config Option] (Function/String) Function to call when executing a request. ... */ + directFn?: any; + /** [Config Option] (Object) Extra parameters that will be included on every read request. ... */ + extraParams?: any; + /** [Config Option] (String/String[]) Defaults to undefined. ... */ + paramOrder?: any; + /** [Config Option] (Boolean) Send parameters as a collection of named arguments. ... */ + paramsAsHash?: bool; + /** [Method] inherit docs Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest + * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param callback Function The callback function to call when the Operation has completed + * @param scope Object The scope in which to execute the callback + */ + doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit docs Template method to allow subclasses to specify how to get the response for the reader + * @param response Object The server response + */ + extractResponseData?( response?:any ): any; + } +} +declare module Ext.data { + export interface IDirectProxy extends Ext.data.proxy.IServer { + /** [Config Option] (Object) The same as Ext.data.proxy.Server.api, however instead of providing urls, you should provide a direct function call. ... */ + api?: any; + /** [Config Option] (Function/String) Function to call when executing a request. ... */ + directFn?: any; + /** [Config Option] (Object) Extra parameters that will be included on every read request. ... */ + extraParams?: any; + /** [Config Option] (String/String[]) Defaults to undefined. ... */ + paramOrder?: any; + /** [Config Option] (Boolean) Send parameters as a collection of named arguments. ... */ + paramsAsHash?: bool; + /** [Method] inherit docs Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest + * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param callback Function The callback function to call when the Operation has completed + * @param scope Object The scope in which to execute the callback + */ + doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit docs Template method to allow subclasses to specify how to get the response for the reader + * @param response Object The server response + */ + extractResponseData?( response?:any ): any; + } +} +declare module Ext.data.proxy { + export interface IJsonP extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) True to automatically append the request's params to the generated url. ... */ + autoAppendParams?: bool; + /** [Config Option] (String) See Ext.data.JsonP.callbackKey. ... */ + callbackKey?: string; + /** [Config Option] (String) The HTTP parameter name to use when passing records to the server and the Json writer is not configured to encode rec... */ + recordParam?: string; + /** [Method] Aborts the current server request if one is currently running */ + abort?(): void; + /** [Method] Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] Encodes an array of records into a value suitable to be added to the request params as the recordParam parameter + * @param records Ext.data.IModel[] The records array + */ + encodeRecords?( records?:Ext.data.IModel[] ): any[]; + } +} +declare module Ext.data { + export interface IScriptTagProxy extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) True to automatically append the request's params to the generated url. ... */ + autoAppendParams?: bool; + /** [Config Option] (String) See Ext.data.JsonP.callbackKey. ... */ + callbackKey?: string; + /** [Config Option] (String) The HTTP parameter name to use when passing records to the server and the Json writer is not configured to encode rec... */ + recordParam?: string; + /** [Method] Aborts the current server request if one is currently running */ + abort?(): void; + /** [Method] Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] Encodes an array of records into a value suitable to be added to the request params as the recordParam parameter + * @param records Ext.data.IModel[] The records array + */ + encodeRecords?( records?:Ext.data.IModel[] ): any[]; + } +} +declare module Ext.data.proxy { + export interface ILocalStorage extends Ext.data.proxy.IWebStorage { + } +} +declare module Ext.data { + export interface ILocalStorageProxy extends Ext.data.proxy.IWebStorage { + } +} +declare module Ext.data.proxy { + export interface IMemory extends Ext.data.proxy.IClient { + /** [Config Option] (Object) */ + data?: any; + /** [Config Option] (Boolean) Configure as true to enable this MemoryProxy to honour a read operation's start and limit options. ... */ + enablePaging?: bool; + /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ + clear?(): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Reads data from the configured data object + * @param operation Ext.data.IOperation The read Operation + * @param callback Function The callback to call when reading has completed + * @param scope Object The scope to call the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IMemoryProxy extends Ext.data.proxy.IClient { + /** [Config Option] (Object) */ + data?: any; + /** [Config Option] (Boolean) Configure as true to enable this MemoryProxy to honour a read operation's start and limit options. ... */ + enablePaging?: bool; + /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ + clear?(): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Reads data from the configured data object + * @param operation Ext.data.IOperation The read Operation + * @param callback Function The callback to call when reading has completed + * @param scope Object The scope to call the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data.proxy { + export interface IProxy extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + batchActions?: bool; + /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + batchOrder?: string; + /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + model?: any; + /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + reader?: any; + /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + writer?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + isProxy?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs a batch of Operations in the order specified by batchOrder + * @param options Object Object containing one or more properties supported by the batch method: + */ + batch?( options?:any ): Ext.data.IBatch; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Performs the given create operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the model attached to this Proxy */ + getModel?(): Ext.data.IModel; + /** [Method] Returns the reader currently attached to this proxy instance */ + getReader?(): Ext.data.reader.IReader; + /** [Method] Returns the writer currently attached to this proxy instance */ + getWriter?(): Ext.data.writer.IWriter; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the model associated with this proxy + * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param setOnStore Boolean Sets the new model on the associated Store, if one is present + */ + setModel?( model?:string, setOnStore?:bool ): void; + setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; + /** [Method] Sets the Proxy s Reader by string config object or Reader instance + * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + */ + setReader?( reader?:any ): Ext.data.reader.IReader; + /** [Method] Sets the Proxy s Writer by string config object or Writer instance + * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + */ + setWriter?( writer?:any ): Ext.data.writer.IWriter; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IDataProxy extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + batchActions?: bool; + /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + batchOrder?: string; + /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + model?: any; + /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + reader?: any; + /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + writer?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + isProxy?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs a batch of Operations in the order specified by batchOrder + * @param options Object Object containing one or more properties supported by the batch method: + */ + batch?( options?:any ): Ext.data.IBatch; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Performs the given create operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the model attached to this Proxy */ + getModel?(): Ext.data.IModel; + /** [Method] Returns the reader currently attached to this proxy instance */ + getReader?(): Ext.data.reader.IReader; + /** [Method] Returns the writer currently attached to this proxy instance */ + getWriter?(): Ext.data.writer.IWriter; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the model associated with this proxy + * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param setOnStore Boolean Sets the new model on the associated Store, if one is present + */ + setModel?( model?:string, setOnStore?:bool ): void; + setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; + /** [Method] Sets the Proxy s Reader by string config object or Reader instance + * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + */ + setReader?( reader?:any ): Ext.data.reader.IReader; + /** [Method] Sets the Proxy s Writer by string config object or Writer instance + * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + */ + setWriter?( writer?:any ): Ext.data.writer.IWriter; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IProxy extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + batchActions?: bool; + /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + batchOrder?: string; + /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + model?: any; + /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + reader?: any; + /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + writer?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + isProxy?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs a batch of Operations in the order specified by batchOrder + * @param options Object Object containing one or more properties supported by the batch method: + */ + batch?( options?:any ): Ext.data.IBatch; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Performs the given create operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the model attached to this Proxy */ + getModel?(): Ext.data.IModel; + /** [Method] Returns the reader currently attached to this proxy instance */ + getReader?(): Ext.data.reader.IReader; + /** [Method] Returns the writer currently attached to this proxy instance */ + getWriter?(): Ext.data.writer.IWriter; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the model associated with this proxy + * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param setOnStore Boolean Sets the new model on the associated Store, if one is present + */ + setModel?( model?:string, setOnStore?:bool ): void; + setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; + /** [Method] Sets the Proxy s Reader by string config object or Reader instance + * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + */ + setReader?( reader?:any ): Ext.data.reader.IReader; + /** [Method] Sets the Proxy s Writer by string config object or Writer instance + * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + */ + setWriter?( writer?:any ): Ext.data.writer.IWriter; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data.proxy { + export interface IRest extends Ext.data.proxy.IAjax { + /** [Config Option] (Boolean) True to automatically append the ID of a Model instance when performing a request based on that single instance. ... */ + appendId?: bool; + /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + batchActions?: bool; + /** [Config Option] (String) Optional data format to send to the server when making any request (e.g. ... */ + format?: string; + /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + actionMethods?: any; + /** [Method] Specialized version of buildUrl that incorporates the appendId and format options into the generated url + * @param request Object + */ + buildUrl?( request?:any ): string; + } +} +declare module Ext.data { + export interface IRestProxy extends Ext.data.proxy.IAjax { + /** [Config Option] (Boolean) True to automatically append the ID of a Model instance when performing a request based on that single instance. ... */ + appendId?: bool; + /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + batchActions?: bool; + /** [Config Option] (String) Optional data format to send to the server when making any request (e.g. ... */ + format?: string; + /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + actionMethods?: any; + /** [Method] Specialized version of buildUrl that incorporates the appendId and format options into the generated url + * @param request Object + */ + buildUrl?( request?:any ): string; + } +} +declare module Ext.data.proxy { + export interface IServer extends Ext.data.proxy.IProxy { + /** [Config Option] (Object) Specific urls to call on CRUD action methods "create", "read", "update" and "destroy". ... */ + api?: any; + /** [Config Option] (String) The name of the cache param added to the url when using noCache. ... */ + cacheString?: string; + /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + directionParam?: string; + /** [Config Option] (Object) Extra parameters that will be included on every request. ... */ + extraParams?: any; + /** [Config Option] (String) The name of the 'filter' parameter to send in a request. ... */ + filterParam?: string; + /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + groupDirectionParam?: string; + /** [Config Option] (String) The name of the 'group' parameter to send in a request. ... */ + groupParam?: string; + /** [Config Option] (String) The name of the parameter which carries the id of the entity being operated upon. ... */ + idParam?: string; + /** [Config Option] (String) The name of the 'limit' parameter to send in a request. ... */ + limitParam?: string; + /** [Config Option] (Boolean) Disable caching by adding a unique parameter name to the request. ... */ + noCache?: bool; + /** [Config Option] (String) The name of the 'page' parameter to send in a request. ... */ + pageParam?: string; + /** [Config Option] (Boolean) Enabling simpleGroupMode in conjunction with remoteGroup will only send one group property and a direction when a rem... */ + simpleGroupMode?: bool; + /** [Config Option] (Boolean) Enabling simpleSortMode in conjunction with remoteSort will only send one sort property and a direction when a remote... */ + simpleSortMode?: bool; + /** [Config Option] (String) The name of the 'sort' parameter to send in a request. ... */ + sortParam?: string; + /** [Config Option] (String) The name of the 'start' parameter to send in a request. ... */ + startParam?: string; + /** [Config Option] (Number) The number of milliseconds to wait for a response. ... */ + timeout?: number; + /** [Config Option] (String) */ + url?: string; + /** [Method] Optional callback function which can be used to clean up after a request has been completed + * @param request Ext.data.IRequest The Request object + * @param success Boolean True if the request was successful + */ + afterRequest?( request?:Ext.data.IRequest, success?:bool ): void; + /** [Method] Creates an Request object from Operation + * @param operation Ext.data.IOperation The operation to execute + */ + buildRequest?( operation?:Ext.data.IOperation ): Ext.data.IRequest; + /** [Method] Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest + * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param callback Function The callback function to call when the Operation has completed + * @param scope Object The scope in which to execute the callback + */ + doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Encodes the array of Ext util Filter objects into a string to be sent in the request url + * @param filters Ext.util.IFilter[] The array of Filter objects + */ + encodeFilters?( filters?:Ext.util.IFilter[] ): string; + /** [Method] Encodes the array of Ext util Sorter objects into a string to be sent in the request url + * @param sorters Ext.util.ISorter[] The array of Sorter objects + */ + encodeSorters?( sorters?:Ext.util.ISorter[] ): string; + /** [Method] Template method to allow subclasses to specify how to get the response for the reader + * @param response Object The server response + */ + extractResponseData?( response?:any ): any; + /** [Method] Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Sets a value in the underlying extraParams + * @param name String The key for the new value + * @param value Object The value + */ + setExtraParam?( name?:string, value?:any ): void; + /** [Method] Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IServerProxy extends Ext.data.proxy.IProxy { + /** [Config Option] (Object) Specific urls to call on CRUD action methods "create", "read", "update" and "destroy". ... */ + api?: any; + /** [Config Option] (String) The name of the cache param added to the url when using noCache. ... */ + cacheString?: string; + /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + directionParam?: string; + /** [Config Option] (Object) Extra parameters that will be included on every request. ... */ + extraParams?: any; + /** [Config Option] (String) The name of the 'filter' parameter to send in a request. ... */ + filterParam?: string; + /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + groupDirectionParam?: string; + /** [Config Option] (String) The name of the 'group' parameter to send in a request. ... */ + groupParam?: string; + /** [Config Option] (String) The name of the parameter which carries the id of the entity being operated upon. ... */ + idParam?: string; + /** [Config Option] (String) The name of the 'limit' parameter to send in a request. ... */ + limitParam?: string; + /** [Config Option] (Boolean) Disable caching by adding a unique parameter name to the request. ... */ + noCache?: bool; + /** [Config Option] (String) The name of the 'page' parameter to send in a request. ... */ + pageParam?: string; + /** [Config Option] (Boolean) Enabling simpleGroupMode in conjunction with remoteGroup will only send one group property and a direction when a rem... */ + simpleGroupMode?: bool; + /** [Config Option] (Boolean) Enabling simpleSortMode in conjunction with remoteSort will only send one sort property and a direction when a remote... */ + simpleSortMode?: bool; + /** [Config Option] (String) The name of the 'sort' parameter to send in a request. ... */ + sortParam?: string; + /** [Config Option] (String) The name of the 'start' parameter to send in a request. ... */ + startParam?: string; + /** [Config Option] (Number) The number of milliseconds to wait for a response. ... */ + timeout?: number; + /** [Config Option] (String) */ + url?: string; + /** [Method] Optional callback function which can be used to clean up after a request has been completed + * @param request Ext.data.IRequest The Request object + * @param success Boolean True if the request was successful + */ + afterRequest?( request?:Ext.data.IRequest, success?:bool ): void; + /** [Method] Creates an Request object from Operation + * @param operation Ext.data.IOperation The operation to execute + */ + buildRequest?( operation?:Ext.data.IOperation ): Ext.data.IRequest; + /** [Method] Generates a url based on a given Ext data Request object + * @param request Ext.data.IRequest The request object + */ + buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest + * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param callback Function The callback function to call when the Operation has completed + * @param scope Object The scope in which to execute the callback + */ + doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Encodes the array of Ext util Filter objects into a string to be sent in the request url + * @param filters Ext.util.IFilter[] The array of Filter objects + */ + encodeFilters?( filters?:Ext.util.IFilter[] ): string; + /** [Method] Encodes the array of Ext util Sorter objects into a string to be sent in the request url + * @param sorters Ext.util.ISorter[] The array of Sorter objects + */ + encodeSorters?( sorters?:Ext.util.ISorter[] ): string; + /** [Method] Template method to allow subclasses to specify how to get the response for the reader + * @param response Object The server response + */ + extractResponseData?( response?:any ): any; + /** [Method] Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Sets a value in the underlying extraParams + * @param name String The key for the new value + * @param value Object The value + */ + setExtraParam?( name?:string, value?:any ): void; + /** [Method] Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data.proxy { + export interface ISessionStorage extends Ext.data.proxy.IWebStorage { + } +} +declare module Ext.data { + export interface ISessionStorageProxy extends Ext.data.proxy.IWebStorage { + } +} +declare module Ext.data.proxy { + export interface IWebStorage extends Ext.data.proxy.IClient { + /** [Config Option] (String) */ + id?: string; + /** [Property] (Object) Cached map of records already retrieved by this Proxy. ... */ + cache?: any; + /** [Method] Destroys all records stored in the proxy and removes all keys and values used to support the proxy from the storage o */ + clear?(): void; + /** [Method] inherit docs Performs the given create operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit docs Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Saves the given record in the Proxy + * @param record Ext.data.IModel The model instance + * @param id String The id to save the record under (defaults to the value of the record's getId() function) + */ + setRecord?( record?:Ext.data.IModel, id?:string ): void; + /** [Method] inherit docs Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IWebStorageProxy extends Ext.data.proxy.IClient { + /** [Config Option] (String) */ + id?: string; + /** [Property] (Object) Cached map of records already retrieved by this Proxy. ... */ + cache?: any; + /** [Method] Destroys all records stored in the proxy and removes all keys and values used to support the proxy from the storage o */ + clear?(): void; + /** [Method] inherit docs Performs the given create operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit Performs the given destroy operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] inherit docs Performs the given read operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Saves the given record in the Proxy + * @param record Ext.data.IModel The model instance + * @param id String The id to save the record under (defaults to the value of the record's getId() function) + */ + setRecord?( record?:Ext.data.IModel, id?:string ): void; + /** [Method] inherit docs Performs the given update operation + * @param operation Ext.data.IOperation The Operation to perform + * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) + * @param scope Object Scope to execute the callback function in + */ + update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + } +} +declare module Ext.data.reader { + export interface IArray extends Ext.data.reader.IJson { + /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + successProperty?: string; + /** [Config Option] (String) For Array Reader, methods in the base which use these properties must not see the defaults Name of the property from... */ + totalProperty?: string; + } +} +declare module Ext.data { + export interface IArrayReader extends Ext.data.reader.IJson { + /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + successProperty?: string; + /** [Config Option] (String) For Array Reader, methods in the base which use these properties must not see the defaults Name of the property from... */ + totalProperty?: string; + } +} +declare module Ext.data.reader { + export interface IJson extends Ext.data.reader.IReader { + /** [Config Option] (String) Name of the property from which to retrieve the metaData attribute. ... */ + metaProperty?: string; + /** [Config Option] (String) The optional location within the JSON response that the record data itself can be found at. ... */ + record?: string; + /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + root?: string; + /** [Config Option] (Boolean) True to ensure that field names/mappings are treated as literals when reading values. ... */ + useSimpleAccessors?: bool; + /** [Property] (Object) A copy of this.rawData. ... */ + jsonData?: any; + /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Reads a JSON object and returns a ResultSet + * @param data Object The raw JSON data + */ + readRecords?( data?:any ): Ext.data.IResultSet; + } +} +declare module Ext.data { + export interface IJsonReader extends Ext.data.reader.IReader { + /** [Config Option] (String) Name of the property from which to retrieve the metaData attribute. ... */ + metaProperty?: string; + /** [Config Option] (String) The optional location within the JSON response that the record data itself can be found at. ... */ + record?: string; + /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + root?: string; + /** [Config Option] (Boolean) True to ensure that field names/mappings are treated as literals when reading values. ... */ + useSimpleAccessors?: bool; + /** [Property] (Object) A copy of this.rawData. ... */ + jsonData?: any; + /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Reads a JSON object and returns a ResultSet + * @param data Object The raw JSON data + */ + readRecords?( data?:any ): Ext.data.IResultSet; + } +} +declare module Ext.data.reader { + export interface IReader extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ + idProperty?: string; + /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ + implicitIncludes?: bool; + /** [Config Option] (String) The name of the property which contains a response message. ... */ + messageProperty?: string; + /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ + readRecordsOnFailure?: bool; + /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + root?: string; + /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + successProperty?: string; + /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ + totalProperty?: string; + /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ + metaData?: any; + /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ + rawData?: any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Reads the given response object + * @param response Object The response object. This may be either an XMLHttpRequest object or a plain JS object + */ + read?( response?:any ): Ext.data.IResultSet; + /** [Method] Abstracts common functionality used by all Reader subclasses + * @param data Object The raw data object + */ + readRecords?( data?:any ): Ext.data.IResultSet; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IDataReader extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ + idProperty?: string; + /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ + implicitIncludes?: bool; + /** [Config Option] (String) The name of the property which contains a response message. ... */ + messageProperty?: string; + /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ + readRecordsOnFailure?: bool; + /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + root?: string; + /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + successProperty?: string; + /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ + totalProperty?: string; + /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ + metaData?: any; + /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ + rawData?: any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Reads the given response object + * @param response Object The response object. This may be either an XMLHttpRequest object or a plain JS object + */ + read?( response?:any ): Ext.data.IResultSet; + /** [Method] Abstracts common functionality used by all Reader subclasses + * @param data Object The raw data object + */ + readRecords?( data?:any ): Ext.data.IResultSet; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IReader extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ + idProperty?: string; + /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ + implicitIncludes?: bool; + /** [Config Option] (String) The name of the property which contains a response message. ... */ + messageProperty?: string; + /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ + readRecordsOnFailure?: bool; + /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + root?: string; + /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + successProperty?: string; + /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ + totalProperty?: string; + /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ + metaData?: any; + /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ + rawData?: any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Reads the given response object + * @param response Object The response object. This may be either an XMLHttpRequest object or a plain JS object + */ + read?( response?:any ): Ext.data.IResultSet; + /** [Method] Abstracts common functionality used by all Reader subclasses + * @param data Object The raw data object + */ + readRecords?( data?:any ): Ext.data.IResultSet; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data.reader { + export interface IXml extends Ext.data.reader.IReader { + /** [Config Option] (String) A namespace prefix that will be prepended to the field name when reading a field from an XML node. ... */ + namespace?: string; + /** [Config Option] (String) */ + record?: string; + /** [Property] (Object) Copy of rawData. ... */ + xmlData?: any; + /** [Method] Normalizes the data object + * @param data Object The raw data object + */ + getData?( data?:any ): any; + /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Parses an XML document and returns a ResultSet containing the model instances + * @param doc Object Parsed XML document + */ + readRecords?( doc?:any ): Ext.data.IResultSet; + } +} +declare module Ext.data { + export interface IXmlReader extends Ext.data.reader.IReader { + /** [Config Option] (String) A namespace prefix that will be prepended to the field name when reading a field from an XML node. ... */ + namespace?: string; + /** [Config Option] (String) */ + record?: string; + /** [Property] (Object) Copy of rawData. ... */ + xmlData?: any; + /** [Method] Normalizes the data object + * @param data Object The raw data object + */ + getData?( data?:any ): any; + /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Parses an XML document and returns a ResultSet containing the model instances + * @param doc Object Parsed XML document + */ + readRecords?( doc?:any ): Ext.data.IResultSet; + } +} +declare module Ext.data { + export interface IRequest extends Ext.IBase { + /** [Config Option] (String) The name of the action this Request represents. ... */ + action?: string; + /** [Config Option] (String) The HTTP method to use on this Request. ... */ + method?: string; + /** [Config Option] (Object) HTTP request params. ... */ + params?: any; + /** [Config Option] (String) */ + url?: string; + } +} +declare module Ext.data { + export interface IResultSet extends Ext.IBase { + /** [Config Option] (Number) The number of records in this ResultSet. ... */ + count?: number; + /** [Config Option] (Boolean) True if the records have already been loaded. ... */ + loaded?: bool; + /** [Config Option] (Ext.data.Model[]) */ + records?: Ext.data.IModel[]; + /** [Config Option] (Boolean) True if the ResultSet loaded successfully, false if any errors were encountered. ... */ + success?: bool; + /** [Config Option] (Number) The total number of records reported by the data source. ... */ + total?: number; + /** [Property] (Number) Copy of this.total. ... */ + totalRecords?: number; + } +} +declare module Ext.data { + export interface ISequentialIdGenerator extends Ext.data.IIdGenerator { + /** [Config Option] (String) The string to place in front of the sequential number for each generated id. ... */ + prefix?: string; + /** [Config Option] (Number) The number at which to start generating sequential id's. ... */ + seed?: number; + /** [Method] Generates and returns the next id */ + generate?(): string; + } +} +declare module Ext.data { + export interface ISortTypes extends Ext.IBase { + } + export class SortTypes { + /** [Method] Date sorting + * @param s Object The value being converted + */ + static asDate( s?:any ): number; + /** [Method] Float sorting + * @param s Object The value being converted + */ + static asFloat( s?:any ): number; + /** [Method] Integer sorting + * @param s Object The value being converted + */ + static asInt( s?:any ): number; + /** [Method] Strips all HTML tags to sort on text only + * @param s Object The value being converted + */ + static asText( s?:any ): string; + /** [Method] Case insensitive string + * @param s Object The value being converted + */ + static asUCString( s?:any ): string; + /** [Method] Strips all HTML tags to sort on text only Case insensitive + * @param s Object The value being converted + */ + static asUCText( s?:any ): string; + /** [Method] Default sort that does nothing + * @param s Object The value being converted + */ + static none( s?:any ): any; + } +} +declare module Ext.data { + export interface IStore extends Ext.data.IAbstractStore { + /** [Config Option] (Boolean) When a Store is used by only one DataView, and should only exist for the lifetime of that view, then configure the au... */ + autoDestroy?: bool; + /** [Config Option] (Boolean) Allows the Store to prefetch and cache in a page cache, pages of Records, and to then satisfy loading requirements fr... */ + buffered?: bool; + /** [Config Option] (Boolean) True to empty the store when loading another page via loadPage, nextPage or previousPage. ... */ + clearOnPageLoad?: bool; + /** [Config Option] (Boolean) true to clear anything in the removed record collection when the store loads. ... */ + clearRemovedOnLoad?: bool; + /** [Config Option] (Object[]/Ext.data.Model[]) Array of Model instances or data objects to load locally. ... */ + data?: any; + /** [Config Option] (String) The direction in which sorting should be applied when grouping. ... */ + groupDir?: string; + /** [Config Option] (String) The field by which to group data in the store. ... */ + groupField?: string; + /** [Config Option] (Ext.util.MixedCollection) */ + groupers?: Ext.util.IMixedCollection; + /** [Config Option] (Number) When buffered, the number of extra rows to keep cached on the leading side of scrolling buffer as scrolling proceeds. ... */ + leadingBufferZone?: number; + /** [Config Option] (Number) The number of records considered to form a 'page'. ... */ + pageSize?: number; + /** [Config Option] (String/Ext.data.proxy.Proxy/Object) The Proxy to use for this Store. ... */ + proxy?: any; + /** [Config Option] (Number) Valid only when used with a buffered Store. ... */ + purgePageCount?: number; + /** [Config Option] (Boolean) true if the grouping should be performed on the server side, false if it is local only. ... */ + remoteFilter?: bool; + /** [Config Option] (Boolean) true if the grouping should apply on the server side, false if it is local only. ... */ + remoteGroup?: bool; + /** [Config Option] (Boolean) true if the sorting should be performed on the server side, false if it is local only. ... */ + remoteSort?: bool; + /** [Config Option] (Boolean) For local filtering only, causes sort to be called whenever filter is called, causing the sorters to be reapplied aft... */ + sortOnFilter?: bool; + /** [Config Option] (Number) When buffered, the number of extra records to keep cached on the trailing side of scrolling buffer as scrolling proce... */ + trailingBufferZone?: number; + /** [Property] (Number) The page that the Store has most recently loaded (see loadPage) ... */ + currentPage?: number; + /** [Property] (Ext.util.MixedCollection) A pristine (unfiltered) collection of the records in this store. ... */ + snapshot?: Ext.util.IMixedCollection; + /** [Method] Adds Model instance to the Store + * @param model any An array of Model instances or Model configuration objects, or variable number of Model instance or config arguments. + */ + add?( model?:any ): Ext.data.IModel[]; + /** [Method] Adds a new Filter to this Store s filter set and by default applys the updated filter set to the Store s unfiltered + * @param filters any The set of filters to add to the current filter set. + * @param applyFilters Boolean Pass as false to add the filter but not apply the updated filter set. + */ + addFilter?( filters?:any, applyFilters?:bool ): void; + /** [Method] Local sort only Inserts the passed Record into the Store at the index where it should go based on the current sort + * @param record Ext.data.IRecord + */ + addSorted?( record?:Ext.data.IRecord ): void; + /** [Method] Runs the aggregate function for all the records in the store + * @param fn Function The function to execute. The function is called with a single parameter, an array of records for that group. + * @param scope Object The scope to execute the function in. Defaults to the store. + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the group average being the value. The grouped parameter is only honored if the store has a groupField. + * @param args Array Any arguments to append to the function call + */ + aggregate?( fn?:any, scope?:any, grouped?:bool, args?:any[] ): any; + /** [Method] Gets the average value in the store + * @param field String The field in each record + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the group average being the value. The grouped parameter is only honored if the store has a groupField. + */ + average?( field?:string, grouped?:bool ): any; + /** [Method] Reverts to a view of the Record cache with no filtering applied + * @param suppressEvent Boolean If true the filter is cleared silently. For a locally filtered Store, this means that the filter collection is cleared without firing the datachanged event. For a remotely filtered Store, this means that the filter collection is cleared, but the store is not reloaded from the server. + */ + clearFilter?( suppressEvent?:bool ): void; + /** [Method] Clear any groupers in the store */ + clearGrouping?(): void; + /** [Method] Collects unique values for a particular dataIndex from this store + * @param dataIndex String The property to collect + * @param allowNull Boolean Pass true to allow null, undefined or empty string values + * @param bypassFilter Boolean Pass true to collect from all records, even ones which are filtered. + */ + collect?( dataIndex?:string, allowNull?:bool, bypassFilter?:bool ): Object[]; + /** [Method] Commits all Records with outstanding changes */ + commitChanges?(): void; + /** [Method] Gets the count of items in the store + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the count for each group being the value. The grouped parameter is only honored if the store has a groupField. + */ + count?( grouped?:bool ): number; + /** [Method] Calls the specified function for each record in the store + * @param fn Function The function to call. The Record is passed as the first parameter. Returning false aborts and exits the iteration. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current record in the iteration. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Filters the loaded set of records by a given set of filters + * @param filters any The set of filters to apply to the data. These are stored internally on the store, but the filtering itself is done on the Store's MixedCollection. See MixedCollection's filter method for filter syntax. Alternatively, pass in a property string. If no parameters are passed, the Store's existing filter set is applied. + * @param value String value to filter by (only if using a property string as the first argument) + */ + filter?( filters?:any, value?:string ): void; + /** [Method] Filters by a function + * @param fn Function The function to be called. It will be passed the following parameters: + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this Store. + */ + filterBy?( fn?:any, scope?:any ): void; + /** [Method] Finds the index of the first matching Record in this store by a specific field value + * @param fieldName any The name of the Record field to test. + * @param value any Either a string that the field value should begin with, or a RegExp to test against the field. + * @param startIndex any The index to start searching at + * @param anyMatch any True to match any part of the string, not just the beginning + * @param caseSensitive any True for case sensitive comparison + * @param exactMatch any True to force exact match (^ and $ characters added to the regex). + */ + find?( fieldName?:any, value?:any, startIndex?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; + find?( fieldName?:string, value?:string, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): number; + find?( fieldName?:string, value?:RegExp, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): number; + /** [Method] Find the index of the first matching Record in this Store by a function + * @param fn Function The function to be called. It will be passed the following parameters: + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this Store. + * @param startIndex Number The index to start searching at + */ + findBy?( fn?:any, scope?:any, startIndex?:number ): number; + /** [Method] Finds the index of the first matching Record in this store by a specific field value + * @param fieldName String The name of the Record field to test. + * @param value Object The value to match the field against. + * @param startIndex Number The index to start searching at + */ + findExact?( fieldName?:string, value?:any, startIndex?:number ): number; + /** [Method] Finds the first matching Record in this store by a specific field value + * @param fieldName any The name of the Record field to test. + * @param value any Either a string that the field value should begin with, or a RegExp to test against the field. + * @param startIndex any The index to start searching at + * @param anyMatch any True to match any part of the string, not just the beginning + * @param caseSensitive any True for case sensitive comparison + * @param exactMatch any True to force exact match (^ and $ characters added to the regex). + */ + findRecord?( fieldName?:any, value?:any, startIndex?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; + findRecord?( fieldName?:string, value?:string, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.data.IModel; + findRecord?( fieldName?:string, value?:RegExp, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.data.IModel; + /** [Method] Convenience function for getting the first model instance in the store + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the first record being the value. The grouped parameter is only honored if the store has a groupField. + */ + first?( grouped?:bool ): Ext.data.IModel; + /** [Method] Convenience function for getting the first model instance in the store + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the first record being the value. The grouped parameter is only honored if the store has a groupField. + */ + first?( grouped?:bool ): void; + /** [Method] Get the Record at the specified index + * @param index Number The index of the Record to find. + */ + getAt?( index?:number ): Ext.data.IModel; + /** [Method] Get the Record with the specified id + * @param id Mixed The id of the Record to find. + */ + getById?( id?:any ): Ext.data.IModel; + /** [Method] Gets the number of records in store */ + getCount?(): number; + /** [Method] Returns the string to group on for a given model instance + * @param instance Ext.data.IModel The model instance + */ + getGroupString?( instance?:Ext.data.IModel ): string; + /** [Method] Returns an array containing the result of applying grouping to the records in this store + * @param groupName String Pass in an optional groupName argument to access a specific group as defined by getGroupString. + */ + getGroups?( groupName?:string ): any; + /** [Method] inherit docs Returns all Model instances that are either currently a phantom e g */ + getNewRecords?(): Ext.data.IModel[]; + /** [Method] Determines the page from a record index + * @param index Number The record index + */ + getPageFromRecordIndex?( index?:number ): number; + /** [Method] Gathers a range of Records between specified indices + * @param start Number The starting index. Defaults to zero for non buffered Stores. + * @param end Number The ending index. Defaults to the last Record for non buffered Stores. + * @param options Object Used when the Store is {@link buffered] and the range may not be available synchronously. + */ + getRange?( start?:number, end?:number, options?:any ): Ext.data.IModel[]; + /** [Method] Returns the total number of Model instances that the Proxy indicates exist */ + getTotalCount?(): number; + /** [Method] inherit docs Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy */ + getUpdatedRecords?(): Ext.data.IModel[]; + /** [Method] Groups data inside the store + * @param groupers any Either a string name of one of the fields in this Store's configured Model, or an Array of grouper configurations. + * @param direction String The overall direction to group the data by. + */ + group?( groupers?:any, direction?:string ): void; + /** [Method] Get the index of the record within the store + * @param record Ext.data.IModel The Ext.data.Model object to find. + */ + indexOf?( record?:Ext.data.IModel ): number; + /** [Method] Get the index within the store of the Record with the passed id + * @param id String The id of the Record to find. + */ + indexOfId?( id?:string ): number; + /** [Method] Get the index within the entire dataset + * @param record Ext.data.IModel The Ext.data.Model object to find. + */ + indexOfTotal?( record?:Ext.data.IModel ): number; + /** [Method] Inserts Model instances into the Store at the given index and fires the add event + * @param index Number The start index at which to insert the passed Records. + * @param records Ext.data.IModel[] An Array of Ext.data.Model objects to add to the store. + */ + insert?( index?:number, records?:Ext.data.IModel[] ): Ext.data.IModel[]; + /** [Method] Returns true if this store is currently filtered */ + isFiltered?(): bool; + /** [Method] Checks if the store is currently grouped */ + isGrouped?(): bool; + /** [Method] Convenience function for getting the last model instance in the store + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the last record being the value. The grouped parameter is only honored if the store has a groupField. + */ + last?( grouped?:bool ): Ext.data.IModel; + /** [Method] Convenience function for getting the last model instance in the store + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the last record being the value. The grouped parameter is only honored if the store has a groupField. + */ + last?( grouped?:bool ): void; + /** [Method] Loads data into the Store via the configured proxy + * @param options any config object, passed into the Ext.data.Operation object before loading. Additionally addRecords: true can be specified to add these records to the existing records, default is to remove the Store's existing records first. + */ + load?( options?:any ): void; + /** [Method] Loads an array of data straight into the Store + * @param data any Array of data to load. Any non-model instances will be cast into model instances first. + * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. + */ + loadData?( data?:any, append?:bool ): void; + /** [Method] Loads a given page of data by setting the start and limit values appropriately + * @param page Number The number of the page to load. + * @param options Object See options for load. + */ + loadPage?( page?:number, options?:any ): void; + /** [Method] Loads data via the bound Proxy s reader Use this method if you are attempting to load data and want to utilize the c + * @param data Object[] The full JSON object you'd like to load into the Data store. + * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. + */ + loadRawData?( data?:Object[], append?:bool ): void; + /** [Method] Loads an array of model instances into the store fires the datachanged event + * @param records Ext.data.IModel[] The array of records to load + * @param options Object + */ + loadRecords?( records?:Ext.data.IModel[], options?:any ): void; + /** [Method] Gets the maximum value in the store + * @param field String The field in each record + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the maximum in the group being the value. The grouped parameter is only honored if the store has a groupField. + */ + max?( field?:string, grouped?:bool ): any; + /** [Method] Gets the minimum value in the store + * @param field String The field in each record + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the minimum in the group being the value. The grouped parameter is only honored if the store has a groupField. + */ + min?( field?:string, grouped?:bool ): any; + /** [Method] Loads the next page in the current data set + * @param options Object See options for load + */ + nextPage?( options?:any ): void; + /** [Method] Prefetches data into the store using its configured proxy + * @param options Object config object, passed into the Ext.data.Operation object before loading. See load + */ + prefetch?( options?:any ): void; + /** [Method] Prefetches a page of data + * @param page Number The page to prefetch + * @param options Object config object, passed into the Ext.data.Operation object before loading. See load + */ + prefetchPage?( page?:number, options?:any ): void; + /** [Method] Ensures that the specified range of rows is present in the cache + * @param start Object + * @param end Object + */ + prefetchRange?( start?:any, end?:any ): void; + /** [Method] Loads the previous page in the current data set + * @param options Object See options for load + */ + previousPage?( options?:any ): void; + /** [Method] Query all the cached records in this Store by name value pair + * @param property any The property to create the filter function for + * @param value any The string/regex to compare the property value to + * @param anyMatch any true if we don't care if the filter value is not the full value. + * @param caseSensitive any true to create a case-sensitive regex. + * @param exactMatch any true to force exact match (^ and $ characters added to the regex). Ignored if anyMatch is true. + */ + query?( property?:any, value?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; + query?( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.util.IMixedCollection; + query?( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.util.IMixedCollection; + /** [Method] Query all the cached records in this Store using a filtering function + * @param fn Function The function to be called. It will be passed the following parameters: + * @param scope Object The scope (this reference) in which the function is executed Defaults to this Store. + */ + queryBy?( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Rejects outstanding changes on all modified records and re insert any records that were removed locally */ + rejectChanges?(): void; + /** [Method] Reloads the store using the last options passed to the load method + * @param options Object A config object which contains options which may override the options passed to the previous load call. + */ + reload?( options?:any ): void; + /** [Method] Removes the specified record s from the Store firing the remove event for each instance that is removed + * @param records Ext.data.IModel Model instance or array of instances to remove or an array of indices from which to remove records. + */ + remove?( records?:Ext.data.IModel ): void; + remove?( records?:Ext.data.IModel[] ): void; + remove?( records?:number ): void; + remove?( records?:number[] ): void; + /** [Method] Removes all items from the store + * @param silent Boolean Pass true to prevent the record bulkremove and clear events from being fired. + */ + removeAll?( silent?:bool ): void; + /** [Method] Removes the model instance s at the given index + * @param index Number The record index + * @param count Number The number of records to delete + */ + removeAt?( index?:number, count?:number ): void; + /** [Method] Removes an individual Filter from the current filter set using the passed Filter Filter id and by default applys the + * @param toRemove Mixed The id of a Filter to remove from the filter set, or a Filter instance to remove. + * @param applyFilters Boolean Pass as false to remove the filter but not apply the updated filter set. If null is passed, all anonymous Filters (Filters with no id property) will be removed. + */ + removeFilter?( toRemove?:any, applyFilters?:bool ): void; + /** [Method] because prefetchData is stored by index this invalidates all of the prefetchedData Sorts the data in the Store by on + * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction any The overall direction to sort the data by. + */ + sort?( sorters?:any, direction?:any ): any; + sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; + sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sums the value of field for each record in store and returns the result + * @param field String A field in each record + * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the sum for that group being the value. The grouped parameter is only honored if the store has a groupField. + */ + sum?( field?:string, grouped?:bool ): number; + } +} +declare module Ext.data.store { + export interface IPageMap extends Ext.util.ILruCache { + /** [Method] Returns the first record in this page map which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this PageMap. + */ + findBy?( fn?:any, scope?:any ): any; + } +} +declare module Ext.data { + export interface IStoreManager extends Ext.util.IMixedCollection { + } + export class StoreManager { + /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Gets a registered Store by id + * @param store any The id of the Store, or a Store instance, or a store configuration + */ + static lookup( store?:any ): Ext.data.IStore; + /** [Method] Registers one or more Stores with the StoreManager + * @param stores Ext.data.IStore Any number of Store instances + */ + static register( stores:Ext.data.IStore ): void; + /** [Method] Unregisters one or more Stores with the StoreManager + * @param stores any Any number of Store instances or ID-s + */ + static unregister( stores?:any ): void; + } +} +declare module Ext { + export interface IStoreManager extends Ext.util.IMixedCollection { + } + export class StoreManager { + /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Gets a registered Store by id + * @param store any The id of the Store, or a Store instance, or a store configuration + */ + static lookup( store?:any ): Ext.data.IStore; + /** [Method] Registers one or more Stores with the StoreManager + * @param stores Ext.data.IStore Any number of Store instances + */ + static register( stores:Ext.data.IStore ): void; + /** [Method] Unregisters one or more Stores with the StoreManager + * @param stores any Any number of Store instances or ID-s + */ + static unregister( stores?:any ): void; + } +} +declare module Ext { + export interface IStoreMgr extends Ext.util.IMixedCollection { + } + export class StoreMgr { + /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Gets a registered Store by id + * @param store any The id of the Store, or a Store instance, or a store configuration + */ + static lookup( store?:any ): Ext.data.IStore; + /** [Method] Registers one or more Stores with the StoreManager + * @param stores Ext.data.IStore Any number of Store instances + */ + static register( stores:Ext.data.IStore ): void; + /** [Method] Unregisters one or more Stores with the StoreManager + * @param stores any Any number of Store instances or ID-s + */ + static unregister( stores?:any ): void; + } +} +declare module Ext.data { + export interface IStoreMgr extends Ext.util.IMixedCollection { + } + export class StoreMgr { + /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Gets a registered Store by id + * @param store any The id of the Store, or a Store instance, or a store configuration + */ + static lookup( store?:any ): Ext.data.IStore; + /** [Method] Registers one or more Stores with the StoreManager + * @param stores Ext.data.IStore Any number of Store instances + */ + static register( stores:Ext.data.IStore ): void; + /** [Method] Unregisters one or more Stores with the StoreManager + * @param stores any Any number of Store instances or ID-s + */ + static unregister( stores?:any ): void; + } +} +declare module Ext.data { + export interface ITree extends Ext.IBase,Ext.util.IObservable { + /** [Property] (Ext.data.NodeInterface) */ + root?: Ext.data.INodeInterface; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Gets a node in this tree by its id + * @param id String + */ + getNodeById?( id?:string ): Ext.data.INodeInterface; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Removes the root node from this tree */ + removeRootNode?(): Ext.data.INodeInterface; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the root node for this tree + * @param node Ext.data.INodeInterface + */ + setRootNode?( node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface ITreeModel extends Ext.data.IModel { + } +} +declare module Ext.data { + export interface ITreeStore extends Ext.data.IAbstractStore { + /** [Config Option] (Boolean) Remove previously existing child nodes before loading. ... */ + clearOnLoad?: bool; + /** [Config Option] (Boolean) If true, when a node is reloaded, any records in the removed record collection that were previously descendants of th... */ + clearRemovedOnLoad?: bool; + /** [Config Option] (String) The default root id. ... */ + defaultRootId?: string; + /** [Config Option] (String) The root property to specify on the reader if one is not explicitly defined. ... */ + defaultRootProperty?: string; + /** [Config Option] (String) The default root text (if not specified)/ ... */ + defaultRootText?: string; + /** [Config Option] (Boolean) Set to true to automatically prepend a leaf sorter. ... */ + folderSort?: bool; + /** [Config Option] (String) The name of the parameter sent to the server which contains the identifier of the node. ... */ + nodeParam?: string; + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) The root node for this store. ... */ + root?: any; + /** [Method] inherit docs Returns all Model instances that are either currently a phantom e g */ + getNewRecords?(): Ext.data.IModel[]; + /** [Method] Returns the record node by id + * @param id Object + */ + getNodeById?( id?:any ): Ext.data.INodeInterface; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] inherit docs Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy */ + getUpdatedRecords?(): Ext.data.IModel[]; + /** [Method] Loads the Store using its configured proxy + * @param options Object config object. This is passed into the Operation object that is created and then sent to the proxy's Ext.data.proxy.Proxy.read function. The options can also contain a node, which indicates which node is to be loaded. If not specified, it will default to the root node. + */ + load?( options?:any ): void; + /** [Method] inherit docs Removes all records from the store */ + removeAll?(): void; + /** [Method] inherit docs Sets the Store s Proxy by string config object or Proxy instance + * @param proxy any The new Proxy, which can be either a type string, a configuration object or an Ext.data.proxy.Proxy instance + */ + setProxy?( proxy?:any ): Ext.data.proxy.IProxy; + /** [Method] Sets the root node for this store + * @param root any + */ + setRootNode?( root?:any ): Ext.data.INodeInterface; + } +} +declare module Ext.data { + export interface ITypes extends Ext.IBase { + } + export class Types { + } +} +declare module Ext.data { + export interface IUuidGenerator extends Ext.data.IIdGenerator { + /** [Config Option] (Number) The Version of UUID. ... */ + version?: number; + /** [Property] (Number/Object) When created, this value is a 48-bit number. ... */ + salt?: any; + /** [Property] (Number/Object) When created, this value is a 60-bit number. ... */ + timestamp?: any; + /** [Method] Reconfigures this generator given new config properties + * @param config Object + */ + reconfigure?( config?:any ): void; + } +} +declare module Ext.data { + export interface Ivalidations extends Ext.IBase { + } + export class validations { + /** [Method] Validates that an email string is in the correct format + * @param config Object Config object + * @param email String The email address + */ + static email( config?:any, email?:string ): bool; + /** [Method] Validates that the given value is not present in the configured list + * @param config Object Config object + * @param value String The value to validate + */ + static exclusion( config?:any, value?:string ): bool; + /** [Method] Returns true if the given value passes validation against the configured matcher regex + * @param config Object Config object + * @param value String The value to validate + */ + static format( config?:any, value?:string ): bool; + /** [Method] Validates that the given value is present in the configured list + * @param config Object Config object + * @param value String The value to validate + */ + static inclusion( config?:any, value?:string ): bool; + /** [Method] Returns true if the given value is between the configured min and max values + * @param config Object Config object + * @param value String The value to validate + */ + static length( config?:any, value?:string ): bool; + /** [Method] Validates that the given value is present + * @param config Object Config object + * @param value Object The value to validate + */ + static presence( config?:any, value?:any ): bool; + } +} +declare module Ext.data.writer { + export interface IJson extends Ext.data.writer.IWriter { + /** [Config Option] (Boolean) Configure with false to ensure that records are always wrapped in an array, even if there is only one record being sent. ... */ + allowSingle?: bool; + /** [Config Option] (Boolean) Configure true to send record data (all record fields if writeAllFields is true) as a JSON encoded HTTP parameter nam... */ + encode?: bool; + /** [Config Option] (Boolean) By default, when dot-delimited field mappings are used (e.g. ... */ + expandData?: bool; + /** [Config Option] (String) */ + root?: string; + /** [Method] The Reader classes support dot delimited data mappings for extracting nested raw data into fields so the writer must + * @param data Object + */ + getExpandedData?( data?:any ): void; + } +} +declare module Ext.data { + export interface IJsonWriter extends Ext.data.writer.IWriter { + /** [Config Option] (Boolean) Configure with false to ensure that records are always wrapped in an array, even if there is only one record being sent. ... */ + allowSingle?: bool; + /** [Config Option] (Boolean) Configure true to send record data (all record fields if writeAllFields is true) as a JSON encoded HTTP parameter nam... */ + encode?: bool; + /** [Config Option] (Boolean) By default, when dot-delimited field mappings are used (e.g. ... */ + expandData?: bool; + /** [Config Option] (String) */ + root?: string; + /** [Method] The Reader classes support dot delimited data mappings for extracting nested raw data into fields so the writer must + * @param data Object + */ + getExpandedData?( data?:any ): void; + } +} +declare module Ext.data.writer { + export interface IWriter extends Ext.IBase { + /** [Config Option] (String) */ + dateFormat?: string; + /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + nameProperty?: string; + /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + writeAllFields?: bool; + /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + writeRecordId?: bool; + /** [Method] Formats the data for each record before sending it to the server + * @param record Ext.data.IModel The record that we are writing to the server. + * @param operation Ext.data.IOperation An operation object. + */ + getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; + /** [Method] Prepares a Proxy s Ext data Request object + * @param request Ext.data.IRequest The request object + */ + write?( request?:Ext.data.IRequest ): Ext.data.IRequest; + } +} +declare module Ext.data { + export interface IDataWriter extends Ext.IBase { + /** [Config Option] (String) */ + dateFormat?: string; + /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + nameProperty?: string; + /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + writeAllFields?: bool; + /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + writeRecordId?: bool; + /** [Method] Formats the data for each record before sending it to the server + * @param record Ext.data.IModel The record that we are writing to the server. + * @param operation Ext.data.IOperation An operation object. + */ + getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; + /** [Method] Prepares a Proxy s Ext data Request object + * @param request Ext.data.IRequest The request object + */ + write?( request?:Ext.data.IRequest ): Ext.data.IRequest; + } +} +declare module Ext.data { + export interface IWriter extends Ext.IBase { + /** [Config Option] (String) */ + dateFormat?: string; + /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + nameProperty?: string; + /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + writeAllFields?: bool; + /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + writeRecordId?: bool; + /** [Method] Formats the data for each record before sending it to the server + * @param record Ext.data.IModel The record that we are writing to the server. + * @param operation Ext.data.IOperation An operation object. + */ + getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; + /** [Method] Prepares a Proxy s Ext data Request object + * @param request Ext.data.IRequest The request object + */ + write?( request?:Ext.data.IRequest ): Ext.data.IRequest; + } +} +declare module Ext.data.writer { + export interface IXml extends Ext.data.writer.IWriter { + /** [Config Option] (String) The root to be used if documentRoot is empty and a root is required to form a valid XML document. ... */ + defaultDocumentRoot?: string; + /** [Config Option] (String) The name of the root element of the document. ... */ + documentRoot?: string; + /** [Config Option] (String) A header to use in the XML document (such as setting the encoding or version). ... */ + header?: string; + /** [Config Option] (String) The name of the node to use for each record. ... */ + record?: string; + } +} +declare module Ext.data { + export interface IXmlWriter extends Ext.data.writer.IWriter { + /** [Config Option] (String) The root to be used if documentRoot is empty and a root is required to form a valid XML document. ... */ + defaultDocumentRoot?: string; + /** [Config Option] (String) The name of the root element of the document. ... */ + documentRoot?: string; + /** [Config Option] (String) A header to use in the XML document (such as setting the encoding or version). ... */ + header?: string; + /** [Config Option] (String) The name of the node to use for each record. ... */ + record?: string; + } +} +declare module Ext.data { + export interface IXmlStore extends Ext.data.IStore { + } +} +declare module Ext { + export interface IDate { + } + export class Date { + /** [Method] Provides a convenient method for performing basic date arithmetic + * @param date Date The date to modify + * @param interval String A valid date interval enum value. + * @param value Number The amount to add to the current date. + */ + static add( date?:any, interval?:string, value?:number ): any; + /** [Method] Checks if a date falls on or between the given start and end dates + * @param date Date The date to check + * @param start Date Start date + * @param end Date End date + */ + static between( date?:any, start?:any, end?:any ): bool; + /** [Method] Attempts to clear all time information from this Date by setting the time to midnight of the same day automatically + * @param date Date The date + * @param clone Boolean true to create a clone of this date, clear the time and return it. + */ + static clearTime( date?:any, clone?:bool ): any; + /** [Method] Creates and returns a new Date instance with the exact same date value as the called instance + * @param date Date The date. + */ + static clone( date?:any ): any; + /** [Method] Formats a date given the supplied format string + * @param date Date The date to format + * @param format String The format string + */ + static format( date?:any, format?:string ): string; + /** [Method] Checks if the specified format contains information about anything other than the time + * @param format String The format to check + */ + static formatContainsDateInfo( format?:string ): bool; + /** [Method] Checks if the specified format contains hour information + * @param format String The format to check + */ + static formatContainsHourInfo( format?:string ): bool; + /** [Method] Get the numeric day number of the year adjusted for leap year + * @param date Date The date + */ + static getDayOfYear( date?:any ): number; + /** [Method] Get the number of days in the current month adjusted for leap year + * @param date Date The date + */ + static getDaysInMonth( date?:any ): number; + /** [Method] Returns the number of milliseconds between two dates + * @param dateA Date The first date. + * @param dateB Date The second date. + */ + static getElapsed( dateA?:any, dateB?:any ): number; + /** [Method] Get the date of the first day of the month in which this date resides + * @param date Date The date + */ + static getFirstDateOfMonth( date?:any ): any; + /** [Method] Get the first day of the current month adjusted for leap year + * @param date Date The date + */ + static getFirstDayOfMonth( date?:any ): number; + /** [Method] Get the offset from GMT of the current date equivalent to the format specifier O + * @param date Date The date + * @param colon Boolean true to separate the hours and minutes with a colon. + */ + static getGMTOffset( date?:any, colon?:bool ): string; + /** [Method] Get the date of the last day of the month in which this date resides + * @param date Date The date + */ + static getLastDateOfMonth( date?:any ): any; + /** [Method] Get the last day of the current month adjusted for leap year + * @param date Date The date + */ + static getLastDayOfMonth( date?:any ): number; + /** [Method] Get the zero based JavaScript month number for the given short full month name + * @param name String The short/full month name. + */ + static getMonthNumber( name?:string ): number; + /** [Method] Get the short day name for the given day number + * @param day Number A zero-based JavaScript day number. + */ + static getShortDayName( day?:number ): string; + /** [Method] Get the short month name for the given month number + * @param month Number A zero-based JavaScript month number. + */ + static getShortMonthName( month?:number ): string; + /** [Method] Get the English ordinal suffix of the current day equivalent to the format specifier S + * @param date Date The date + */ + static getSuffix( date?:any ): string; + /** [Method] Get the timezone abbreviation of the current date equivalent to the format specifier T + * @param date Date The date + */ + static getTimezone( date?:any ): string; + /** [Method] Get the numeric ISO 8601 week number of the year + * @param date Date The date + */ + static getWeekOfYear( date?:any ): number; + /** [Method] Checks if the current date is affected by Daylight Saving Time DST + * @param date Date The date + */ + static isDST( date?:any ): bool; + /** [Method] Compares if two dates are equal by comparing their values + * @param date1 Date + * @param date2 Date + */ + static isEqual( date1?:any, date2?:any ): bool; + /** [Method] Checks if the current date falls within a leap year + * @param date Date The date + */ + static isLeapYear( date?:any ): bool; + /** [Method] Checks if the passed Date parameters will cause a JavaScript Date rollover + * @param year Number 4-digit year + * @param month Number 1-based month-of-year + * @param day Number Day of month + * @param hour Number Hour + * @param minute Number Minute + * @param second Number Second + * @param millisecond Number Millisecond + */ + static isValid( year?:number, month?:number, day?:number, hour?:number, minute?:number, second?:number, millisecond?:number ): bool; + /** [Method] Returns the current timestamp */ + static now(): number; + /** [Method] Parses the passed string using the specified date format + * @param input String The raw date string. + * @param format String The expected date string format. + * @param strict Boolean true to validate date strings while parsing (i.e. prevents JavaScript Date "rollover"). Invalid date strings will return null when parsed. + */ + static parse( input?:string, format?:string, strict?:bool ): any; + /** [Method] Provides a convenient method for performing basic date arithmetic + * @param date Date The date to modify + * @param interval String A valid date interval enum value. + * @param value Number The amount to subtract from the current date. + */ + static subtract( date?:any, interval?:string, value?:number ): any; + /** [Method] Removes all escaping for a date format string + * @param format String The format to unescape + */ + static unescapeFormat( format?:string ): string; + } +} +declare module Ext.dd { + export interface IDD extends Ext.dd.IDragDrop { + /** [Property] (Boolean) When set to true, the utility automatically tries to scroll the browser window when a drag and drop element is dragge... */ + scroll?: bool; + /** [Method] Sets the element to the location of the mousedown or click event maintaining the cursor location relative to the loc + * @param el HTMLElement the element to move + * @param iPageX Number the X coordinate of the mousedown or drag event + * @param iPageY Number the Y coordinate of the mousedown or drag event + */ + alignElWithMouse?( el?:HTMLElement, iPageX?:number, iPageY?:number ): void; + /** [Method] Sets up config options specific to this class */ + applyConfig?(): void; + /** [Method] Sets the pointer offset to the distance between the linked element s top left corner and the location the element was + * @param iPageX Number the X coordinate of the click + * @param iPageY Number the Y coordinate of the click + */ + autoOffset?( iPageX?:number, iPageY?:number ): void; + /** [Method] Event that fires prior to the onDrag event + * @param e Object + */ + b4Drag?( e?:any ): void; + /** [Method] Event that fires prior to the onMouseDown event + * @param e Object + */ + b4MouseDown?( e?:any ): void; + /** [Method] Saves the most recent position so that we can reset the constraints and tick marks on demand + * @param iPageX Number the current x position (this just makes it so we don't have to look it up again) + * @param iPageY Number the current y position (this just makes it so we don't have to look it up again) + */ + cachePosition?( iPageX?:number, iPageY?:number ): void; + /** [Method] Sets the pointer offset + * @param iDeltaX Number the distance from the left + * @param iDeltaY Number the distance from the top + */ + setDelta?( iDeltaX?:number, iDeltaY?:number ): void; + /** [Method] Sets the drag element to the location of the mousedown or click event maintaining the cursor location relative to th + * @param iPageX Number the X coordinate of the mousedown or drag event + * @param iPageY Number the Y coordinate of the mousedown or drag event + */ + setDragElPos?( iPageX?:number, iPageY?:number ): void; + /** [Method] toString method */ + toString?(): string; + } +} +declare module Ext.dd { + export interface IDDProxy extends Ext.dd.IDD { + /** [Property] (Boolean) By default the frame is positioned exactly where the drag element is, so we use the cursor offset provided by Ext.dd.DD. ... */ + centerFrame?: bool; + /** [Property] (Boolean) By default we resize the drag frame to be the same size as the element we want to drag (this is to get the frame effe... */ + resizeFrame?: bool; + /** [Method] Sets up config options specific to this class */ + applyConfig?(): void; + /** [Method] overrides Ext dd DragDrop Event that fires prior to the onMouseDown event + * @param e Object + */ + b4MouseDown?( e?:any ): void; + /** [Method] Creates the proxy element if it does not yet exist */ + createFrame?(): void; + /** [Method] overrides Ext dd DragDrop By default we try to move the element to the last location of the frame + * @param e Event the mouseup event + */ + endDrag?( e?:Event ): void; + /** [Method] Initialization for the drag frame element */ + initFrame?(): void; + /** [Method] toString method */ + toString?(): string; + } +} +declare module Ext.dd { + export interface IDDTarget extends Ext.dd.IDragDrop { + /** [Method] Overridden and disabled */ + addInvalidHandleClass?(): void; + /** [Method] Overridden and disabled */ + addInvalidHandleId?(): void; + /** [Method] Overridden and disabled */ + addInvalidHandleType?(): void; + /** [Method] Overridden and disabled */ + clearConstraints?(): void; + /** [Method] Overridden and disabled */ + clearTicks?(): void; + /** [Method] Overridden and disabled */ + endDrag?(): void; + /** [Method] Overridden and disabled */ + getDragEl?(): void; + /** [Method] Overridden and disabled */ + isValidHandleChild?(): void; + /** [Method] Overridden and disabled */ + onDrag?(): void; + /** [Method] Overridden and disabled */ + onDragDrop?(): void; + /** [Method] Overridden and disabled */ + onDragEnter?(): void; + /** [Method] Overridden and disabled */ + onDragOut?(): void; + /** [Method] Overridden and disabled */ + onDragOver?(): void; + /** [Method] Overridden and disabled */ + onInvalidDrop?(): void; + /** [Method] Overridden and disabled */ + onMouseDown?(): void; + /** [Method] Overridden and disabled */ + onMouseUp?(): void; + /** [Method] Overridden and disabled */ + removeInvalidHandleClass?(): void; + /** [Method] Overridden and disabled */ + removeInvalidHandleId?(): void; + /** [Method] Overridden and disabled */ + removeInvalidHandleType?(): void; + /** [Method] Overridden and disabled */ + resetConstraints?(): void; + /** [Method] Overridden and disabled */ + setDragElId?(): void; + /** [Method] Overridden and disabled */ + setHandleElId?(): void; + /** [Method] Overridden and disabled */ + setInitPosition?(): void; + /** [Method] Overridden and disabled */ + setOuterHandleElId?(): void; + /** [Method] Overridden and disabled */ + setXConstraint?(): void; + /** [Method] Overridden and disabled */ + setYConstraint?(): void; + /** [Method] Overridden and disabled */ + startDrag?(): void; + /** [Method] toString method */ + toString?(): string; + } +} +declare module Ext.dd { + export interface IDragDrop extends Ext.IBase { + /** [Property] (Boolean) The available property is false until the linked dom element is accessible. ... */ + available?: bool; + /** [Property] (Object) */ + config?: any; + /** [Property] (Object) Provides default constraint padding to "constrainTo" elements. ... */ + defaultPadding?: any; + /** [Property] (Object) The group defines a logical collection of DragDrop objects that are related. ... */ + groups?: any; + /** [Property] (Boolean) By default, drags can only be initiated if the mousedown occurs in the region the linked element is. ... */ + hasOuterHandles?: bool; + /** [Property] (String) The id of the element associated with this object. ... */ + id?: string; + /** [Property] (Boolean) Set to false to enable a DragDrop object to fire drag events while dragging over its own Element. ... */ + ignoreSelf?: bool; + /** [Property] (String[]) */ + invalidHandleClasses?: string[]; + /** [Property] (Object) An object who's property names identify the IDs of elements to be considered invalid as drag handles. ... */ + invalidHandleIds?: any; + /** [Property] (Object) An object who's property names identify HTML tags to be considered invalid as drag handles. ... */ + invalidHandleTypes?: any; + /** [Property] (Boolean) By default, all instances can be a drop target. ... */ + isTarget?: bool; + /** [Property] (Boolean) Maintain offsets when we resetconstraints. ... */ + maintainOffset?: bool; + /** [Property] (Boolean) When set to true, other DD objects in cooperating DDGroups do not receive notification events when this DD object is ... */ + moveOnly?: bool; + /** [Property] (Number[]) The padding configured for this drag and drop object for calculating the drop zone intersection with this object. ... */ + padding?: number[]; + /** [Property] (Boolean) By default the drag and drop instance will only respond to the primary button click (left button for a right-handed m... */ + primaryButtonOnly?: bool; + /** [Property] (Number[]) Array of pixel locations the element will snap to if we specified a horizontal graduation/interval. ... */ + xTicks?: number[]; + /** [Property] (Number[]) Array of pixel locations the element will snap to if we specified a vertical graduation/interval. ... */ + yTicks?: number[]; + /** [Method] Lets you specify a css class of elements that will not initiate a drag + * @param cssClass String the class of the elements you wish to ignore + */ + addInvalidHandleClass?( cssClass?:string ): void; + /** [Method] Lets you to specify an element id for a child of a drag handle that should not initiate a drag + * @param id String the element id of the element you wish to ignore + */ + addInvalidHandleId?( id?:string ): void; + /** [Method] Allows you to specify a tag name that should not start a drag operation when clicked + * @param tagName String the type of element to exclude + */ + addInvalidHandleType?( tagName?:string ): void; + /** [Method] Adds this instance to a group of related drag drop objects + * @param sGroup String the name of the group + */ + addToGroup?( sGroup?:string ): void; + /** [Method] Applies the configuration parameters that were passed into the constructor */ + applyConfig?(): void; + /** [Method] Clears any constraints applied to this instance */ + clearConstraints?(): void; + /** [Method] Clears any tick interval defined for this instance */ + clearTicks?(): void; + /** [Method] Initializes the drag drop object s constraints to restrict movement to a certain element + * @param constrainTo String The element or element ID to constrain to. + * @param pad any Pad provides a way to specify "padding" of the constraints, and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or an object containing the sides to pad. For example: {right:10, bottom:10} + * @param inContent Boolean Constrain the draggable in the content box of the element (inside padding and borders) + */ + constrainTo?( constrainTo?:string, pad?:any, inContent?:bool ): void; + constrainTo?( constrainTo?:HTMLElement, pad?:any, inContent?:bool ): void; + constrainTo?( constrainTo?:Ext.IElement, pad?:any, inContent?:bool ): void; + /** [Method] Called when we are done dragging the object + * @param e Event the mouseup event + */ + endDrag?( e?:Event ): void; + /** [Method] Returns a reference to the actual element to drag */ + getDragEl?(): HTMLElement; + /** [Method] Returns a reference to the linked element */ + getEl?(): HTMLElement; + /** [Method] Sets up the DragDrop object + * @param id String the id of the linked element + * @param sGroup String the group of related items + * @param config Object configuration attributes + */ + init?( id?:string, sGroup?:string, config?:any ): void; + /** [Method] Initializes Targeting functionality only + * @param id String the id of the linked element + * @param sGroup String the group of related items + * @param config Object configuration attributes + */ + initTarget?( id?:string, sGroup?:string, config?:any ): void; + /** [Method] Returns true if this instance is locked or the drag drop mgr is locked meaning that all drag drop is disabled on th */ + isLocked?(): bool; + /** [Method] Checks the tag exclusion list to see if this click should be ignored + * @param node HTMLElement the HTMLElement to evaluate + */ + isValidHandleChild?( node?:HTMLElement ): bool; + /** [Method] Locks this instance */ + lock?(): void; + /** [Method] Override the onAvailable method to do what is needed after the initial position was determined */ + onAvailable?(): void; + /** [Method] Abstract method called during the onMouseMove event while dragging an object + * @param e Event the mousemove event + */ + onDrag?( e?:Event ): void; + /** [Method] Abstract method called when this item is dropped on another DragDrop obj + * @param e Event the mouseup event + * @param id String In POINT mode, the element id this was dropped on. In INTERSECT mode, an array of dd items this was dropped on. + */ + onDragDrop?( e?:Event, id?:string ): void; + onDragDrop?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; + /** [Method] Abstract method called when this element fist begins hovering over another DragDrop obj + * @param e Event the mousemove event + * @param id String In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of one or more dragdrop items being hovered over. + */ + onDragEnter?( e?:Event, id?:string ): void; + onDragEnter?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; + /** [Method] Abstract method called when we are no longer hovering over an element + * @param e Event the mousemove event + * @param id String In POINT mode, the element id this was hovering over. In INTERSECT mode, an array of dd items that the mouse is no longer over. + */ + onDragOut?( e?:Event, id?:string ): void; + onDragOut?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; + /** [Method] Abstract method called when this element is hovering over another DragDrop obj + * @param e Event the mousemove event + * @param id String In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of dd items being hovered over. + */ + onDragOver?( e?:Event, id?:string ): void; + onDragOver?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; + /** [Method] Abstract method called when this item is dropped on an area with no drop target + * @param e Event the mouseup event + */ + onInvalidDrop?( e?:Event ): void; + /** [Method] Called when a drag drop obj gets a mousedown + * @param e Event the mousedown event + */ + onMouseDown?( e?:Event ): void; + /** [Method] Called when a drag drop obj gets a mouseup + * @param e Event the mouseup event + */ + onMouseUp?( e?:Event ): void; + /** [Method] Removes this instance from the supplied interaction group + * @param sGroup String The group to drop + */ + removeFromGroup?( sGroup?:string ): void; + /** [Method] Unsets an invalid css class + * @param cssClass String the class of the element(s) you wish to re-enable + */ + removeInvalidHandleClass?( cssClass?:string ): void; + /** [Method] Unsets an invalid handle id + * @param id String the id of the element to re-enable + */ + removeInvalidHandleId?( id?:string ): void; + /** [Method] Unsets an excluded tag name set by addInvalidHandleType + * @param tagName String the type of element to unexclude + */ + removeInvalidHandleType?( tagName?:string ): void; + /** [Method] Must be called if you manually reposition a dd element + * @param maintainOffset Boolean + */ + resetConstraints?( maintainOffset?:bool ): void; + /** [Method] Allows you to specify that an element other than the linked element will be moved with the cursor during a drag + * @param id String the id of the element that will be used to initiate the drag + */ + setDragElId?( id?:string ): void; + /** [Method] Allows you to specify a child of the linked element that should be used to initiate the drag operation + * @param id String the id of the element that will be used to initiate the drag. + */ + setHandleElId?( id?:string ): void; + /** [Method] Stores the initial placement of the linked element + * @param diffX Number the X offset, default 0 + * @param diffY Number the Y offset, default 0 + */ + setInitPosition?( diffX?:number, diffY?:number ): void; + /** [Method] Allows you to set an element outside of the linked element as a drag handle + * @param id String the id of the element that will be used to initiate the drag + */ + setOuterHandleElId?( id?:string ): void; + /** [Method] Configures the padding for the target zone in px + * @param iTop Number Top pad + * @param iRight Number Right pad + * @param iBot Number Bot pad + * @param iLeft Number Left pad + */ + setPadding?( iTop?:number, iRight?:number, iBot?:number, iLeft?:number ): void; + /** [Method] By default the element can be dragged any place on the screen + * @param iLeft Number the number of pixels the element can move to the left + * @param iRight Number the number of pixels the element can move to the right + * @param iTickSize Number parameter for specifying that the element should move iTickSize pixels at a time. + */ + setXConstraint?( iLeft?:number, iRight?:number, iTickSize?:number ): void; + /** [Method] By default the element can be dragged any place on the screen + * @param iUp Number the number of pixels the element can move up + * @param iDown Number the number of pixels the element can move down + * @param iTickSize Number parameter for specifying that the element should move iTickSize pixels at a time. + */ + setYConstraint?( iUp?:number, iDown?:number, iTickSize?:number ): void; + /** [Method] Abstract method called after a drag drop object is clicked and the drag or mousedown time thresholds have beeen met + * @param x Number X click location + * @param y Number Y click location + */ + startDrag?( x?:number, y?:number ): void; + /** [Method] toString method */ + toString?(): string; + /** [Method] Unlocks this instace */ + unlock?(): void; + /** [Method] Removes all drag and drop hooks for this element */ + unreg?(): void; + } +} +declare module Ext.dd { + export interface IDragDropElement { + /** [Method] Returns the X position of an html element + * @param el HTMLElement the element for which to get the position + */ + getPosX?( el?:HTMLElement ): number; + /** [Method] Returns the Y position of an html element + * @param el HTMLElement the element for which to get the position + */ + getPosY?( el?:HTMLElement ): number; + /** [Method] Gets the scrollLeft */ + getScrollLeft?(): number; + /** [Method] Gets the scrollTop */ + getScrollTop?(): number; + /** [Method] Returns the specified element style property + * @param el HTMLElement the element + * @param styleProp String the style property + */ + getStyle?( el?:HTMLElement, styleProp?:string ): string; + /** [Method] Recursively searches the immediate parent and all child nodes for the handle element in order to determine wheter or + * @param node HTMLElement the html element to inspect + */ + handleWasClicked?( node?:HTMLElement ): void; + /** [Method] Sets the x y position of an element to the location of the target element + * @param moveEl HTMLElement The element to move + * @param targetEl HTMLElement The position reference element + */ + moveToEl?( moveEl?:HTMLElement, targetEl?:HTMLElement ): void; + /** [Method] Numeric array sort function + * @param a Number + * @param b Number + */ + numericSort?( a?:number, b?:number ): number; + /** [Method] Swap two nodes + * @param n1 HTMLElement the first node to swap + * @param n2 HTMLElement the other node to swap + */ + swapNode?( n1?:HTMLElement, n2?:HTMLElement ): void; + } +} +declare module Ext.dd.dragdropmanager { + export interface IElementWrapper { + /** [Property] (Object) */ + css?: any; + /** [Property] (Object) */ + el?: any; + /** [Property] (Object) */ + id?: any; + } +} +declare module Ext.dd { + export interface IDragDropManager extends Ext.IBase { + } + export class DragDropManager { + /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event + * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + */ + static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; + /** [Method] Returns the style property for the DOM element i e document getElById id style + * @param id String the id of the elment to get + */ + static getCss( id?:string ): any; + /** [Method] Returns the DragDrop instance for a given id + * @param id String the id of the DragDrop object + */ + static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo + * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + */ + static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; + /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to + * @param p_oDD Ext.dd.IDragDrop the obj to get related data for + * @param bTargetsOnly Boolean if true, only return targetable objs + */ + static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Utility function to determine if a given element has been registered as a drag drop item + * @param id String the element id to check + */ + static isDragDrop( id?:string ): bool; + /** [Method] Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop ob + * @param id String the element id to check + */ + static isHandle( id?:string ): bool; + /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj + * @param oDD Ext.dd.IDragDrop the drag obj + * @param oTargetDD Ext.dd.IDragDrop the target + */ + static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; + /** [Method] Is drag and drop locked */ + static isLocked(): bool; + /** [Method] My goal is to be able to transparently determine if an object is typeof DragDrop and the exact subclass of DragDrop + * @param the Object object to evaluate + */ + static isTypeOfDD( the?:any ): bool; + /** [Method] Lock all drag and drop functionality */ + static lock(): void; + /** [Method] Refreshes the cache of the top left and bottom right points of the drag and drop objects in the specified group s + * @param groups Object an associative array of groups to refresh + */ + static refreshCache( groups?:any ): void; + /** [Method] Each DragDrop instance must be registered with the DragDropManager + * @param oDD Ext.dd.IDragDrop the DragDrop object to register + * @param sGroup String the name of the group this element belongs to + */ + static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; + /** [Method] Each DragDrop handle element must be registered + * @param sDDId String the DragDrop id this element is a handle for + * @param sHandleId String the id of the element that is the drag handle + */ + static regHandle( sDDId?:string, sHandleId?:string ): void; + /** [Method] Fired when either the drag pixel threshold or the mousedown hold time threshold has been met + * @param x Number the X position of the original mousedown + * @param y Number the Y position of the original mousedown + */ + static startDrag( x?:number, y?:number ): void; + /** [Method] Utility to stop event propagation and event default if these features are turned on + * @param e Event the event as returned by this.getEvent() + */ + static stopEvent( e?:Event ): void; + /** [Method] Unlock all drag and drop functionality */ + static unlock(): void; + /** [Method] This checks to make sure an element exists and is in the DOM + * @param el HTMLElement the element to check + */ + static verifyEl( el?:HTMLElement ): bool; + } +} +declare module Ext.dd { + export interface IDDM extends Ext.IBase { + } + export class DDM { + /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event + * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + */ + static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; + /** [Method] Returns the style property for the DOM element i e document getElById id style + * @param id String the id of the elment to get + */ + static getCss( id?:string ): any; + /** [Method] Returns the DragDrop instance for a given id + * @param id String the id of the DragDrop object + */ + static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo + * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + */ + static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; + /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to + * @param p_oDD Ext.dd.IDragDrop the obj to get related data for + * @param bTargetsOnly Boolean if true, only return targetable objs + */ + static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Utility function to determine if a given element has been registered as a drag drop item + * @param id String the element id to check + */ + static isDragDrop( id?:string ): bool; + /** [Method] Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop ob + * @param id String the element id to check + */ + static isHandle( id?:string ): bool; + /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj + * @param oDD Ext.dd.IDragDrop the drag obj + * @param oTargetDD Ext.dd.IDragDrop the target + */ + static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; + /** [Method] Is drag and drop locked */ + static isLocked(): bool; + /** [Method] My goal is to be able to transparently determine if an object is typeof DragDrop and the exact subclass of DragDrop + * @param the Object object to evaluate + */ + static isTypeOfDD( the?:any ): bool; + /** [Method] Lock all drag and drop functionality */ + static lock(): void; + /** [Method] Refreshes the cache of the top left and bottom right points of the drag and drop objects in the specified group s + * @param groups Object an associative array of groups to refresh + */ + static refreshCache( groups?:any ): void; + /** [Method] Each DragDrop instance must be registered with the DragDropManager + * @param oDD Ext.dd.IDragDrop the DragDrop object to register + * @param sGroup String the name of the group this element belongs to + */ + static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; + /** [Method] Each DragDrop handle element must be registered + * @param sDDId String the DragDrop id this element is a handle for + * @param sHandleId String the id of the element that is the drag handle + */ + static regHandle( sDDId?:string, sHandleId?:string ): void; + /** [Method] Fired when either the drag pixel threshold or the mousedown hold time threshold has been met + * @param x Number the X position of the original mousedown + * @param y Number the Y position of the original mousedown + */ + static startDrag( x?:number, y?:number ): void; + /** [Method] Utility to stop event propagation and event default if these features are turned on + * @param e Event the event as returned by this.getEvent() + */ + static stopEvent( e?:Event ): void; + /** [Method] Unlock all drag and drop functionality */ + static unlock(): void; + /** [Method] This checks to make sure an element exists and is in the DOM + * @param el HTMLElement the element to check + */ + static verifyEl( el?:HTMLElement ): bool; + } +} +declare module Ext.dd { + export interface IDragDropMgr extends Ext.IBase { + } + export class DragDropMgr { + /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event + * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + */ + static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; + /** [Method] Returns the style property for the DOM element i e document getElById id style + * @param id String the id of the elment to get + */ + static getCss( id?:string ): any; + /** [Method] Returns the DragDrop instance for a given id + * @param id String the id of the DragDrop object + */ + static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo + * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + */ + static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; + /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to + * @param p_oDD Ext.dd.IDragDrop the obj to get related data for + * @param bTargetsOnly Boolean if true, only return targetable objs + */ + static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Utility function to determine if a given element has been registered as a drag drop item + * @param id String the element id to check + */ + static isDragDrop( id?:string ): bool; + /** [Method] Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop ob + * @param id String the element id to check + */ + static isHandle( id?:string ): bool; + /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj + * @param oDD Ext.dd.IDragDrop the drag obj + * @param oTargetDD Ext.dd.IDragDrop the target + */ + static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; + /** [Method] Is drag and drop locked */ + static isLocked(): bool; + /** [Method] My goal is to be able to transparently determine if an object is typeof DragDrop and the exact subclass of DragDrop + * @param the Object object to evaluate + */ + static isTypeOfDD( the?:any ): bool; + /** [Method] Lock all drag and drop functionality */ + static lock(): void; + /** [Method] Refreshes the cache of the top left and bottom right points of the drag and drop objects in the specified group s + * @param groups Object an associative array of groups to refresh + */ + static refreshCache( groups?:any ): void; + /** [Method] Each DragDrop instance must be registered with the DragDropManager + * @param oDD Ext.dd.IDragDrop the DragDrop object to register + * @param sGroup String the name of the group this element belongs to + */ + static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; + /** [Method] Each DragDrop handle element must be registered + * @param sDDId String the DragDrop id this element is a handle for + * @param sHandleId String the id of the element that is the drag handle + */ + static regHandle( sDDId?:string, sHandleId?:string ): void; + /** [Method] Fired when either the drag pixel threshold or the mousedown hold time threshold has been met + * @param x Number the X position of the original mousedown + * @param y Number the Y position of the original mousedown + */ + static startDrag( x?:number, y?:number ): void; + /** [Method] Utility to stop event propagation and event default if these features are turned on + * @param e Event the event as returned by this.getEvent() + */ + static stopEvent( e?:Event ): void; + /** [Method] Unlock all drag and drop functionality */ + static unlock(): void; + /** [Method] This checks to make sure an element exists and is in the DOM + * @param el HTMLElement the element to check + */ + static verifyEl( el?:HTMLElement ): bool; + } +} +declare module Ext.dd { + export interface IDragSource extends Ext.dd.IDDProxy { + /** [Config Option] (Boolean) If true, animates the proxy element back to the position of the handle element used to trigger the drag. ... */ + animRepair?: bool; + /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + ddGroup?: string; + /** [Config Option] (String) The CSS class returned to the drag source when drop is allowed. ... */ + dropAllowed?: string; + /** [Config Option] (String) The CSS class returned to the drag source when drop is not allowed. ... */ + dropNotAllowed?: string; + /** [Config Option] (String) The color to use when visually highlighting the drag source in the afterRepair method after a failed drop (defaults t... */ + repairHighlightColor?: string; + /** [Method] An empty function by default but provided so that you can perform a custom action after a valid drag drop has occurr + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dropped element + */ + afterDragDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action when the dragged item enters the d + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + afterDragEnter?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action after the dragged item is dragged + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + afterDragOut?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action while the dragged item is over the + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + afterDragOver?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action after an invalid drop has occurred + * @param e Event The event object + * @param id String The id of the dropped element + */ + afterInvalidDrop?( e?:Event, id?:string ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action after a valid drop has occurred by + * @param target Object The target DD + * @param e Event The event object + * @param id String The id of the dropped element + */ + afterValidDrop?( target?:any, e?:Event, id?:string ): void; + /** [Method] Sets the element to the location of the mousedown or click event maintaining the cursor location relative to the loc + * @param el HTMLElement the element to move + * @param iPageX Number the X coordinate of the mousedown or drag event + * @param iPageY Number the Y coordinate of the mousedown or drag event + */ + alignElWithMouse?( el?:HTMLElement, iPageX?:number, iPageY?:number ): void; + /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item is dropped + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + beforeDragDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item enters the + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + beforeDragEnter?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item is dragged + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + beforeDragOut?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] An empty function by default but provided so that you can perform a custom action while the dragged item is over the + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + beforeDragOver?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] An empty function by default but provided so that you can perform a custom action after an invalid drop has occurred + * @param target Ext.dd.IDragDrop The drop target + * @param e Event The event object + * @param id String The id of the dragged element + */ + beforeInvalidDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] Returns the data object associated with this drag source + * @param e Object + */ + getDragData?( e?:any ): any; + /** [Method] Returns the drag source s underlying Ext dd StatusProxy */ + getProxy?(): Ext.dd.IStatusProxy; + /** [Method] Hides the drag source s Ext dd StatusProxy */ + hideProxy?(): void; + /** [Method] An empty function by default but provided so that you can perform a custom action before the initial drag event begi + * @param data Object An object containing arbitrary data to be shared with drop targets + * @param e Event The event object + */ + onBeforeDrag?( data?:any, e?:Event ): bool; + /** [Method] An empty function by default but provided so that you can perform a custom action once the initial drag event has be + * @param x Number The x position of the click on the dragged object + * @param y Number The y position of the click on the dragged object + */ + onStartDrag?( x?:number, y?:number ): void; + } +} +declare module Ext.dd { + export interface IDragTracker extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean/Number) Specify true to defer trigger start by 1000 ms. ... */ + autoStart?: any; + /** [Config Option] (Ext.util.Region/Ext.Element) A Region (Or an element from which a Region measurement will be read) which is used to constrain the result of the ge... */ + constrainTo?: any; + /** [Config Option] (String) A DomQuery selector which identifies child elements within the DragTracker's encapsulating Element which are the trac... */ + delegate?: string; + /** [Config Option] (String) A CSS class to add to the DragTracker's target element when the element (or, if the delegate option is used, when a d... */ + overCls?: string; + /** [Config Option] (Boolean) Specify false to enable default actions on onMouseDown events. ... */ + preventDefault?: bool; + /** [Config Option] (Boolean) Specify true to stop the mousedown event from bubbling to outer listeners from the target element (or its delegates). ... */ + stopEvent?: bool; + /** [Config Option] (Number) Number of pixels the drag target must be moved before dragging is considered to have started. ... */ + tolerance?: number; + /** [Config Option] (Boolean) Set to true to fire mouseover and mouseout events when the mouse enters or leaves the target element. ... */ + trackOver?: bool; + /** [Property] (Boolean) Indicates whether the user is currently dragging this tracker. ... */ + active?: bool; + /** [Property] (HTMLElement) The element being dragged. ... */ + dragTarget?: HTMLElement; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the drag target */ + getDragTarget?(): Ext.IElement; + /** [Method] Returns the X Y offset of the current mouse position from the mousedown point + * @param constrainMode String If omitted the true mouse position is returned. May be passed as point or dragTarget. See above. + */ + getOffset?( constrainMode?:string ): number[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Initializes the DragTracker on a given element + * @param el Ext.IElement The element + */ + initEl?( el?:Ext.IElement ): void; + initEl?( el?:HTMLElement ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onBeforeStart?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onDrag?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onEnd?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onStart?( e?:Ext.IEventObject ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.dd { + export interface IDragZone extends Ext.dd.IDragSource { + /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + containerScroll?: any; + /** [Config Option] (String/HTMLElement/Ext.dom.Element) An element to register with the ScrollManager if containerScroll is set. ... */ + scrollEl?: any; + /** [Property] (Object) This property contains the data representing the dragged object. ... */ + dragData?: any; + /** [Method] Called when a mousedown occurs in this container + * @param e Event The mouse down event + */ + getDragData?( e?:Event ): any; + /** [Method] Called before a repair of an invalid drop to get the XY to animate to + * @param e Event The mouse up event + */ + getRepairXY?( e?:Event ): number[]; + /** [Method] Called once drag threshold has been reached to initialize the proxy element + * @param x Number The x position of the click on the dragged object + * @param y Number The y position of the click on the dragged object + */ + onInitDrag?( x?:number, y?:number ): bool; + } +} +declare module Ext.dd { + export interface IDropTarget extends Ext.dd.IDDTarget { + /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + ddGroup?: string; + /** [Config Option] (String) The CSS class returned to the drag source when drop is allowed. ... */ + dropAllowed?: string; + /** [Config Option] (String) The CSS class returned to the drag source when drop is not allowed. ... */ + dropNotAllowed?: string; + /** [Config Option] (String) The CSS class applied to the drop target element while the drag source is over it. ... */ + overClass?: string; + /** [Property] (Boolean) private By default, all instances can be a drop target. ... */ + isTarget?: bool; + /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the dragged item has been dropped on it + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the source is now over the target + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyEnter?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the source has been dragged out of the ta + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] The function a Ext dd DragSource calls continuously while it is being dragged over the target + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + } +} +declare module Ext.dd { + export interface IDropZone extends Ext.dd.IDropTarget { + /** [Method] Returns a custom data object associated with the DOM node that is the target of the event + * @param e Event The event + */ + getTargetFromEvent?( e?:Event ): any; + /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the dragged item has been dropped on it + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source is now over the zone + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyEnter?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source has been dragged out of the zone + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag zone + */ + notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] The function a Ext dd DragSource calls continuously while it is being dragged over the drop zone + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + notifyOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped on it but not on any of its registered + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onContainerDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] Called while the DropZone determines that a Ext dd DragSource is being dragged over it but not over any of its regis + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has entered a drop node that has either been registered + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeEnter?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dragged out of the drop node without dropping + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + } +} +declare module Ext.dd { + export interface IRegistry extends Ext.IBase { + } + export class Registry { + /** [Method] */ + constructor(); + /** [Method] Returns the handle registered for a DOM Node by id + * @param id any The DOM node or id to look up + */ + static getHandle( id?:any ): any; + static getHandle( id?:string ): any; + static getHandle( id?:HTMLElement ): any; + /** [Method] Returns the handle that is registered for the DOM node that is the target of the event + * @param e Event The event + */ + static getHandleFromEvent( e?:Event ): any; + /** [Method] Returns a custom data object that is registered for a DOM node by id + * @param id any The DOM node or id to look up + */ + static getTarget( id?:any ): any; + static getTarget( id?:string ): any; + static getTarget( id?:HTMLElement ): any; + /** [Method] Returns a custom data object that is registered for the DOM node that is the target of the event + * @param e Event The event + */ + static getTargetFromEvent( e?:Event ): any; + /** [Method] Registers a drag drop element + * @param element String The id or DOM node to register + * @param data Object An custom data object that will be passed between the elements that are involved in drag drop operations. You can populate this object with any arbitrary properties that your own code knows how to interpret, plus there are some specific properties known to the Registry that should be populated in the data object (if applicable): + */ + static register( element?:string, data?:any ): void; + static register( element?:HTMLElement, data?:any ): void; + /** [Method] Unregister a drag drop element + * @param element String The id or DOM node to unregister + */ + static unregister( element?:string ): void; + static unregister( element?:HTMLElement ): void; + } +} +declare module Ext.dd { + export interface IScrollManager extends Ext.IBase { + } + export class ScrollManager { + /** [Method] */ + constructor(); + /** [Method] Manually trigger a cache refresh */ + static refreshCache(): void; + /** [Method] Registers new overflow element s to auto scroll + * @param el String The id of or the element to be scrolled or an array of either + */ + static register( el?:string ): void; + static register( el?:HTMLElement ): void; + static register( el?:Ext.IElement ): void; + static register( el?:string[] ): void; + static register( el?:HTMLElement[] ): void; + static register( el?:Ext.IElement[] ): void; + /** [Method] Unregisters overflow element s so they are no longer scrolled + * @param el String The id of or the element to be removed or an array of either + */ + static unregister( el?:string ): void; + static unregister( el?:HTMLElement ): void; + static unregister( el?:Ext.IElement ): void; + static unregister( el?:string[] ): void; + static unregister( el?:HTMLElement[] ): void; + static unregister( el?:Ext.IElement[] ): void; + } +} +declare module Ext.dd { + export interface IStatusProxy extends Ext.IComponent { + /** [Config Option] (String) The CSS class to apply to the status element when drop is allowed. ... */ + dropAllowed?: string; + /** [Config Option] (String) The CSS class to apply to the status element when drop is not allowed. ... */ + dropNotAllowed?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Method] Returns the ghost element */ + getGhost?(): Ext.IElement; + /** [Method] Causes the proxy to return to its position of origin via an animation + * @param xy Number[] The XY position of the element ([x, y]) + * @param callback Function The function to call after the repair is complete. + * @param scope Object The scope (this reference) in which the callback function is executed. Defaults to the browser window. + */ + repair?( xy?:number[], callback?:any, scope?:any ): void; + /** [Method] Resets the status indicator to the default dropNotAllowed value + * @param clearGhost Boolean True to also remove all content from the ghost, false to preserve it + */ + reset?( clearGhost?:bool ): void; + /** [Method] Updates the proxy s visual element to indicate the status of whether or not drop is allowed over the current target e + * @param cssClass String The css class for the new drop status indicator image + */ + setStatus?( cssClass?:string ): void; + /** [Method] Stops the repair animation if it s currently running */ + stop?(): void; + /** [Method] Force the Layer to sync its shadow and shim positions to the element */ + sync?(): void; + /** [Method] Updates the contents of the ghost element + * @param html String The html that will replace the current innerHTML of the ghost element, or a DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first). + */ + update?( html?:string ): void; + update?( html?:HTMLElement ): void; + } +} +declare module Ext.direct { + export interface IEvent extends Ext.IBase { + /** [Method] Return the raw data for this event */ + getData?(): any; + /** [Method] Return the name for this event */ + getName?(): string; + } +} +declare module Ext.direct { + export interface IExceptionEvent extends Ext.direct.IRemotingEvent { + } +} +declare module Ext.direct { + export interface IJsonProvider extends Ext.direct.IProvider { + /** [Method] Create an event from a response object + * @param response Object Response object + */ + createEvent?( response?:any ): Ext.direct.IEvent; + /** [Method] Creates a set of events based on the XHR response + * @param response Object The XHR response + */ + createEvents?( response?:any ): Ext.direct.IEvent[]; + } +} +declare module Ext.direct { + export interface IManager extends Ext.IBase,Ext.util.IObservable { + } + export class Manager { + /** [Method] */ + constructor(); + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds an Ext Direct Provider and creates the proxy or stub methods to execute server side methods + * @param provider any Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. + */ + static addProvider( provider?:any ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Retrieves a provider by the id specified when the provider is added + * @param id String The id of the provider, or the provider instance. + */ + static getProvider( id?:string ): void; + static getProvider( id?:Ext.direct.IProvider ): void; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Parses a direct function + * @param fn any The direct function + */ + static parseMethod( fn?:any ): any; + static parseMethod( fn?:string ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Removes the provider + * @param provider any The provider instance or the id of the provider. + */ + static removeProvider( provider?:any ): any; + static removeProvider( provider?:string ): Ext.direct.IProvider; + static removeProvider( provider?:Ext.direct.IProvider ): Ext.direct.IProvider; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IDirect extends Ext.IBase,Ext.util.IObservable { + } + export class Direct { + /** [Method] */ + constructor(); + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds an Ext Direct Provider and creates the proxy or stub methods to execute server side methods + * @param provider any Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. + */ + static addProvider( provider?:any ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Retrieves a provider by the id specified when the provider is added + * @param id String The id of the provider, or the provider instance. + */ + static getProvider( id?:string ): void; + static getProvider( id?:Ext.direct.IProvider ): void; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Parses a direct function + * @param fn any The direct function + */ + static parseMethod( fn?:any ): any; + static parseMethod( fn?:string ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Removes the provider + * @param provider any The provider instance or the id of the provider. + */ + static removeProvider( provider?:any ): any; + static removeProvider( provider?:string ): Ext.direct.IProvider; + static removeProvider( provider?:Ext.direct.IProvider ): Ext.direct.IProvider; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.direct { + export interface IPollingProvider extends Ext.direct.IJsonProvider { + /** [Config Option] (Object) */ + baseParams?: any; + /** [Config Option] (Number) How often to poll the server-side in milliseconds. ... */ + interval?: number; + /** [Config Option] (String/Function) The url which the PollingProvider should contact with each request. ... */ + url?: any; + /** [Method] Connect to the server side and begin the polling process */ + connect?(): void; + /** [Method] Disconnect from the server side and stop the polling process */ + disconnect?(): void; + /** [Method] Returns whether or not the server side is currently connected */ + isConnected?(): void; + } +} +declare module Ext.direct { + export interface IProvider extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) The unique id of the provider (defaults to an auto-assigned id). ... */ + id?: string; + /** [Config Option] (String[]) List of Provider events that should be relayed by Ext.direct.Manager. ... */ + relayedEvents?: string[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Abstract method for subclasses to implement */ + connect?(): void; + /** [Method] Abstract method for subclasses to implement */ + disconnect?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Returns whether or not the server side is currently connected */ + isConnected?(): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.direct { + export interface IRemotingEvent extends Ext.direct.IEvent { + /** [Method] Get the transaction associated with this event */ + getTransaction?(): Ext.direct.ITransaction; + } +} +declare module Ext.direct { + export interface IRemotingMethod extends Ext.IBase { + /** [Method] Takes the arguments for the Direct function and splits the arguments from the scope and the callback + * @param args Array The arguments passed to the direct call + */ + getCallData?( args?:any[] ): any; + } +} +declare module Ext.direct { + export interface IRemotingProvider extends Ext.direct.IJsonProvider { + /** [Config Option] (Object) Object literal defining the server side actions and methods. ... */ + actions?: any; + /** [Config Option] (Boolean) In versions prior to 4.2, using dotted Action names was not really meaningful, because it generated flat namespace ob... */ + disableNestedActions?: bool; + /** [Config Option] (Number/Boolean) true or false to enable or disable combining of method calls. ... */ + enableBuffer?: any; + /** [Config Option] (String) Specify which param will hold the arguments for the method. ... */ + enableUrlEncode?: string; + /** [Config Option] (Number) Number of times to re-attempt delivery on failure of a call. ... */ + maxRetries?: number; + /** [Config Option] (String/Object) Namespace for the Remoting Provider (defaults to Ext.global). ... */ + namespace?: any; + /** [Config Option] (Number) */ + timeout?: number; + /** [Config Option] (String) Required. ... */ + url?: string; + /** [Method] Abstract method for subclasses to implement */ + connect?(): void; + /** [Method] Abstract method for subclasses to implement */ + disconnect?(): void; + /** [Method] Returns whether or not the server side is currently connected */ + isConnected?(): void; + } +} +declare module Ext.direct { + export interface ITransaction extends Ext.IBase { + /** [Config Option] (Ext.direct.Provider) */ + provider?: Ext.direct.IProvider; + } +} +declare module Ext.dom { + export interface IAbstractElement extends Ext.IBase { + /** [Property] (String) The default unit to append to CSS values where a unit isn't provided. ... */ + defaultUnit?: string; + /** [Property] (HTMLElement) */ + dom?: HTMLElement; + /** [Property] (String) */ + id?: string; + /** [Method] Adds one or more CSS classes to the element + * @param className any The CSS classes to add separated by space, or an array of classes + */ + addCls?( className?:any ): any; + addCls?( className?:string ): Ext.dom.IElement; + addCls?( className?:string[] ): Ext.dom.IElement; + /** [Method] Appends the passed element s to this element Defined in override Ext dom AbstractElement_insertion + * @param el any The id or element to insert or a DomHelper config The id of the node, a DOM Node or an existing Element. + * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement + */ + appendChild?( el?:any, returnDom?:bool ): Ext.dom.IAbstractElement; + /** [Method] Appends this element to the passed element Defined in override Ext dom AbstractElement_insertion + * @param el any The new parent element. The id of the node, a DOM Node or an existing Element. + */ + appendTo?( el?:any ): any; + appendTo?( el?:string ): Ext.dom.IAbstractElement; + appendTo?( el?:HTMLElement ): Ext.dom.IAbstractElement; + appendTo?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; + /** [Method] More flexible version of setStyle for setting style properties + * @param styles any A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or a function which returns such a specification. + */ + applyStyles?( styles?:any ): Ext.dom.IElement; + /** [Method] Selects a single direct child based on the passed CSS selector the selector should not contain an id + * @param selector String The CSS selector + * @param returnDom Boolean True to return the DOM node instead of Ext.dom.Element. + */ + child?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Selects a single direct child based on the passed CSS selector the selector should not contain an id + * @param selector String The CSS selector + * @param returnDom Boolean True to return the DOM node instead of Ext.dom.Element. + */ + child?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Returns true if this element is an ancestor of the passed element + * @param el any The element to check + */ + contains?( el?:any ): any; + contains?( el?:HTMLElement ): bool; + contains?( el?:string ): bool; + /** [Method] Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e + * @param config Object DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes. + * @param insertBefore HTMLElement a child element of this element + * @param returnDom Boolean true to return the dom node instead of creating an Element + */ + createChild?( config?:any, insertBefore?:HTMLElement, returnDom?:bool ): Ext.dom.IAbstractElement; + /** [Method] Alias to remove */ + destroy?(): void; + /** [Method] Selects a single child at any depth below this element based on the passed CSS selector the selector should not cont + * @param selector String The CSS selector + * @param returnDom Boolean True to return the DOM node instead of Ext.dom.Element + */ + down?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Selects a single child at any depth below this element based on the passed CSS selector the selector should not cont + * @param selector String The CSS selector + * @param returnDom Boolean True to return the DOM node instead of Ext.dom.Element + */ + down?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Looks at this node and then at parent nodes for a match of the passed simple selector e g + * @param selector any The simple selector to test + * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnEl any True to return a Ext.Element object instead of DOM node + */ + findParent?( selector?:any, limit?:any, returnEl?:any ): any; + findParent?( selector?:string, limit?:number, returnEl?:bool ): HTMLElement; + findParent?( selector?:string, limit?:string, returnEl?:bool ): HTMLElement; + findParent?( selector?:string, limit?:HTMLElement, returnEl?:bool ): HTMLElement; + findParent?( selector?:string, limit?:Ext.IElement, returnEl?:bool ): HTMLElement; + /** [Method] Looks at parent nodes for a match of the passed simple selector e g + * @param selector any The simple selector to test + * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnEl any True to return a Ext.Element object instead of DOM node + */ + findParentNode?( selector?:any, limit?:any, returnEl?:any ): any; + findParentNode?( selector?:string, limit?:number, returnEl?:bool ): HTMLElement; + findParentNode?( selector?:string, limit?:string, returnEl?:bool ): HTMLElement; + findParentNode?( selector?:string, limit?:HTMLElement, returnEl?:bool ): HTMLElement; + findParentNode?( selector?:string, limit?:Ext.IElement, returnEl?:bool ): HTMLElement; + /** [Method] Gets the first child skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the next sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + first?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Gets the first child skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the next sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + first?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Returns the active element in the DOM */ + getActiveElement?(): HTMLElement; + /** [Method] Returns the value of an attribute from the element s underlying DOM node + * @param name String The attribute name + * @param namespace String The namespace in which to look for the attribute + */ + getAttribute?( name?:string, namespace?:string ): string; + /** [Method] Gets the width of the border s for the specified side s Defined in override Ext dom AbstractElement_style + * @param side String Can be t, l, r, b or any combination of those to add multiple values. For example, passing 'lr' would get the border left width + the border right width. + */ + getBorderWidth?( side?:string ): number; + /** [Method] Returns a child element of this element given its id + * @param id String The id of the desired child element. + * @param asDom Boolean True to return the DOM element, false to return a wrapped Element object. + */ + getById?( id?:string, asDom?:bool ): void; + /** [Method] Returns the innerHTML of an Element or an empty string if the element s dom no longer exists */ + getHTML?(): void; + /** [Method] Returns the offset height of the element Defined in override Ext dom AbstractElement_style + * @param contentHeight Boolean true to get the height minus borders and padding + */ + getHeight?( contentHeight?:bool ): number; + /** [Method] Returns an object with properties top left right and bottom representing the margins of this element unless sides i + * @param sides String Any combination of l, r, t, b to get the sum of those sides + */ + getMargin?( sides?:string ): any; + /** [Method] Gets the width of the padding s for the specified side s Defined in override Ext dom AbstractElement_style + * @param side String Can be t, l, r, b or any combination of those to add multiple values. For example, passing 'lr' would get the padding left + the padding right. + */ + getPadding?( side?:string ): number; + /** [Method] Returns the size of the element + * @param contentSize Boolean true to get the width/size minus borders and padding + */ + getSize?( contentSize?:bool ): any; + /** [Method] Returns a named style property based on computed currentStyle primary and inline style if primary is not available + * @param property any The style property (or multiple property names in an array) whose value is returned. + * @param inline any if true only inline styles will be returned. + */ + getStyle?( property?:any, inline?:any ): any; + getStyle?( property?:string, inline?:bool ): any; + getStyle?( property?:string[], inline?:bool ): any; + /** [Method] Returns the value of the value attribute + * @param asNumber Boolean true to parse the value as a number + */ + getValue?( asNumber?:bool ): string; + /** [Method] Returns the value of the value attribute + * @param asNumber Boolean true to parse the value as a number + */ + getValue?( asNumber?:bool ): number; + /** [Method] Returns the dimensions of the element available to lay content out in */ + getViewSize?(): any; + /** [Method] Returns the offset width of the element Defined in override Ext dom AbstractElement_style + * @param contentWidth Boolean true to get the width minus borders and padding + */ + getWidth?( contentWidth?:bool ): number; + /** [Method] Checks if the specified CSS class exists on this element s DOM node + * @param className String The CSS class to check for + */ + hasCls?( className?:string ): bool; + /** [Method] Hide this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + hide?( animate?:any ): Ext.dom.IElement; + /** [Method] Inserts this element after the passed element in the DOM Defined in override Ext dom AbstractElement_insertion + * @param el any The element to insert after. The id of the node, a DOM Node or an existing Element. + */ + insertAfter?( el?:any ): any; + insertAfter?( el?:string ): Ext.dom.IAbstractElement; + insertAfter?( el?:HTMLElement ): Ext.dom.IAbstractElement; + insertAfter?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; + /** [Method] Inserts this element before the passed element in the DOM Defined in override Ext dom AbstractElement_insertion + * @param el any The element before which this element will be inserted. The id of the node, a DOM Node or an existing Element. + */ + insertBefore?( el?:any ): any; + insertBefore?( el?:string ): Ext.dom.IAbstractElement; + insertBefore?( el?:HTMLElement ): Ext.dom.IAbstractElement; + insertBefore?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; + /** [Method] Inserts or creates an element or DomHelper config as the first child of this element Defined in override Ext dom + * @param el any The id or element to insert or a DomHelper config to create and insert + */ + insertFirst?( el?:any ): Ext.dom.IAbstractElement; + /** [Method] Inserts an html fragment into this element Defined in override Ext dom AbstractElement_insertion + * @param where String Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd. See Ext.dom.Helper.insertHtml for details. + * @param html String The HTML fragment + * @param returnEl Boolean True to return an Ext.dom.AbstractElement + */ + insertHtml?( where?:string, html?:string, returnEl?:bool ): HTMLElement; + /** [Method] Inserts an html fragment into this element Defined in override Ext dom AbstractElement_insertion + * @param where String Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd. See Ext.dom.Helper.insertHtml for details. + * @param html String The HTML fragment + * @param returnEl Boolean True to return an Ext.dom.AbstractElement + */ + insertHtml?( where?:string, html?:string, returnEl?:bool ): Ext.dom.IAbstractElement; + /** [Method] Inserts or creates the passed element or DomHelper config as a sibling of this element Defined in override Ext d + * @param el any The id, element to insert or a DomHelper config to create and insert or an array of any of those. + * @param where String 'before' or 'after' + * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement + */ + insertSibling?( el?:any, where?:string, returnDom?:bool ): Ext.dom.IAbstractElement; + /** [Method] Returns true if this element matches the passed simple selector e g + * @param selector String The simple selector to test + */ + is?( selector?:string ): bool; + /** [Method] Checks if the current value of a style is equal to a given value + * @param style String property whose value is returned. + * @param value String to check against. + */ + isStyle?( style?:string, value?:string ): bool; + /** [Method] Returns true if the value of the given property is visually transparent + * @param prop String The style property whose value is to be tested. + */ + isTransparent?( prop?:string ): bool; + /** [Method] Gets the last child skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the previous sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + last?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Gets the last child skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the previous sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + last?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Puts a mask over this element to disable user interaction + * @param msg String A message to display in the mask + * @param msgCls String A css class to apply to the msg element + */ + mask?( msg?:string, msgCls?:string ): void; + /** [Method] Gets the next sibling skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the next sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + next?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Gets the next sibling skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the next sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + next?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Gets the parent node for this element optionally chaining up trying to match a selector Defined in override Ext dom + * @param selector String Find a parent node that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + parent?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Gets the parent node for this element optionally chaining up trying to match a selector Defined in override Ext dom + * @param selector String Find a parent node that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + parent?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Gets the previous sibling skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the previous sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + prev?( selector?:string, returnDom?:bool ): Ext.dom.IElement; + /** [Method] Gets the previous sibling skipping text nodes Defined in override Ext dom AbstractElement_traversal + * @param selector String Find the previous sibling that matches the passed simple selector + * @param returnDom Boolean True to return a raw dom node instead of an Ext.dom.Element + */ + prev?( selector?:string, returnDom?:bool ): HTMLElement; + /** [Method] Selects child nodes based on the passed CSS selector the selector should not contain an id + * @param selector String The CSS selector + */ + query?( selector?:string ): HTMLElement[]; + /** [Method] Adds one or more CSS classes to this element and removes the same class es from all siblings + * @param className any The CSS class to add, or an array of classes + */ + radioCls?( className?:any ): any; + radioCls?( className?:string ): Ext.dom.IElement; + radioCls?( className?:string[] ): Ext.dom.IElement; + /** [Method] Removes this element s dom reference */ + remove?(): void; + /** [Method] Removes one or more CSS classes from the element + * @param className any The CSS classes to remove separated by space, or an array of classes + */ + removeCls?( className?:any ): any; + removeCls?( className?:string ): Ext.dom.IElement; + removeCls?( className?:string[] ): Ext.dom.IElement; + /** [Method] Forces the browser to repaint this element Defined in override Ext dom AbstractElement_style */ + repaint?(): Ext.dom.IElement; + /** [Method] Replaces the passed element with this element Defined in override Ext dom AbstractElement_insertion + * @param el any The element to replace. The id of the node, a DOM Node or an existing Element. + */ + replace?( el?:any ): any; + replace?( el?:string ): Ext.dom.IAbstractElement; + replace?( el?:HTMLElement ): Ext.dom.IAbstractElement; + replace?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; + /** [Method] Replaces a CSS class on the element with another + * @param oldClassName String The CSS class to replace + * @param newClassName String The replacement CSS class + */ + replaceCls?( oldClassName?:string, newClassName?:string ): Ext.dom.IElement; + /** [Method] Replaces this element with the passed element Defined in override Ext dom AbstractElement_insertion + * @param el any The new element (id of the node, a DOM Node or an existing Element) or a DomHelper config of an element to create + */ + replaceWith?( el?:any ): Ext.dom.IAbstractElement; + /** [Method] Creates a Ext CompositeElement for child nodes based on the passed CSS selector the selector should not contain an id + * @param selector String The CSS selector + * @param unique Boolean True to create a unique Ext.Element for each element. Defaults to a shared flyweight object. + */ + select?( selector?:string, unique?:bool ): Ext.ICompositeElement; + /** [Method] Serializes a DOM form into a url encoded string Defined in override Ext dom AbstractElement_static + * @param form Object The form + */ + serializeForm?( form?:any ): string; + /** [Method] Sets the passed attributes as attributes of this element a style attribute can be a string object or function + * @param o Object The object with the attributes + * @param useSet Boolean false to override the default setAttribute to use expandos. + */ + set?( o?:any, useSet?:bool ): Ext.dom.IElement; + /** [Method] Set the innerHTML of this element + * @param html String The new HTML + */ + setHTML?( html?:string ): Ext.IElement; + /** [Method] Set the height of this Element + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + */ + setHeight?( height?:any ): any; + setHeight?( height?:number ): Ext.dom.IElement; + setHeight?( height?:string ): Ext.dom.IElement; + /** [Method] Set the size of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:number, height?:number ): Ext.dom.IElement; + setSize?( width?:string, height?:number ): Ext.dom.IElement; + setSize?( width?:number, height?:string ): Ext.dom.IElement; + setSize?( width?:string, height?:string ): Ext.dom.IElement; + /** [Method] Wrapper for setting style properties also takes single object parameter of multiple styles + * @param property any The style property to be set, or an object of multiple styles. + * @param value String The value to apply to the given property, or null if an object was passed. + */ + setStyle?( property?:any, value?:string ): Ext.dom.IElement; + /** [Method] Use this to change the visibility mode between VISIBILITY DISPLAY OFFSETS or ASCLASS + * @param mode Object + */ + setVisibilityMode?( mode?:any ): Ext.dom.IAbstractElement; + /** [Method] Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Set the width of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + */ + setWidth?( width?:any ): any; + setWidth?( width?:number ): Ext.dom.IElement; + setWidth?( width?:string ): Ext.dom.IElement; + /** [Method] Show this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + show?( animate?:any ): Ext.dom.IElement; + /** [Method] Toggles the specified CSS class on this element removes it if it already exists otherwise adds it + * @param className String The CSS class to toggle + */ + toggleCls?( className?:string ): Ext.dom.IElement; + /** [Method] Removes a previously applied mask */ + unmask?(): void; + /** [Method] Walks up the DOM looking for a parent node that matches the passed simple selector e g + * @param selector any The simple selector to test + * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnDom any True to return the DOM node instead of Ext.dom.Element + */ + up?( selector?:any, limit?:any, returnDom?:any ): any; + up?( selector?:string, limit?:number, returnDom?:bool ): Ext.IElement; + up?( selector?:string, limit?:string, returnDom?:bool ): Ext.IElement; + up?( selector?:string, limit?:HTMLElement, returnDom?:bool ): Ext.IElement; + up?( selector?:string, limit?:Ext.IElement, returnDom?:bool ): Ext.IElement; + /** [Method] Update the innerHTML of this element + * @param html String The new HTML + */ + update?( html?:string ): Ext.dom.IElement; + /** [Method] Creates and wraps this element with another element Defined in override Ext dom AbstractElement_insertion + * @param config Object DomHelper element config object for the wrapper element or null for an empty div + * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement + * @param selector String A DomQuery selector to select a descendant node within the created element to use as the wrapping element. + */ + wrap?( config?:any, returnDom?:bool, selector?:string ): HTMLElement; + /** [Method] Creates and wraps this element with another element Defined in override Ext dom AbstractElement_insertion + * @param config Object DomHelper element config object for the wrapper element or null for an empty div + * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement + * @param selector String A DomQuery selector to select a descendant node within the created element to use as the wrapping element. + */ + wrap?( config?:any, returnDom?:bool, selector?:string ): Ext.dom.IAbstractElement; + } +} +declare module Ext.dom { + export interface IAbstractHelper extends Ext.IBase { + /** [Method] Creates new DOM element s and appends them to el + * @param el any The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement any true to return a Ext.Element + */ + append?( el?:any, o?:any, returnElement?:any ): any; + append?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + append?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + append?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and appends them to el + * @param el String The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + append?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + append?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + append?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies a style specification to an element + * @param el String The element to apply styles to + * @param styles any A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or a function which returns such a specification. + */ + applyStyles?( el?:string, styles?:any ): void; + applyStyles?( el?:HTMLElement, styles?:any ): void; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + generateStyles?( styles?:any, buffer?:string[] ): string; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + generateStyles?( styles?:any, buffer?:string[] ): string[]; + /** [Method] Creates new DOM element s and inserts them after el + * @param el any The context element + * @param o any The DOM object spec (and children) + * @param returnElement any true to return a Ext.Element + */ + insertAfter?( el?:any, o?:any, returnElement?:any ): any; + insertAfter?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + insertAfter?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + insertAfter?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them after el + * @param el String The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element + */ + insertAfter?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + insertAfter?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + insertAfter?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el any The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement any true to return a Ext.Element + */ + insertBefore?( el?:any, o?:any, returnElement?:any ): any; + insertBefore?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + insertBefore?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + insertBefore?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el String The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + insertBefore?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + insertBefore?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + insertBefore?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el any The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement any true to return a Ext.Element + */ + insertFirst?( el?:any, o?:any, returnElement?:any ): any; + insertFirst?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + insertFirst?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + insertFirst?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el String The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + insertFirst?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + insertFirst?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + insertFirst?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Inserts an HTML fragment into the DOM + * @param where any Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. For example take the following HTML: <div>Contents</div> Using different where values inserts element to the following places: beforeBegin: <HERE><div>Contents</div> afterBegin: <div><HERE>Contents</div> beforeEnd: <div>Contents<HERE></div> afterEnd: <div>Contents</div><HERE> + * @param el any The context element + * @param html any The HTML fragment + */ + insertHtml?( where?:any, el?:any, html?:any ): any; + insertHtml?( where?:string, el?:HTMLElement, html?:string ): HTMLElement; + insertHtml?( where?:string, el?:any, html?:string ): HTMLElement; + /** [Method] Returns the markup for the passed Element s config + * @param spec Object The DOM object spec (and children) + */ + markup?( spec?:any ): string; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el any The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement any true to return a Ext.Element + */ + overwrite?( el?:any, o?:any, returnElement?:any ): any; + overwrite?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + overwrite?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + } +} +declare module Ext.dom { + export interface IAbstractQuery extends Ext.IBase { + /** [Method] Returns true if the passed element s match the passed simple selector e g + * @param el any An element id, element or array of elements + * @param selector any The simple selector to test + */ + is?( el?:any, selector?:any ): any; + is?( el?:string, selector?:string ): bool; + is?( el?:HTMLElement, selector?:string ): bool; + is?( el?:any[], selector?:string ): bool; + /** [Method] Selects a group of elements + * @param selector any The selector/xpath query (can be a comma separated list of selectors) + * @param root any The start of the query (defaults to document). + */ + select?( selector?:any, root?:any ): any; + select?( selector?:string, root?:HTMLElement ): HTMLElement[]; + select?( selector?:string, root?:string ): HTMLElement[]; + /** [Method] Selects a single element + * @param selector any The selector/xpath query + * @param root any The start of the query (defaults to document). + */ + selectNode?( selector?:any, root?:any ): any; + selectNode?( selector?:string, root?:HTMLElement ): HTMLElement; + selectNode?( selector?:string, root?:string ): HTMLElement; + } +} +declare module Ext.dom { + export interface ICompositeElement extends Ext.dom.ICompositeElementLite { + } +} +declare module Ext { + export interface ICompositeElement extends Ext.dom.ICompositeElementLite { + } +} +declare module Ext.dom { + export interface ICompositeElementLite extends Ext.IBase { + /** [Property] (HTMLElement[]) The Array of DOM elements which this CompositeElement encapsulates. ... */ + elements?: HTMLElement[]; + /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + isComposite?: bool; + /** [Method] Adds elements to this Composite object + * @param els any Either an Array of DOM elements to add, or another Composite object who's elements should be added. + */ + add?( els?:any ): any; + add?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; + add?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; + /** [Method] Removes all elements from this Composite + * @param removeDom Boolean True to also remove the elements from the document. + */ + clear?( removeDom?:bool ): void; + /** [Method] Returns true if this composite contains the passed element + * @param el any The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + */ + contains?( el?:any ): any; + contains?( el?:string ): bool; + contains?( el?:HTMLElement ): bool; + contains?( el?:Ext.IElement ): bool; + contains?( el?:number ): bool; + /** [Method] Calls the passed function for each element in this composite + * @param fn Function The function to call. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Element. + */ + each?( fn?:any, scope?:any ): Ext.dom.ICompositeElement; + /** [Method] Clears this Composite and adds the elements passed + * @param els any Either an array of DOM elements, or another Composite from which to fill this Composite. + */ + fill?( els?:any ): any; + fill?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; + fill?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; + /** [Method] Filters this composite to only elements that match the passed selector + * @param selector any A string CSS selector or a comparison function. The comparison function will be called with the following arguments: + */ + filter?( selector?:any ): any; + filter?( selector?:string ): Ext.dom.ICompositeElement; + /** [Method] Returns the first Element */ + first?(): Ext.dom.IElement; + /** [Method] Returns the number of elements in this Composite */ + getCount?(): number; + /** [Method] Find the index of the passed element within the composite collection + * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + */ + indexOf?( el?:any ): any; + indexOf?( el?:string ): number; + indexOf?( el?:HTMLElement ): number; + indexOf?( el?:Ext.IElement ): number; + indexOf?( el?:number ): number; + /** [Method] Returns a flyweight Element of the dom element object at the specified index + * @param index Number + */ + item?( index?:number ): Ext.dom.IElement; + /** [Method] Returns the last Element */ + last?(): Ext.dom.IElement; + /** [Method] Removes the specified element s + * @param el any The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param removeDom any True to also remove the element from the document. + */ + removeElement?( el?:any, removeDom?:any ): any; + removeElement?( el?:string, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:HTMLElement, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:Ext.IElement, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:number, removeDom?:bool ): Ext.dom.ICompositeElement; + /** [Method] Replaces the specified element with the passed element + * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement any The id of an element or the Element itself. + * @param domReplace any True to remove and replace the element in the document too. + */ + replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; + replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:HTMLElement, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:Ext.IElement, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:number, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:string, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:HTMLElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:Ext.IElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:number, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + /** [Method] Gets a range nodes + * @param start Number The index of the first node in the range + * @param end Number The index of the last node in the range + */ + slice?( start?:number, end?:number ): HTMLElement[]; + } +} +declare module Ext { + export interface ICompositeElementLite extends Ext.IBase { + /** [Property] (HTMLElement[]) The Array of DOM elements which this CompositeElement encapsulates. ... */ + elements?: HTMLElement[]; + /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + isComposite?: bool; + /** [Method] Adds elements to this Composite object + * @param els any Either an Array of DOM elements to add, or another Composite object who's elements should be added. + */ + add?( els?:any ): any; + add?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; + add?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; + /** [Method] Removes all elements from this Composite + * @param removeDom Boolean True to also remove the elements from the document. + */ + clear?( removeDom?:bool ): void; + /** [Method] Returns true if this composite contains the passed element + * @param el any The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + */ + contains?( el?:any ): any; + contains?( el?:string ): bool; + contains?( el?:HTMLElement ): bool; + contains?( el?:Ext.IElement ): bool; + contains?( el?:number ): bool; + /** [Method] Calls the passed function for each element in this composite + * @param fn Function The function to call. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Element. + */ + each?( fn?:any, scope?:any ): Ext.dom.ICompositeElement; + /** [Method] Clears this Composite and adds the elements passed + * @param els any Either an array of DOM elements, or another Composite from which to fill this Composite. + */ + fill?( els?:any ): any; + fill?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; + fill?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; + /** [Method] Filters this composite to only elements that match the passed selector + * @param selector any A string CSS selector or a comparison function. The comparison function will be called with the following arguments: + */ + filter?( selector?:any ): any; + filter?( selector?:string ): Ext.dom.ICompositeElement; + /** [Method] Returns the first Element */ + first?(): Ext.dom.IElement; + /** [Method] Returns the number of elements in this Composite */ + getCount?(): number; + /** [Method] Find the index of the passed element within the composite collection + * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + */ + indexOf?( el?:any ): any; + indexOf?( el?:string ): number; + indexOf?( el?:HTMLElement ): number; + indexOf?( el?:Ext.IElement ): number; + indexOf?( el?:number ): number; + /** [Method] Returns a flyweight Element of the dom element object at the specified index + * @param index Number + */ + item?( index?:number ): Ext.dom.IElement; + /** [Method] Returns the last Element */ + last?(): Ext.dom.IElement; + /** [Method] Removes the specified element s + * @param el any The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param removeDom any True to also remove the element from the document. + */ + removeElement?( el?:any, removeDom?:any ): any; + removeElement?( el?:string, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:HTMLElement, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:Ext.IElement, removeDom?:bool ): Ext.dom.ICompositeElement; + removeElement?( el?:number, removeDom?:bool ): Ext.dom.ICompositeElement; + /** [Method] Replaces the specified element with the passed element + * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement any The id of an element or the Element itself. + * @param domReplace any True to remove and replace the element in the document too. + */ + replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; + replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:HTMLElement, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:Ext.IElement, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:number, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:string, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:HTMLElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:Ext.IElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + replaceElement?( el?:number, replacement?:Ext.IElement, domReplace?:bool ): Ext.dom.ICompositeElement; + /** [Method] Gets a range nodes + * @param start Number The index of the first node in the range + * @param end Number The index of the last node in the range + */ + slice?( start?:number, end?:number ): HTMLElement[]; + } +} +declare module Ext.dom.element { + export interface IFly extends Ext.dom.IElement { + /** [Property] (Boolean) This is true to identify Element flyweights ... */ + isFly?: bool; + } +} +declare module Ext.dom.abstractelement { + export interface IFly extends Ext.dom.IElement { + /** [Property] (Boolean) This is true to identify Element flyweights ... */ + isFly?: bool; + } +} +declare module Ext.dom { + export interface IElement extends Ext.dom.IAbstractElement { + /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + autoBoxAdjust?: bool; + /** [Property] (String) The element's default display mode. ... */ + originalDisplay?: string; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnClick?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when this element has the focus Defined in override Ext dom Ele + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnFocus?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is over this element Defined in override Ext dom + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Convenience method for constructing a KeyMap + * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. + */ + addKeyListener?( key?:any, fn?:any, scope?:any ): Ext.util.IKeyMap; + /** [Method] Creates a KeyMap for this element + * @param config Object The KeyMap config. See Ext.util.KeyMap for more details + */ + addKeyMap?( config?:any ): Ext.util.IKeyMap; + /** [Method] Shorthand for on + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + addListener?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Performs custom animation on this Element + * @param config Object Configuration for Ext.fx.Anim. Note that the to config is required. + */ + animate?( config?:any ): Ext.dom.IElement; + /** [Method] Tries to blur the element */ + blur?(): Ext.dom.IElement; + /** [Method] Wraps the specified element with a special 9 element markup CSS block that renders by default as a gray container wit + * @param class String A base CSS class to apply to the containing wrapper element. Note that there are a number of CSS rules that are dependent on this name to make the overall effect work, so if you supply an alternate base class, make sure you also supply all of the necessary rules. + */ + boxWrap?( clazz?:string ): Ext.dom.IElement; + /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ + cacheScrollValues?(): any; + /** [Method] Centers the Element in either the viewport or another Element + * @param centerIn String element in which to center the element. + */ + center?( centerIn?:string ): void; + center?( centerIn?:HTMLElement ): void; + center?( centerIn?:Ext.dom.IElement ): void; + /** [Method] Removes Empty or whitespace filled text nodes + * @param forceReclean Boolean By default the element keeps track if it has been cleaned already so you can call this over and over. However, if you update the element and need to force a reclean, you can pass true. + */ + clean?( forceReclean?:bool ): void; + /** [Method] Alias for removeAllListeners */ + clearListeners?(): Ext.dom.IElement; + /** [Method] Clears any opacity settings from this element */ + clearOpacity?(): Ext.dom.IElement; + /** [Method] Clears positioning back to the default when the document was loaded + * @param value String The value to use for the left, right, top, bottom. You could use 'auto'. + */ + clearPositioning?( value?:string ): Ext.dom.IElement; + /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ + clip?(): Ext.dom.IElement; + /** [Method] Creates a proxy element of this element + * @param config any The class name of the proxy element or a DomHelper config object + * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox any True to align and size the proxy to this element now. + */ + createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; + createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; + createProxy?( config?:any, renderTo?:HTMLElement, matchBox?:bool ): Ext.dom.IElement; + /** [Method] Creates an iframe shim for this element to keep selects and other windowed objects from showing through */ + createShim?(): Ext.dom.IElement; + /** [Method] Convenience method for setVisibilityMode Element DISPLAY + * @param display String What to set display to when visible + */ + enableDisplayMode?( display?:string ): Ext.dom.IElement; + /** [Method] Fade an element in from transparent to opaque + * @param options Object Object literal with any of the Fx config options + */ + fadeIn?( options?:any ): Ext.IElement; + /** [Method] Fade an element out from opaque to transparent + * @param options Object Object literal with any of the Fx config options + */ + fadeOut?( options?:any ): Ext.IElement; + /** [Method] Tries to focus the element + * @param defer Number Milliseconds to defer the focus + */ + focus?( defer?:number ): Ext.dom.IElement; + /** [Method] Alias for isFocusable + * @param asFocusEl Object + */ + focusable?( asFocusEl?:any ): bool; + /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element + * @param color String The hex color value for the border. + * @param count Number The number of ripples to display. + * @param options Object Object literal with any of the Fx config options + */ + frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; + /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node + * @param namespace String The namespace in which to look for the attribute + * @param name String The attribute name + */ + getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Return the CSS color for the specified CSS attribute + * @param attr String The css attribute + * @param defaultValue String The default value to use when a valid color isn't found + * @param prefix String defaults to #. Use an empty string when working with color anims. + */ + getColor?( attr?:string, defaultValue?:string, prefix?:string ): void; + /** [Method] Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when */ + getComputedHeight?(): number; + /** [Method] Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when ne */ + getComputedWidth?(): number; + /** [Method] Returns the sum width of the padding and borders for the passed sides + * @param sides String + */ + getFrameWidth?( sides?:string ): number; + /** [Method] Gets this element s ElementLoader */ + getLoader?(): Ext.IElementLoader; + /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ + getLocalX?(): number; + /** [Method] Gets the local CSS X and Y position for the element Defined in override Ext dom Element_position */ + getLocalXY?(): any[]; + /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ + getLocalY?(): number; + /** [Method] Gets an object with all CSS positioning properties + * @param autoPx Boolean true to return pixel values for "auto" styles. + */ + getPositioning?( autoPx?:bool ): any; + /** [Method] Returns the current scroll position of the element */ + getScroll?(): any; + /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ + getScrollLeft?(): number; + /** [Method] Gets the top scroll position Defined in override Ext dom Element_scroll */ + getScrollTop?(): number; + /** [Method] Returns the dimensions of the element available to lay content out in */ + getStyleSize?(): any; + /** [Method] Returns the width in pixels of the passed text or the width of the text in this Element + * @param text String The text to measure. Defaults to the innerHTML of the element. + * @param min Number The minumum value to return. + * @param max Number The maximum value to return. + */ + getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ + getX?(): number; + /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ + getXY?(): any[]; + /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ + getY?(): number; + /** [Method] Slides the element while fading it out of view + * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Fx config options + */ + ghost?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Hide this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + hide?( animate?:any ): Ext.dom.IElement; + /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the + * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') + * @param options Object Object literal with any of the Fx config options + */ + highlight?( color?:string, options?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element + * @param overFn Function The function to call when the mouse enters the Element. + * @param outFn Function The function to call when the mouse leaves the Element. + * @param scope Object The scope (this reference) in which the functions are executed. Defaults to the Element's DOM element. + * @param options Object Options for the listener. See the options parameter. + */ + hover?( overFn?:any, outFn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes a Ext dd DD drag drop object for this element + * @param group String The group the DD object is member of + * @param config Object The DD config object + * @param overrides Object An object containing methods to override/implement on the DD object + */ + initDD?( group?:string, config?:any, overrides?:any ): Ext.dd.IDD; + /** [Method] Initializes a Ext dd DDProxy object for this element + * @param group String The group the DDProxy object is member of + * @param config Object The DDProxy config object + * @param overrides Object An object containing methods to override/implement on the DDProxy object + */ + initDDProxy?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDProxy; + /** [Method] Initializes a Ext dd DDTarget object for this element + * @param group String The group the DDTarget object is member of + * @param config Object The DDTarget config object + * @param overrides Object An object containing methods to override/implement on the DDTarget object + */ + initDDTarget?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDTarget; + /** [Method] Tests various css rules browsers to determine if this element uses a border box */ + isBorderBox?(): bool; + /** [Method] Returns true if display is not none */ + isDisplayed?(): bool; + /** [Method] Checks whether this element can be focused + * @param asFocusEl Object + */ + isFocusable?( asFocusEl?:any ): bool; + /** [Method] Returns true if this element is masked */ + isMasked?(): bool; + /** [Method] Returns true if this element is scrollable */ + isScrollable?(): bool; + /** [Method] Checks whether the element is currently visible using both visibility and display properties + * @param deep Boolean True to walk the dom and see if parent elements are hidden. If false, the function only checks the visibility of the element itself and it may return true even though a parent is not visible. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Direct access to the Ext ElementLoader Ext ElementLoader load method + * @param options Object + */ + load?( options?:any ): Ext.dom.IElement; + /** [Method] Puts a mask over this element to disable user interaction + * @param msg String A message to display in the mask + * @param msgCls String A css class to apply to the msg element + */ + mask?( msg?:string, msgCls?:string ): Ext.dom.IElement; + /** [Method] Monitors this Element for the mouse leaving + * @param delay Number The delay in milliseconds to wait for possible mouse re-entry before calling the handler function. + * @param handler Function The function to call if the mouse remains outside of this Element for the specified time. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. + */ + monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ + needsTabIndex?(): void; + /** [Method] Appends an event handler to this element + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes positioning on this element + * @param pos String Positioning to use "relative", "absolute" or "fixed" + * @param zIndex Number The zIndex to apply + * @param x Number Set the page X position + * @param y Number Set the page Y position + */ + position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; + /** [Method] Fades the element out while slowly expanding it in all directions + * @param options Object Object literal with any of the Fx config options + */ + puff?( options?:any ): Ext.dom.IElement; + /** [Method] Recursively removes all previous added listeners from this element and its children */ + purgeAllListeners?(): Ext.dom.IElement; + /** [Method] Create an event handler on this element such that when the event fires and is handled by this element it will be rel + * @param eventName String The type of event to relay + * @param observable Object Any object that extends Ext.util.Observable that will provide the context for firing the relayed event + */ + relayEvent?( eventName?:string, observable?:any ): void; + /** [Method] Removes all previous added listeners from this element */ + removeAllListeners?(): Ext.dom.IElement; + /** [Method] Shorthand for un + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified direction + * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") + * @param distance Number How far to scroll the element in pixels + * @param animate any true for the default animation or a standard Element animation config object + */ + scroll?( direction?:string, distance?:number, animate?:any ): bool; + /** [Method] Scrolls this element by the passed delta values optionally animating + * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY any Either the y delta, or an animate flag or config object. + * @param animate any Animate flag/config object if the delta values were passed separately. + */ + scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; + /** [Method] Scrolls this element into view within the passed container + * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll any False to disable horizontal scroll. + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified scroll point + * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. + * @param value Number The new scroll value + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; + /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + selectable?(): Ext.IElement; + /** [Method] Sets the CSS display property + * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + */ + setDisplayed?( value?:any ): any; + setDisplayed?( value?:bool ): Ext.dom.IElement; + setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Set the opacity of the element Defined in override Ext dom Element_style + * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc + * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + */ + setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; + /** [Method] Set positioning with an object returned by getPositioning + * @param posCfg Object + */ + setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll + * @param left Number The left scroll position + */ + setScrollLeft?( left?:number ): Ext.dom.IElement; + /** [Method] Sets the top scroll position Defined in override Ext dom Element_scroll + * @param top Number The top scroll position + */ + setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Show this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + show?( animate?:any ): Ext.dom.IElement; + /** [Method] Slides the element into view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Slides the element out of view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Stops the specified event s from bubbling and optionally prevents the default action + * @param eventName any an event / array of events to stop from bubbling + * @param preventDefault any true to prevent the default action too + */ + swallowEvent?( eventName?:any, preventDefault?:any ): any; + swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; + swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; + /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television + * @param options Object Object literal with any of the Fx config options + */ + switchOff?( options?:any ): Ext.dom.IElement; + /** [Method] Toggles the element s visibility or display depending on visibility mode + * @param animate any True for the default animation, or a standard Element animation config object + */ + toggle?( animate?:any ): Ext.dom.IElement; + /** [Method] Removes an event handler from this element + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + un?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Return clipping overflow to original clipping before clip was called Defined in override Ext dom Element_style */ + unclip?(): Ext.dom.IElement; + /** [Method] Hides a previously applied mask */ + unmask?(): void; + /** [Method] Disables text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + unselectable?(): Ext.dom.IElement; + /** [Method] Updates the innerHTML of this element optionally searching for and processing scripts + * @param html String The new HTML + * @param loadScripts Boolean True to look for and process scripts (defaults to false) + * @param callback Function For async script loading you can be notified when the update completes + */ + update?( html?:string, loadScripts?:bool, callback?:any ): Ext.dom.IElement; + } +} +declare module Ext { + export interface IElement extends Ext.dom.IAbstractElement { + /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + autoBoxAdjust?: bool; + /** [Property] (String) The element's default display mode. ... */ + originalDisplay?: string; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnClick?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when this element has the focus Defined in override Ext dom Ele + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnFocus?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is over this element Defined in override Ext dom + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Convenience method for constructing a KeyMap + * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. + */ + addKeyListener?( key?:any, fn?:any, scope?:any ): Ext.util.IKeyMap; + /** [Method] Creates a KeyMap for this element + * @param config Object The KeyMap config. See Ext.util.KeyMap for more details + */ + addKeyMap?( config?:any ): Ext.util.IKeyMap; + /** [Method] Shorthand for on + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + addListener?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Performs custom animation on this Element + * @param config Object Configuration for Ext.fx.Anim. Note that the to config is required. + */ + animate?( config?:any ): Ext.dom.IElement; + /** [Method] Tries to blur the element */ + blur?(): Ext.dom.IElement; + /** [Method] Wraps the specified element with a special 9 element markup CSS block that renders by default as a gray container wit + * @param class String A base CSS class to apply to the containing wrapper element. Note that there are a number of CSS rules that are dependent on this name to make the overall effect work, so if you supply an alternate base class, make sure you also supply all of the necessary rules. + */ + boxWrap?( clazz?:string ): Ext.dom.IElement; + /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ + cacheScrollValues?(): any; + /** [Method] Centers the Element in either the viewport or another Element + * @param centerIn String element in which to center the element. + */ + center?( centerIn?:string ): void; + center?( centerIn?:HTMLElement ): void; + center?( centerIn?:Ext.dom.IElement ): void; + /** [Method] Removes Empty or whitespace filled text nodes + * @param forceReclean Boolean By default the element keeps track if it has been cleaned already so you can call this over and over. However, if you update the element and need to force a reclean, you can pass true. + */ + clean?( forceReclean?:bool ): void; + /** [Method] Alias for removeAllListeners */ + clearListeners?(): Ext.dom.IElement; + /** [Method] Clears any opacity settings from this element */ + clearOpacity?(): Ext.dom.IElement; + /** [Method] Clears positioning back to the default when the document was loaded + * @param value String The value to use for the left, right, top, bottom. You could use 'auto'. + */ + clearPositioning?( value?:string ): Ext.dom.IElement; + /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ + clip?(): Ext.dom.IElement; + /** [Method] Creates a proxy element of this element + * @param config any The class name of the proxy element or a DomHelper config object + * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox any True to align and size the proxy to this element now. + */ + createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; + createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; + createProxy?( config?:any, renderTo?:HTMLElement, matchBox?:bool ): Ext.dom.IElement; + /** [Method] Creates an iframe shim for this element to keep selects and other windowed objects from showing through */ + createShim?(): Ext.dom.IElement; + /** [Method] Convenience method for setVisibilityMode Element DISPLAY + * @param display String What to set display to when visible + */ + enableDisplayMode?( display?:string ): Ext.dom.IElement; + /** [Method] Fade an element in from transparent to opaque + * @param options Object Object literal with any of the Fx config options + */ + fadeIn?( options?:any ): Ext.IElement; + /** [Method] Fade an element out from opaque to transparent + * @param options Object Object literal with any of the Fx config options + */ + fadeOut?( options?:any ): Ext.IElement; + /** [Method] Tries to focus the element + * @param defer Number Milliseconds to defer the focus + */ + focus?( defer?:number ): Ext.dom.IElement; + /** [Method] Alias for isFocusable + * @param asFocusEl Object + */ + focusable?( asFocusEl?:any ): bool; + /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element + * @param color String The hex color value for the border. + * @param count Number The number of ripples to display. + * @param options Object Object literal with any of the Fx config options + */ + frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; + /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node + * @param namespace String The namespace in which to look for the attribute + * @param name String The attribute name + */ + getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Return the CSS color for the specified CSS attribute + * @param attr String The css attribute + * @param defaultValue String The default value to use when a valid color isn't found + * @param prefix String defaults to #. Use an empty string when working with color anims. + */ + getColor?( attr?:string, defaultValue?:string, prefix?:string ): void; + /** [Method] Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when */ + getComputedHeight?(): number; + /** [Method] Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when ne */ + getComputedWidth?(): number; + /** [Method] Returns the sum width of the padding and borders for the passed sides + * @param sides String + */ + getFrameWidth?( sides?:string ): number; + /** [Method] Gets this element s ElementLoader */ + getLoader?(): Ext.IElementLoader; + /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ + getLocalX?(): number; + /** [Method] Gets the local CSS X and Y position for the element Defined in override Ext dom Element_position */ + getLocalXY?(): any[]; + /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ + getLocalY?(): number; + /** [Method] Gets an object with all CSS positioning properties + * @param autoPx Boolean true to return pixel values for "auto" styles. + */ + getPositioning?( autoPx?:bool ): any; + /** [Method] Returns the current scroll position of the element */ + getScroll?(): any; + /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ + getScrollLeft?(): number; + /** [Method] Gets the top scroll position Defined in override Ext dom Element_scroll */ + getScrollTop?(): number; + /** [Method] Returns the dimensions of the element available to lay content out in */ + getStyleSize?(): any; + /** [Method] Returns the width in pixels of the passed text or the width of the text in this Element + * @param text String The text to measure. Defaults to the innerHTML of the element. + * @param min Number The minumum value to return. + * @param max Number The maximum value to return. + */ + getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ + getX?(): number; + /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ + getXY?(): any[]; + /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ + getY?(): number; + /** [Method] Slides the element while fading it out of view + * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Fx config options + */ + ghost?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Hide this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + hide?( animate?:any ): Ext.dom.IElement; + /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the + * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') + * @param options Object Object literal with any of the Fx config options + */ + highlight?( color?:string, options?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element + * @param overFn Function The function to call when the mouse enters the Element. + * @param outFn Function The function to call when the mouse leaves the Element. + * @param scope Object The scope (this reference) in which the functions are executed. Defaults to the Element's DOM element. + * @param options Object Options for the listener. See the options parameter. + */ + hover?( overFn?:any, outFn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes a Ext dd DD drag drop object for this element + * @param group String The group the DD object is member of + * @param config Object The DD config object + * @param overrides Object An object containing methods to override/implement on the DD object + */ + initDD?( group?:string, config?:any, overrides?:any ): Ext.dd.IDD; + /** [Method] Initializes a Ext dd DDProxy object for this element + * @param group String The group the DDProxy object is member of + * @param config Object The DDProxy config object + * @param overrides Object An object containing methods to override/implement on the DDProxy object + */ + initDDProxy?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDProxy; + /** [Method] Initializes a Ext dd DDTarget object for this element + * @param group String The group the DDTarget object is member of + * @param config Object The DDTarget config object + * @param overrides Object An object containing methods to override/implement on the DDTarget object + */ + initDDTarget?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDTarget; + /** [Method] Tests various css rules browsers to determine if this element uses a border box */ + isBorderBox?(): bool; + /** [Method] Returns true if display is not none */ + isDisplayed?(): bool; + /** [Method] Checks whether this element can be focused + * @param asFocusEl Object + */ + isFocusable?( asFocusEl?:any ): bool; + /** [Method] Returns true if this element is masked */ + isMasked?(): bool; + /** [Method] Returns true if this element is scrollable */ + isScrollable?(): bool; + /** [Method] Checks whether the element is currently visible using both visibility and display properties + * @param deep Boolean True to walk the dom and see if parent elements are hidden. If false, the function only checks the visibility of the element itself and it may return true even though a parent is not visible. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Direct access to the Ext ElementLoader Ext ElementLoader load method + * @param options Object + */ + load?( options?:any ): Ext.dom.IElement; + /** [Method] Puts a mask over this element to disable user interaction + * @param msg String A message to display in the mask + * @param msgCls String A css class to apply to the msg element + */ + mask?( msg?:string, msgCls?:string ): Ext.dom.IElement; + /** [Method] Monitors this Element for the mouse leaving + * @param delay Number The delay in milliseconds to wait for possible mouse re-entry before calling the handler function. + * @param handler Function The function to call if the mouse remains outside of this Element for the specified time. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. + */ + monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ + needsTabIndex?(): void; + /** [Method] Appends an event handler to this element + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes positioning on this element + * @param pos String Positioning to use "relative", "absolute" or "fixed" + * @param zIndex Number The zIndex to apply + * @param x Number Set the page X position + * @param y Number Set the page Y position + */ + position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; + /** [Method] Fades the element out while slowly expanding it in all directions + * @param options Object Object literal with any of the Fx config options + */ + puff?( options?:any ): Ext.dom.IElement; + /** [Method] Recursively removes all previous added listeners from this element and its children */ + purgeAllListeners?(): Ext.dom.IElement; + /** [Method] Create an event handler on this element such that when the event fires and is handled by this element it will be rel + * @param eventName String The type of event to relay + * @param observable Object Any object that extends Ext.util.Observable that will provide the context for firing the relayed event + */ + relayEvent?( eventName?:string, observable?:any ): void; + /** [Method] Removes all previous added listeners from this element */ + removeAllListeners?(): Ext.dom.IElement; + /** [Method] Shorthand for un + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified direction + * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") + * @param distance Number How far to scroll the element in pixels + * @param animate any true for the default animation or a standard Element animation config object + */ + scroll?( direction?:string, distance?:number, animate?:any ): bool; + /** [Method] Scrolls this element by the passed delta values optionally animating + * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY any Either the y delta, or an animate flag or config object. + * @param animate any Animate flag/config object if the delta values were passed separately. + */ + scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; + /** [Method] Scrolls this element into view within the passed container + * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll any False to disable horizontal scroll. + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified scroll point + * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. + * @param value Number The new scroll value + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; + /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + selectable?(): Ext.IElement; + /** [Method] Sets the CSS display property + * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + */ + setDisplayed?( value?:any ): any; + setDisplayed?( value?:bool ): Ext.dom.IElement; + setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Set the opacity of the element Defined in override Ext dom Element_style + * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc + * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + */ + setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; + /** [Method] Set positioning with an object returned by getPositioning + * @param posCfg Object + */ + setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll + * @param left Number The left scroll position + */ + setScrollLeft?( left?:number ): Ext.dom.IElement; + /** [Method] Sets the top scroll position Defined in override Ext dom Element_scroll + * @param top Number The top scroll position + */ + setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Show this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + show?( animate?:any ): Ext.dom.IElement; + /** [Method] Slides the element into view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Slides the element out of view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Stops the specified event s from bubbling and optionally prevents the default action + * @param eventName any an event / array of events to stop from bubbling + * @param preventDefault any true to prevent the default action too + */ + swallowEvent?( eventName?:any, preventDefault?:any ): any; + swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; + swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; + /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television + * @param options Object Object literal with any of the Fx config options + */ + switchOff?( options?:any ): Ext.dom.IElement; + /** [Method] Toggles the element s visibility or display depending on visibility mode + * @param animate any True for the default animation, or a standard Element animation config object + */ + toggle?( animate?:any ): Ext.dom.IElement; + /** [Method] Removes an event handler from this element + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + un?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Return clipping overflow to original clipping before clip was called Defined in override Ext dom Element_style */ + unclip?(): Ext.dom.IElement; + /** [Method] Hides a previously applied mask */ + unmask?(): void; + /** [Method] Disables text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + unselectable?(): Ext.dom.IElement; + /** [Method] Updates the innerHTML of this element optionally searching for and processing scripts + * @param html String The new HTML + * @param loadScripts Boolean True to look for and process scripts (defaults to false) + * @param callback Function For async script loading you can be notified when the update completes + */ + update?( html?:string, loadScripts?:bool, callback?:any ): Ext.dom.IElement; + } +} +declare module Ext.core { + export interface IElement extends Ext.dom.IAbstractElement { + /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + autoBoxAdjust?: bool; + /** [Property] (String) The element's default display mode. ... */ + originalDisplay?: string; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnClick?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when this element has the focus Defined in override Ext dom Ele + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnFocus?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to add and remove a css class when the mouse is over this element Defined in override Ext dom + * @param className String The class to add + * @param testFn Function A test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added. + * @param scope Object The scope to execute the testFn in. + */ + addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Convenience method for constructing a KeyMap + * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. + */ + addKeyListener?( key?:any, fn?:any, scope?:any ): Ext.util.IKeyMap; + /** [Method] Creates a KeyMap for this element + * @param config Object The KeyMap config. See Ext.util.KeyMap for more details + */ + addKeyMap?( config?:any ): Ext.util.IKeyMap; + /** [Method] Shorthand for on + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + addListener?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Performs custom animation on this Element + * @param config Object Configuration for Ext.fx.Anim. Note that the to config is required. + */ + animate?( config?:any ): Ext.dom.IElement; + /** [Method] Tries to blur the element */ + blur?(): Ext.dom.IElement; + /** [Method] Wraps the specified element with a special 9 element markup CSS block that renders by default as a gray container wit + * @param class String A base CSS class to apply to the containing wrapper element. Note that there are a number of CSS rules that are dependent on this name to make the overall effect work, so if you supply an alternate base class, make sure you also supply all of the necessary rules. + */ + boxWrap?( clazz?:string ): Ext.dom.IElement; + /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ + cacheScrollValues?(): any; + /** [Method] Centers the Element in either the viewport or another Element + * @param centerIn String element in which to center the element. + */ + center?( centerIn?:string ): void; + center?( centerIn?:HTMLElement ): void; + center?( centerIn?:Ext.dom.IElement ): void; + /** [Method] Removes Empty or whitespace filled text nodes + * @param forceReclean Boolean By default the element keeps track if it has been cleaned already so you can call this over and over. However, if you update the element and need to force a reclean, you can pass true. + */ + clean?( forceReclean?:bool ): void; + /** [Method] Alias for removeAllListeners */ + clearListeners?(): Ext.dom.IElement; + /** [Method] Clears any opacity settings from this element */ + clearOpacity?(): Ext.dom.IElement; + /** [Method] Clears positioning back to the default when the document was loaded + * @param value String The value to use for the left, right, top, bottom. You could use 'auto'. + */ + clearPositioning?( value?:string ): Ext.dom.IElement; + /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ + clip?(): Ext.dom.IElement; + /** [Method] Creates a proxy element of this element + * @param config any The class name of the proxy element or a DomHelper config object + * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox any True to align and size the proxy to this element now. + */ + createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; + createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; + createProxy?( config?:any, renderTo?:HTMLElement, matchBox?:bool ): Ext.dom.IElement; + /** [Method] Creates an iframe shim for this element to keep selects and other windowed objects from showing through */ + createShim?(): Ext.dom.IElement; + /** [Method] Convenience method for setVisibilityMode Element DISPLAY + * @param display String What to set display to when visible + */ + enableDisplayMode?( display?:string ): Ext.dom.IElement; + /** [Method] Fade an element in from transparent to opaque + * @param options Object Object literal with any of the Fx config options + */ + fadeIn?( options?:any ): Ext.IElement; + /** [Method] Fade an element out from opaque to transparent + * @param options Object Object literal with any of the Fx config options + */ + fadeOut?( options?:any ): Ext.IElement; + /** [Method] Tries to focus the element + * @param defer Number Milliseconds to defer the focus + */ + focus?( defer?:number ): Ext.dom.IElement; + /** [Method] Alias for isFocusable + * @param asFocusEl Object + */ + focusable?( asFocusEl?:any ): bool; + /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element + * @param color String The hex color value for the border. + * @param count Number The number of ripples to display. + * @param options Object Object literal with any of the Fx config options + */ + frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; + /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node + * @param namespace String The namespace in which to look for the attribute + * @param name String The attribute name + */ + getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Return the CSS color for the specified CSS attribute + * @param attr String The css attribute + * @param defaultValue String The default value to use when a valid color isn't found + * @param prefix String defaults to #. Use an empty string when working with color anims. + */ + getColor?( attr?:string, defaultValue?:string, prefix?:string ): void; + /** [Method] Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when */ + getComputedHeight?(): number; + /** [Method] Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when ne */ + getComputedWidth?(): number; + /** [Method] Returns the sum width of the padding and borders for the passed sides + * @param sides String + */ + getFrameWidth?( sides?:string ): number; + /** [Method] Gets this element s ElementLoader */ + getLoader?(): Ext.IElementLoader; + /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ + getLocalX?(): number; + /** [Method] Gets the local CSS X and Y position for the element Defined in override Ext dom Element_position */ + getLocalXY?(): any[]; + /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ + getLocalY?(): number; + /** [Method] Gets an object with all CSS positioning properties + * @param autoPx Boolean true to return pixel values for "auto" styles. + */ + getPositioning?( autoPx?:bool ): any; + /** [Method] Returns the current scroll position of the element */ + getScroll?(): any; + /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ + getScrollLeft?(): number; + /** [Method] Gets the top scroll position Defined in override Ext dom Element_scroll */ + getScrollTop?(): number; + /** [Method] Returns the dimensions of the element available to lay content out in */ + getStyleSize?(): any; + /** [Method] Returns the width in pixels of the passed text or the width of the text in this Element + * @param text String The text to measure. Defaults to the innerHTML of the element. + * @param min Number The minumum value to return. + * @param max Number The maximum value to return. + */ + getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ + getX?(): number; + /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ + getXY?(): any[]; + /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ + getY?(): number; + /** [Method] Slides the element while fading it out of view + * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Fx config options + */ + ghost?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Hide this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + hide?( animate?:any ): Ext.dom.IElement; + /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the + * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') + * @param options Object Object literal with any of the Fx config options + */ + highlight?( color?:string, options?:any ): Ext.dom.IElement; + /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element + * @param overFn Function The function to call when the mouse enters the Element. + * @param outFn Function The function to call when the mouse leaves the Element. + * @param scope Object The scope (this reference) in which the functions are executed. Defaults to the Element's DOM element. + * @param options Object Options for the listener. See the options parameter. + */ + hover?( overFn?:any, outFn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes a Ext dd DD drag drop object for this element + * @param group String The group the DD object is member of + * @param config Object The DD config object + * @param overrides Object An object containing methods to override/implement on the DD object + */ + initDD?( group?:string, config?:any, overrides?:any ): Ext.dd.IDD; + /** [Method] Initializes a Ext dd DDProxy object for this element + * @param group String The group the DDProxy object is member of + * @param config Object The DDProxy config object + * @param overrides Object An object containing methods to override/implement on the DDProxy object + */ + initDDProxy?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDProxy; + /** [Method] Initializes a Ext dd DDTarget object for this element + * @param group String The group the DDTarget object is member of + * @param config Object The DDTarget config object + * @param overrides Object An object containing methods to override/implement on the DDTarget object + */ + initDDTarget?( group?:string, config?:any, overrides?:any ): Ext.dd.IDDTarget; + /** [Method] Tests various css rules browsers to determine if this element uses a border box */ + isBorderBox?(): bool; + /** [Method] Returns true if display is not none */ + isDisplayed?(): bool; + /** [Method] Checks whether this element can be focused + * @param asFocusEl Object + */ + isFocusable?( asFocusEl?:any ): bool; + /** [Method] Returns true if this element is masked */ + isMasked?(): bool; + /** [Method] Returns true if this element is scrollable */ + isScrollable?(): bool; + /** [Method] Checks whether the element is currently visible using both visibility and display properties + * @param deep Boolean True to walk the dom and see if parent elements are hidden. If false, the function only checks the visibility of the element itself and it may return true even though a parent is not visible. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Direct access to the Ext ElementLoader Ext ElementLoader load method + * @param options Object + */ + load?( options?:any ): Ext.dom.IElement; + /** [Method] Puts a mask over this element to disable user interaction + * @param msg String A message to display in the mask + * @param msgCls String A css class to apply to the msg element + */ + mask?( msg?:string, msgCls?:string ): Ext.dom.IElement; + /** [Method] Monitors this Element for the mouse leaving + * @param delay Number The delay in milliseconds to wait for possible mouse re-entry before calling the handler function. + * @param handler Function The function to call if the mouse remains outside of this Element for the specified time. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. + */ + monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ + needsTabIndex?(): void; + /** [Method] Appends an event handler to this element + * @param eventName String The name of event to handle. + * @param fn Function The handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : HtmlElement The DOM element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the call that setup the listener. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); + */ + on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Initializes positioning on this element + * @param pos String Positioning to use "relative", "absolute" or "fixed" + * @param zIndex Number The zIndex to apply + * @param x Number Set the page X position + * @param y Number Set the page Y position + */ + position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; + /** [Method] Fades the element out while slowly expanding it in all directions + * @param options Object Object literal with any of the Fx config options + */ + puff?( options?:any ): Ext.dom.IElement; + /** [Method] Recursively removes all previous added listeners from this element and its children */ + purgeAllListeners?(): Ext.dom.IElement; + /** [Method] Create an event handler on this element such that when the event fires and is handled by this element it will be rel + * @param eventName String The type of event to relay + * @param observable Object Any object that extends Ext.util.Observable that will provide the context for firing the relayed event + */ + relayEvent?( eventName?:string, observable?:any ): void; + /** [Method] Removes all previous added listeners from this element */ + removeAllListeners?(): Ext.dom.IElement; + /** [Method] Shorthand for un + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified direction + * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") + * @param distance Number How far to scroll the element in pixels + * @param animate any true for the default animation or a standard Element animation config object + */ + scroll?( direction?:string, distance?:number, animate?:any ): bool; + /** [Method] Scrolls this element by the passed delta values optionally animating + * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY any Either the y delta, or an animate flag or config object. + * @param animate any Animate flag/config object if the delta values were passed separately. + */ + scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; + /** [Method] Scrolls this element into view within the passed container + * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll any False to disable horizontal scroll. + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Scrolls this element the specified scroll point + * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. + * @param value Number The new scroll value + * @param animate any true for the default animation or a standard Element animation config object + */ + scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; + /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + selectable?(): Ext.IElement; + /** [Method] Sets the CSS display property + * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + */ + setDisplayed?( value?:any ): any; + setDisplayed?( value?:bool ): Ext.dom.IElement; + setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Set the opacity of the element Defined in override Ext dom Element_style + * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc + * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + */ + setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; + /** [Method] Set positioning with an object returned by getPositioning + * @param posCfg Object + */ + setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll + * @param left Number The left scroll position + */ + setScrollLeft?( left?:number ): Ext.dom.IElement; + /** [Method] Sets the top scroll position Defined in override Ext dom Element_scroll + * @param top Number The top scroll position + */ + setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Show this element Uses display mode to determine whether to use display or visibility + * @param animate any true for the default animation or a standard Element animation config object + */ + show?( animate?:any ): Ext.dom.IElement; + /** [Method] Slides the element into view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Slides the element out of view + * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Fx config options + */ + slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; + /** [Method] Stops the specified event s from bubbling and optionally prevents the default action + * @param eventName any an event / array of events to stop from bubbling + * @param preventDefault any true to prevent the default action too + */ + swallowEvent?( eventName?:any, preventDefault?:any ): any; + swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; + swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; + /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television + * @param options Object Object literal with any of the Fx config options + */ + switchOff?( options?:any ): Ext.dom.IElement; + /** [Method] Toggles the element s visibility or display depending on visibility mode + * @param animate any True for the default animation, or a standard Element animation config object + */ + toggle?( animate?:any ): Ext.dom.IElement; + /** [Method] Removes an event handler from this element + * @param eventName String The name of the event from which to remove the handler. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the on call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + un?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Return clipping overflow to original clipping before clip was called Defined in override Ext dom Element_style */ + unclip?(): Ext.dom.IElement; + /** [Method] Hides a previously applied mask */ + unmask?(): void; + /** [Method] Disables text selection for this element normalized across browsers Defined in override Ext dom Element_style */ + unselectable?(): Ext.dom.IElement; + /** [Method] Updates the innerHTML of this element optionally searching for and processing scripts + * @param html String The new HTML + * @param loadScripts Boolean True to look for and process scripts (defaults to false) + * @param callback Function For async script loading you can be notified when the update completes + */ + update?( html?:string, loadScripts?:bool, callback?:any ): Ext.dom.IElement; + } +} +declare module Ext.dom { + export interface IHelper extends Ext.dom.IAbstractHelper { + /** [Property] (Boolean) True to force the use of DOM instead of html fragments. ... */ + useDom?: bool; + /** [Method] Creates new DOM element s without inserting them to the document + * @param o any The DOM object spec (and children) or raw HTML blob + */ + createDom?( o?:any ): HTMLElement; + /** [Method] Alias for markup + * @param spec Object The DOM object spec (and children) + */ + createHtml?( spec?:any ): string; + /** [Method] Creates a new Ext Template from the DOM object spec + * @param o Object The DOM object spec (and children) + */ + createTemplate?( o?:any ): Ext.ITemplate; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el any The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement any true to return an Ext.Element + */ + overwrite?( el?:any, o?:any, returnElement?:any ): any; + overwrite?( el?:string, o?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String The context element + * @param o any The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element + */ + overwrite?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + } +} +declare module Ext.dom { + export interface ILayer extends Ext.dom.IElement { + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (Boolean) False to disable constrain to viewport. ... */ + constrain?: bool; + /** [Config Option] (Object) DomHelper object config to create element with. ... */ + dh?: any; + /** [Config Option] (String) A String which specifies how this Layer will be hidden. ... */ + hideMode?: string; + /** [Config Option] (String/Boolean) True to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow.mode. ... */ + shadow?: any; + /** [Config Option] (Number) Number of pixels to offset the shadow ... */ + shadowOffset?: number; + /** [Config Option] (Boolean) False to disable the iframe shim in browsers which need one. ... */ + shim?: bool; + /** [Config Option] (Boolean) Defaults to use css offsets to hide the Layer. ... */ + useDisplay?: bool; + /** [Config Option] (String) */ + visibilityCls?: string; + /** [Config Option] (Number) Starting z-index. ... */ + zindex?: number; + /** [Method] Removes this element s dom reference */ + remove?(): void; + /** [Method] overridden Element method Set the height of this Element + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + */ + setHeight?( height?:any ): any; + setHeight?( height?:number ): Ext.dom.IElement; + setHeight?( height?:string ): Ext.dom.IElement; + /** [Method] overridden Element method Set the size of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:number, height?:number ): Ext.dom.IElement; + setSize?( width?:string, height?:number ): Ext.dom.IElement; + setSize?( width?:number, height?:string ): Ext.dom.IElement; + setSize?( width?:string, height?:string ): Ext.dom.IElement; + /** [Method] overridden Element method Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] overridden Element method Set the width of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + */ + setWidth?( width?:any ): any; + setWidth?( width?:number ): Ext.dom.IElement; + setWidth?( width?:string ): Ext.dom.IElement; + /** [Method] Sets the z index of this layer and adjusts any shadow and shim z indexes + * @param zindex Number The new z-index to set + */ + setZIndex?( zindex?:number ): Ext.ILayer; + } +} +declare module Ext { + export interface ILayer extends Ext.dom.IElement { + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (Boolean) False to disable constrain to viewport. ... */ + constrain?: bool; + /** [Config Option] (Object) DomHelper object config to create element with. ... */ + dh?: any; + /** [Config Option] (String) A String which specifies how this Layer will be hidden. ... */ + hideMode?: string; + /** [Config Option] (String/Boolean) True to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow.mode. ... */ + shadow?: any; + /** [Config Option] (Number) Number of pixels to offset the shadow ... */ + shadowOffset?: number; + /** [Config Option] (Boolean) False to disable the iframe shim in browsers which need one. ... */ + shim?: bool; + /** [Config Option] (Boolean) Defaults to use css offsets to hide the Layer. ... */ + useDisplay?: bool; + /** [Config Option] (String) */ + visibilityCls?: string; + /** [Config Option] (Number) Starting z-index. ... */ + zindex?: number; + /** [Method] Removes this element s dom reference */ + remove?(): void; + /** [Method] overridden Element method Set the height of this Element + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + */ + setHeight?( height?:any ): any; + setHeight?( height?:number ): Ext.dom.IElement; + setHeight?( height?:string ): Ext.dom.IElement; + /** [Method] overridden Element method Set the size of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. + * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:number, height?:number ): Ext.dom.IElement; + setSize?( width?:string, height?:number ): Ext.dom.IElement; + setSize?( width?:number, height?:string ): Ext.dom.IElement; + setSize?( width?:string, height?:string ): Ext.dom.IElement; + /** [Method] overridden Element method Sets the visibility of the element see details + * @param visible Boolean Whether the element is visible + * @param animate any True for the default animation, or a standard Element animation config object + */ + setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] overridden Element method Set the width of this Element + * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + */ + setWidth?( width?:any ): any; + setWidth?( width?:number ): Ext.dom.IElement; + setWidth?( width?:string ): Ext.dom.IElement; + /** [Method] Sets the z index of this layer and adjusts any shadow and shim z indexes + * @param zindex Number The new z-index to set + */ + setZIndex?( zindex?:number ): Ext.ILayer; + } +} +declare module Ext.dom { + export interface IQuery { + } + export class Query { + /** [Method] Compiles a selector xpath query into a reusable function + * @param selector String The selector/xpath query + * @param type String Either "select" or "simple" for a simple selector match + */ + static compile( selector?:string, type?:string ): any; + /** [Method] Filters an array of elements to only include matches of a simple selector e g + * @param el HTMLElement[] An array of elements to filter + * @param selector String The simple selector to test + * @param nonMatches Boolean If true, it returns the elements that DON'T match the selector instead of the ones that match + */ + static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; + /** [Method] Returns true if the passed element s match the passed simple selector e g + * @param el any An element id, element or array of elements + * @param selector any The simple selector to test + */ + static is( el?:any, selector?:any ): any; + static is( el?:string, selector?:string ): bool; + static is( el?:HTMLElement, selector?:string ): bool; + static is( el?:HTMLElement[], selector?:string ): bool; + /** [Method] Selects an array of DOM nodes using JavaScript only implementation + * @param selector any The selector/xpath query (can be a comma separated list of selectors) + * @param root any The start of the query. + */ + static jsSelect( selector?:any, root?:any ): any; + static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; + static jsSelect( selector?:string, root?:string ): HTMLElement[]; + /** [Method] Selects an array of DOM nodes by CSS XPath selector + * @param path String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param type String Either "select" or "simple" for a simple selector match (only valid when used when the call is deferred to the jsSelect method) + * @param single Boolean Pass true to select only the first matching node using document.querySelector (where available) + */ + static select( path?:string, root?:HTMLElement, type?:string, single?:bool ): HTMLElement[]; + /** [Method] Selects a single element + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + */ + static selectNode( selector?:string, root?:HTMLElement ): HTMLElement; + /** [Method] Selects the value of a node parsing integers and floats + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue Number When specified, this is return as empty value. + */ + static selectNumber( selector?:string, root?:HTMLElement, defaultValue?:number ): number; + /** [Method] Selects the value of a node optionally replacing null with the defaultValue + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue String When specified, this is return as empty value. + */ + static selectValue( selector?:string, root?:HTMLElement, defaultValue?:string ): string; + } +} +declare module Ext { + export interface IDomQuery { + } + export class DomQuery { + /** [Method] Compiles a selector xpath query into a reusable function + * @param selector String The selector/xpath query + * @param type String Either "select" or "simple" for a simple selector match + */ + static compile( selector?:string, type?:string ): any; + /** [Method] Filters an array of elements to only include matches of a simple selector e g + * @param el HTMLElement[] An array of elements to filter + * @param selector String The simple selector to test + * @param nonMatches Boolean If true, it returns the elements that DON'T match the selector instead of the ones that match + */ + static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; + /** [Method] Returns true if the passed element s match the passed simple selector e g + * @param el any An element id, element or array of elements + * @param selector any The simple selector to test + */ + static is( el?:any, selector?:any ): any; + static is( el?:string, selector?:string ): bool; + static is( el?:HTMLElement, selector?:string ): bool; + static is( el?:HTMLElement[], selector?:string ): bool; + /** [Method] Selects an array of DOM nodes using JavaScript only implementation + * @param selector any The selector/xpath query (can be a comma separated list of selectors) + * @param root any The start of the query. + */ + static jsSelect( selector?:any, root?:any ): any; + static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; + static jsSelect( selector?:string, root?:string ): HTMLElement[]; + /** [Method] Selects an array of DOM nodes by CSS XPath selector + * @param path String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param type String Either "select" or "simple" for a simple selector match (only valid when used when the call is deferred to the jsSelect method) + * @param single Boolean Pass true to select only the first matching node using document.querySelector (where available) + */ + static select( path?:string, root?:HTMLElement, type?:string, single?:bool ): HTMLElement[]; + /** [Method] Selects a single element + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + */ + static selectNode( selector?:string, root?:HTMLElement ): HTMLElement; + /** [Method] Selects the value of a node parsing integers and floats + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue Number When specified, this is return as empty value. + */ + static selectNumber( selector?:string, root?:HTMLElement, defaultValue?:number ): number; + /** [Method] Selects the value of a node optionally replacing null with the defaultValue + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue String When specified, this is return as empty value. + */ + static selectValue( selector?:string, root?:HTMLElement, defaultValue?:string ): string; + } +} +declare module Ext.core { + export interface IDomQuery { + } + export class DomQuery { + /** [Method] Compiles a selector xpath query into a reusable function + * @param selector String The selector/xpath query + * @param type String Either "select" or "simple" for a simple selector match + */ + static compile( selector?:string, type?:string ): any; + /** [Method] Filters an array of elements to only include matches of a simple selector e g + * @param el HTMLElement[] An array of elements to filter + * @param selector String The simple selector to test + * @param nonMatches Boolean If true, it returns the elements that DON'T match the selector instead of the ones that match + */ + static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; + /** [Method] Returns true if the passed element s match the passed simple selector e g + * @param el any An element id, element or array of elements + * @param selector any The simple selector to test + */ + static is( el?:any, selector?:any ): any; + static is( el?:string, selector?:string ): bool; + static is( el?:HTMLElement, selector?:string ): bool; + static is( el?:HTMLElement[], selector?:string ): bool; + /** [Method] Selects an array of DOM nodes using JavaScript only implementation + * @param selector any The selector/xpath query (can be a comma separated list of selectors) + * @param root any The start of the query. + */ + static jsSelect( selector?:any, root?:any ): any; + static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; + static jsSelect( selector?:string, root?:string ): HTMLElement[]; + /** [Method] Selects an array of DOM nodes by CSS XPath selector + * @param path String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param type String Either "select" or "simple" for a simple selector match (only valid when used when the call is deferred to the jsSelect method) + * @param single Boolean Pass true to select only the first matching node using document.querySelector (where available) + */ + static select( path?:string, root?:HTMLElement, type?:string, single?:bool ): HTMLElement[]; + /** [Method] Selects a single element + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + */ + static selectNode( selector?:string, root?:HTMLElement ): HTMLElement; + /** [Method] Selects the value of a node parsing integers and floats + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue Number When specified, this is return as empty value. + */ + static selectNumber( selector?:string, root?:HTMLElement, defaultValue?:number ): number; + /** [Method] Selects the value of a node optionally replacing null with the defaultValue + * @param selector String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param defaultValue String When specified, this is return as empty value. + */ + static selectValue( selector?:string, root?:HTMLElement, defaultValue?:string ): string; + } +} +declare module Ext { + export interface IDomHelper extends Ext.dom.IHelper { + } + export class DomHelper { + } +} +declare module Ext.core { + export interface IDomHelper extends Ext.dom.IHelper { + } + export class DomHelper { + } +} +declare module Ext.draw { + export interface IColor extends Ext.IBase { + /** [Config Option] (Number) The default factor to compute the lighter or darker color. ... */ + lightnessFactor?: number; + /** [Method] Get the blue component of the color in the range 0 255 */ + getBlue?(): number; + /** [Method] Return a new color that is darker than this color + * @param factor Number Darker factor (0..1), default to 0.2 + */ + getDarker?( factor?:number ): any; + /** [Method] Returns the gray value 0 to 255 of the color */ + getGrayscale?(): number; + /** [Method] Get the green component of the color in the range 0 255 */ + getGreen?(): number; + /** [Method] Get the equivalent HSL components of the color */ + getHSL?(): number[]; + /** [Method] Return a new color that is lighter than this color + * @param factor Number Lighter factor (0..1), default to 0.2 + */ + getLighter?( factor?:number ): any; + /** [Method] Get the RGB values */ + getRGB?(): number[]; + /** [Method] Get the red component of the color in the range 0 255 */ + getRed?(): number; + /** [Method] Return the color in the hex format i e */ + toString?(): string; + } +} +declare module Ext.draw { + export interface IComponent extends Ext.IComponent { + /** [Config Option] (Boolean) Turn on autoSize support which will set the bounding div's size to the natural size of the contents. ... */ + autoSize?: bool; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String[]) Defines the priority order for which Surface implementation to use. ... */ + enginePriority?: string[]; + /** [Config Option] (Object[]) (optional) Define a set of gradients that can be used as fill property in sprites. ... */ + gradients?: Object[]; + /** [Config Option] (Ext.draw.Sprite[]) */ + items?: Ext.draw.ISprite[]; + /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + shrinkWrap?: any; + /** [Config Option] (Boolean) Turn on view box support which will scale and position items in the draw component to fit to the component while main... */ + viewBox?: bool; + /** [Property] (Ext.draw.Surface) */ + surface?: Ext.draw.ISurface; + } +} +declare module Ext.draw { + export interface ICompositeSprite extends Ext.util.IMixedCollection,Ext.util.IAnimate { + /** [Method] Inherit docs from MixedCollection Adds an item to the collection + * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + add?( key?:any, obj?:any ): any; + /** [Method] Adds class to all sprites + * @param cls String CSS class name + */ + addCls?( cls?:string ): void; + /** [Method] Performs custom animation on this object + * @param config Object Configuration for Ext.fx.Anim. Note that the to config is required. + */ + animate?( config?:any ): any; + /** [Method] Destroys this CompositeSprite */ + destroy?(): void; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): bool; + /** [Method] Returns the group bounding box */ + getBBox?(): any; + /** [Method] Hides all sprites + * @param redraw Boolean Flag to immediately draw the change. + */ + hide?( redraw?:bool ): Ext.draw.ICompositeSprite; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key any The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o any If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + insert?( index?:number, key?:any, o?:any ): any; + /** [Method] Force redraw of all sprites */ + redraw?(): void; + /** [Method] Inherit docs from MixedCollection Remove an item from the collection + * @param o Object The item to remove. + */ + remove?( o?:any ): any; + /** [Method] Removes class from all sprites + * @param cls String CSS class name + */ + removeCls?( cls?:string ): void; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + sequenceFx?(): any; + /** [Method] Iterates through all sprites calling setAttributes on each one + * @param attrs Object Attributes to be changed on the sprite. + * @param redraw Boolean Flag to immediately draw the change. + */ + setAttributes?( attrs?:any, redraw?:bool ): Ext.draw.ICompositeSprite; + /** [Method] Sets style for all sprites + * @param style String CSS Style definition. + */ + setStyle?( style?:string ): void; + /** [Method] Shows all sprites + * @param redraw Boolean Flag to immediately draw the change. + */ + show?( redraw?:bool ): Ext.draw.ICompositeSprite; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopAnimation?(): Ext.IElement; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + syncFx?(): any; + } +} +declare module Ext.draw { + export interface IDraw extends Ext.IBase { + } + export class Draw { + /** [Method] snapEndsByDate is a utility method to deduce an appropriate tick configuration for the data set of given feature + * @param from Date The minimum value in the data + * @param to Date The maximum value in the data + * @param stepsMax Number The maximum number of ticks + * @param lockEnds Boolean If true, the 'from' and 'to' parameters will be used as fixed end values and will not be adjusted + */ + static snapEndsByDate( from?:any, to?:any, stepsMax?:number, lockEnds?:bool ): any; + /** [Method] snapEndsByDateAndStep is a utility method to deduce an appropriate tick configuration for the data set of given featu + * @param from Date The minimum value in the data + * @param to Date The maximum value in the data + * @param step Array An array with two components: The first is the unit of the step (day, month, year, etc). The second is the number of units for the step (1, 2, etc.). If the number is an integer, it represents the number of units for the step ([Ext.Date.DAY, 2] means "Every other day"). If the number is a fraction, it represents the number of steps per unit ([Ext.Date.DAY, 1/2] means "Twice a day"). If the unit is the month, the steps may be adjusted depending on the month. For instance [Ext.Date.MONTH, 1/3], which means "Three times a month", generates steps on the 1st, the 10th and the 20th of every month regardless of whether a month has 28 days or 31 days. The steps are generated as follows: - [Ext.Date.MONTH, n]: on the current date every 'n' months, maxed to the number of days in the month. - [Ext.Date.MONTH, 1/2]: on the 1st and 15th of every month. - [Ext.Date.MONTH, 1/3]: on the 1st, 10th and 20th of every month. - [Ext.Date.MONTH, 1/4]: on the 1st, 8th, 15th and 22nd of every month. + * @param lockEnds Boolean If true, the 'from' and 'to' parameters will be used as fixed end values and will not be adjusted + */ + static snapEndsByDateAndStep( from?:any, to?:any, step?:any[], lockEnds?:bool ): any; + } +} +declare module Ext.draw.engine { + export interface IImageExporter extends Ext.IBase { + } + export class ImageExporter { + /** [Method] Exports the surface to an image + * @param surface Ext.draw.ISurface The surface to export + * @param config Object The following config options are supported: + */ + static generate( surface?:Ext.draw.ISurface, config?:any ): bool; + } +} +declare module Ext.draw.engine { + export interface ISvg extends Ext.draw.ISurface { + /** [Method] Adds one or more CSS classes to the element + * @param sprite Object The sprite to add the class to. + * @param className String The CSS class to add, or an array of classes + */ + addCls?( sprite?:any, className?:string ): void; + addCls?( sprite?:any, className?:string[] ): void; + /** [Method] Adds a gradient definition to the Surface + * @param gradient Object A gradient config. + */ + addGradient?( gradient?:any ): void; + /** [Method] Insert or move a given sprite s element to the correct place in the DOM list for its zIndex + * @param sprite Ext.draw.ISprite + */ + applyZIndex?( sprite?:Ext.draw.ISprite ): void; + /** [Method] Destroys the surface */ + destroy?(): void; + /** [Method] Get the region for the surface s canvas area */ + getRegion?(): Ext.util.IRegion; + /** [Method] Checks if the specified CSS class exists on this element s DOM node + * @param sprite Ext.draw.ISprite The sprite to look into. + * @param className String The CSS class to check for + */ + hasCls?( sprite?:Ext.draw.ISprite, className?:string ): bool; + /** [Method] Removes one or more CSS classes from the element + * @param sprite Object The sprite to remove the class from. + * @param className String The CSS class to remove, or an array of classes + */ + removeCls?( sprite?:any, className?:string ): void; + removeCls?( sprite?:any, className?:string[] ): void; + /** [Method] Sets the size of the surface + * @param w Number The new width of the canvas. + * @param h Number The new height of the canvas. + */ + setSize?( w?:number, h?:number ): void; + /** [Method] Changes the text in the sprite element + * @param sprite Object The Sprite to change the text. + * @param text String The new text to be set. + */ + setText?( sprite?:any, text?:string ): void; + } +} +declare module Ext.draw.engine { + export interface ISvgExporter extends Ext.IBase { + } + export class SvgExporter { + /** [Method] Exports the passed surface to a SVG string representation + * @param surface Ext.draw.ISurface The surface to export + * @param config Object Any configuration for the export. Currently this is unused but may provide more options in the future + */ + static generate( surface?:Ext.draw.ISurface, config?:any ): string; + } +} +declare module Ext.draw.engine { + export interface IVml extends Ext.draw.ISurface { + /** [Method] Adds one or more CSS classes to the element + * @param sprite Object The sprite to add the class to. + * @param className String The CSS class to add, or an array of classes + */ + addCls?( sprite?:any, className?:string ): void; + addCls?( sprite?:any, className?:string[] ): void; + /** [Method] Adds a definition to this Surface for a linear gradient + * @param gradient Object + */ + addGradient?( gradient?:any ): void; + /** [Method] Destroys the surface */ + destroy?(): void; + /** [Method] Removes one or more CSS classes from the element + * @param sprite Object The sprite to remove the class from. + * @param className String The CSS class to remove, or an array of classes + */ + removeCls?( sprite?:any, className?:string ): void; + removeCls?( sprite?:any, className?:string[] ): void; + /** [Method] Sets the size of the surface + * @param w Number The new width of the canvas. + * @param h Number The new height of the canvas. + */ + setSize?( w?:number, h?:number ): void; + /** [Method] Changes the text in the sprite element + * @param sprite Object The Sprite to change the text. + * @param text String The new text to be set. + */ + setText?( sprite?:any, text?:string ): void; + } +} +declare module Ext.draw { + export interface IMatrix extends Ext.IBase { + } +} +declare module Ext.draw { + export interface ISprite extends Ext.IBase,Ext.util.IAnimate,Ext.util.IObservable { + /** [Config Option] (Boolean) */ + draggable?: bool; + /** [Config Option] (String) */ + fill?: string; + /** [Config Option] (String) Used with text type sprites. ... */ + font?: string; + /** [Config Option] (String/String[]) The group that this sprite belongs to, or an array of groups. ... */ + group?: any; + /** [Config Option] (Number) */ + height?: number; + /** [Config Option] (Number) The opacity of the sprite. ... */ + opacity?: number; + /** [Config Option] (String) */ + path?: string; + /** [Config Option] (Number) The radius of the circle sprite. ... */ + radius?: number; + /** [Config Option] (Number) */ + radiusX?: number; + /** [Config Option] (Number) */ + radiusY?: number; + /** [Config Option] (String) */ + src?: string; + /** [Config Option] (String) */ + stroke?: string; + /** [Config Option] (Number) The width of the stroke. ... */ + strokewidth?: number; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (String) The type of the sprite. ... */ + type?: string; + /** [Config Option] (Number) */ + width?: number; + /** [Config Option] (Number) */ + x?: number; + /** [Config Option] (Number) */ + y?: number; + /** [Property] (Ext.dd.DragSource) If this Sprite is configured draggable, this property will contain an instance of Ext.dd.DragSource which handles dra... */ + dd?: Ext.dd.IDragSource; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Sprite, or subclass thereof. ... */ + isSprite?: bool; + /** [Method] Adds one or more CSS classes to the element + * @param className any The CSS class to add, or an array of classes + */ + addCls?( className?:any ): any; + addCls?( className?:string ): Ext.draw.ISprite; + addCls?( className?:string[] ): Ext.draw.ISprite; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Performs custom animation on this object + * @param config Object Configuration for Ext.fx.Anim. Note that the to config is required. + */ + animate?( config?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Removes the sprite and clears all listeners */ + destroy?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): bool; + /** [Method] Retrieves the bounding box of the sprite */ + getBBox?(): any; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Hides the sprite + * @param redraw Boolean Flag to immediately draw the change. + */ + hide?( redraw?:bool ): Ext.draw.ISprite; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Redraws the sprite */ + redraw?(): Ext.draw.ISprite; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes the sprite */ + remove?(): bool; + /** [Method] Removes one or more CSS classes from the element + * @param className any The CSS class to remove, or an array of classes. Note this method is severly limited in VML. + */ + removeCls?( className?:any ): any; + removeCls?( className?:string ): Ext.draw.ISprite; + removeCls?( className?:string[] ): Ext.draw.ISprite; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + sequenceFx?(): any; + /** [Method] Change the attributes of the sprite + * @param attrs Object attributes to be changed on the sprite. + * @param redraw Boolean Flag to immediately draw the change. + */ + setAttributes?( attrs?:any, redraw?:bool ): Ext.draw.ISprite; + /** [Method] Wrapper for setting style properties also takes single object parameter of multiple styles + * @param property any The style property to be set, or an object of multiple styles. + * @param value String The value to apply to the given property, or null if an object was passed. + */ + setStyle?( property?:any, value?:string ): Ext.draw.ISprite; + /** [Method] Shows the sprite + * @param redraw Boolean Flag to immediately draw the change. + */ + show?( redraw?:bool ): Ext.draw.ISprite; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopAnimation?(): Ext.IElement; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + syncFx?(): any; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.draw { + export interface ISpriteDD extends Ext.dd.IDragSource { + /** [Method] Creates the proxy element if it does not yet exist */ + createFrame?(): void; + /** [Method] Returns a reference to the actual element to drag */ + getDragEl?(): HTMLElement; + /** [Method] Abstract method called during the onMouseMove event while dragging an object + * @param e Event the mousemove event + */ + onDrag?( e?:Event ): void; + /** [Method] Sets the drag element to the location of the mousedown or click event maintaining the cursor location relative to th + * @param iPageX Number the X coordinate of the mousedown or drag event + * @param iPageY Number the Y coordinate of the mousedown or drag event + */ + setDragElPos?( iPageX?:number, iPageY?:number ): void; + /** [Method] TODO nico Cumulative translations in VML are handled differently than in SVG + * @param x Number X click location + * @param y Number Y click location + */ + startDrag?( x?:number, y?:number ): void; + } +} +declare module Ext.draw { + export interface ISurface extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Number) */ + height?: number; + /** [Config Option] (Ext.draw.Sprite[]) */ + items?: Ext.draw.ISprite[]; + /** [Config Option] (Number) */ + width?: number; + /** [Method] Adds a Sprite to the surface + * @param args any One or more Sprite objects or configs. + */ + add?( args?:any ): any; + add?( args?:Ext.draw.ISprite[] ): Ext.draw.ISprite[]; + add?( args:Ext.draw.ISprite ): Ext.draw.ISprite[]; + /** [Method] Adds a Sprite to the surface + * @param args Ext.draw.ISprite[] One or more Sprite objects or configs. + */ + add?( args?:Ext.draw.ISprite[] ): Ext.draw.ISprite; + add?( args:Ext.draw.ISprite ): Ext.draw.ISprite; + /** [Method] Adds one or more CSS classes to the element + * @param sprite Object The sprite to add the class to. + * @param className String The CSS class to add, or an array of classes + */ + addCls?( sprite?:any, className?:string ): void; + addCls?( sprite?:any, className?:string[] ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Adds a gradient definition to the Surface + * @param gradient Object A gradient config. + */ + addGradient?( gradient?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Destroys the surface */ + destroy?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns a new group or an existent group associated with the current surface + * @param id String The unique identifier of the group. + */ + getGroup?( id?:string ): any; + /** [Method] Retrieves the id of this component */ + getId?(): void; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes a given sprite from the surface optionally destroying the sprite in the process + * @param sprite Ext.draw.ISprite + * @param destroySprite Boolean + */ + remove?( sprite?:Ext.draw.ISprite, destroySprite?:bool ): void; + /** [Method] Removes all sprites from the surface optionally destroying the sprites in the process + * @param destroySprites Boolean Whether to destroy all sprites when removing them. + */ + removeAll?( destroySprites?:bool ): void; + /** [Method] Removes one or more CSS classes from the element + * @param sprite Object The sprite to remove the class from. + * @param className String The CSS class to remove, or an array of classes + */ + removeCls?( sprite?:any, className?:string ): void; + removeCls?( sprite?:any, className?:string[] ): void; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the size of the surface + * @param w Number The new width of the canvas. + * @param h Number The new height of the canvas. + */ + setSize?( w?:number, h?:number ): void; + /** [Method] Sets CSS style attributes to an element + * @param sprite Object The sprite to add, or an array of classes to + * @param styles Object An Object with CSS styles. + */ + setStyle?( sprite?:any, styles?:any ): void; + /** [Method] Changes the text in the sprite element + * @param sprite Object The Sprite to change the text. + * @param text String The new text to be set. + */ + setText?( sprite?:any, text?:string ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.draw { + export interface IText extends Ext.draw.IComponent { + /** [Config Option] (Boolean) Turn on autoSize support which will set the bounding div's size to the natural size of the contents. ... */ + autoSize?: bool; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number) The angle by which to initially rotate the text clockwise. ... */ + degrees?: number; + /** [Config Option] (String) A CSS selector string which matches a style rule in the document stylesheet from which the text's font properties are... */ + styleSelector?: string; + /** [Config Option] (String) The text to display (html tags are not accepted) ... */ + text?: string; + /** [Config Option] (Boolean) Turn on view box support which will scale and position items in the draw component to fit to the component while main... */ + viewBox?: bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Sets the clockwise rotation angle relative to the horizontal axis + * @param degrees Number The clockwise angle (in degrees) from the horizontal axis by which the text should be rotated. + */ + setAngle?( degrees?:number ): void; + /** [Method] Updates this item s text + * @param t String The text to display (html not accepted). + */ + setText?( t?:string ): void; + } +} +declare module Ext { + export interface IEditor extends Ext.container.IContainer { + /** [Config Option] (String) The position to align to (see Ext.util.Positionable.alignTo for more details). ... */ + alignment?: string; + /** [Config Option] (Boolean) True to complete the editing process if in edit mode when the field is blurred. ... */ + allowBlur?: bool; + /** [Config Option] (Boolean/Object) True for the editor to automatically adopt the size of the underlying field. ... */ + autoSize?: any; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to cancel the edit when the escape key is pressed. ... */ + cancelOnEsc?: bool; + /** [Config Option] (Boolean) True to complete the edit when the enter key is pressed. ... */ + completeOnEnter?: bool; + /** [Config Option] (Boolean) True to constrain the editor to the viewport ... */ + constrain?: bool; + /** [Config Option] (Ext.form.field.Field) */ + field?: Ext.form.field.IField; + /** [Config Option] (Boolean) Do not participate in the ZIndexManager's focus switching operations. ... */ + focusOnToFront?: bool; + /** [Config Option] (Boolean) private overrides true to hide the component. ... */ + hidden?: bool; + /** [Config Option] (Boolean) False to keep the bound element visible while the editor is displayed ... */ + hideEl?: bool; + /** [Config Option] (Boolean) True to skip the edit completion process (no save, no events fired) if the user completes an edit and the value has n... */ + ignoreNoChange?: bool; + /** [Config Option] (Ext.enums.Layout/Object) End Definitions Important: In order for child items to be correctly sized and positioned, typically a layout manager... */ + layout?: any; + /** [Config Option] (Number[]) The offsets to use when aligning (see Ext.util.Positionable.alignTo for more details. ... */ + offsets?: number[]; + /** [Config Option] (String/HTMLElement/Ext.Element) An element to render to. ... */ + parentEl?: any; + /** [Config Option] (Boolean) True to automatically revert the field value and cancel the edit when the user completes an edit and the field valida... */ + revertInvalid?: bool; + /** [Config Option] (Boolean/String) "sides" for sides/bottom only, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + shadow?: any; + /** [Config Option] (Boolean) Handle the keydown/keypress events so they don't propagate ... */ + swallowKeys?: bool; + /** [Config Option] (Boolean) True to update the innerHTML of the bound element when the update completes ... */ + updateEl?: bool; + /** [Config Option] (Object) The data value of the underlying field ... */ + value?: any; + /** [Method] private Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Cancels the editing process and hides the editor without persisting any changes + * @param remainVisible Boolean Override the default behavior and keep the editor visible after cancel + */ + cancelEdit?( remainVisible?:bool ): void; + /** [Method] Ends the editing process persists the changed value to the underlying field and hides the editor + * @param remainVisible Boolean Override the default behavior and keep the editor visible after edit + */ + completeEdit?( remainVisible?:bool ): void; + /** [Method] Gets the data value of the editor */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] private Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Realigns the editor to the bound field based on the current alignment config value + * @param autoSize Boolean True to size the field to the dimensions of the bound element. + */ + realign?( autoSize?:bool ): void; + /** [Method] Sets the data value of the editor + * @param value Object Any valid value supported by the underlying field + */ + setValue?( value?:any ): void; + /** [Method] Starts the editing process and shows the editor + * @param el String The element to edit + * @param value String A value to initialize the editor with. If a value is not provided, it defaults to the innerHTML of el. + */ + startEdit?( el?:string, value?:string ): void; + startEdit?( el?:HTMLElement, value?:string ): void; + startEdit?( el?:Ext.IElement, value?:string ): void; + } +} +declare module Ext { + export interface IElementLoader extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Object) */ + ajaxOptions?: any; + /** [Config Option] (Boolean/Object) True to have the loader make a request as soon as it is created. ... */ + autoLoad?: any; + /** [Config Option] (Object) Params that will be attached to every request. ... */ + baseParams?: any; + /** [Config Option] (Function) A function to be called when a load request finishes. ... */ + callback?: any; + /** [Config Option] (Function) A function to be called when a load request fails. ... */ + failure?: any; + /** [Config Option] (Boolean/String) True or a string to show when the element is loading. ... */ + loadMask?: any; + /** [Config Option] (Object) Any params to be attached to the Ajax request. ... */ + params?: any; + /** [Config Option] (Function) A custom function to render the content to the element. ... */ + renderer?: any; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (Boolean) True to parse any inline script tags in the response. ... */ + scripts?: bool; + /** [Config Option] (Function) A function to be called when a load request is successful. ... */ + success?: any; + /** [Config Option] (HTMLElement/Ext.Element/String) The target element for the loader. ... */ + target?: any; + /** [Config Option] (String) */ + url?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated ElementLoader, or subclass thereof. ... */ + isLoader?: bool; + /** [Method] Aborts the active load request */ + abort?(): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Destroys the loader */ + destroy?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the target of this loader */ + getTarget?(): Ext.IComponent; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Checks whether the loader is automatically refreshing */ + isAutoRefreshing?(): bool; + /** [Method] Loads new data from the server + * @param options Object The options for the request. They can be any configuration option that can be specified for the class, with the exception of the target option. Note that any options passed to the method will override any class defaults. + */ + load?( options?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets an Ext Element as the target of this loader + * @param target String The element or its ID. + */ + setTarget?( target?:string ): void; + setTarget?( target?:HTMLElement ): void; + setTarget?( target?:Ext.IElement ): void; + /** [Method] Automatically refreshes the content over a specified period + * @param interval Number The interval to refresh in ms. + * @param options Object The options to pass to the load method. See load + */ + startAutoRefresh?( interval?:number, options?:any ): void; + /** [Method] Clears any auto refresh */ + stopAutoRefresh?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.enums { + export interface IFeature { + /** [Property] (String) Alias for Ext.grid.feature.AbstractSummary. ... */ + abstractsummary?: string; + /** [Property] (String) Alias for Ext.grid.feature.Feature. ... */ + feature?: string; + /** [Property] (String) Alias for Ext.grid.feature.Grouping. ... */ + grouping?: string; + /** [Property] (String) Alias for Ext.grid.feature.GroupingSummary. ... */ + groupingsummary?: string; + /** [Property] (String) Alias for Ext.grid.feature.RowBody. ... */ + rowbody?: string; + /** [Property] (String) Alias for Ext.grid.feature.Summary. ... */ + summary?: string; + } +} +declare module Ext.enums { + export interface ILayout { + /** [Property] (String) Alias for Ext.layout.container.Absolute. ... */ + absolute?: string; + /** [Property] (String) Alias for Ext.layout.container.Accordion. ... */ + accordion?: string; + /** [Property] (String) Alias for Ext.layout.container.Anchor. ... */ + anchor?: string; + /** [Property] (String) Alias for Ext.layout.container.Auto. ... */ + auto?: string; + /** [Property] (String) Alias for Ext.layout.component.Auto. ... */ + autocomponent?: string; + /** [Property] (String) Alias for Ext.layout.container.Auto. ... */ + autocontainer?: string; + /** [Property] (String) Alias for Ext.layout.container.Border. ... */ + border?: string; + /** [Property] (String) Alias for Ext.layout.container.Box. ... */ + box?: string; + /** [Property] (String) Alias for Ext.layout.container.Card. ... */ + card?: string; + /** [Property] (String) Alias for Ext.layout.container.CheckboxGroup. ... */ + checkboxgroup?: string; + /** [Property] (String) Alias for Ext.layout.container.Column. ... */ + column?: string; + /** [Property] (String) Alias for Ext.layout.container.Container. ... */ + container?: string; + /** [Property] (String) Alias for Ext.layout.container.Fit. ... */ + fit?: string; + /** [Property] (String) Alias for Ext.layout.container.Form. ... */ + form?: string; + /** [Property] (String) Alias for Ext.layout.container.HBox. ... */ + hbox?: string; + /** [Property] (String) Alias for Ext.layout.container.Table. ... */ + table?: string; + /** [Property] (String) Alias for Ext.layout.container.VBox. ... */ + vbox?: string; + } +} +declare module Ext.enums { + export interface IPlugin { + /** [Property] (String) Alias for Ext.grid.plugin.BufferedRenderer. ... */ + bufferedrenderer?: string; + /** [Property] (String) Alias for Ext.grid.plugin.CellEditing. ... */ + cellediting?: string; + /** [Property] (String) Alias for Ext.grid.plugin.HeaderResizer. ... */ + gridheaderresizer?: string; + /** [Property] (String) Alias for Ext.grid.plugin.DragDrop. ... */ + gridviewdragdrop?: string; + /** [Property] (String) Alias for Ext.grid.plugin.RowEditing. ... */ + rowediting?: string; + /** [Property] (String) Alias for Ext.grid.plugin.RowExpander. ... */ + rowexpander?: string; + /** [Property] (String) Alias for Ext.tree.plugin.TreeViewDragDrop. ... */ + treeviewdragdrop?: string; + } +} +declare module Ext.enums { + export interface IWidget { + /** [Property] (String) Alias for Ext.grid.column.Action. ... */ + actioncolumn?: string; + /** [Property] (String) Alias for Ext.grid.column.Boolean. ... */ + booleancolumn?: string; + /** [Property] (String) Alias for Ext.view.BoundList. ... */ + boundlist?: string; + /** [Property] (String) Alias for Ext.Component. ... */ + box?: string; + /** [Property] (String) Alias for Ext.button.Button. ... */ + button?: string; + /** [Property] (String) Alias for Ext.container.ButtonGroup. ... */ + buttongroup?: string; + /** [Property] (String) Alias for Ext.chart.Chart. ... */ + chart?: string; + /** [Property] (String) Alias for Ext.form.field.Checkbox. ... */ + checkbox?: string; + /** [Property] (String) Alias for Ext.form.field.Checkbox. ... */ + checkboxfield?: string; + /** [Property] (String) Alias for Ext.form.CheckboxGroup. ... */ + checkboxgroup?: string; + /** [Property] (String) Alias for Ext.grid.column.CheckColumn. ... */ + checkcolumn?: string; + /** [Property] (String) Alias for Ext.menu.ColorPicker. ... */ + colormenu?: string; + /** [Property] (String) Alias for Ext.picker.Color. ... */ + colorpicker?: string; + /** [Property] (String) Alias for Ext.form.field.ComboBox. ... */ + combo?: string; + /** [Property] (String) Alias for Ext.form.field.ComboBox. ... */ + combobox?: string; + /** [Property] (String) Alias for Ext.Component. ... */ + component?: string; + /** [Property] (String) Alias for Ext.container.Container. ... */ + container?: string; + /** [Property] (String) Alias for Ext.button.Cycle. ... */ + cycle?: string; + /** [Property] (String) Alias for Ext.view.View. ... */ + dataview?: string; + /** [Property] (String) Alias for Ext.grid.column.Date. ... */ + datecolumn?: string; + /** [Property] (String) Alias for Ext.form.field.Date. ... */ + datefield?: string; + /** [Property] (String) Alias for Ext.menu.DatePicker. ... */ + datemenu?: string; + /** [Property] (String) Alias for Ext.picker.Date. ... */ + datepicker?: string; + /** [Property] (String) Alias for Ext.form.field.Display. ... */ + displayfield?: string; + /** [Property] (String) Alias for Ext.draw.Component. ... */ + draw?: string; + /** [Property] (String) Alias for Ext.Editor. ... */ + editor?: string; + /** [Property] (String) Alias for Ext.form.field.Base. ... */ + field?: string; + /** [Property] (String) Alias for Ext.form.FieldContainer. ... */ + fieldcontainer?: string; + /** [Property] (String) Alias for Ext.form.FieldSet. ... */ + fieldset?: string; + /** [Property] (String) Alias for Ext.form.field.FileButton. ... */ + filebutton?: string; + /** [Property] (String) Alias for Ext.form.field.File. ... */ + filefield?: string; + /** [Property] (String) Alias for Ext.form.field.File. ... */ + fileuploadfield?: string; + /** [Property] (String) Alias for Ext.flash.Component. ... */ + flash?: string; + /** [Property] (String) Alias for Ext.form.Panel. ... */ + form?: string; + /** [Property] (String) Alias for Ext.grid.Panel. ... */ + grid?: string; + /** [Property] (String) Alias for Ext.grid.column.Column. ... */ + gridcolumn?: string; + /** [Property] (String) Alias for Ext.grid.Panel. ... */ + gridpanel?: string; + /** [Property] (String) Alias for Ext.grid.View. ... */ + gridview?: string; + /** [Property] (String) Alias for Ext.panel.Header. ... */ + header?: string; + /** [Property] (String) Alias for Ext.grid.header.Container. ... */ + headercontainer?: string; + /** [Property] (String) Alias for Ext.form.field.Hidden. ... */ + hidden?: string; + /** [Property] (String) Alias for Ext.form.field.Hidden. ... */ + hiddenfield?: string; + /** [Property] (String) Alias for Ext.form.field.HtmlEditor. ... */ + htmleditor?: string; + /** [Property] (String) Alias for Ext.Img. ... */ + image?: string; + /** [Property] (String) Alias for Ext.Img. ... */ + imagecomponent?: string; + /** [Property] (String) Alias for Ext.data.JsonPStore. ... */ + jsonpstore?: string; + /** [Property] (String) Alias for Ext.form.Label. ... */ + label?: string; + /** [Property] (String) Alias for Ext.LoadMask. ... */ + loadmask?: string; + /** [Property] (String) Alias for Ext.menu.Menu. ... */ + menu?: string; + /** [Property] (String) Alias for Ext.menu.CheckItem. ... */ + menucheckitem?: string; + /** [Property] (String) Alias for Ext.menu.Item. ... */ + menuitem?: string; + /** [Property] (String) Alias for Ext.menu.Separator. ... */ + menuseparator?: string; + /** [Property] (String) Alias for Ext.window.MessageBox. ... */ + messagebox?: string; + /** [Property] (String) Alias for Ext.slider.Multi. ... */ + multislider?: string; + /** [Property] (String) Alias for Ext.grid.column.Number. ... */ + numbercolumn?: string; + /** [Property] (String) Alias for Ext.form.field.Number. ... */ + numberfield?: string; + /** [Property] (String) Alias for Ext.toolbar.Paging. ... */ + pagingtoolbar?: string; + /** [Property] (String) Alias for Ext.panel.Panel. ... */ + panel?: string; + /** [Property] (String) Alias for Ext.form.field.Picker. ... */ + pickerfield?: string; + /** [Property] (String) Alias for Ext.ProgressBar. ... */ + progressbar?: string; + /** [Property] (String) Alias for Ext.grid.property.Grid. ... */ + propertygrid?: string; + /** [Property] (String) Alias for Ext.tip.QuickTip. ... */ + quicktip?: string; + /** [Property] (String) Alias for Ext.form.field.Radio. ... */ + radio?: string; + /** [Property] (String) Alias for Ext.form.field.Radio. ... */ + radiofield?: string; + /** [Property] (String) Alias for Ext.form.RadioGroup. ... */ + radiogroup?: string; + /** [Property] (String) Alias for Ext.grid.RowNumberer. ... */ + rownumberer?: string; + /** [Property] (String) Alias for Ext.slider.Single. ... */ + slider?: string; + /** [Property] (String) Alias for Ext.slider.Single. ... */ + sliderfield?: string; + /** [Property] (String) Alias for Ext.slider.Tip. ... */ + slidertip?: string; + /** [Property] (String) Alias for Ext.form.field.Spinner. ... */ + spinnerfield?: string; + /** [Property] (String) Alias for Ext.button.Split. ... */ + splitbutton?: string; + /** [Property] (String) Alias for Ext.resizer.Splitter. ... */ + splitter?: string; + /** [Property] (String) Alias for Ext.tab.Tab. ... */ + tab?: string; + /** [Property] (String) Alias for Ext.tab.Bar. ... */ + tabbar?: string; + /** [Property] (String) Alias for Ext.panel.Table. ... */ + tablepanel?: string; + /** [Property] (String) Alias for Ext.view.Table. ... */ + tableview?: string; + /** [Property] (String) Alias for Ext.tab.Panel. ... */ + tabpanel?: string; + /** [Property] (String) Alias for Ext.toolbar.Fill. ... */ + tbfill?: string; + /** [Property] (String) Alias for Ext.toolbar.Item. ... */ + tbitem?: string; + /** [Property] (String) Alias for Ext.toolbar.Separator. ... */ + tbseparator?: string; + /** [Property] (String) Alias for Ext.toolbar.Spacer. ... */ + tbspacer?: string; + /** [Property] (String) Alias for Ext.toolbar.TextItem. ... */ + tbtext?: string; + /** [Property] (String) Alias for Ext.grid.column.Template. ... */ + templatecolumn?: string; + /** [Property] (String) Alias for Ext.draw.Text. ... */ + text?: string; + /** [Property] (String) Alias for Ext.form.field.TextArea. ... */ + textarea?: string; + /** [Property] (String) Alias for Ext.form.field.TextArea. ... */ + textareafield?: string; + /** [Property] (String) Alias for Ext.form.field.Text. ... */ + textfield?: string; + /** [Property] (String) Alias for Ext.form.field.Time. ... */ + timefield?: string; + /** [Property] (String) Alias for Ext.picker.Time. ... */ + timepicker?: string; + /** [Property] (String) Alias for Ext.tip.Tip. ... */ + tip?: string; + /** [Property] (String) Alias for Ext.panel.Tool. ... */ + tool?: string; + /** [Property] (String) Alias for Ext.toolbar.Toolbar. ... */ + toolbar?: string; + /** [Property] (String) Alias for Ext.tip.ToolTip. ... */ + tooltip?: string; + /** [Property] (String) Alias for Ext.tree.Panel. ... */ + treepanel?: string; + /** [Property] (String) Alias for Ext.tree.View. ... */ + treeview?: string; + /** [Property] (String) Alias for Ext.form.field.Trigger. ... */ + trigger?: string; + /** [Property] (String) Alias for Ext.form.field.Trigger. ... */ + triggerfield?: string; + /** [Property] (String) Alias for Ext.container.Viewport. ... */ + viewport?: string; + /** [Property] (String) Alias for Ext.window.Window. ... */ + window?: string; + } +} +declare module Ext { + export interface IError { + /** [Method] Provides a custom string representation of the error object */ + toString?(): string; + } +} +declare module Ext { + export interface IEventManager { + } + export class EventManager { + /** [Method] Appends an event handler to an element + * @param el String The html element or id to assign the event handler to. + * @param eventName String The name of the event to listen for. + * @param handler Function The handler function the event invokes. + * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to the Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties (See Ext.Element.addListener for examples of how to use these options.): + */ + static addListener( el?:string, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static addListener( el?:Ext.IElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static addListener( el?:HTMLElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static addListener( el?:Window, eventName?:string, handler?:any, scope?:any, options?:any ): void; + /** [Method] Get the id of the element + * @param element any The element to get the id for. + */ + static getId( element?:any ): any; + static getId( element?:HTMLElement ): string; + static getId( element?:Ext.IElement ): string; + /** [Method] Indicates which event to use for getting key presses */ + static getKeyEvent(): string; + /** [Method] Gets the x coordinate from the event + * @param event Object The event + */ + static getPageX( event?:any ): number; + /** [Method] Gets the x amp y coordinate from the event + * @param event Object The event + */ + static getPageXY( event?:any ): number[]; + /** [Method] Gets the y coordinate from the event + * @param event Object The event + */ + static getPageY( event?:any ): number; + /** [Method] Gets the related target from the event + * @param event Object The event + */ + static getRelatedTarget( event?:any ): HTMLElement; + /** [Method] Gets the target of the event + * @param event Object The event + */ + static getTarget( event?:any ): HTMLElement; + /** [Method] Appends an event handler to an element + * @param el String The html element or id to assign the event handler to. + * @param eventName String The name of the event to listen for. + * @param handler Function The handler function the event invokes. + * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to the Element. + * @param options Object An object containing handler configuration properties. This may contain any of the following properties (See Ext.Element.addListener for examples of how to use these options.): + */ + static on( el?:string, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static on( el?:Ext.IElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static on( el?:HTMLElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static on( el?:Window, eventName?:string, handler?:any, scope?:any, options?:any ): void; + /** [Method] Adds a listener to be notified when the document is ready before onload and before images are loaded + * @param fn Function The method the event invokes. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param options Object Options object as passed to Ext.Element.addListener. + */ + static onDocumentReady( fn?:any, scope?:any, options?:any ): void; + /** [Method] Adds a listener to be notified when the browser window is resized and provides resize event buffering 100 millisecon + * @param fn Function The handler function the window resize event invokes. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param options Boolean Options object as passed to Ext.Element.addListener + */ + static onWindowResize( fn?:any, scope?:any, options?:bool ): void; + /** [Method] Adds a listener to be notified when the browser window is unloaded + * @param fn Function The handler function the window unload event invokes. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param options Boolean Options object as passed to Ext.Element.addListener + */ + static onWindowUnload( fn?:any, scope?:any, options?:bool ): void; + /** [Method] This strategy has minimal benefits for Sencha solutions that build themselves ie */ + static pollScroll(): void; + /** [Method] Prevents the browsers default handling of the event + * @param event Event The event to prevent the default + */ + static preventDefault( event?:Event ): void; + /** [Method] Recursively removes all previous added listeners from an element and its children + * @param el String The id or html element from which to remove all event handlers. + * @param eventName String The name of the event. + */ + static purgeElement( el?:string, eventName?:string ): void; + static purgeElement( el?:Ext.IElement, eventName?:string ): void; + static purgeElement( el?:HTMLElement, eventName?:string ): void; + static purgeElement( el?:Window, eventName?:string ): void; + /** [Method] Removes all event handers from an element + * @param el String The id or html element from which to remove all event handlers. + */ + static removeAll( el?:string ): void; + static removeAll( el?:Ext.IElement ): void; + static removeAll( el?:HTMLElement ): void; + static removeAll( el?:Window ): void; + /** [Method] Removes an event handler from an element + * @param el String The id or html element from which to remove the listener. + * @param eventName String The name of the event. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the addListener call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + static removeListener( el?:string, eventName?:string, fn?:any, scope?:any ): void; + static removeListener( el?:Ext.IElement, eventName?:string, fn?:any, scope?:any ): void; + static removeListener( el?:HTMLElement, eventName?:string, fn?:any, scope?:any ): void; + static removeListener( el?:Window, eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes the passed window resize listener + * @param fn Function The method the event invokes + * @param scope Object The scope of handler + */ + static removeResizeListener( fn?:any, scope?:any ): void; + /** [Method] Removes the passed window unload listener + * @param fn Function The method the event invokes + * @param scope Object The scope of handler + */ + static removeUnloadListener( fn?:any, scope?:any ): void; + /** [Method] Stop the event preventDefault and stopPropagation + * @param event Event The event to stop + */ + static stopEvent( event?:Event ): void; + /** [Method] Cancels bubbling of the event + * @param event Event The event to stop bubbling. + */ + static stopPropagation( event?:Event ): void; + /** [Method] Removes an event handler from an element + * @param el String The id or html element from which to remove the listener. + * @param eventName String The name of the event. + * @param fn Function The handler function to remove. This must be a reference to the function passed into the addListener call. + * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. + */ + static un( el?:string, eventName?:string, fn?:any, scope?:any ): void; + static un( el?:Ext.IElement, eventName?:string, fn?:any, scope?:any ): void; + static un( el?:HTMLElement, eventName?:string, fn?:any, scope?:any ): void; + static un( el?:Window, eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IEventObject extends Ext.IBase { + } + export class EventObject { + /** [Method] Correctly scales a given wheel delta + * @param delta Number The delta value. + */ + static correctWheelDelta( delta?:number ): void; + /** [Method] Gets the character code for the event */ + static getCharCode(): number; + /** [Method] Returns a normalized keyCode for the event */ + static getKey(): number; + /** [Method] Returns a point object that consists of the object coordinates */ + static getPoint(): Ext.util.IPoint; + /** [Method] Gets the related target + * @param selector any A simple selector to filter the target or look for an ancestor of the target + * @param maxDepth any The max depth to search as a number or element (defaults to 10 || document.body) + * @param returnEl any True to return a Ext.Element object instead of DOM node + */ + static getRelatedTarget( selector?:any, maxDepth?:any, returnEl?:any ): any; + static getRelatedTarget( selector?:string, maxDepth?:number, returnEl?:bool ): HTMLElement; + static getRelatedTarget( selector?:string, maxDepth?:HTMLElement, returnEl?:bool ): HTMLElement; + /** [Method] Gets the target for the event + * @param selector any A simple selector to filter the target or look for an ancestor of the target + * @param maxDepth any The max depth to search as a number or element (defaults to 10 || document.body) + * @param returnEl any True to return a Ext.Element object instead of DOM node + */ + static getTarget( selector?:any, maxDepth?:any, returnEl?:any ): any; + static getTarget( selector?:string, maxDepth?:number, returnEl?:bool ): HTMLElement; + static getTarget( selector?:string, maxDepth?:HTMLElement, returnEl?:bool ): HTMLElement; + /** [Method] Normalizes mouse wheel y delta across browsers */ + static getWheelDelta(): number; + /** [Method] Returns the mouse wheel deltas for this event */ + static getWheelDeltas(): any; + /** [Method] Gets the x coordinate of the event */ + static getX(): number; + /** [Method] Gets the page coordinates of the event */ + static getXY(): number[]; + /** [Method] Gets the y coordinate of the event */ + static getY(): number; + /** [Method] Returns true if the control meta shift or alt key was pressed during this event */ + static hasModifier(): bool; + /** [Method] Injects a DOM event using the data in this object and optionally a new target + * @param target Ext.IElement If specified, the target for the event. This is likely to be used when relaying a DOM event. If not specified, getTarget is used to determine the target. + */ + static injectEvent( target?:Ext.IElement ): void; + static injectEvent( target?:HTMLElement ): void; + /** [Method] Checks if the key pressed was a navigation key */ + static isNavKeyPress(): bool; + /** [Method] Checks if the key pressed was a special key */ + static isSpecialKey(): bool; + /** [Method] Prevents the browsers default handling of the event */ + static preventDefault(): void; + /** [Method] Stop the event preventDefault and stopPropagation */ + static stopEvent(): void; + /** [Method] Cancels bubbling of the event */ + static stopPropagation(): void; + /** [Method] Returns true if the target of this event is a child of el + * @param el any The id, DOM element or Ext.Element to check + * @param related any true to test if the related target is within el instead of the target + * @param allowEl any true to also check if the passed element is the target or related target + */ + static within( el?:any, related?:any, allowEl?:any ): any; + static within( el?:string, related?:bool, allowEl?:bool ): bool; + static within( el?:HTMLElement, related?:bool, allowEl?:bool ): bool; + static within( el?:Ext.IElement, related?:bool, allowEl?:bool ): bool; + } +} +declare module Ext.flash { + export interface IComponent extends Ext.IComponent { + /** [Config Option] (String) The background color of the SWF movie. ... */ + backgroundColor?: string; + /** [Config Option] (Boolean) True to prompt the user to install flash if not installed. ... */ + expressInstall?: bool; + /** [Config Option] (Object) */ + flashAttributes?: any; + /** [Config Option] (Object) A set of key value pairs to be passed to the flash object as parameters. ... */ + flashParams?: any; + /** [Config Option] (Object) */ + flashVars?: any; + /** [Config Option] (String) Indicates the version the flash content was published for. ... */ + flashVersion?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) Have to create a placeholder div with the swfId, which SWFObject will replace with the object/embed element. ... */ + renderTpl?: any; + /** [Config Option] (String/Number) The height of the embedded SWF movie inside the component. ... */ + swfHeight?: any; + /** [Config Option] (String/Number) The width of the embedded SWF movie inside the component. ... */ + swfWidth?: any; + /** [Config Option] (String) */ + url?: string; + /** [Config Option] (String) The wmode of the flash object. ... */ + wmode?: string; + /** [Property] (Ext.Element) A reference to the object or embed element into which the SWF file is loaded. ... */ + swf?: Ext.IElement; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Retrieves the id of the SWF object embed element */ + getSwfId?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext { + export interface IFlashComponent extends Ext.IComponent { + /** [Config Option] (String) The background color of the SWF movie. ... */ + backgroundColor?: string; + /** [Config Option] (Boolean) True to prompt the user to install flash if not installed. ... */ + expressInstall?: bool; + /** [Config Option] (Object) */ + flashAttributes?: any; + /** [Config Option] (Object) A set of key value pairs to be passed to the flash object as parameters. ... */ + flashParams?: any; + /** [Config Option] (Object) */ + flashVars?: any; + /** [Config Option] (String) Indicates the version the flash content was published for. ... */ + flashVersion?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) Have to create a placeholder div with the swfId, which SWFObject will replace with the object/embed element. ... */ + renderTpl?: any; + /** [Config Option] (String/Number) The height of the embedded SWF movie inside the component. ... */ + swfHeight?: any; + /** [Config Option] (String/Number) The width of the embedded SWF movie inside the component. ... */ + swfWidth?: any; + /** [Config Option] (String) */ + url?: string; + /** [Config Option] (String) The wmode of the flash object. ... */ + wmode?: string; + /** [Property] (Ext.Element) A reference to the object or embed element into which the SWF file is loaded. ... */ + swf?: Ext.IElement; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Retrieves the id of the SWF object embed element */ + getSwfId?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext { + export interface IFocusManager extends Ext.IBase,Ext.util.IObservable { + } + export class FocusManager { + /** [Method] + * @param config Object + */ + constructor( config?:any ); + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds the specified xtype to the whitelist + * @param xtype String Adds the xtype(s) to the whitelist. + */ + static addXTypeToWhitelist( xtype?:string ): void; + static addXTypeToWhitelist( xtype?:string[] ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Disables the FocusManager by turning of all automatic focus management and keyboard navigation */ + static disable(): void; + /** [Method] Enables the FocusManager by turning on all automatic focus management and keyboard navigation + * @param options any Either true/false to turn on the focus frame, or an object with the following options: + */ + static enable( options?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Removes the specified xtype from the whitelist + * @param xtype String Removes the xtype(s) from the whitelist. + */ + static removeXTypeFromWhitelist( xtype?:string ): void; + static removeXTypeFromWhitelist( xtype?:string[] ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IFocusMgr extends Ext.IBase,Ext.util.IObservable { + } + export class FocusMgr { + /** [Method] + * @param config Object + */ + constructor( config?:any ); + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds the specified xtype to the whitelist + * @param xtype String Adds the xtype(s) to the whitelist. + */ + static addXTypeToWhitelist( xtype?:string ): void; + static addXTypeToWhitelist( xtype?:string[] ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Disables the FocusManager by turning of all automatic focus management and keyboard navigation */ + static disable(): void; + /** [Method] Enables the FocusManager by turning on all automatic focus management and keyboard navigation + * @param options any Either true/false to turn on the focus frame, or an object with the following options: + */ + static enable( options?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Removes the specified xtype from the whitelist + * @param xtype String Removes the xtype(s) from the whitelist. + */ + static removeXTypeFromWhitelist( xtype?:string ): void; + static removeXTypeFromWhitelist( xtype?:string[] ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.form.action { + export interface IAction extends Ext.IBase { + /** [Config Option] (Function) The function to call when a failure packet was received, or when an error ocurred in the Ajax communication. ... */ + failure?: any; + /** [Config Option] (Ext.form.Basic) The BasicForm instance that is invoking this Action. ... */ + form?: Ext.form.IBasic; + /** [Config Option] (Object) Extra headers to be sent in the AJAX request for submit and load actions. ... */ + headers?: any; + /** [Config Option] (String) The HTTP method to use to access the requested URL. ... */ + method?: string; + /** [Config Option] (Object/String) Extra parameter values to pass. ... */ + params?: any; + /** [Config Option] (Boolean) When set to true, causes the Form to be reset on Action success. ... */ + reset?: bool; + /** [Config Option] (Object) The scope in which to call the configured success and failure callback functions (the this reference for the callback... */ + scope?: any; + /** [Config Option] (Boolean) If set to true, the emptyText value will be sent with the form when it is submitted. ... */ + submitEmptyText?: bool; + /** [Config Option] (Function) The function to call when a valid success return packet is received. ... */ + success?: any; + /** [Config Option] (Number) The number of seconds to wait for a server response before failing with the failureType as CONNECT_FAILURE. ... */ + timeout?: number; + /** [Config Option] (String) The URL that the Action is to invoke. ... */ + url?: string; + /** [Config Option] (String) */ + waitMsg?: string; + /** [Config Option] (String) */ + waitTitle?: string; + /** [Property] (String) The type of failure detected will be one of these: CLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ... */ + failureType?: string; + /** [Property] (Object) */ + response?: any; + /** [Property] (Object) */ + result?: any; + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + /** [Method] Invokes this action using the current configuration */ + run?(): void; + } +} +declare module Ext.form { + export interface IAction extends Ext.IBase { + /** [Config Option] (Function) The function to call when a failure packet was received, or when an error ocurred in the Ajax communication. ... */ + failure?: any; + /** [Config Option] (Ext.form.Basic) The BasicForm instance that is invoking this Action. ... */ + form?: Ext.form.IBasic; + /** [Config Option] (Object) Extra headers to be sent in the AJAX request for submit and load actions. ... */ + headers?: any; + /** [Config Option] (String) The HTTP method to use to access the requested URL. ... */ + method?: string; + /** [Config Option] (Object/String) Extra parameter values to pass. ... */ + params?: any; + /** [Config Option] (Boolean) When set to true, causes the Form to be reset on Action success. ... */ + reset?: bool; + /** [Config Option] (Object) The scope in which to call the configured success and failure callback functions (the this reference for the callback... */ + scope?: any; + /** [Config Option] (Boolean) If set to true, the emptyText value will be sent with the form when it is submitted. ... */ + submitEmptyText?: bool; + /** [Config Option] (Function) The function to call when a valid success return packet is received. ... */ + success?: any; + /** [Config Option] (Number) The number of seconds to wait for a server response before failing with the failureType as CONNECT_FAILURE. ... */ + timeout?: number; + /** [Config Option] (String) The URL that the Action is to invoke. ... */ + url?: string; + /** [Config Option] (String) */ + waitMsg?: string; + /** [Config Option] (String) */ + waitTitle?: string; + /** [Property] (String) The type of failure detected will be one of these: CLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ... */ + failureType?: string; + /** [Property] (Object) */ + response?: any; + /** [Property] (Object) */ + result?: any; + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + /** [Method] Invokes this action using the current configuration */ + run?(): void; + } +} +declare module Ext.form.action { + export interface IDirectLoad extends Ext.form.action.ILoad { + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + } +} +declare module Ext.form.action { + export interface IDirectSubmit extends Ext.form.action.ISubmit { + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + } +} +declare module Ext.form.action { + export interface ILoad extends Ext.form.action.IAction { + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + } +} +declare module Ext.form.action { + export interface IStandardSubmit extends Ext.form.action.ISubmit { + /** [Config Option] (String) Optional target attribute to be used for the form when submitting. ... */ + target?: string; + } +} +declare module Ext.form.action { + export interface ISubmit extends Ext.form.action.IAction { + /** [Config Option] (Boolean) Determines whether a Form's fields are validated in a final call to isValid prior to submission. ... */ + clientValidation?: bool; + /** [Property] (String) The type of action this Action instance performs. ... */ + type?: string; + /** [Method] inherit docs Invokes this action using the current configuration */ + run?(): void; + } +} +declare module Ext.form { + export interface IBasic extends Ext.util.IObservable { + /** [Config Option] (Object) If specified, load and submit actions will be handled with DirectLoad and DirectSubmit. ... */ + api?: any; + /** [Config Option] (Object) Parameters to pass with all requests. ... */ + baseParams?: any; + /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + errorReader?: any; + /** [Config Option] (Boolean) If set to true, the field values are sent as JSON in the request body. ... */ + jsonSubmit?: bool; + /** [Config Option] (String) */ + method?: string; + /** [Config Option] (String/String[]) A list of params to be executed server side. ... */ + paramOrder?: any; + /** [Config Option] (Boolean) Only used for the api load configuration. ... */ + paramsAsHash?: bool; + /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + reader?: any; + /** [Config Option] (Boolean) If set to true, a standard HTML form submit is used instead of a XHR (Ajax) style form submission. ... */ + standardSubmit?: bool; + /** [Config Option] (Number) Timeout for form actions in seconds. ... */ + timeout?: number; + /** [Config Option] (Boolean) If set to true, reset() resets to the last loaded or setValues() data instead of when the form was first created. ... */ + trackResetOnLoad?: bool; + /** [Config Option] (String) */ + url?: string; + /** [Config Option] (String/HTMLElement/Ext.Element) By default wait messages are displayed with Ext.MessageBox.wait. ... */ + waitMsgTarget?: any; + /** [Config Option] (String) The default title to show for the waiting message box ... */ + waitTitle?: string; + /** [Property] (Ext.container.Container) */ + owner?: Ext.container.IContainer; + /** [Method] Calls Ext applyIf for all field in this form with the passed object + * @param obj Object The object to be applied + */ + applyIfToFields?( obj?:any ): Ext.form.IBasic; + /** [Method] Calls Ext apply for all fields in this form with the passed object + * @param obj Object The object to be applied + */ + applyToFields?( obj?:any ): Ext.form.IBasic; + /** [Method] Check whether the dirty state of the entire form has changed since it was last checked and if so fire the dirtychang */ + checkDirty?(): void; + /** [Method] Check whether the validity of the entire form has changed since it was last checked and if so fire the validitychang */ + checkValidity?(): void; + /** [Method] Clears all invalid field messages in this form */ + clearInvalid?(): Ext.form.IBasic; + /** [Method] Destroys this object */ + destroy?(): void; + /** [Method] Performs a predefined action an implementation of Ext form action Action to perform application specific processing + * @param action any The name of the predefined action type, or instance of Ext.form.action.Action to perform. + * @param options any The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): + */ + doAction?( action?:any, options?:any ): any; + doAction?( action?:string, options?:any ): Ext.form.IBasic; + doAction?( action?:Ext.form.action.IAction, options?:any ): Ext.form.IBasic; + /** [Method] Find a specific Ext form field Field in this form by id or name + * @param id String The value to search for (specify either a id or name or hiddenName). + */ + findField?( id?:string ): any; + /** [Method] Retrieves the fields in the form as a set of key value pairs using their getModelData method to collect the values + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + */ + getFieldValues?( dirtyOnly?:bool ): any; + /** [Method] Return all the Ext form field Field components in the owner container */ + getFields?(): Ext.util.IMixedCollection; + /** [Method] Returns the last Ext data Model instance that was loaded via loadRecord */ + getRecord?(): Ext.data.IModel; + /** [Method] Retrieves the fields in the form as a set of key value pairs using their getSubmitData method to collect the values + * @param asString Boolean If true, will return the key/value collection as a single URL-encoded param string. + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + * @param includeEmptyText Boolean If true, the configured emptyText of empty fields will be used. + * @param useDataValues Boolean If true, the getModelData method is used to retrieve values from fields, otherwise the getSubmitData method is used. + */ + getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; + /** [Method] Returns true if the form contains any invalid fields */ + hasInvalidField?(): void; + /** [Method] Returns true if the form contains a file upload field */ + hasUpload?(): bool; + /** [Method] Returns true if any fields in this form have changed from their original values */ + isDirty?(): bool; + /** [Method] Returns true if client side validation on the form is successful */ + isValid?(): bool; + /** [Method] Shortcut to do a load action + * @param options Object The options to pass to the action (see doAction for details) + */ + load?( options?:any ): Ext.form.IBasic; + /** [Method] Loads an Ext data Model into this form by calling setValues with the record data + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Mark fields in this form invalid in bulk + * @param errors any Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. + */ + markInvalid?( errors?:any ): Ext.form.IBasic; + /** [Method] Resets all fields in this form + * @param resetRecord Boolean True to unbind any record set by loadRecord + */ + reset?( resetRecord?:bool ): Ext.form.IBasic; + /** [Method] Set values for fields in this form in bulk + * @param values any Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } + */ + setValues?( values?:any ): Ext.form.IBasic; + /** [Method] Shortcut to do a submit action + * @param options Object The options to pass to the action (see doAction for details). + */ + submit?( options?:any ): Ext.form.IBasic; + /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block + * @param record Ext.data.IModel The record to edit + */ + updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + } +} +declare module Ext.form { + export interface IBasicForm extends Ext.util.IObservable { + /** [Config Option] (Object) If specified, load and submit actions will be handled with DirectLoad and DirectSubmit. ... */ + api?: any; + /** [Config Option] (Object) Parameters to pass with all requests. ... */ + baseParams?: any; + /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + errorReader?: any; + /** [Config Option] (Boolean) If set to true, the field values are sent as JSON in the request body. ... */ + jsonSubmit?: bool; + /** [Config Option] (String) */ + method?: string; + /** [Config Option] (String/String[]) A list of params to be executed server side. ... */ + paramOrder?: any; + /** [Config Option] (Boolean) Only used for the api load configuration. ... */ + paramsAsHash?: bool; + /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + reader?: any; + /** [Config Option] (Boolean) If set to true, a standard HTML form submit is used instead of a XHR (Ajax) style form submission. ... */ + standardSubmit?: bool; + /** [Config Option] (Number) Timeout for form actions in seconds. ... */ + timeout?: number; + /** [Config Option] (Boolean) If set to true, reset() resets to the last loaded or setValues() data instead of when the form was first created. ... */ + trackResetOnLoad?: bool; + /** [Config Option] (String) */ + url?: string; + /** [Config Option] (String/HTMLElement/Ext.Element) By default wait messages are displayed with Ext.MessageBox.wait. ... */ + waitMsgTarget?: any; + /** [Config Option] (String) The default title to show for the waiting message box ... */ + waitTitle?: string; + /** [Property] (Ext.container.Container) */ + owner?: Ext.container.IContainer; + /** [Method] Calls Ext applyIf for all field in this form with the passed object + * @param obj Object The object to be applied + */ + applyIfToFields?( obj?:any ): Ext.form.IBasic; + /** [Method] Calls Ext apply for all fields in this form with the passed object + * @param obj Object The object to be applied + */ + applyToFields?( obj?:any ): Ext.form.IBasic; + /** [Method] Check whether the dirty state of the entire form has changed since it was last checked and if so fire the dirtychang */ + checkDirty?(): void; + /** [Method] Check whether the validity of the entire form has changed since it was last checked and if so fire the validitychang */ + checkValidity?(): void; + /** [Method] Clears all invalid field messages in this form */ + clearInvalid?(): Ext.form.IBasic; + /** [Method] Destroys this object */ + destroy?(): void; + /** [Method] Performs a predefined action an implementation of Ext form action Action to perform application specific processing + * @param action any The name of the predefined action type, or instance of Ext.form.action.Action to perform. + * @param options any The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): + */ + doAction?( action?:any, options?:any ): any; + doAction?( action?:string, options?:any ): Ext.form.IBasic; + doAction?( action?:Ext.form.action.IAction, options?:any ): Ext.form.IBasic; + /** [Method] Find a specific Ext form field Field in this form by id or name + * @param id String The value to search for (specify either a id or name or hiddenName). + */ + findField?( id?:string ): any; + /** [Method] Retrieves the fields in the form as a set of key value pairs using their getModelData method to collect the values + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + */ + getFieldValues?( dirtyOnly?:bool ): any; + /** [Method] Return all the Ext form field Field components in the owner container */ + getFields?(): Ext.util.IMixedCollection; + /** [Method] Returns the last Ext data Model instance that was loaded via loadRecord */ + getRecord?(): Ext.data.IModel; + /** [Method] Retrieves the fields in the form as a set of key value pairs using their getSubmitData method to collect the values + * @param asString Boolean If true, will return the key/value collection as a single URL-encoded param string. + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + * @param includeEmptyText Boolean If true, the configured emptyText of empty fields will be used. + * @param useDataValues Boolean If true, the getModelData method is used to retrieve values from fields, otherwise the getSubmitData method is used. + */ + getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; + /** [Method] Returns true if the form contains any invalid fields */ + hasInvalidField?(): void; + /** [Method] Returns true if the form contains a file upload field */ + hasUpload?(): bool; + /** [Method] Returns true if any fields in this form have changed from their original values */ + isDirty?(): bool; + /** [Method] Returns true if client side validation on the form is successful */ + isValid?(): bool; + /** [Method] Shortcut to do a load action + * @param options Object The options to pass to the action (see doAction for details) + */ + load?( options?:any ): Ext.form.IBasic; + /** [Method] Loads an Ext data Model into this form by calling setValues with the record data + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Mark fields in this form invalid in bulk + * @param errors any Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. + */ + markInvalid?( errors?:any ): Ext.form.IBasic; + /** [Method] Resets all fields in this form + * @param resetRecord Boolean True to unbind any record set by loadRecord + */ + reset?( resetRecord?:bool ): Ext.form.IBasic; + /** [Method] Set values for fields in this form in bulk + * @param values any Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } + */ + setValues?( values?:any ): Ext.form.IBasic; + /** [Method] Shortcut to do a submit action + * @param options Object The options to pass to the action (see doAction for details). + */ + submit?( options?:any ): Ext.form.IBasic; + /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block + * @param record Ext.data.IModel The record to edit + */ + updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + } +} +declare module Ext.form { + export interface ICheckboxGroup extends Ext.form.IFieldContainer,Ext.form.field.IField { + /** [Config Option] (Boolean) False to validate that at least one item in the group is checked. ... */ + allowBlank?: bool; + /** [Config Option] (String) Error text to display if the allowBlank validation fails ... */ + blankText?: string; + /** [Config Option] (String/Number/Number[]) Specifies the number of columns to use when displaying grouped checkbox/radio controls using automatic layout. ... */ + columns?: any; + /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + componentCls?: string; + /** [Config Option] (String) private The default xtype of child Components to create in this Container when a child item is specified as a raw co... */ + defaultType?: string; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (Ext.form.field.Checkbox[]/Object[]) */ + items?: any; + /** [Config Option] (Ext.enums.Layout/Object) private Important: In order for child items to be correctly sized and positioned, typically a layout manager must be... */ + layout?: any; + /** [Config Option] (Boolean) True to distribute contained controls across columns, completely filling each column top to bottom before starting on... */ + vertical?: bool; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Returns an Array of all checkboxes in the container which are currently checked */ + getChecked?(): Ext.form.field.ICheckbox[]; + /** [Method] Runs CheckboxGroup s validations and returns an array of any errors */ + getErrors?(): string[]; + /** [Method] Don t return any data for the model the form will get the info from the individual checkboxes themselves */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Don t return any data for submit the form will get the info from the individual checkboxes themselves */ + getSubmitData?(): any; + /** [Method] Returns an object containing the values of all checked checkboxes within the group */ + getValue?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] private override Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] private override the group value is a complex object compare using object serialization Returns whether two field + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ + isValid?(): bool; + /** [Method] Associate one or more error messages with this field + * @param errors String The error message(s) for the field. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] When a checkbox is added to the group monitor it for changes + * @param field Object + */ + onAdd?( field?:any ): void; + /** [Method] Called when a Ext form Labelable instance is removed from the container s subtree + * @param labelable Ext.form.ILabelable The instance that was removed + */ + onRemove?( labelable?:Ext.form.ILabelable ): void; + /** [Method] Resets the checked state of all checkboxes in the group to their originally loaded values and clears any validation m */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the value s of all checkboxes in the group + * @param value Object The mapping of checkbox names to values. + */ + setValue?( value?:any ): Ext.form.ICheckboxGroup; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + } +} +declare module Ext.form { + export interface ICheckboxManager extends Ext.util.IMixedCollection { + } + export class CheckboxManager { + } +} +declare module Ext.form.field { + export interface IBase extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ + checkChangeBuffer?: number; + /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ + checkChangeEvents?: string[]; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ + dirtyCls?: string; + /** [Config Option] (String) The default CSS class for the field input ... */ + fieldCls?: string; + /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ + fieldStyle?: string; + /** [Config Option] (String) The CSS class to use when the field receives focus ... */ + focusCls?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ + inputAttrTpl?: any; + /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ + inputId?: string; + /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ + invalidText?: string; + /** [Config Option] (String) The name of the field. ... */ + name?: string; + /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ + readOnly?: bool; + /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ + readOnlyCls?: string; + /** [Config Option] (Number) The tabIndex for this field. ... */ + tabIndex?: number; + /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ + validateOnBlur?: bool; + /** [Property] (Ext.Element) The input Element for this Field. ... */ + inputEl?: Ext.IElement; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + doComponentLayout?(): Ext.container.IContainer; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the label for the field */ + getFieldLabel?(): string; + /** [Method] Returns the input id for this field */ + getInputId?(): void; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ + getSubmitData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String The validation message(s) to display. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance + * @param value Object The unprocessed string value + */ + processRawValue?( value?:any ): any; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Set the CSS style of the field input element + * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + */ + setFieldStyle?( style?:any ): void; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Transform the raw value before it is set + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + /** [Method] Uses getErrors to build an array of validation errors + * @param value Object The value to validate + */ + validateValue?( value?:any ): bool; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IBaseField extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ + checkChangeBuffer?: number; + /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ + checkChangeEvents?: string[]; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ + dirtyCls?: string; + /** [Config Option] (String) The default CSS class for the field input ... */ + fieldCls?: string; + /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ + fieldStyle?: string; + /** [Config Option] (String) The CSS class to use when the field receives focus ... */ + focusCls?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ + inputAttrTpl?: any; + /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ + inputId?: string; + /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ + invalidText?: string; + /** [Config Option] (String) The name of the field. ... */ + name?: string; + /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ + readOnly?: bool; + /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ + readOnlyCls?: string; + /** [Config Option] (Number) The tabIndex for this field. ... */ + tabIndex?: number; + /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ + validateOnBlur?: bool; + /** [Property] (Ext.Element) The input Element for this Field. ... */ + inputEl?: Ext.IElement; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + doComponentLayout?(): Ext.container.IContainer; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the label for the field */ + getFieldLabel?(): string; + /** [Method] Returns the input id for this field */ + getInputId?(): void; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ + getSubmitData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String The validation message(s) to display. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance + * @param value Object The unprocessed string value + */ + processRawValue?( value?:any ): any; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Set the CSS style of the field input element + * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + */ + setFieldStyle?( style?:any ): void; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Transform the raw value before it is set + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + /** [Method] Uses getErrors to build an array of validation errors + * @param value Object The value to validate + */ + validateValue?( value?:any ): bool; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IField extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ + checkChangeBuffer?: number; + /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ + checkChangeEvents?: string[]; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ + dirtyCls?: string; + /** [Config Option] (String) The default CSS class for the field input ... */ + fieldCls?: string; + /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ + fieldStyle?: string; + /** [Config Option] (String) The CSS class to use when the field receives focus ... */ + focusCls?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ + inputAttrTpl?: any; + /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ + inputId?: string; + /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ + invalidText?: string; + /** [Config Option] (String) The name of the field. ... */ + name?: string; + /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ + readOnly?: bool; + /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ + readOnlyCls?: string; + /** [Config Option] (Number) The tabIndex for this field. ... */ + tabIndex?: number; + /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ + validateOnBlur?: bool; + /** [Property] (Ext.Element) The input Element for this Field. ... */ + inputEl?: Ext.IElement; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + doComponentLayout?(): Ext.container.IContainer; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the label for the field */ + getFieldLabel?(): string; + /** [Method] Returns the input id for this field */ + getInputId?(): void; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ + getSubmitData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String The validation message(s) to display. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance + * @param value Object The unprocessed string value + */ + processRawValue?( value?:any ): any; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Set the CSS style of the field input element + * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + */ + setFieldStyle?( style?:any ): void; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Transform the raw value before it is set + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + /** [Method] Uses getErrors to build an array of validation errors + * @param value Object The value to validate + */ + validateValue?( value?:any ): bool; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface ICheckbox extends Ext.form.field.IBase { + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label text. ... */ + afterBoxLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label element. ... */ + afterBoxLabelTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label text. ... */ + beforeBoxLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label element. ... */ + beforeBoxLabelTpl?: any; + /** [Config Option] (String) An optional text label that will appear next to the checkbox. ... */ + boxLabel?: string; + /** [Config Option] (String) The position relative to the checkbox where the boxLabel should appear. ... */ + boxLabelAlign?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the box label element (as attribut... */ + boxLabelAttrTpl?: any; + /** [Config Option] (String) The CSS class to be applied to the boxLabel element ... */ + boxLabelCls?: string; + /** [Config Option] (String[]) private overrides A list of event names that will be listened for on the field's input element, which will cause the... */ + checkChangeEvents?: string[]; + /** [Config Option] (Boolean) true if the checkbox should render initially checked ... */ + checked?: bool; + /** [Config Option] (String) The CSS class(es) added to the component's main element when it is in the checked state. ... */ + checkedCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to fieldBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (String) The default CSS class for the checkbox ... */ + fieldCls?: string; + /** [Config Option] (String) The CSS class to use when the checkbox receives focus ... */ + focusCls?: string; + /** [Config Option] (Function) A function called when the checked value changes (can be used instead of handling the change event). ... */ + handler?: any; + /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Config Option] (String) The value that should go into the generated input element's value attribute and should be used as the parameter value... */ + inputValue?: string; + /** [Config Option] (Object) An object to use as the scope ('this' reference) of the handler function. ... */ + scope?: any; + /** [Config Option] (String) If configured, this will be submitted as the checkbox's value during form submit if the checkbox is unchecked. ... */ + uncheckedValue?: string; + /** [Property] (Ext.Element) A reference to the label element created for the boxLabel. ... */ + boxLabelEl?: Ext.IElement; + /** [Property] (Object) The original value of the field as configured in the checked configuration, or as loaded by the last form load operat... */ + originalValue?: any; + /** [Method] inherit docs Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Returns the checked state of the checkbox */ + getRawValue?(): bool; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ + getSubmitValue?(): string; + /** [Method] Returns the checked state of the checkbox */ + getValue?(): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the boxLabel for this checkbox + * @param boxLabel String The new label + */ + setBoxLabel?( boxLabel?:string ): void; + /** [Method] Sets the checked state of the checkbox + * @param value any The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + */ + setRawValue?( value?:any ): any; + setRawValue?( value?:bool ): bool; + setRawValue?( value?:string ): bool; + setRawValue?( value?:number ): bool; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets the checked state of the checkbox and invokes change detection + * @param checked any The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + */ + setValue?( checked?:any ): any; + setValue?( checked?:bool ): Ext.form.field.ICheckbox; + setValue?( checked?:string ): Ext.form.field.ICheckbox; + /** [Method] private Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface ICheckbox extends Ext.form.field.IBase { + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label text. ... */ + afterBoxLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label element. ... */ + afterBoxLabelTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label text. ... */ + beforeBoxLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label element. ... */ + beforeBoxLabelTpl?: any; + /** [Config Option] (String) An optional text label that will appear next to the checkbox. ... */ + boxLabel?: string; + /** [Config Option] (String) The position relative to the checkbox where the boxLabel should appear. ... */ + boxLabelAlign?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the box label element (as attribut... */ + boxLabelAttrTpl?: any; + /** [Config Option] (String) The CSS class to be applied to the boxLabel element ... */ + boxLabelCls?: string; + /** [Config Option] (String[]) private overrides A list of event names that will be listened for on the field's input element, which will cause the... */ + checkChangeEvents?: string[]; + /** [Config Option] (Boolean) true if the checkbox should render initially checked ... */ + checked?: bool; + /** [Config Option] (String) The CSS class(es) added to the component's main element when it is in the checked state. ... */ + checkedCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to fieldBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (String) The default CSS class for the checkbox ... */ + fieldCls?: string; + /** [Config Option] (String) The CSS class to use when the checkbox receives focus ... */ + focusCls?: string; + /** [Config Option] (Function) A function called when the checked value changes (can be used instead of handling the change event). ... */ + handler?: any; + /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Config Option] (String) The value that should go into the generated input element's value attribute and should be used as the parameter value... */ + inputValue?: string; + /** [Config Option] (Object) An object to use as the scope ('this' reference) of the handler function. ... */ + scope?: any; + /** [Config Option] (String) If configured, this will be submitted as the checkbox's value during form submit if the checkbox is unchecked. ... */ + uncheckedValue?: string; + /** [Property] (Ext.Element) A reference to the label element created for the boxLabel. ... */ + boxLabelEl?: Ext.IElement; + /** [Property] (Object) The original value of the field as configured in the checked configuration, or as loaded by the last form load operat... */ + originalValue?: any; + /** [Method] inherit docs Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Returns the checked state of the checkbox */ + getRawValue?(): bool; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ + getSubmitValue?(): string; + /** [Method] Returns the checked state of the checkbox */ + getValue?(): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the boxLabel for this checkbox + * @param boxLabel String The new label + */ + setBoxLabel?( boxLabel?:string ): void; + /** [Method] Sets the checked state of the checkbox + * @param value any The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + */ + setRawValue?( value?:any ): any; + setRawValue?( value?:bool ): bool; + setRawValue?( value?:string ): bool; + setRawValue?( value?:number ): bool; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets the checked state of the checkbox and invokes change detection + * @param checked any The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + */ + setValue?( checked?:any ): any; + setValue?( checked?:bool ): Ext.form.field.ICheckbox; + setValue?( checked?:string ): Ext.form.field.ICheckbox; + /** [Method] private Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface IComboBox extends Ext.form.field.IPicker,Ext.util.IBindable { + /** [Config Option] (String) The text query to send to the server to return all records for the list with no filtering ... */ + allQuery?: string; + /** [Config Option] (Boolean) true to automatically highlight the first result gathered by the data store in the dropdown list when it is opened. ... */ + autoSelect?: bool; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Object) Set of options that will be used as defaults for the user-configured listConfig object. ... */ + defaultListConfig?: any; + /** [Config Option] (String) The character(s) used to separate the display values of multiple selected items when multiSelect = true. ... */ + delimiter?: string; + /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + displayField?: string; + /** [Config Option] (Boolean) When queryMode is 'local' only Set to true to have the ComboBox use the typed value as a RegExp source to filter the... */ + enableRegEx?: bool; + /** [Config Option] (Ext.XTemplate) The content of the field body is defined by this config option. ... */ + fieldSubTpl?: Ext.IXTemplate; + /** [Config Option] (Boolean) true to restrict the selected value to one of the values in the list, false to allow the user to set arbitrary text i... */ + forceSelection?: bool; + /** [Config Option] (Boolean) false to not allow the component to resize itself when its data changes (and its grow property is true) ... */ + growToLongestValue?: bool; + /** [Config Option] (String) The name of an underlying hidden field which will be synchronized with the underlying value of the combo. ... */ + hiddenName?: string; + /** [Config Option] (Object) An optional set of configuration properties that will be passed to the Ext.view.BoundList's constructor. ... */ + listConfig?: any; + /** [Config Option] (Number) The minimum number of characters the user must type before autocomplete and typeAhead activate. ... */ + minChars?: number; + /** [Config Option] (Boolean) If set to true, allows the combo field to hold more than one value at a time, and allows selecting multiple items fro... */ + multiSelect?: bool; + /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed in the footer of the dropdown list and the filter queries will e... */ + pageSize?: number; + /** [Config Option] (Boolean) When true, this prevents the combo from re-querying (either locally or remotely) when the current query is the same a... */ + queryCaching?: bool; + /** [Config Option] (Number) The length of time in milliseconds to delay between the start of typing and sending the query to filter the dropdown ... */ + queryDelay?: number; + /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + queryMode?: string; + /** [Config Option] (String) Name of the parameter used by the Store to pass the typed string when the ComboBox is configured with queryMode: 'rem... */ + queryParam?: string; + /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + selectOnTab?: bool; + /** [Config Option] (Ext.data.Store/String/Array) The data source to which this combo is bound. ... */ + store?: any; + /** [Config Option] (String/HTMLElement/Ext.Element) The id, DOM node or Ext.Element of an existing HTML <select> element to convert into a ComboBox. ... */ + transform?: any; + /** [Config Option] (String) The action to execute when the trigger is clicked. ... */ + triggerAction?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (Boolean) true to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay) if ... */ + typeAhead?: bool; + /** [Config Option] (Number) The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true ... */ + typeAheadDelay?: number; + /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + valueField?: string; + /** [Config Option] (String) When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be d... */ + valueNotFoundText?: string; + /** [Property] (String) The value of the match string used to filter the store. ... */ + lastQuery?: string; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Aligns the picker to the input element */ + alignPicker?(): void; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Clears any value currently set in the ComboBox */ + clearValue?(): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Executes a query to filter the dropdown list + * @param queryString String The SQL query to execute + * @param forceAll Boolean true to force the query to execute even if there are currently fewer characters in the field than the minimum specified by the minChars config option. It also clears any filter previously saved in the current store. + * @param rawQuery Boolean Pass as true if the raw typed value is being used as the query string. This causes the resulting store load to leave the raw value undisturbed. + */ + doQuery?( queryString?:string, forceAll?:bool, rawQuery?:bool ): bool; + /** [Method] Finds the record by searching for a specific field value combination + * @param field String The name of the field to test. + * @param value Object The value to match the field against. + */ + findRecord?( field?:string, value?:any ): Ext.data.IModel; + /** [Method] Finds the record by searching values in the displayField + * @param value Object The value to match the field against. + */ + findRecordByDisplay?( value?:any ): Ext.data.IModel; + /** [Method] Finds the record by searching values in the valueField + * @param value Object The value to match the field against. + */ + findRecordByValue?( value?:any ): Ext.data.IModel; + /** [Method] Returns the store associated with this ComboBox */ + getStore?(): Ext.data.IStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our + * @param container Ext.container.IContainer Container which holds the component. + * @param pos Number Position at which the component was added. + */ + onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ + onTriggerClick?(): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Selects an item by a Model or by a key value + * @param r Object + */ + select?( r?:any ): void; + /** [Method] Sets the specified value s into the field + * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): any; + setValue?( value?:string[] ): any; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.form { + export interface IComboBox extends Ext.form.field.IPicker,Ext.util.IBindable { + /** [Config Option] (String) The text query to send to the server to return all records for the list with no filtering ... */ + allQuery?: string; + /** [Config Option] (Boolean) true to automatically highlight the first result gathered by the data store in the dropdown list when it is opened. ... */ + autoSelect?: bool; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Object) Set of options that will be used as defaults for the user-configured listConfig object. ... */ + defaultListConfig?: any; + /** [Config Option] (String) The character(s) used to separate the display values of multiple selected items when multiSelect = true. ... */ + delimiter?: string; + /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + displayField?: string; + /** [Config Option] (Boolean) When queryMode is 'local' only Set to true to have the ComboBox use the typed value as a RegExp source to filter the... */ + enableRegEx?: bool; + /** [Config Option] (Ext.XTemplate) The content of the field body is defined by this config option. ... */ + fieldSubTpl?: Ext.IXTemplate; + /** [Config Option] (Boolean) true to restrict the selected value to one of the values in the list, false to allow the user to set arbitrary text i... */ + forceSelection?: bool; + /** [Config Option] (Boolean) false to not allow the component to resize itself when its data changes (and its grow property is true) ... */ + growToLongestValue?: bool; + /** [Config Option] (String) The name of an underlying hidden field which will be synchronized with the underlying value of the combo. ... */ + hiddenName?: string; + /** [Config Option] (Object) An optional set of configuration properties that will be passed to the Ext.view.BoundList's constructor. ... */ + listConfig?: any; + /** [Config Option] (Number) The minimum number of characters the user must type before autocomplete and typeAhead activate. ... */ + minChars?: number; + /** [Config Option] (Boolean) If set to true, allows the combo field to hold more than one value at a time, and allows selecting multiple items fro... */ + multiSelect?: bool; + /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed in the footer of the dropdown list and the filter queries will e... */ + pageSize?: number; + /** [Config Option] (Boolean) When true, this prevents the combo from re-querying (either locally or remotely) when the current query is the same a... */ + queryCaching?: bool; + /** [Config Option] (Number) The length of time in milliseconds to delay between the start of typing and sending the query to filter the dropdown ... */ + queryDelay?: number; + /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + queryMode?: string; + /** [Config Option] (String) Name of the parameter used by the Store to pass the typed string when the ComboBox is configured with queryMode: 'rem... */ + queryParam?: string; + /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + selectOnTab?: bool; + /** [Config Option] (Ext.data.Store/String/Array) The data source to which this combo is bound. ... */ + store?: any; + /** [Config Option] (String/HTMLElement/Ext.Element) The id, DOM node or Ext.Element of an existing HTML <select> element to convert into a ComboBox. ... */ + transform?: any; + /** [Config Option] (String) The action to execute when the trigger is clicked. ... */ + triggerAction?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (Boolean) true to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay) if ... */ + typeAhead?: bool; + /** [Config Option] (Number) The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true ... */ + typeAheadDelay?: number; + /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + valueField?: string; + /** [Config Option] (String) When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be d... */ + valueNotFoundText?: string; + /** [Property] (String) The value of the match string used to filter the store. ... */ + lastQuery?: string; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Aligns the picker to the input element */ + alignPicker?(): void; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Clears any value currently set in the ComboBox */ + clearValue?(): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Executes a query to filter the dropdown list + * @param queryString String The SQL query to execute + * @param forceAll Boolean true to force the query to execute even if there are currently fewer characters in the field than the minimum specified by the minChars config option. It also clears any filter previously saved in the current store. + * @param rawQuery Boolean Pass as true if the raw typed value is being used as the query string. This causes the resulting store load to leave the raw value undisturbed. + */ + doQuery?( queryString?:string, forceAll?:bool, rawQuery?:bool ): bool; + /** [Method] Finds the record by searching for a specific field value combination + * @param field String The name of the field to test. + * @param value Object The value to match the field against. + */ + findRecord?( field?:string, value?:any ): Ext.data.IModel; + /** [Method] Finds the record by searching values in the displayField + * @param value Object The value to match the field against. + */ + findRecordByDisplay?( value?:any ): Ext.data.IModel; + /** [Method] Finds the record by searching values in the valueField + * @param value Object The value to match the field against. + */ + findRecordByValue?( value?:any ): Ext.data.IModel; + /** [Method] Returns the store associated with this ComboBox */ + getStore?(): Ext.data.IStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our + * @param container Ext.container.IContainer Container which holds the component. + * @param pos Number Position at which the component was added. + */ + onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ + onTriggerClick?(): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Selects an item by a Model or by a key value + * @param r Object + */ + select?( r?:any ): void; + /** [Method] Sets the specified value s into the field + * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): any; + setValue?( value?:string[] ): any; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.form.field { + export interface IDate extends Ext.form.field.IPicker { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ + disabledDates?: string[]; + /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + disabledDatesText?: string; + /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ + disabledDays?: number[]; + /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + disabledDaysText?: string; + /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + matchFieldWidth?: bool; + /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed date. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed date. ... */ + minValue?: any; + /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ + showToday?: bool; + /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + startDay?: number; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ + useStrict?: bool; + /** [Method] private Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Runs all of Date s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Attempts to parse a given string value using a given date format. ... */ + safeParse?: any; + /** [Method] Replaces any existing disabled dates with new values and refreshes the Date picker + * @param disabledDates String[] An array of date strings (see the disabledDates config for details on supported values) used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:string[] ): void; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the Date picker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): void; + /** [Method] Replaces any existing maxValue with the new value and refreshes the Date picker + * @param value Date The maximum date that can be selected + */ + setMaxValue?( value?:any ): void; + /** [Method] Replaces any existing minValue with the new value and refreshes the Date picker + * @param value Date The minimum date that can be selected + */ + setMinValue?( value?:any ): void; + /** [Method] Sets the value of the date field + * @param date any The date or valid date string + */ + setValue?( date?:any ): any; + setValue?( date?:string ): Ext.form.field.IDate; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IDate extends Ext.form.field.IPicker { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ + disabledDates?: string[]; + /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + disabledDatesText?: string; + /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ + disabledDays?: number[]; + /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + disabledDaysText?: string; + /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + matchFieldWidth?: bool; + /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed date. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed date. ... */ + minValue?: any; + /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ + showToday?: bool; + /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + startDay?: number; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ + useStrict?: bool; + /** [Method] private Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Runs all of Date s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Attempts to parse a given string value using a given date format. ... */ + safeParse?: any; + /** [Method] Replaces any existing disabled dates with new values and refreshes the Date picker + * @param disabledDates String[] An array of date strings (see the disabledDates config for details on supported values) used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:string[] ): void; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the Date picker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): void; + /** [Method] Replaces any existing maxValue with the new value and refreshes the Date picker + * @param value Date The maximum date that can be selected + */ + setMaxValue?( value?:any ): void; + /** [Method] Replaces any existing minValue with the new value and refreshes the Date picker + * @param value Date The minimum date that can be selected + */ + setMinValue?( value?:any ): void; + /** [Method] Sets the value of the date field + * @param date any The date or valid date string + */ + setValue?( date?:any ): any; + setValue?( date?:string ): Ext.form.field.IDate; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IDateField extends Ext.form.field.IPicker { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ + disabledDates?: string[]; + /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + disabledDatesText?: string; + /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ + disabledDays?: number[]; + /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + disabledDaysText?: string; + /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + matchFieldWidth?: bool; + /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed date. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed date. ... */ + minValue?: any; + /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ + showToday?: bool; + /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + startDay?: number; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ + useStrict?: bool; + /** [Method] private Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Runs all of Date s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Attempts to parse a given string value using a given date format. ... */ + safeParse?: any; + /** [Method] Replaces any existing disabled dates with new values and refreshes the Date picker + * @param disabledDates String[] An array of date strings (see the disabledDates config for details on supported values) used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:string[] ): void; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the Date picker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): void; + /** [Method] Replaces any existing maxValue with the new value and refreshes the Date picker + * @param value Date The maximum date that can be selected + */ + setMaxValue?( value?:any ): void; + /** [Method] Replaces any existing minValue with the new value and refreshes the Date picker + * @param value Date The minimum date that can be selected + */ + setMinValue?( value?:any ): void; + /** [Method] Sets the value of the date field + * @param date any The date or valid date string + */ + setValue?( date?:any ): any; + setValue?( date?:string ): Ext.form.field.IDate; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface IDisplay extends Ext.form.field.IBase { + /** [Config Option] (String) The default CSS class for the field. ... */ + fieldCls?: string; + /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ + htmlEncode?: bool; + /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ + renderer?: any; + /** [Config Option] (Object) The scope to execute the renderer function. ... */ + scope?: any; + /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + submitValue?: bool; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + } +} +declare module Ext.form { + export interface IDisplay extends Ext.form.field.IBase { + /** [Config Option] (String) The default CSS class for the field. ... */ + fieldCls?: string; + /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ + htmlEncode?: bool; + /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ + renderer?: any; + /** [Config Option] (Object) The scope to execute the renderer function. ... */ + scope?: any; + /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + submitValue?: bool; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + } +} +declare module Ext.form { + export interface IDisplayField extends Ext.form.field.IBase { + /** [Config Option] (String) The default CSS class for the field. ... */ + fieldCls?: string; + /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ + htmlEncode?: bool; + /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ + renderer?: any; + /** [Config Option] (Object) The scope to execute the renderer function. ... */ + scope?: any; + /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + submitValue?: bool; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + } +} +declare module Ext.form.field { + export interface IField extends Ext.IBase { + /** [Config Option] (Boolean) True to disable the field. ... */ + disabled?: bool; + /** [Config Option] (String) The name of the field. ... */ + name?: string; + /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + submitValue?: bool; + /** [Config Option] (Boolean) Specifies whether this field should be validated immediately whenever a change in its value is detected. ... */ + validateOnChange?: bool; + /** [Config Option] (Object) */ + value?: any; + /** [Property] (Boolean) Flag denoting that this component is a Field. ... */ + isFormField?: bool; + /** [Property] (Object) The original value of the field as configured in the value configuration, or as loaded by the last form load operatio... */ + originalValue?: any; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): any; + /** [Method] Template method before a field is reset */ + beforeReset?(): any; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): any; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): any; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): any; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): any; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): any; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): any; + /** [Method] Returns the parameter s that would be included in a standard form submit for this field */ + getSubmitData?(): any; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): any; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): any; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): any; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): any; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ + isValid?(): any; + /** [Method] Associate one or more error messages with this field + * @param errors any The error message(s) for the field. + */ + markInvalid?( errors?:any ): any; + markInvalid?( errors?:string ): any; + markInvalid?( errors?:string[] ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): any; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): any; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): any; + } +} +declare module Ext.form.field { + export interface IFile extends Ext.form.field.ITrigger { + /** [Config Option] (Object) */ + buttonConfig?: any; + /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + buttonMargin?: number; + /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + buttonOnly?: bool; + /** [Config Option] (String) The button text to display on the upload button. ... */ + buttonText?: string; + /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + clearOnSubmit?: bool; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + readOnly?: bool; + /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + button?: Ext.button.IButton; + /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + fileInputEl?: Ext.IElement; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the markup to be inserted into the subTplMarkup */ + getTriggerMarkup?(): void; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Overridden to do nothing */ + setValue?(): void; + } +} +declare module Ext.form { + export interface IFile extends Ext.form.field.ITrigger { + /** [Config Option] (Object) */ + buttonConfig?: any; + /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + buttonMargin?: number; + /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + buttonOnly?: bool; + /** [Config Option] (String) The button text to display on the upload button. ... */ + buttonText?: string; + /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + clearOnSubmit?: bool; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + readOnly?: bool; + /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + button?: Ext.button.IButton; + /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + fileInputEl?: Ext.IElement; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the markup to be inserted into the subTplMarkup */ + getTriggerMarkup?(): void; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Overridden to do nothing */ + setValue?(): void; + } +} +declare module Ext.form { + export interface IFileUploadField extends Ext.form.field.ITrigger { + /** [Config Option] (Object) */ + buttonConfig?: any; + /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + buttonMargin?: number; + /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + buttonOnly?: bool; + /** [Config Option] (String) The button text to display on the upload button. ... */ + buttonText?: string; + /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + clearOnSubmit?: bool; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + readOnly?: bool; + /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + button?: Ext.button.IButton; + /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + fileInputEl?: Ext.IElement; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the markup to be inserted into the subTplMarkup */ + getTriggerMarkup?(): void; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Overridden to do nothing */ + setValue?(): void; + } +} +declare module Ext.ux.form { + export interface IFileUploadField extends Ext.form.field.ITrigger { + /** [Config Option] (Object) */ + buttonConfig?: any; + /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + buttonMargin?: number; + /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + buttonOnly?: bool; + /** [Config Option] (String) The button text to display on the upload button. ... */ + buttonText?: string; + /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + clearOnSubmit?: bool; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + readOnly?: bool; + /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + button?: Ext.button.IButton; + /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + fileInputEl?: Ext.IElement; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the markup to be inserted into the subTplMarkup */ + getTriggerMarkup?(): void; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Overridden to do nothing */ + setValue?(): void; + } +} +declare module Ext.form.field { + export interface IFileButton extends Ext.button.IButton { + /** [Config Option] (String) A CSS class string to apply to the button's main element. ... */ + cls?: string; + /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + preventDefault?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ + getTemplateArgs?(): any; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + } +} +declare module Ext.form.field { + export interface IHidden extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + hideLabel?: bool; + /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] These are all private overrides Initialize any events on this component */ + initEvents?(): void; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String The validation message(s) to display. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] Sets the height of the component + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + */ + setHeight?( height?:number ): Ext.IComponent; + /** [Method] Sets the page XY position of the component + * @param x any The new x position or an array of [x,y]. + * @param y any The new y position. + * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + */ + setPagePosition?( x?:any, y?:any, animate?:any ): any; + setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; + setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the left and top of the component + * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. + * @param y Number The new top. + * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. + */ + setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the width and height of this Component + * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:any, height?:number ): Ext.IComponent; + setSize?( width?:any, height?:string ): Ext.IComponent; + /** [Method] Sets the width of the component + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + */ + setWidth?( width?:number ): Ext.IComponent; + } +} +declare module Ext.form { + export interface IHidden extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + hideLabel?: bool; + /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] These are all private overrides Initialize any events on this component */ + initEvents?(): void; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String The validation message(s) to display. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] Sets the height of the component + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + */ + setHeight?( height?:number ): Ext.IComponent; + /** [Method] Sets the page XY position of the component + * @param x any The new x position or an array of [x,y]. + * @param y any The new y position. + * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + */ + setPagePosition?( x?:any, y?:any, animate?:any ): any; + setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; + setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the left and top of the component + * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. + * @param y Number The new top. + * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. + */ + setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the width and height of this Component + * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:any, height?:number ): Ext.IComponent; + setSize?( width?:any, height?:string ): Ext.IComponent; + /** [Method] Sets the width of the component + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + */ + setWidth?( width?:number ): Ext.IComponent; + } +} +declare module Ext.form.field { + export interface IHtmlEditor extends Ext.form.IFieldContainer,Ext.form.field.IField { + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the iframe element. ... */ + afterIFrameTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the textarea element. ... */ + afterTextAreaTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the iframe element. ... */ + beforeIFrameTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the textarea element. ... */ + beforeTextAreaTpl?: any; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The default text for the create link prompt ... */ + createLinkText?: string; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default value for the create link prompt ... */ + defaultLinkValue?: string; + /** [Config Option] (String) A default value to be put into the editor to resolve focus issues. ... */ + defaultValue?: string; + /** [Config Option] (Boolean) Enable the left, center, right alignment buttons ... */ + enableAlignments?: bool; + /** [Config Option] (Boolean) Enable the fore/highlight color buttons ... */ + enableColors?: bool; + /** [Config Option] (Boolean) Enable font selection. ... */ + enableFont?: bool; + /** [Config Option] (Boolean) Enable the increase/decrease font size buttons ... */ + enableFontSize?: bool; + /** [Config Option] (Boolean) Enable the bold, italic and underline buttons ... */ + enableFormat?: bool; + /** [Config Option] (Boolean) Enable the create link button. ... */ + enableLinks?: bool; + /** [Config Option] (Boolean) Enable the bullet and numbered list buttons. ... */ + enableLists?: bool; + /** [Config Option] (Boolean) Enable the switch to source edit button. ... */ + enableSourceEdit?: bool; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (String[]) An array of available font families ... */ + fontFamilies?: string[]; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the iframe element (as attributes). ... */ + iframeAttrTpl?: any; + /** [Property] (Object) Object collection of toolbar tooltips for the buttons in the editor. ... */ + buttonTips?: any; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] If you need want custom HTML cleanup this is the method you should override + * @param html String The HTML to be cleaned + */ + cleanHtml?( html?:string ): string; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] Called when the editor creates its toolbar + * @param editor Ext.form.field.IHtmlEditor + */ + createToolbar?( editor?:Ext.form.field.IHtmlEditor ): void; + /** [Method] Executes a Midas editor command directly on the editor document + * @param cmd String The Midas command + * @param value String The value to pass to the command + */ + execCmd?( cmd?:string, value?:string ): void; + execCmd?( cmd?:string, value?:bool ): void; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Try to focus this component + * @param selectText any If applicable, true to also select the text in this component + * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + */ + focus?( selectText?:any, delay?:any ): any; + focus?( selectText?:bool, delay?:bool ): Ext.IComponent; + focus?( selectText?:bool, delay?:number ): Ext.IComponent; + /** [Method] Called when the editor initializes the iframe with HTML contents */ + getDocMarkup?(): void; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the parameter s that would be included in a standard form submit for this field */ + getSubmitData?(): any; + /** [Method] Returns the editor s toolbar */ + getToolbar?(): Ext.toolbar.IToolbar; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Inserts the passed text at the current cursor position + * @param text String + */ + insertAtCursor?( text?:string ): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ + isValid?(): bool; + /** [Method] Associate one or more error messages with this field + * @param errors String The error message(s) for the field. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] Pushes the value of the textarea into the iframe editor */ + pushValue?(): void; + /** [Method] Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates + * @param cmd String The Midas command + * @param value String The value to pass to the command + */ + relayCmd?( cmd?:string, value?:string ): void; + relayCmd?( cmd?:string, value?:bool ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Syncs the contents of the editor iframe with the textarea */ + syncValue?(): void; + /** [Method] Toggles the editor between standard and source edit mode + * @param sourceEditMode Boolean True for source edit, false for standard + */ + toggleSourceEdit?( sourceEditMode?:bool ): void; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Triggers a toolbar update by reading the markup state of the current selection in the editor */ + updateToolbar?(): void; + } +} +declare module Ext.form { + export interface IHtmlEditor extends Ext.form.IFieldContainer,Ext.form.field.IField { + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the iframe element. ... */ + afterIFrameTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the textarea element. ... */ + afterTextAreaTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the iframe element. ... */ + beforeIFrameTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the textarea element. ... */ + beforeTextAreaTpl?: any; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The default text for the create link prompt ... */ + createLinkText?: string; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default value for the create link prompt ... */ + defaultLinkValue?: string; + /** [Config Option] (String) A default value to be put into the editor to resolve focus issues. ... */ + defaultValue?: string; + /** [Config Option] (Boolean) Enable the left, center, right alignment buttons ... */ + enableAlignments?: bool; + /** [Config Option] (Boolean) Enable the fore/highlight color buttons ... */ + enableColors?: bool; + /** [Config Option] (Boolean) Enable font selection. ... */ + enableFont?: bool; + /** [Config Option] (Boolean) Enable the increase/decrease font size buttons ... */ + enableFontSize?: bool; + /** [Config Option] (Boolean) Enable the bold, italic and underline buttons ... */ + enableFormat?: bool; + /** [Config Option] (Boolean) Enable the create link button. ... */ + enableLinks?: bool; + /** [Config Option] (Boolean) Enable the bullet and numbered list buttons. ... */ + enableLists?: bool; + /** [Config Option] (Boolean) Enable the switch to source edit button. ... */ + enableSourceEdit?: bool; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (String[]) An array of available font families ... */ + fontFamilies?: string[]; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the iframe element (as attributes). ... */ + iframeAttrTpl?: any; + /** [Property] (Object) Object collection of toolbar tooltips for the buttons in the editor. ... */ + buttonTips?: any; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] If you need want custom HTML cleanup this is the method you should override + * @param html String The HTML to be cleaned + */ + cleanHtml?( html?:string ): string; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] Called when the editor creates its toolbar + * @param editor Ext.form.field.IHtmlEditor + */ + createToolbar?( editor?:Ext.form.field.IHtmlEditor ): void; + /** [Method] Executes a Midas editor command directly on the editor document + * @param cmd String The Midas command + * @param value String The value to pass to the command + */ + execCmd?( cmd?:string, value?:string ): void; + execCmd?( cmd?:string, value?:bool ): void; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Try to focus this component + * @param selectText any If applicable, true to also select the text in this component + * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + */ + focus?( selectText?:any, delay?:any ): any; + focus?( selectText?:bool, delay?:bool ): Ext.IComponent; + focus?( selectText?:bool, delay?:number ): Ext.IComponent; + /** [Method] Called when the editor initializes the iframe with HTML contents */ + getDocMarkup?(): void; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the parameter s that would be included in a standard form submit for this field */ + getSubmitData?(): any; + /** [Method] Returns the editor s toolbar */ + getToolbar?(): Ext.toolbar.IToolbar; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Inserts the passed text at the current cursor position + * @param text String + */ + insertAtCursor?( text?:string ): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ + isValid?(): bool; + /** [Method] Associate one or more error messages with this field + * @param errors String The error message(s) for the field. + */ + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] Pushes the value of the textarea into the iframe editor */ + pushValue?(): void; + /** [Method] Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates + * @param cmd String The Midas command + * @param value String The value to pass to the command + */ + relayCmd?( cmd?:string, value?:string ): void; + relayCmd?( cmd?:string, value?:bool ): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Syncs the contents of the editor iframe with the textarea */ + syncValue?(): void; + /** [Method] Toggles the editor between standard and source edit mode + * @param sourceEditMode Boolean True for source edit, false for standard + */ + toggleSourceEdit?( sourceEditMode?:bool ): void; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Triggers a toolbar update by reading the markup state of the current selection in the editor */ + updateToolbar?(): void; + } +} +declare module Ext.form.field { + export interface INumber extends Ext.form.field.ISpinner { + /** [Config Option] (Boolean) False to disallow decimal values ... */ + allowDecimals?: bool; + /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ + autoStripChars?: bool; + /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ + baseChars?: string; + /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ + decimalPrecision?: number; + /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ + decimalSeparator?: string; + /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ + maxText?: string; + /** [Config Option] (Number) The maximum allowed value. ... */ + maxValue?: number; + /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ + minText?: string; + /** [Config Option] (Number) The minimum allowed value. ... */ + minValue?: number; + /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ + nanText?: string; + /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ + negativeText?: string; + /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ + step?: number; + /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ + submitLocaleSeparator?: bool; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Runs all of Number s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new value + * @param value Number The maximum value + */ + setMaxValue?( value?:number ): void; + /** [Method] Replaces any existing minValue with the new value + * @param value Number The minimum value + */ + setMinValue?( value?:number ): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinDownEnabled?( enabled?:bool ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinUpEnabled?( enabled?:bool ): void; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface INumber extends Ext.form.field.ISpinner { + /** [Config Option] (Boolean) False to disallow decimal values ... */ + allowDecimals?: bool; + /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ + autoStripChars?: bool; + /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ + baseChars?: string; + /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ + decimalPrecision?: number; + /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ + decimalSeparator?: string; + /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ + maxText?: string; + /** [Config Option] (Number) The maximum allowed value. ... */ + maxValue?: number; + /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ + minText?: string; + /** [Config Option] (Number) The minimum allowed value. ... */ + minValue?: number; + /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ + nanText?: string; + /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ + negativeText?: string; + /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ + step?: number; + /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ + submitLocaleSeparator?: bool; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Runs all of Number s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new value + * @param value Number The maximum value + */ + setMaxValue?( value?:number ): void; + /** [Method] Replaces any existing minValue with the new value + * @param value Number The minimum value + */ + setMinValue?( value?:number ): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinDownEnabled?( enabled?:bool ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinUpEnabled?( enabled?:bool ): void; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface INumberField extends Ext.form.field.ISpinner { + /** [Config Option] (Boolean) False to disallow decimal values ... */ + allowDecimals?: bool; + /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ + autoStripChars?: bool; + /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ + baseChars?: string; + /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ + decimalPrecision?: number; + /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ + decimalSeparator?: string; + /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ + maxText?: string; + /** [Config Option] (Number) The maximum allowed value. ... */ + maxValue?: number; + /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ + minText?: string; + /** [Config Option] (Number) The minimum allowed value. ... */ + minValue?: number; + /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ + nanText?: string; + /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ + negativeText?: string; + /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ + step?: number; + /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ + submitLocaleSeparator?: bool; + /** [Method] Template method to do any pre blur processing + * @param e Ext.IEventObject The event object + */ + beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Runs all of Number s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new value + * @param value Number The maximum value + */ + setMaxValue?( value?:number ): void; + /** [Method] Replaces any existing minValue with the new value + * @param value Number The minimum value + */ + setMinValue?( value?:number ): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinDownEnabled?( enabled?:bool ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinUpEnabled?( enabled?:bool ): void; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface IPicker extends Ext.form.field.ITrigger { + /** [Config Option] (Boolean) False to prevent the user from typing text directly into the field; the field can only have its value set via selecti... */ + editable?: bool; + /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + matchFieldWidth?: bool; + /** [Config Option] (String) A class to be added to the field's bodyEl element when the picker is opened. ... */ + openCls?: string; + /** [Config Option] (String) The alignment position with which to align the picker. ... */ + pickerAlign?: string; + /** [Config Option] (Number[]) An offset [x,y] to use in addition to the pickerAlign when positioning the picker. ... */ + pickerOffset?: number[]; + /** [Property] (Boolean) */ + isExpanded?: bool; + /** [Method] Aligns the picker to the input element */ + alignPicker?(): void; + /** [Method] Collapses this field s picker dropdown */ + collapse?(): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Expands this field s picker dropdown */ + expand?(): void; + /** [Method] Returns a reference to the picker component for this field creating it if necessary by calling createPicker */ + getPicker?(): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ + onTriggerClick?(): void; + } +} +declare module Ext.form { + export interface IPicker extends Ext.form.field.ITrigger { + /** [Config Option] (Boolean) False to prevent the user from typing text directly into the field; the field can only have its value set via selecti... */ + editable?: bool; + /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + matchFieldWidth?: bool; + /** [Config Option] (String) A class to be added to the field's bodyEl element when the picker is opened. ... */ + openCls?: string; + /** [Config Option] (String) The alignment position with which to align the picker. ... */ + pickerAlign?: string; + /** [Config Option] (Number[]) An offset [x,y] to use in addition to the pickerAlign when positioning the picker. ... */ + pickerOffset?: number[]; + /** [Property] (Boolean) */ + isExpanded?: bool; + /** [Method] Aligns the picker to the input element */ + alignPicker?(): void; + /** [Method] Collapses this field s picker dropdown */ + collapse?(): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Expands this field s picker dropdown */ + expand?(): void; + /** [Method] Returns a reference to the picker component for this field creating it if necessary by calling createPicker */ + getPicker?(): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ + onTriggerClick?(): void; + } +} +declare module Ext.form.field { + export interface IRadio extends Ext.form.field.ICheckbox { + /** [Config Option] (String) The CSS class to use when the radio field receives focus ... */ + focusCls?: string; + /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Radio, or subclass thereof. ... */ + isRadio?: bool; + /** [Method] If this radio is part of a group it will return the selected value */ + getGroupValue?(): string; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ + getSubmitValue?(): any; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Sets either the checked unchecked status of this Radio or if a string value is passed checks a sibling Radio of th + * @param value any Checked value, or the value of the sibling radio button to check. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): Ext.form.field.IRadio; + setValue?( value?:bool ): Ext.form.field.IRadio; + } +} +declare module Ext.form { + export interface IRadio extends Ext.form.field.ICheckbox { + /** [Config Option] (String) The CSS class to use when the radio field receives focus ... */ + focusCls?: string; + /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + inputType?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Radio, or subclass thereof. ... */ + isRadio?: bool; + /** [Method] If this radio is part of a group it will return the selected value */ + getGroupValue?(): string; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ + getSubmitValue?(): any; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Sets either the checked unchecked status of this Radio or if a string value is passed checks a sibling Radio of th + * @param value any Checked value, or the value of the sibling radio button to check. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): Ext.form.field.IRadio; + setValue?( value?:bool ): Ext.form.field.IRadio; + } +} +declare module Ext.form.field { + export interface ISpinner extends Ext.form.field.ITrigger { + /** [Config Option] (Boolean) Specifies whether the up and down arrow keys should trigger spinning up and down. ... */ + keyNavEnabled?: bool; + /** [Config Option] (Boolean) Specifies whether the mouse wheel should trigger spinning up and down while the field has focus. ... */ + mouseWheelEnabled?: bool; + /** [Config Option] (Boolean) Whether a click repeater should be attached to the spinner buttons. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) Specifies whether the down spinner button is enabled. ... */ + spinDownEnabled?: bool; + /** [Config Option] (Boolean) Specifies whether the up spinner button is enabled. ... */ + spinUpEnabled?: bool; + /** [Property] (Ext.Element) */ + spinDownEl?: Ext.IElement; + /** [Property] (Ext.Element) */ + spinUpEl?: Ext.IElement; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the spinner button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinDownEnabled?( enabled?:bool ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinUpEnabled?( enabled?:bool ): void; + /** [Method] Triggers the spinner to step down fires the spin and spindown events and calls the onSpinDown method */ + spinDown?(): void; + /** [Method] Triggers the spinner to step up fires the spin and spinup events and calls the onSpinUp method */ + spinUp?(): void; + } +} +declare module Ext.form { + export interface ISpinner extends Ext.form.field.ITrigger { + /** [Config Option] (Boolean) Specifies whether the up and down arrow keys should trigger spinning up and down. ... */ + keyNavEnabled?: bool; + /** [Config Option] (Boolean) Specifies whether the mouse wheel should trigger spinning up and down while the field has focus. ... */ + mouseWheelEnabled?: bool; + /** [Config Option] (Boolean) Whether a click repeater should be attached to the spinner buttons. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) Specifies whether the down spinner button is enabled. ... */ + spinDownEnabled?: bool; + /** [Config Option] (Boolean) Specifies whether the up spinner button is enabled. ... */ + spinUpEnabled?: bool; + /** [Property] (Ext.Element) */ + spinDownEl?: Ext.IElement; + /** [Property] (Ext.Element) */ + spinUpEl?: Ext.IElement; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the spinner button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinDownEnabled?( enabled?:bool ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Boolean true to enable the button, false to disable it. + */ + setSpinUpEnabled?( enabled?:bool ): void; + /** [Method] Triggers the spinner to step down fires the spin and spindown events and calls the onSpinDown method */ + spinDown?(): void; + /** [Method] Triggers the spinner to step up fires the spin and spinup events and calls the onSpinUp method */ + spinUp?(): void; + } +} +declare module Ext.form.field { + export interface IText extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ + allowBlank?: bool; + /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ + allowOnlyWhitespace?: bool; + /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ + blankText?: string; + /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ + disableKeyFilter?: bool; + /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ + emptyCls?: string; + /** [Config Option] (String) The default text to place into an empty field. ... */ + emptyText?: string; + /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ + enableKeyEvents?: bool; + /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ + enforceMaxLength?: bool; + /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ + grow?: bool; + /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + growAppend?: string; + /** [Config Option] (Number) The maximum width to allow when grow = true ... */ + growMax?: number; + /** [Config Option] (Number) The minimum width to allow when grow = true ... */ + growMin?: number; + /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ + maskRe?: RegExp; + /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ + maxLength?: number; + /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ + maxLengthText?: string; + /** [Config Option] (Number) Minimum input field length required ... */ + minLength?: number; + /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ + minLengthText?: string; + /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ + regex?: RegExp; + /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ + regexText?: string; + /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ + requiredCls?: string; + /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ + selectOnFocus?: bool; + /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ + size?: number; + /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ + stripCharsRe?: RegExp; + /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ + validateBlank?: bool; + /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ + validator?: any; + /** [Config Option] (String) */ + vtype?: string; + /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ + vtypeText?: string; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ + autoSize?(): void; + /** [Method] private Template method to do any pre focus processing + * @param e Ext.IEventObject The event object + */ + beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations + * @param value Object The value to validate. The processed raw value will be used if nothing is passed. + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the raw String value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation + * @param value String The unprocessed string value + */ + processRawValue?( value?:string ): string; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Selects text in this field + * @param start Number The index where the selection should start + * @param end Number The index where the selection should end (defaults to the text length) + */ + selectText?( start?:number, end?:number ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + } +} +declare module Ext.form { + export interface IText extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ + allowBlank?: bool; + /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ + allowOnlyWhitespace?: bool; + /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ + blankText?: string; + /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ + disableKeyFilter?: bool; + /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ + emptyCls?: string; + /** [Config Option] (String) The default text to place into an empty field. ... */ + emptyText?: string; + /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ + enableKeyEvents?: bool; + /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ + enforceMaxLength?: bool; + /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ + grow?: bool; + /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + growAppend?: string; + /** [Config Option] (Number) The maximum width to allow when grow = true ... */ + growMax?: number; + /** [Config Option] (Number) The minimum width to allow when grow = true ... */ + growMin?: number; + /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ + maskRe?: RegExp; + /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ + maxLength?: number; + /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ + maxLengthText?: string; + /** [Config Option] (Number) Minimum input field length required ... */ + minLength?: number; + /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ + minLengthText?: string; + /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ + regex?: RegExp; + /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ + regexText?: string; + /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ + requiredCls?: string; + /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ + selectOnFocus?: bool; + /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ + size?: number; + /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ + stripCharsRe?: RegExp; + /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ + validateBlank?: bool; + /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ + validator?: any; + /** [Config Option] (String) */ + vtype?: string; + /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ + vtypeText?: string; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ + autoSize?(): void; + /** [Method] private Template method to do any pre focus processing + * @param e Ext.IEventObject The event object + */ + beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations + * @param value Object The value to validate. The processed raw value will be used if nothing is passed. + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the raw String value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation + * @param value String The unprocessed string value + */ + processRawValue?( value?:string ): string; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Selects text in this field + * @param start Number The index where the selection should start + * @param end Number The index where the selection should end (defaults to the text length) + */ + selectText?( start?:number, end?:number ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + } +} +declare module Ext.form { + export interface ITextField extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ + allowBlank?: bool; + /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ + allowOnlyWhitespace?: bool; + /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ + blankText?: string; + /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ + disableKeyFilter?: bool; + /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ + emptyCls?: string; + /** [Config Option] (String) The default text to place into an empty field. ... */ + emptyText?: string; + /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ + enableKeyEvents?: bool; + /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ + enforceMaxLength?: bool; + /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ + grow?: bool; + /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + growAppend?: string; + /** [Config Option] (Number) The maximum width to allow when grow = true ... */ + growMax?: number; + /** [Config Option] (Number) The minimum width to allow when grow = true ... */ + growMin?: number; + /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ + maskRe?: RegExp; + /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ + maxLength?: number; + /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ + maxLengthText?: string; + /** [Config Option] (Number) Minimum input field length required ... */ + minLength?: number; + /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ + minLengthText?: string; + /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ + regex?: RegExp; + /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ + regexText?: string; + /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ + requiredCls?: string; + /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ + selectOnFocus?: bool; + /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ + size?: number; + /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ + stripCharsRe?: RegExp; + /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ + validateBlank?: bool; + /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ + validator?: any; + /** [Config Option] (String) */ + vtype?: string; + /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ + vtypeText?: string; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ + autoSize?(): void; + /** [Method] private Template method to do any pre focus processing + * @param e Ext.IEventObject The event object + */ + beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations + * @param value Object The value to validate. The processed raw value will be used if nothing is passed. + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the raw String value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] private Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] private Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation + * @param value String The unprocessed string value + */ + processRawValue?( value?:string ): string; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Selects text in this field + * @param start Number The index where the selection should start + * @param end Number The index where the selection should end (defaults to the text length) + */ + selectText?( start?:number, end?:number ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface ITextArea extends Ext.form.field.IText { + /** [Config Option] (Number) An initial value for the 'cols' attribute on the textarea element. ... */ + cols?: number; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (Boolean) True if you want the ENTER key to be classed as a special key and the specialkey event to be fired when ENTER is pres... */ + enterIsSpecial?: bool; + /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + growAppend?: string; + /** [Config Option] (Number) The maximum height to allow when grow=true ... */ + growMax?: number; + /** [Config Option] (Number) The minimum height to allow when grow=true ... */ + growMin?: number; + /** [Config Option] (Boolean) true to prevent scrollbars from appearing regardless of how much text is in the field. ... */ + preventScrollbars?: bool; + /** [Config Option] (Number) An initial value for the 'rows' attribute on the textarea element. ... */ + rows?: number; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Automatically grows the field to accomodate the height of the text up to the maximum field height allowed */ + autoSize?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] private Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] The following overrides deal with an issue whereby some browsers will strip carriage returns from the textarea input + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface ITextArea extends Ext.form.field.IText { + /** [Config Option] (Number) An initial value for the 'cols' attribute on the textarea element. ... */ + cols?: number; + /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + componentLayout?: any; + /** [Config Option] (Boolean) True if you want the ENTER key to be classed as a special key and the specialkey event to be fired when ENTER is pres... */ + enterIsSpecial?: bool; + /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + growAppend?: string; + /** [Config Option] (Number) The maximum height to allow when grow=true ... */ + growMax?: number; + /** [Config Option] (Number) The minimum height to allow when grow=true ... */ + growMin?: number; + /** [Config Option] (Boolean) true to prevent scrollbars from appearing regardless of how much text is in the field. ... */ + preventScrollbars?: bool; + /** [Config Option] (Number) An initial value for the 'rows' attribute on the textarea element. ... */ + rows?: number; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Automatically grows the field to accomodate the height of the text up to the maximum field height allowed */ + autoSize?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] private Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] The following overrides deal with an issue whereby some browsers will strip carriage returns from the textarea input + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface ITime extends Ext.form.field.IComboBox { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + displayField?: string; + /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + increment?: number; + /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed time. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed time. ... */ + minValue?: any; + /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ + pickerMaxHeight?: number; + /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + queryMode?: string; + /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + selectOnTab?: bool; + /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ + snapToIncrement?: bool; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + valueField?: string; + /** [Method] Runs all of Time s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range + * @param value String The maximum time that can be selected + */ + setMaxValue?( value?:string ): void; + /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range + * @param value String The minimum time that can be selected + */ + setMinValue?( value?:string ): void; + /** [Method] Sets the specified value s into the field + * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): any; + setValue?( value?:string[] ): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface ITime extends Ext.form.field.IComboBox { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + displayField?: string; + /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + increment?: number; + /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed time. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed time. ... */ + minValue?: any; + /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ + pickerMaxHeight?: number; + /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + queryMode?: string; + /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + selectOnTab?: bool; + /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ + snapToIncrement?: bool; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + valueField?: string; + /** [Method] Runs all of Time s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range + * @param value String The maximum time that can be selected + */ + setMaxValue?( value?:string ): void; + /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range + * @param value String The minimum time that can be selected + */ + setMinValue?( value?:string ): void; + /** [Method] Sets the specified value s into the field + * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): any; + setValue?( value?:string[] ): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface ITimeField extends Ext.form.field.IComboBox { + /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ + altFormats?: string; + /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + displayField?: string; + /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + increment?: number; + /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ + invalidText?: string; + /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ + maxText?: string; + /** [Config Option] (Date/String) The maximum allowed time. ... */ + maxValue?: any; + /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ + minText?: string; + /** [Config Option] (Date/String) The minimum allowed time. ... */ + minValue?: any; + /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ + pickerMaxHeight?: number; + /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + queryMode?: string; + /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + selectOnTab?: bool; + /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ + snapToIncrement?: bool; + /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + submitFormat?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + valueField?: string; + /** [Method] Runs all of Time s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.IEventObject The event object + */ + postBlur?( e?:Ext.IEventObject ): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range + * @param value String The maximum time that can be selected + */ + setMaxValue?( value?:string ): void; + /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range + * @param value String The minimum time that can be selected + */ + setMinValue?( value?:string ): void; + /** [Method] Sets the specified value s into the field + * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + */ + setValue?( value?:any ): any; + setValue?( value?:string ): any; + setValue?( value?:string[] ): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form.field { + export interface ITrigger extends Ext.form.field.IText { + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + editable?: bool; + /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + hideTrigger?: bool; + /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + readOnly?: bool; + /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + selectOnFocus?: bool; + /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + triggerBaseCls?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + triggerNoEditCls?: string; + /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + triggerWrapCls?: string; + /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + inputCell?: Ext.IElement; + /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + triggerEl?: Ext.ICompositeElement; + /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + triggerWrap?: Ext.IElement; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the trigger button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] The function that should handle the trigger s click event + * @param e Ext.IEventObject + */ + onTriggerClick?( e?:Ext.IEventObject ): void; + /** [Method] Sets the editable state of this field + * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. + */ + setEditable?( editable?:bool ): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. + */ + setReadOnly?( readOnly?:bool ): void; + } +} +declare module Ext.form { + export interface ITrigger extends Ext.form.field.IText { + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + editable?: bool; + /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + hideTrigger?: bool; + /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + readOnly?: bool; + /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + selectOnFocus?: bool; + /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + triggerBaseCls?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + triggerNoEditCls?: string; + /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + triggerWrapCls?: string; + /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + inputCell?: Ext.IElement; + /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + triggerEl?: Ext.ICompositeElement; + /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + triggerWrap?: Ext.IElement; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the trigger button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] The function that should handle the trigger s click event + * @param e Ext.IEventObject + */ + onTriggerClick?( e?:Ext.IEventObject ): void; + /** [Method] Sets the editable state of this field + * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. + */ + setEditable?( editable?:bool ): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. + */ + setReadOnly?( readOnly?:bool ): void; + } +} +declare module Ext.form { + export interface ITriggerField extends Ext.form.field.IText { + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + editable?: bool; + /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + hideTrigger?: bool; + /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + readOnly?: bool; + /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + selectOnFocus?: bool; + /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + triggerBaseCls?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + triggerNoEditCls?: string; + /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + triggerWrapCls?: string; + /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + inputCell?: Ext.IElement; + /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + triggerEl?: Ext.ICompositeElement; + /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + triggerWrap?: Ext.IElement; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the trigger button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] The function that should handle the trigger s click event + * @param e Ext.IEventObject + */ + onTriggerClick?( e?:Ext.IEventObject ): void; + /** [Method] Sets the editable state of this field + * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. + */ + setEditable?( editable?:bool ): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. + */ + setReadOnly?( readOnly?:bool ): void; + } +} +declare module Ext.form { + export interface ITwinTriggerField extends Ext.form.field.IText { + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + editable?: bool; + /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + hideTrigger?: bool; + /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + readOnly?: bool; + /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + selectOnFocus?: bool; + /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + triggerBaseCls?: string; + /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + triggerCls?: string; + /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + triggerNoEditCls?: string; + /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + triggerWrapCls?: string; + /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + inputCell?: Ext.IElement; + /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + triggerEl?: Ext.ICompositeElement; + /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + triggerWrap?: Ext.IElement; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] Get the total width of the trigger button area */ + getTriggerWidth?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] The function that should handle the trigger s click event + * @param e Ext.IEventObject + */ + onTriggerClick?( e?:Ext.IEventObject ): void; + /** [Method] Sets the editable state of this field + * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. + */ + setEditable?( editable?:bool ): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. + */ + setReadOnly?( readOnly?:bool ): void; + } +} +declare module Ext.form.field { + export interface IVTypes extends Ext.IBase { + } + export class VTypes { + /** [Method] The function used to validate alpha values + * @param value String The value + */ + static alpha( value?:string ): bool; + /** [Method] The function used to validate alphanumeric values + * @param value String The value + */ + static alphanum( value?:string ): bool; + /** [Method] The function used to validate email addresses + * @param value String The email address + */ + static email( value?:string ): bool; + /** [Method] The function used to validate URLs + * @param value String The URL + */ + static url( value?:string ): bool; + } +} +declare module Ext.form { + export interface IVTypes extends Ext.IBase { + } + export class VTypes { + /** [Method] The function used to validate alpha values + * @param value String The value + */ + static alpha( value?:string ): bool; + /** [Method] The function used to validate alphanumeric values + * @param value String The value + */ + static alphanum( value?:string ): bool; + /** [Method] The function used to validate email addresses + * @param value String The email address + */ + static email( value?:string ): bool; + /** [Method] The function used to validate URLs + * @param value String The URL + */ + static url( value?:string ): bool; + } +} +declare module Ext.form { + export interface IFieldAncestor extends Ext.IBase { + /** [Config Option] (Object) If specified, the properties in this object are used as default config values for each Ext.form.Labelable instance (e.g. ... */ + fieldDefaults?: any; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Fired when the error message of any field within the container changes + * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param error String The new active error message + */ + onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + } +} +declare module Ext.form { + export interface IFieldContainer extends Ext.container.IContainer,Ext.form.IFieldAncestor,Ext.form.ILabelable { + /** [Config Option] (Boolean) If set to true, the field container will automatically combine and display the validation errors from all the fields ... */ + combineErrors?: bool; + /** [Config Option] (Boolean) If set to true, and there is no defined fieldLabel, the field container will automatically generate its label by comb... */ + combineLabels?: bool; + /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + componentCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The string to use when joining the labels of individual sub-fields, when combineLabels is set to true. ... */ + labelConnector?: string; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Takes an Array of invalid Ext form field Field objects and builds a combined list of error messages from them + * @param invalidFields Ext.form.field.IField[] An Array of the sub-fields which are currently invalid. + */ + getCombinedErrors?( invalidFields?:Ext.form.field.IField[] ): string[]; + /** [Method] Returns the combined field label if combineLabels is set to true and if there is no set fieldLabel */ + getFieldLabel?(): string; + /** [Method] Get the input id if any for this component */ + getInputId?(): string; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): string; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Called when a Ext form Labelable instance is added to the container s subtree + * @param labelable Ext.form.ILabelable The instance that was added + */ + onAdd?( labelable?:Ext.form.ILabelable ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + /** [Method] Called when a Ext form Labelable instance is removed from the container s subtree + * @param labelable Ext.form.ILabelable The instance that was removed + */ + onRemove?( labelable?:Ext.form.ILabelable ): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + } +} +declare module Ext.form { + export interface IFieldSet extends Ext.container.IContainer,Ext.form.IFieldAncestor { + /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + autoEl?: any; + /** [Config Option] (String) The base CSS class applied to the fieldset. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String) */ + checkboxName?: string; + /** [Config Option] (Boolean) Set to true to render a checkbox into the fieldset frame just in front of the legend to expand/collapse the fieldset ... */ + checkboxToggle?: bool; + /** [Config Option] (Boolean) Set to true to render the fieldset as collapsed by default. ... */ + collapsed?: bool; + /** [Config Option] (Boolean) Set to true to make the fieldset collapsible and have the expand/collapse toggle button automatically rendered into t... */ + collapsible?: bool; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the fieldset's immediate child items. ... */ + layout?: any; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String[]) An array of events that, when fired, should trigger this object to save its state. ... */ + stateEvents?: string[]; + /** [Config Option] (String) A title to be displayed in the fieldset's legend. ... */ + title?: string; + /** [Config Option] (Boolean) Set to true will add a listener to the titleCmp property for the click event which will execute the toggle method. ... */ + toggleOnTitleClick?: bool; + /** [Property] (Ext.form.field.Checkbox) Refers to the Ext.form.field.Checkbox component that is added next to the title in the legend. ... */ + checkboxCmp?: Ext.form.field.ICheckbox; + /** [Property] (Ext.Component) The component for the fieldset's legend. ... */ + legend?: Ext.IComponent; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Property] (Ext.panel.Tool) Refers to the Ext.panel.Tool component that is added as the collapse/expand button next to the title in the legend. ... */ + toggleCmp?: Ext.panel.ITool; + /** [Method] Collapses the fieldset */ + collapse?(): Ext.form.IFieldSet; + /** [Method] Creates the checkbox component */ + createCheckboxCmp?(): Ext.IComponent; + /** [Method] Creates the legend title component */ + createTitleCmp?(): Ext.IComponent; + /** [Method] Creates the toggle button component */ + createToggleCmp?(): Ext.IComponent; + /** [Method] Expands the fieldset */ + expand?(): Ext.form.IFieldSet; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + getRefItems?( deep?:any ): void; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Fired when the error message of any field within the container changes + * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param error String The new active error message + */ + onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + /** [Method] Sets the title of this fieldset + * @param title String The new title. + */ + setTitle?( title?:string ): Ext.form.IFieldSet; + /** [Method] Toggle the fieldset s collapsed state to the opposite of what it is currently */ + toggle?(): void; + } +} +declare module Ext.form { + export interface ILabel extends Ext.IComponent { + /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + autoEl?: any; + /** [Config Option] (String) The id of the input element to which this label will be bound via the standard HTML 'for' attribute. ... */ + forId?: string; + /** [Config Option] (String) An HTML fragment that will be used as the label's innerHTML. ... */ + html?: string; + /** [Config Option] (String) The plain text to display within the label. ... */ + text?: string; + /** [Method] Updates the label s innerHTML with the specified string + * @param text String The new label text + * @param encode Boolean False to skip HTML-encoding the text when rendering it to the label. This might be useful if you want to include tags in the label's innerHTML rather than rendering them as string literals per the default logic. + */ + setText?( text?:string, encode?:bool ): Ext.form.ILabel; + } +} +declare module Ext.form { + export interface ILabelable extends Ext.IBase { + /** [Config Option] (String) If specified, then the component will be displayed with this value as its active error when first rendered. ... */ + activeError?: string; + /** [Config Option] (String/String[]/Ext.XTemplate) The template used to format the Array of error messages passed to setActiveErrors into a single HTML string. ... */ + activeErrorsTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup at the end of the input containing element. ... */ + afterBodyEl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the label text. ... */ + afterLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the label element. ... */ + afterLabelTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the subTpl markup. ... */ + afterSubTpl?: any; + /** [Config Option] (Boolean) Whether to adjust the component's body area to make room for 'side' or 'under' error messages. ... */ + autoFitErrors?: bool; + /** [Config Option] (String) The CSS class to be applied to the body content element. ... */ + baseBodyCls?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup at the beginning of the input containing ... */ + beforeBodyEl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the label text. ... */ + beforeLabelTextTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the label element. ... */ + beforeLabelTpl?: any; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the subTpl markup. ... */ + beforeSubTpl?: any; + /** [Config Option] (String) The CSS class to be applied to the special clearing div rendered directly after the field contents wrapper to provide... */ + clearCls?: string; + /** [Config Option] (String) The CSS class to be applied to the error message element. ... */ + errorMsgCls?: string; + /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + fieldBodyCls?: string; + /** [Config Option] (String) The label for the field. ... */ + fieldLabel?: string; + /** [Config Option] (String) A CSS class to be applied to the outermost element to denote that it is participating in the form field layout. ... */ + formItemCls?: string; + /** [Config Option] (Boolean) When set to true, the label element (fieldLabel and labelSeparator) will be automatically hidden if the fieldLabel is... */ + hideEmptyLabel?: bool; + /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + hideLabel?: bool; + /** [Config Option] (String) The CSS class to use when marking the component invalid. ... */ + invalidCls?: string; + /** [Config Option] (String) Controls the position and alignment of the fieldLabel. ... */ + labelAlign?: string; + /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the label element (as attributes). ... */ + labelAttrTpl?: any; + /** [Config Option] (String) The CSS class to be applied to the label element. ... */ + labelCls?: string; + /** [Config Option] (String) An optional string of one or more additional CSS classes to add to the label element. ... */ + labelClsExtra?: string; + /** [Config Option] (Number) The amount of space in pixels between the fieldLabel and the input field. ... */ + labelPad?: number; + /** [Config Option] (String) Character(s) to be inserted at the end of the label text. ... */ + labelSeparator?: string; + /** [Config Option] (String) */ + labelStyle?: string; + /** [Config Option] (Number) The width of the fieldLabel in pixels. ... */ + labelWidth?: number; + /** [Config Option] (String) The location where the error message text should display. ... */ + msgTarget?: string; + /** [Config Option] (Boolean) true to disable displaying any error message set on this object. ... */ + preventMark?: bool; + /** [Property] (Ext.Element) The div Element wrapping the component's contents. ... */ + bodyEl?: Ext.IElement; + /** [Property] (Ext.Element) The div Element that will contain the component's error message(s). ... */ + errorEl?: Ext.IElement; + /** [Property] (Boolean) Flag denoting that this object is labelable as a field. ... */ + isFieldLabelable?: bool; + /** [Property] (Ext.Element) The <TD> Element which contains the label Element for this component. ... */ + labelCell?: Ext.IElement; + /** [Property] (Ext.Element) The label Element for this component. ... */ + labelEl?: Ext.IElement; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Returns the label for the field */ + getFieldLabel?(): string; + /** [Method] Get the input id if any for this component */ + getInputId?(): string; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): string; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + } +} +declare module Ext.form { + export interface IPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { + /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + layout?: any; + /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + pollForChanges?: bool; + /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + pollInterval?: number; + /** [Method] Forces each field within the form panel to check if its value has changed */ + checkChange?(): void; + /** [Method] Provides access to the Form which this Panel contains */ + getForm?(): Ext.form.IBasic; + /** [Method] Returns the currently loaded Ext data Model instance if one was loaded via loadRecord */ + getRecord?(): Ext.data.IModel; + /** [Method] Convenience function for fetching the current value of each field in the form + * @param asString Boolean If true, will return the key/value collection as a single URL-encoded param string. + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + * @param includeEmptyText Boolean If true, the configured emptyText of empty fields will be used. + * @param useDataValues Boolean If true, the getModelData method is used to retrieve values from fields, otherwise the getSubmitData method is used. + */ + getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; + /** [Method] Convenience function to check if the form has any invalid fields */ + hasInvalidField?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Convenience function to check if the form has any dirty fields */ + isDirty?(): bool; + /** [Method] Convenience function to check if the form has all valid fields */ + isValid?(): bool; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic load call + * @param options Object The options to pass to the action (see Ext.form.Basic.load and Ext.form.Basic.doAction for details) + */ + load?( options?:any ): void; + /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Fired when the error message of any field within the container changes + * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param error String The new active error message + */ + onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + /** [Method] Start an interval task to continuously poll all the fields in the form for changes in their values + * @param interval Number The interval in milliseconds at which the check should run. + */ + startPolling?( interval?:number ): void; + /** [Method] Stop a running interval task that was started by startPolling */ + stopPolling?(): void; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic submit call + * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) + */ + submit?( options?:any ): void; + } +} +declare module Ext { + export interface IFormPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { + /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + layout?: any; + /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + pollForChanges?: bool; + /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + pollInterval?: number; + /** [Method] Forces each field within the form panel to check if its value has changed */ + checkChange?(): void; + /** [Method] Provides access to the Form which this Panel contains */ + getForm?(): Ext.form.IBasic; + /** [Method] Returns the currently loaded Ext data Model instance if one was loaded via loadRecord */ + getRecord?(): Ext.data.IModel; + /** [Method] Convenience function for fetching the current value of each field in the form + * @param asString Boolean If true, will return the key/value collection as a single URL-encoded param string. + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + * @param includeEmptyText Boolean If true, the configured emptyText of empty fields will be used. + * @param useDataValues Boolean If true, the getModelData method is used to retrieve values from fields, otherwise the getSubmitData method is used. + */ + getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; + /** [Method] Convenience function to check if the form has any invalid fields */ + hasInvalidField?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Convenience function to check if the form has any dirty fields */ + isDirty?(): bool; + /** [Method] Convenience function to check if the form has all valid fields */ + isValid?(): bool; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic load call + * @param options Object The options to pass to the action (see Ext.form.Basic.load and Ext.form.Basic.doAction for details) + */ + load?( options?:any ): void; + /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Fired when the error message of any field within the container changes + * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param error String The new active error message + */ + onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + /** [Method] Start an interval task to continuously poll all the fields in the form for changes in their values + * @param interval Number The interval in milliseconds at which the check should run. + */ + startPolling?( interval?:number ): void; + /** [Method] Stop a running interval task that was started by startPolling */ + stopPolling?(): void; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic submit call + * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) + */ + submit?( options?:any ): void; + } +} +declare module Ext.form { + export interface IFormPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { + /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + layout?: any; + /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + pollForChanges?: bool; + /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + pollInterval?: number; + /** [Method] Forces each field within the form panel to check if its value has changed */ + checkChange?(): void; + /** [Method] Provides access to the Form which this Panel contains */ + getForm?(): Ext.form.IBasic; + /** [Method] Returns the currently loaded Ext data Model instance if one was loaded via loadRecord */ + getRecord?(): Ext.data.IModel; + /** [Method] Convenience function for fetching the current value of each field in the form + * @param asString Boolean If true, will return the key/value collection as a single URL-encoded param string. + * @param dirtyOnly Boolean If true, only fields that are dirty will be included in the result. + * @param includeEmptyText Boolean If true, the configured emptyText of empty fields will be used. + * @param useDataValues Boolean If true, the getModelData method is used to retrieve values from fields, otherwise the getSubmitData method is used. + */ + getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; + /** [Method] Convenience function to check if the form has any invalid fields */ + hasInvalidField?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ + initFieldAncestor?(): void; + /** [Method] Convenience function to check if the form has any dirty fields */ + isDirty?(): bool; + /** [Method] Convenience function to check if the form has all valid fields */ + isValid?(): bool; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic load call + * @param options Object The options to pass to the action (see Ext.form.Basic.load and Ext.form.Basic.doAction for details) + */ + load?( options?:any ): void; + /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Fired when the error message of any field within the container changes + * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param error String The new active error message + */ + onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; + /** [Method] Fired when the validity of any field within the container changes + * @param field Ext.form.field.IField The sub-field whose validity changed + * @param valid Boolean The new validity state + */ + onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; + /** [Method] Start an interval task to continuously poll all the fields in the form for changes in their values + * @param interval Number The interval in milliseconds at which the check should run. + */ + startPolling?( interval?:number ): void; + /** [Method] Stop a running interval task that was started by startPolling */ + stopPolling?(): void; + /** [Method] This is a proxy for the underlying BasicForm s Ext form Basic submit call + * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) + */ + submit?( options?:any ): void; + } +} +declare module Ext.form { + export interface IRadioGroup extends Ext.form.ICheckboxGroup { + /** [Config Option] (Boolean) True to allow every item in the group to be blank. ... */ + allowBlank?: bool; + /** [Config Option] (String) Error text to display if the allowBlank validation fails ... */ + blankText?: string; + /** [Config Option] (String) private The default xtype of child Components to create in this Container when a child item is specified as a raw co... */ + defaultType?: string; + /** [Config Option] (Ext.form.field.Radio[]/Object[]) */ + items?: any; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Sets the value of the radio group + * @param value Object The map from names to values to be set. + */ + setValue?( value?:any ): Ext.form.ICheckboxGroup; + } +} +declare module Ext.form { + export interface IRadioManager extends Ext.util.IMixedCollection { + } + export class RadioManager { + } +} +declare module Ext { + export interface IFunction { + } + export class Function { + /** [Method] Create an alias to the provided method property with name methodName of object + * @param object any + * @param methodName String + */ + static alias( object?:any, methodName?:string ): any; + /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the + * @param fn any The function to delegate. + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + static bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; + static bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; + static bind( fn?:any, scope?:any, args?:any[], appendArgs?:number ): any; + /** [Method] Create a clone of the provided method + * @param method Function + */ + static clone( method?:any ): any; + /** [Method] Creates a delegate function optionally with a bound scope which when called buffers the execution of the passed fu + * @param fn Function The function to invoke on a buffered timer. + * @param buffer Number The number of milliseconds by which to buffer the invocation of the function. + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope specified by the caller. + * @param args Array Override arguments for the call. Defaults to the arguments passed by the caller. + */ + static createBuffered( fn?:any, buffer?:number, scope?:any, args?:any[] ): any; + /** [Method] Creates a delegate callback which when called executes after a specific delay + * @param fn any The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. + * @param delay any The number of milliseconds to defer execution by whenever called. + * @param scope any The scope (this reference) used by the function at execution time. + * @param args any Override arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. + */ + static createDelayed( fn?:any, delay?:any, scope?:any, args?:any, appendArgs?:any ): any; + static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:bool ): any; + static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:number ): any; + /** [Method] Creates an interceptor function + * @param origFn Function The original function. + * @param newFn Function The function to call before the original + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope in which the original function is called or the browser window. + * @param returnValue Object The value to return if the passed function return false. + */ + static createInterceptor( origFn?:any, newFn?:any, scope?:any, returnValue?:any ): any; + /** [Method] Create a combined function call sequence of the original function the passed function + * @param originalFn Function The original function. + * @param newFn Function The function to sequence + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope in which the original function is called or the default global environment object (usually the browser window). + */ + static createSequence( originalFn?:any, newFn?:any, scope?:any ): any; + /** [Method] Creates a throttled version of the passed function which when called repeatedly and rapidly invokes the passed func + * @param fn Function The function to execute at a regular time interval. + * @param interval Number The interval in milliseconds on which the passed function is executed. + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope specified by the caller. + */ + static createThrottled( fn?:any, interval?:number, scope?:any ): any; + /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope + * @param fn any The function to defer. + * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + static defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; + static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; + static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:number ): number; + /** [Method] A very commonly used method throughout the framework + * @param setter Function + */ + static flexSetter( setter?:any ): any; + /** [Method] Adds behavior to an existing method that is executed after the original behavior of the function + * @param object Object The target object + * @param methodName String Name of the method to override + * @param fn Function Function with the new behavior. It will be called with the same arguments as the original method. The return value of this function will be the return value of the new method. + * @param scope Object The scope to execute the interceptor function. Defaults to the object. + */ + static interceptAfter( object?:any, methodName?:string, fn?:any, scope?:any ): any; + /** [Method] Adds behavior to an existing method that is executed before the original behavior of the function + * @param object Object The target object + * @param methodName String Name of the method to override + * @param fn Function Function with the new behavior. It will be called with the same arguments as the original method. The return value of this function will be the return value of the new method. + * @param scope Object The scope to execute the interceptor function. Defaults to the object. + */ + static interceptBefore( object?:any, methodName?:string, fn?:any, scope?:any ): any; + /** [Method] Create a new function from the provided fn the arguments of which are pre set to args + * @param fn Function The original function + * @param args Array The arguments to pass to new callback + * @param scope Object The scope (this reference) in which the function is executed. + */ + static pass( fn?:any, args?:any[], scope?:any ): any; + } +} +declare module Ext.util { + export interface IFunctions { + } + export class Functions { + /** [Method] Create an alias to the provided method property with name methodName of object + * @param object any + * @param methodName String + */ + static alias( object?:any, methodName?:string ): any; + /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the + * @param fn any The function to delegate. + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + static bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; + static bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; + static bind( fn?:any, scope?:any, args?:any[], appendArgs?:number ): any; + /** [Method] Create a clone of the provided method + * @param method Function + */ + static clone( method?:any ): any; + /** [Method] Creates a delegate function optionally with a bound scope which when called buffers the execution of the passed fu + * @param fn Function The function to invoke on a buffered timer. + * @param buffer Number The number of milliseconds by which to buffer the invocation of the function. + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope specified by the caller. + * @param args Array Override arguments for the call. Defaults to the arguments passed by the caller. + */ + static createBuffered( fn?:any, buffer?:number, scope?:any, args?:any[] ): any; + /** [Method] Creates a delegate callback which when called executes after a specific delay + * @param fn any The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. + * @param delay any The number of milliseconds to defer execution by whenever called. + * @param scope any The scope (this reference) used by the function at execution time. + * @param args any Override arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. + */ + static createDelayed( fn?:any, delay?:any, scope?:any, args?:any, appendArgs?:any ): any; + static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:bool ): any; + static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:number ): any; + /** [Method] Creates an interceptor function + * @param origFn Function The original function. + * @param newFn Function The function to call before the original + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope in which the original function is called or the browser window. + * @param returnValue Object The value to return if the passed function return false. + */ + static createInterceptor( origFn?:any, newFn?:any, scope?:any, returnValue?:any ): any; + /** [Method] Create a combined function call sequence of the original function the passed function + * @param originalFn Function The original function. + * @param newFn Function The function to sequence + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope in which the original function is called or the default global environment object (usually the browser window). + */ + static createSequence( originalFn?:any, newFn?:any, scope?:any ): any; + /** [Method] Creates a throttled version of the passed function which when called repeatedly and rapidly invokes the passed func + * @param fn Function The function to execute at a regular time interval. + * @param interval Number The interval in milliseconds on which the passed function is executed. + * @param scope Object The scope (this reference) in which the passed function is executed. If omitted, defaults to the scope specified by the caller. + */ + static createThrottled( fn?:any, interval?:number, scope?:any ): any; + /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope + * @param fn any The function to defer. + * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + static defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; + static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; + static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:number ): number; + /** [Method] A very commonly used method throughout the framework + * @param setter Function + */ + static flexSetter( setter?:any ): any; + /** [Method] Adds behavior to an existing method that is executed after the original behavior of the function + * @param object Object The target object + * @param methodName String Name of the method to override + * @param fn Function Function with the new behavior. It will be called with the same arguments as the original method. The return value of this function will be the return value of the new method. + * @param scope Object The scope to execute the interceptor function. Defaults to the object. + */ + static interceptAfter( object?:any, methodName?:string, fn?:any, scope?:any ): any; + /** [Method] Adds behavior to an existing method that is executed before the original behavior of the function + * @param object Object The target object + * @param methodName String Name of the method to override + * @param fn Function Function with the new behavior. It will be called with the same arguments as the original method. The return value of this function will be the return value of the new method. + * @param scope Object The scope to execute the interceptor function. Defaults to the object. + */ + static interceptBefore( object?:any, methodName?:string, fn?:any, scope?:any ): any; + /** [Method] Create a new function from the provided fn the arguments of which are pre set to args + * @param fn Function The original function + * @param args Array The arguments to pass to new callback + * @param scope Object The scope (this reference) in which the function is executed. + */ + static pass( fn?:any, args?:any[], scope?:any ): any; + } +} +declare module Ext.fx { + export interface IAnim extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) Used in conjunction with iterations to reverse the animation each time an iteration completes. ... */ + alternate?: bool; + /** [Config Option] (Function) */ + callback?: any; + /** [Config Option] (Number) Time to delay before starting the animation. ... */ + delay?: number; + /** [Config Option] (Number) Time in milliseconds for a single animation to last. ... */ + duration?: number; + /** [Config Option] (Boolean) Currently only for Component Animation: Only set a component's outer element size bypassing layouts. ... */ + dynamic?: bool; + /** [Config Option] (String) This describes how the intermediate values used during a transition will be calculated. ... */ + easing?: string; + /** [Config Option] (Object) An object containing property/value pairs for the beginning of the animation. ... */ + from?: any; + /** [Config Option] (Number) Number of times to execute the animation. ... */ + iterations?: number; + /** [Config Option] (Object) Animation keyframes follow the CSS3 Animation configuration pattern. ... */ + keyframes?: any; + /** [Config Option] (Boolean) Run the animation from the end to the beginning Defaults to false. ... */ + reverse?: bool; + /** [Config Option] (Function) */ + scope?: any; + /** [Config Option] (String/Object) The Ext.fx.target.Target to apply the animation to. ... */ + target?: any; + /** [Config Option] (Object) An object containing property/value pairs for the end of the animation. ... */ + to?: any; + /** [Property] (Number) Current iteration the animation is running. ... */ + currentIteration?: number; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Anim, or subclass thereof. ... */ + isAnimation?: bool; + /** [Property] (Boolean) Flag to determine if the animation is paused. ... */ + paused?: bool; + /** [Property] (Boolean) Flag to determine if the animation has started ... */ + running?: bool; + /** [Property] (Date) Starting time of the animation. ... */ + startTime?: any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fire afteranimate event and end the animation */ + end?(): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.fx { + export interface IAnimator extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Number) Time to delay before starting the animation. ... */ + delay?: number; + /** [Config Option] (Number) Time in milliseconds for the animation to last. ... */ + duration?: number; + /** [Config Option] (Boolean) Currently only for Component Animation: Only set a component's outer element size bypassing layouts. ... */ + dynamic?: bool; + /** [Config Option] (String) This describes how the intermediate values used during a transition will be calculated. ... */ + easing?: string; + /** [Config Option] (Number) Number of times to execute the animation. ... */ + iterations?: number; + /** [Config Option] (Object) Animation keyframes follow the CSS3 Animation configuration pattern. ... */ + keyframes?: any; + /** [Config Option] (Ext.fx.target.Target) The Ext.fx.target to apply the animation to. ... */ + target?: Ext.fx.target.ITarget; + /** [Property] (Number) Current iteration the animation is running. ... */ + currentIteration?: number; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Animator, or subclass thereof. ... */ + isAnimator?: bool; + /** [Property] (Number) Current keyframe step of the animation. ... */ + keyframeStep?: number; + /** [Property] (Boolean) Flag to determine if the animation is paused. ... */ + paused?: bool; + /** [Property] (Boolean) Flag to determine if the animation has started ... */ + running?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fire afteranimate event and end the animation */ + end?(): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.fx { + export interface ICubicBezier extends Ext.IBase { + } + export class CubicBezier { + } +} +declare module Ext.fx { + export interface IEasing { + } + export class Easing { + } +} +declare module Ext.fx { + export interface IManager extends Ext.IBase,Ext.fx.IQueue { + } + export class Manager { + /** [Method] End Definitions */ + constructor(); + /** [Method] Add an Anim to the manager + * @param anim Ext.fx.IAnim + */ + static addAnim( anim?:Ext.fx.IAnim ): void; + /** [Method] Remove an Anim from the manager + * @param anim Ext.fx.IAnim + */ + static removeAnim( anim?:Ext.fx.IAnim ): void; + } +} +declare module Ext.fx { + export interface IPropertyHandler extends Ext.IBase { + } +} +declare module Ext.fx { + export interface IQueue extends Ext.IBase { + } +} +declare module Ext.fx.target { + export interface IComponent extends Ext.fx.target.ITarget { + } +} +declare module Ext.fx.target { + export interface ICompositeElement extends Ext.fx.target.IElement { + /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + isComposite?: bool; + } +} +declare module Ext.fx.target { + export interface ICompositeElementCSS extends Ext.fx.target.ICompositeElement { + } +} +declare module Ext.fx.target { + export interface ICompositeSprite extends Ext.fx.target.ISprite { + } +} +declare module Ext.fx.target { + export interface IElement extends Ext.fx.target.ITarget { + } +} +declare module Ext.fx.target { + export interface IElementCSS extends Ext.fx.target.IElement { + } +} +declare module Ext.fx.target { + export interface ISprite extends Ext.fx.target.ITarget { + } +} +declare module Ext.fx.target { + export interface ITarget extends Ext.IBase { + } +} +declare module Ext.grid { + export interface ICellEditor extends Ext.IEditor { + /** [Config Option] (String) The position to align to (see Ext.util.Positionable.alignTo for more details). ... */ + alignment?: string; + /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + cls?: string; + /** [Config Option] (Boolean) False to keep the bound element visible while the editor is displayed ... */ + hideEl?: bool; + /** [Config Option] (Boolean/String) "sides" for sides/bottom only, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + shadow?: any; + } +} +declare module Ext.grid.column { + export interface IAction extends Ext.grid.column.IColumn { + /** [Config Option] (String) The alt text to use for the image element. ... */ + altText?: string; + /** [Config Option] (Boolean) If true, the action will not respond to click events, and will be displayed semi-opaque. ... */ + disabled?: bool; + /** [Config Option] (Function) A function which returns the CSS class to apply to the icon image. ... */ + getClass?: any; + /** [Config Option] (Function) A function which returns the tooltip string for any row. ... */ + getTip?: any; + /** [Config Option] (Function) A function called when the icon is clicked. ... */ + handler?: any; + /** [Config Option] (String) The URL of an image to display as the clickable element in the column. ... */ + icon?: string; + /** [Config Option] (String) A CSS class to apply to the icon image. ... */ + iconCls?: string; + /** [Config Option] (Object[]) An Array which may contain multiple icon definitions, each element of which may contain: ... */ + items?: Object[]; + /** [Config Option] (String) Text to display in this column's menu item if no text was specified as a header. ... */ + menuText?: string; + /** [Config Option] (Object) The scope (this reference) in which the handler, getClass, isDisabled and getTip fuctions are executed. ... */ + scope?: any; + /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + sortable?: bool; + /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + stopSelection?: bool; + /** [Config Option] (String) A tooltip message to be displayed on hover. ... */ + tooltip?: string; + /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified + * @param fn Function The function to call + * @param scope Object The scope of the function (defaults to current component) + * @param args Array The args to call the function with. The current component always passed as the last argument. + */ + cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; + /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac */ + defaultRenderer?(): void; + /** [Method] Disables this ActionColumn s action at the specified index + * @param index Number + * @param silent Boolean + */ + disableAction?( index?:number, silent?:bool ): void; + disableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; + /** [Method] Enables this ActionColumn s action at the specified index + * @param index Number + * @param silent Boolean + */ + enableAction?( index?:number, silent?:bool ): void; + enableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; + /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M + * @param deep Object + */ + getRefItems?( deep?:any ): void; + } +} +declare module Ext.grid { + export interface IActionColumn extends Ext.grid.column.IColumn { + /** [Config Option] (String) The alt text to use for the image element. ... */ + altText?: string; + /** [Config Option] (Boolean) If true, the action will not respond to click events, and will be displayed semi-opaque. ... */ + disabled?: bool; + /** [Config Option] (Function) A function which returns the CSS class to apply to the icon image. ... */ + getClass?: any; + /** [Config Option] (Function) A function which returns the tooltip string for any row. ... */ + getTip?: any; + /** [Config Option] (Function) A function called when the icon is clicked. ... */ + handler?: any; + /** [Config Option] (String) The URL of an image to display as the clickable element in the column. ... */ + icon?: string; + /** [Config Option] (String) A CSS class to apply to the icon image. ... */ + iconCls?: string; + /** [Config Option] (Object[]) An Array which may contain multiple icon definitions, each element of which may contain: ... */ + items?: Object[]; + /** [Config Option] (String) Text to display in this column's menu item if no text was specified as a header. ... */ + menuText?: string; + /** [Config Option] (Object) The scope (this reference) in which the handler, getClass, isDisabled and getTip fuctions are executed. ... */ + scope?: any; + /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + sortable?: bool; + /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + stopSelection?: bool; + /** [Config Option] (String) A tooltip message to be displayed on hover. ... */ + tooltip?: string; + /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified + * @param fn Function The function to call + * @param scope Object The scope of the function (defaults to current component) + * @param args Array The args to call the function with. The current component always passed as the last argument. + */ + cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; + /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac */ + defaultRenderer?(): void; + /** [Method] Disables this ActionColumn s action at the specified index + * @param index Number + * @param silent Boolean + */ + disableAction?( index?:number, silent?:bool ): void; + disableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; + /** [Method] Enables this ActionColumn s action at the specified index + * @param index Number + * @param silent Boolean + */ + enableAction?( index?:number, silent?:bool ): void; + enableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; + /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M + * @param deep Object + */ + getRefItems?( deep?:any ): void; + } +} +declare module Ext.grid.column { + export interface IBoolean extends Ext.grid.column.IColumn { + /** [Config Option] (String) The string returned by the renderer when the column value is falsey (but not undefined). ... */ + falseText?: string; + /** [Config Option] (String) The string returned by the renderer when the column value is not falsey. ... */ + trueText?: string; + /** [Config Option] (String) The string returned by the renderer when the column value is undefined. ... */ + undefinedText?: string; + } +} +declare module Ext.grid { + export interface IBooleanColumn extends Ext.grid.column.IColumn { + /** [Config Option] (String) The string returned by the renderer when the column value is falsey (but not undefined). ... */ + falseText?: string; + /** [Config Option] (String) The string returned by the renderer when the column value is not falsey. ... */ + trueText?: string; + /** [Config Option] (String) The string returned by the renderer when the column value is undefined. ... */ + undefinedText?: string; + } +} +declare module Ext.grid.column { + export interface ICheckColumn extends Ext.grid.column.IColumn { + /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + stopSelection?: bool; + /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + tdCls?: string; + /** [Method] Disables this CheckColumn + * @param silent Boolean + */ + onDisable?( silent?:bool ): void; + /** [Method] Enables this CheckColumn + * @param silent Boolean + */ + onEnable?( silent?:bool ): void; + } +} +declare module Ext.ux { + export interface ICheckColumn extends Ext.grid.column.IColumn { + /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + stopSelection?: bool; + /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + tdCls?: string; + /** [Method] Disables this CheckColumn + * @param silent Boolean + */ + onDisable?( silent?:bool ): void; + /** [Method] Enables this CheckColumn + * @param silent Boolean + */ + onEnable?( silent?:bool ): void; + } +} +declare module Ext.grid.column { + export interface IColumn extends Ext.grid.header.IContainer { + /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ + align?: string; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Object[]) An optional array of sub-column definitions. ... */ + columns?: Object[]; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ + dataIndex?: string; + /** [Config Option] (Boolean) So that when removing from group headers which are then empty and then get destroyed, there's no child DOM left True... */ + detachOnRemove?: bool; + /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ + draggable?: bool; + /** [Config Option] (Function) A renderer to be used in conjunction with RowEditing. ... */ + editRenderer?: any; + /** [Config Option] (Object/String) An optional xtype or config object for a Field to use for editing. ... */ + editor?: any; + /** [Config Option] (String) The text to diplay in empty cells (cells with a value of undefined, null, or ''). ... */ + emptyCellText?: string; + /** [Config Option] (Object/String) Alias for editor. ... */ + field?: any; + /** [Config Option] (Boolean) True to prevent the column from being resizable. ... */ + fixed?: bool; + /** [Config Option] (Boolean) If the grid uses a Ext.grid.feature.Grouping, this option may be used to disable the header menu item to group by the... */ + groupable?: bool; + /** [Config Option] (String) The header text. ... */ + header?: string; + /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + hideable?: bool; + /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + lockable?: bool; + /** [Config Option] (Boolean) True to lock this column in place. ... */ + locked?: bool; + /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ + menuDisabled?: bool; + /** [Config Option] (String) The text to render in the column visibility selection menu for this column. ... */ + menuText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Function/String) A renderer is an 'interceptor' method which can be used to transform data (value, appearance, etc.) before it is rend... */ + renderer?: any; + /** [Config Option] (Boolean) False to prevent the column from being resizable. ... */ + resizable?: bool; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + sortable?: bool; + /** [Config Option] (String) An identifier which identifies this column uniquely within the owning grid's state. ... */ + stateId?: string; + /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + tdCls?: string; + /** [Config Option] (String) The header text to be used as innerHTML (html tags are accepted) to display in the Grid. ... */ + text?: string; + /** [Config Option] (String) */ + tooltip?: string; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Property] (Boolean) Set in this class to identify, at runtime, instances which are not instances of the HeaderContainer base class, but a... */ + isHeader?: bool; + /** [Property] (Ext.Element) */ + textEl?: Ext.IElement; + /** [Property] (Ext.Element) */ + triggerEl?: Ext.IElement; + /** [Method] private Inform the header container about the resize Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Sizes this Column to fit the max content width + * @param The Ext.grid.column.IColumn header (or index of header) to auto size. + */ + autoSize?( The?:Ext.grid.column.IColumn ): void; + autoSize?( The?:number ): void; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + /** [Method] Retrieves the editing field for editing associated with this header + * @param record Object The Model instance being edited. + * @param defaultField Object An object representing a default field to be created + */ + getEditor?( record?:any, defaultField?:any ): any; + /** [Method] Returns the index of this column only if this column is a base level Column */ + getIndex?(): number; + /** [Method] Returns the parameter to sort upon when sorting this header */ + getSortParam?(): string; + /** [Method] Returns the index of this column in the list of visible columns only if this column is a base level Column */ + getVisibleIndex?(): number; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Determines whether the UI should be allowed to offer an option to hide this column */ + isHideable?(): void; + /** [Method] Determines whether the UI should be allowed to offer an option to lock or unlock this column */ + isLockable?(): void; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Sets the form field to be used for editing + * @param field Object An object representing a field to be created. If no xtype is specified a 'textfield' is assumed. + */ + setEditor?( field?:any ): void; + /** [Method] Sets the header text for this Column + * @param text String The header to display on this Column. + */ + setText?( text?:string ): void; + /** [Method] Shows this Component rendering it first if autoRender or floating are true + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + show?( animateTarget?:any, callback?:any, scope?:any ): any; + show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + } +} +declare module Ext.grid { + export interface IColumn extends Ext.grid.header.IContainer { + /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ + align?: string; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Object[]) An optional array of sub-column definitions. ... */ + columns?: Object[]; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ + dataIndex?: string; + /** [Config Option] (Boolean) So that when removing from group headers which are then empty and then get destroyed, there's no child DOM left True... */ + detachOnRemove?: bool; + /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ + draggable?: bool; + /** [Config Option] (Function) A renderer to be used in conjunction with RowEditing. ... */ + editRenderer?: any; + /** [Config Option] (Object/String) An optional xtype or config object for a Field to use for editing. ... */ + editor?: any; + /** [Config Option] (String) The text to diplay in empty cells (cells with a value of undefined, null, or ''). ... */ + emptyCellText?: string; + /** [Config Option] (Object/String) Alias for editor. ... */ + field?: any; + /** [Config Option] (Boolean) True to prevent the column from being resizable. ... */ + fixed?: bool; + /** [Config Option] (Boolean) If the grid uses a Ext.grid.feature.Grouping, this option may be used to disable the header menu item to group by the... */ + groupable?: bool; + /** [Config Option] (String) The header text. ... */ + header?: string; + /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + hideable?: bool; + /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + lockable?: bool; + /** [Config Option] (Boolean) True to lock this column in place. ... */ + locked?: bool; + /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ + menuDisabled?: bool; + /** [Config Option] (String) The text to render in the column visibility selection menu for this column. ... */ + menuText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Function/String) A renderer is an 'interceptor' method which can be used to transform data (value, appearance, etc.) before it is rend... */ + renderer?: any; + /** [Config Option] (Boolean) False to prevent the column from being resizable. ... */ + resizable?: bool; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + sortable?: bool; + /** [Config Option] (String) An identifier which identifies this column uniquely within the owning grid's state. ... */ + stateId?: string; + /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + tdCls?: string; + /** [Config Option] (String) The header text to be used as innerHTML (html tags are accepted) to display in the Grid. ... */ + text?: string; + /** [Config Option] (String) */ + tooltip?: string; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Property] (Boolean) Set in this class to identify, at runtime, instances which are not instances of the HeaderContainer base class, but a... */ + isHeader?: bool; + /** [Property] (Ext.Element) */ + textEl?: Ext.IElement; + /** [Property] (Ext.Element) */ + triggerEl?: Ext.IElement; + /** [Method] private Inform the header container about the resize Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Sizes this Column to fit the max content width + * @param The Ext.grid.column.IColumn header (or index of header) to auto size. + */ + autoSize?( The?:Ext.grid.column.IColumn ): void; + autoSize?( The?:number ): void; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + /** [Method] Retrieves the editing field for editing associated with this header + * @param record Object The Model instance being edited. + * @param defaultField Object An object representing a default field to be created + */ + getEditor?( record?:any, defaultField?:any ): any; + /** [Method] Returns the index of this column only if this column is a base level Column */ + getIndex?(): number; + /** [Method] Returns the parameter to sort upon when sorting this header */ + getSortParam?(): string; + /** [Method] Returns the index of this column in the list of visible columns only if this column is a base level Column */ + getVisibleIndex?(): number; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Determines whether the UI should be allowed to offer an option to hide this column */ + isHideable?(): void; + /** [Method] Determines whether the UI should be allowed to offer an option to lock or unlock this column */ + isLockable?(): void; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Sets the form field to be used for editing + * @param field Object An object representing a field to be created. If no xtype is specified a 'textfield' is assumed. + */ + setEditor?( field?:any ): void; + /** [Method] Sets the header text for this Column + * @param text String The header to display on this Column. + */ + setText?( text?:string ): void; + /** [Method] Shows this Component rendering it first if autoRender or floating are true + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + show?( animateTarget?:any, callback?:any, scope?:any ): any; + show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + } +} +declare module Ext.grid.column { + export interface IDate extends Ext.grid.column.IColumn { + /** [Config Option] (String) A formatting string as used by Ext.Date.format to format a Date for this Column. ... */ + format?: string; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + } +} +declare module Ext.grid { + export interface IDateColumn extends Ext.grid.column.IColumn { + /** [Config Option] (String) A formatting string as used by Ext.Date.format to format a Date for this Column. ... */ + format?: string; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + } +} +declare module Ext.grid.column { + export interface INumber extends Ext.grid.column.IColumn { + /** [Config Option] (String) A formatting string as used by Ext.util.Format.number to format a numeric value for this Column. ... */ + format?: string; + } +} +declare module Ext.grid { + export interface INumberColumn extends Ext.grid.column.IColumn { + /** [Config Option] (String) A formatting string as used by Ext.util.Format.number to format a numeric value for this Column. ... */ + format?: string; + } +} +declare module Ext.grid.column { + export interface ITemplate extends Ext.grid.column.IColumn { + /** [Config Option] (String/Ext.XTemplate) */ + tpl?: any; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + } +} +declare module Ext.grid { + export interface ITemplateColumn extends Ext.grid.column.IColumn { + /** [Config Option] (String/Ext.XTemplate) */ + tpl?: any; + /** [Method] When defined this will take precedence over the renderer config */ + defaultRenderer?(): void; + } +} +declare module Ext.grid { + export interface IColumnComponentLayout extends Ext.layout.component.IAuto { + /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + setWidthInDom?: bool; + } +} +declare module Ext.grid { + export interface IColumnLayout extends Ext.layout.container.IHBox { + /** [Method] Collect the height of the table of data upon layout begin In addition to work done by our base classes containers b + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Set up padding in items This method if implemented is called after all layouts have completed + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + } +} +declare module Ext.grid.feature { + export interface IAbstractSummary extends Ext.grid.feature.IFeature { + /** [Config Option] (String) The name of the property which contains the Array of summary objects. ... */ + remoteRoot?: string; + /** [Config Option] (Boolean) True to show the summary row. ... */ + showSummaryRow?: bool; + /** [Method] Toggle whether or not to show the summary row + * @param visible Boolean True to show the summary row + */ + toggleSummaryRow?( visible?:bool ): void; + } +} +declare module Ext.grid.feature { + export interface IFeature extends Ext.util.IObservable { + /** [Property] (Boolean) True when feature is disabled. ... */ + disabled?: bool; + /** [Property] (String) Prefix to use when firing events on the view. ... */ + eventPrefix?: string; + /** [Property] (String) */ + eventSelector?: string; + /** [Property] (Ext.grid.Panel) */ + grid?: Ext.grid.IPanel; + /** [Property] (Boolean) Most features will expose additional events, some may not and will need to change this to false. ... */ + hasFeatureEvent?: bool; + /** [Property] (Ext.view.Table) */ + view?: Ext.view.ITable; + /** [Method] Disables the feature */ + disable?(): void; + /** [Method] Enables the feature */ + enable?(): void; + /** [Method] Abstract method to be overriden when a feature should add additional arguments to its event signature + * @param eventName Object + * @param view Object + * @param featureTarget Object + * @param e Object + */ + getFireEventArgs?( eventName?:any, view?:any, featureTarget?:any, e?:any ): void; + } +} +declare module Ext.grid.feature { + export interface IGrouping extends Ext.grid.feature.IFeature,Ext.grid.feature.IAbstractSummary { + /** [Config Option] (Boolean) Set to false to disable collapsing groups from the UI. ... */ + collapsible?: bool; + /** [Config Option] (Number) Number of pixels to indent per grouping level ... */ + depthToIndent?: number; + /** [Config Option] (Boolean) True to enable the grouping control in the header menu. ... */ + enableGroupingMenu?: bool; + /** [Config Option] (Boolean) True to allow the user to turn off grouping. ... */ + enableNoGroups?: bool; + /** [Config Option] (String) Text displayed in the grid header menu for grouping by header. ... */ + groupByText?: string; + /** [Config Option] (String/Array/Ext.Template) A string Template snippet, an array of strings (optionally followed by an object containing Template methods) to be u... */ + groupHeaderTpl?: any; + /** [Config Option] (Boolean) True to hide the header that is currently grouped. ... */ + hideGroupedHeader?: bool; + /** [Config Option] (String) Text displayed in the grid header for enabling/disabling grouping. ... */ + showGroupsText?: string; + /** [Config Option] (Boolean) True to show the summary row. ... */ + showSummaryRow?: bool; + /** [Config Option] (Boolean) True to start all groups collapsed. ... */ + startCollapsed?: bool; + /** [Property] (String) Prefix to use when firing events on the view. ... */ + eventPrefix?: string; + /** [Property] (String) Selector used to determine when to fire the event with the eventPrefix. ... */ + eventSelector?: string; + /** [Method] Collapse a group + * @param groupName String The group name + * @param focus Boolean Pass true to focus the group after expand. + */ + collapse?( groupName?:string, focus?:bool ): void; + /** [Method] Collapse all groups */ + collapseAll?(): void; + /** [Method] Disables the feature */ + disable?(): void; + /** [Method] Enables the feature */ + enable?(): void; + /** [Method] Expand a group + * @param groupName String The group name + * @param focus Boolean Pass true to focus the group after expand. + */ + expand?( groupName?:string, focus?:bool ): void; + /** [Method] Expand all groups */ + expandAll?(): void; + /** [Method] Abstract method to be overriden when a feature should add additional arguments to its event signature + * @param eventName Object + * @param view Object + * @param featureTarget Object + * @param e Object + */ + getFireEventArgs?( eventName?:any, view?:any, featureTarget?:any, e?:any ): void; + /** [Method] Returns the group data object for the group to which the passed record belongs if the Store is grouped + * @param record Ext.data.IModel The record for which to return group information. + */ + getRecordGroup?( record?:Ext.data.IModel ): any; + /** [Method] Returns true if the named group is expanded + * @param groupName String The group name as returned from getGroupString. This is usually the value of the groupField. + */ + isExpanded?( groupName?:string ): bool; + /** [Method] Toggle whether or not to show the summary row + * @param visible Boolean True to show the summary row + */ + toggleSummaryRow?( visible?:bool ): void; + } +} +declare module Ext.grid.feature { + export interface IGroupingSummary extends Ext.grid.feature.IGrouping { + /** [Config Option] (Boolean) True to show the summary row. ... */ + showSummaryRow?: bool; + } +} +declare module Ext.grid.feature { + export interface IGroupStore extends Ext.util.IObservable { + } +} +declare module Ext.grid.feature { + export interface IRowBody extends Ext.grid.feature.IFeature { + /** [Property] (String) Prefix to use when firing events on the view. ... */ + eventPrefix?: string; + /** [Property] (String) Selector used to determine when to fire the event with the eventPrefix. ... */ + eventSelector?: string; + /** [Method] Provides additional data to the prepareData call within the grid view + * @param data Object The data for this particular record. + * @param idx Number The row index for this record. + * @param record Ext.data.IModel The record instance + * @param orig Object The original result from the prepareData call to massage. + */ + getAdditionalData?( data?:any, idx?:number, record?:Ext.data.IModel, orig?:any ): void; + } +} +declare module Ext.grid.feature { + export interface IRowWrap extends Ext.grid.feature.IFeature { + /** [Property] (Boolean) turn off feature events. ... */ + hasFeatureEvent?: bool; + } +} +declare module Ext.grid.feature { + export interface ISummary extends Ext.grid.feature.IAbstractSummary { + /** [Config Option] (String) */ + dock?: string; + } +} +declare module Ext.grid.header { + export interface IContainer extends Ext.container.IContainer { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Number) Width of the header if no width or flex is specified. ... */ + defaultWidth?: number; + /** [Config Option] (Boolean) True to move any component to the detachedBody when the component is removed from this container. ... */ + detachOnRemove?: bool; + /** [Config Option] (Boolean) False to disable column hiding within this grid. ... */ + enableColumnHide?: bool; + /** [Config Option] (Boolean) Specify as true to constrain column dragging so that a column cannot be dragged into or out of this column. ... */ + sealed?: bool; + /** [Config Option] (Boolean) Provides the default sortable state for all Headers within this HeaderContainer. ... */ + sortable?: bool; + /** [Config Option] (Number) HeaderContainer overrides the default weight of 0 for all docked items to 100. ... */ + weight?: number; + /** [Property] (Boolean) */ + isGroupHeader?: bool; + /** [Method] Returns the number of grid columns descended from this HeaderContainer */ + getColumnCount?(): void; + /** [Method] Returns an array of menu CheckItems corresponding to all immediate children of the passed Container which have been c + * @param headerContainer Object + */ + getColumnMenu?( headerContainer?:any ): void; + /** [Method] Gets the full width of all columns that are visible */ + getFullWidth?(): void; + /** [Method] Returns an array of all columns which appear in the grid s View + * @param inResult Object + * @param hiddenAncestor Object + */ + getGridColumns?( inResult?:any, hiddenAncestor?:any ): any[]; + /** [Method] Get a leaf level header by index regardless of what the nesting structure is + * @param index Number The column index for which to retrieve the column. + */ + getHeaderAtIndex?( index?:number ): void; + /** [Method] Returns the index of a leaf level header regardless of what the nesting structure is + * @param header Ext.grid.column.IColumn The header to find the index of + */ + getHeaderIndex?( header?:Ext.grid.column.IColumn ): number; + /** [Method] Returns an array of menu items to be placed into the shared menu across all headers in this header container */ + getMenuItems?(): any[]; + /** [Method] Returns an array of the visible columns in the grid */ + getVisibleGridColumns?(): any[]; + /** [Method] When passed a column index returns the closet visible column to that + * @param index Number Position at which to find the closest visible column. + */ + getVisibleHeaderClosestToIndex?( index?:number ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Determines whether this Component is the root of a layout */ + isLayoutRoot?(): void; + /** [Method] Invalidate column cache on add We cannot refresh the View on every add because this method is called when the HeaderD + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Invalidate column cache on remove We cannot refresh the View on every remove because this method is called when the H + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + } +} +declare module Ext.grid.header { + export interface IDragZone extends Ext.dd.IDragZone { + /** [Method] Called when a mousedown occurs in this container + * @param e Event The mouse down event + */ + getDragData?( e?:Event ): any; + /** [Method] Called before a repair of an invalid drop to get the XY to animate to + * @param e Event The mouse up event + */ + getRepairXY?( e?:Event ): number[]; + /** [Method] An empty function by default but provided so that you can perform a custom action before the initial drag event begi + * @param data Object An object containing arbitrary data to be shared with drop targets + * @param e Event The event object + */ + onBeforeDrag?( data?:any, e?:Event ): bool; + /** [Method] Abstract method called when this item is dropped on another DragDrop obj + * @param e Event the mouseup event + * @param id String In POINT mode, the element id this was dropped on. In INTERSECT mode, an array of dd items this was dropped on. + */ + onDragDrop?( e?:Event, id?:string ): void; + onDragDrop?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; + /** [Method] Called once drag threshold has been reached to initialize the proxy element + * @param x Number The x position of the click on the dragged object + * @param y Number The y position of the click on the dragged object + */ + onInitDrag?( x?:number, y?:number ): bool; + } +} +declare module Ext.grid.header { + export interface IDropZone extends Ext.dd.IDropZone { + /** [Method] Returns a custom data object associated with the DOM node that is the target of the event + * @param e Event The event + */ + getTargetFromEvent?( e?:Event ): any; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dragged out of the drop node without dropping + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + } +} +declare module Ext.grid.locking { + export interface IHeaderContainer extends Ext.grid.header.IContainer { + /** [Method] This is the function which all other column access methods are based upon Return the full column set for the whole Lo + * @param inResult Object + * @param hiddenAncestor Object + */ + getGridColumns?( inResult?:any, hiddenAncestor?:any ): any[]; + } +} +declare module Ext.grid.locking { + export interface ILockable extends Ext.IBase { + /** [Config Option] (Object) */ + lockedGridConfig?: any; + /** [Config Option] (Object) A view configuration to be applied to the locked side of the grid. ... */ + lockedViewConfig?: any; + /** [Config Option] (Object) */ + normalGridConfig?: any; + /** [Config Option] (Object) A view configuration to be applied to the normal/unlocked side of the grid. ... */ + normalViewConfig?: any; + /** [Config Option] (Number) Number of pixels to scroll when scrolling the locked section with mousewheel. ... */ + scrollDelta?: number; + /** [Config Option] (String) The xtype of the subgrid to specify. ... */ + subGridXType?: string; + /** [Config Option] (Boolean) Synchronize rowHeight between the normal and locked grid view. ... */ + syncRowHeight?: bool; + /** [Method] Synchronizes the row heights between the locked and non locked portion of the grid for each row */ + syncRowHeights?(): void; + } +} +declare module Ext.grid { + export interface ILockable extends Ext.IBase { + /** [Config Option] (Object) */ + lockedGridConfig?: any; + /** [Config Option] (Object) A view configuration to be applied to the locked side of the grid. ... */ + lockedViewConfig?: any; + /** [Config Option] (Object) */ + normalGridConfig?: any; + /** [Config Option] (Object) A view configuration to be applied to the normal/unlocked side of the grid. ... */ + normalViewConfig?: any; + /** [Config Option] (Number) Number of pixels to scroll when scrolling the locked section with mousewheel. ... */ + scrollDelta?: number; + /** [Config Option] (String) The xtype of the subgrid to specify. ... */ + subGridXType?: string; + /** [Config Option] (Boolean) Synchronize rowHeight between the normal and locked grid view. ... */ + syncRowHeight?: bool; + /** [Method] Synchronizes the row heights between the locked and non locked portion of the grid for each row */ + syncRowHeights?(): void; + } +} +declare module Ext.grid.locking { + export interface IView extends Ext.IBase,Ext.util.IObservable { + /** [Property] (Boolean) true in this class to identify an object as an instantiated LockingView, or subclass thereof. ... */ + isLockingView?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.grid { + export interface ILockingView extends Ext.IBase,Ext.util.IObservable { + /** [Property] (Boolean) true in this class to identify an object as an instantiated LockingView, or subclass thereof. ... */ + isLockingView?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.grid { + export interface IPanel extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + columns?: any; + /** [Config Option] (Boolean) False to remove row line styling ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.IStore The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + } +} +declare module Ext { + export interface IListView extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + columns?: any; + /** [Config Option] (Boolean) False to remove row line styling ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.IStore The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + } +} +declare module Ext.grid { + export interface IGridPanel extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + columns?: any; + /** [Config Option] (Boolean) False to remove row line styling ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.IStore The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + } +} +declare module Ext.list { + export interface IListView extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + columns?: any; + /** [Config Option] (Boolean) False to remove row line styling ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.IStore The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + } +} +declare module Ext.grid.plugin { + export interface IBufferedRenderer extends Ext.IAbstractPlugin { + /** [Config Option] (Number) The number of extra rows to render on the leading side of scrolling outside the numFromEdge buffer as scrolling proce... */ + leadingBufferZone?: number; + /** [Config Option] (Number) The zone which causes new rows to be appended to the view. ... */ + numFromEdge?: number; + /** [Config Option] (Number) ... */ + percentageFromEdge?: number; + /** [Config Option] (Number) This is the time in milliseconds to buffer load requests when scrolling the PagingScrollbar. ... */ + scrollToLoadBuffer?: number; + /** [Config Option] (Boolean) By default, on detection of a scroll event which brings the end of the rendered table within numFromEdge rows of the ... */ + synchronousRender?: bool; + /** [Config Option] (Number) The number of extra rows to render on the trailing side of scrolling outside the numFromEdge buffer as scrolling proc... */ + trailingBufferZone?: number; + /** [Config Option] (Boolean) Configure as true if the row heights are not all the same height as the first row. ... */ + variableRowHeight?: bool; + /** [Property] (Number) Current pixel scroll position of the associated View. ... */ + position?: number; + /** [Method] The destroy method is invoked by the owning Component at the time the Component is being destroyed */ + destroy?(): void; + /** [Method] Initialize this as a plugin The init method is invoked after initComponent method has been run for the client Compon + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + /** [Method] Scrolls to and optionlly selects the specified row index in the total dataset + * @param recordIdx Number The zero-based position in the dataset to scroll to. + * @param doSelect Boolean Pass as true to select the specified row. + * @param callback Function A function to call when the row has been scrolled to. + * @param scope Object The scope (this reference) in which to execute the callback. Defaults to this BufferedRenderer. + */ + scrollTo?( recordIdx?:number, doSelect?:bool, callback?:any, scope?:any ): void; + } +} +declare module Ext.grid.plugin { + export interface ICellEditing extends Ext.grid.plugin.IEditing { + /** [Method] Cancels any active editing */ + cancelEdit?(): void; + /** [Method] Completes the edit if there is an active edit in progress */ + completeEdit?(): void; + /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited + * @param record any The Store data record which backs the row to be edited, or index of the record. + * @param columnHeader any The Column object defining the column to be edited, or index of the column. + */ + startEdit?( record?:any, columnHeader?:any ): any; + startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.grid.column.IColumn ): bool; + startEdit?( record?:number, columnHeader?:Ext.grid.column.IColumn ): bool; + startEdit?( record?:Ext.data.IModel, columnHeader?:number ): bool; + startEdit?( record?:number, columnHeader?:number ): bool; + /** [Method] Starts editing by position row column + * @param position Object A position with keys of row and column. + */ + startEditByPosition?( position?:any ): void; + } +} +declare module Ext.grid.plugin { + export interface IDragDrop extends Ext.IAbstractPlugin { + /** [Config Option] (Object/Boolean) true to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + containerScroll?: any; + /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + ddGroup?: string; + /** [Config Option] (String) The ddGroup to which the DragZone will belong. ... */ + dragGroup?: string; + /** [Config Option] (String) The text to show while dragging. ... */ + dragText?: string; + /** [Config Option] (String) The ddGroup to which the DropZone will belong. ... */ + dropGroup?: string; + /** [Config Option] (Boolean) false to disallow dragging items from the View. ... */ + enableDrag?: bool; + /** [Config Option] (Boolean) false to disallow the View from accepting drop gestures. ... */ + enableDrop?: bool; + /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ + disable?(): void; + /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ + enable?(): void; + /** [Method] The init method is invoked after initComponent method has been run for the client Component + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + } +} +declare module Ext.grid.plugin { + export interface IEditing extends Ext.IAbstractPlugin,Ext.util.IObservable { + /** [Config Option] (Number) The number of clicks on a grid required to display the editor. ... */ + clicksToEdit?: number; + /** [Config Option] (String) The event which triggers editing. ... */ + triggerEvent?: string; + /** [Property] (Boolean) */ + editing?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Template method called before editing begins + * @param context Object The current editing context + */ + beforeEdit?( context?:any ): bool; + /** [Method] Cancels any active edit that is in progress */ + cancelEdit?(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Completes the edit if there is an active edit in progress */ + completeEdit?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited + * @param record Ext.data.IModel The Store data record which backs the row to be edited, or index of the record in Store. + * @param columnHeader Ext.grid.column.IColumn The Column object defining the column to be edited, or index of the column. + */ + startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.grid.column.IColumn ): void; + startEdit?( record?:number, columnHeader?:Ext.grid.column.IColumn ): void; + startEdit?( record?:Ext.data.IModel, columnHeader?:number ): void; + startEdit?( record?:number, columnHeader?:number ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.grid.plugin { + export interface IHeaderReorderer extends Ext.IAbstractPlugin { + /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ + disable?(): void; + /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ + enable?(): void; + /** [Method] The init method is invoked after initComponent method has been run for the client Component + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + } +} +declare module Ext.grid.plugin { + export interface IHeaderResizer extends Ext.IAbstractPlugin { + /** [Config Option] (Boolean) True to resize on the fly rather than using a proxy marker. ... */ + dynamic?: bool; + /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ + disable?(): void; + /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ + enable?(): void; + /** [Method] Returns the value of dynamic */ + getDynamic?(): bool; + /** [Method] not using w and e resize bc we are only ever resizing one column wResizeCursor Ext isWebKit w resize col resi + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + /** [Method] Sets the value of dynamic + * @param dynamic Boolean + */ + setDynamic?( dynamic?:bool ): void; + } +} +declare module Ext.grid.plugin { + export interface IRowEditing extends Ext.grid.plugin.IEditing { + /** [Config Option] (Boolean) true to automatically cancel any pending changes when the row editor begins editing a new row. ... */ + autoCancel?: bool; + /** [Config Option] (Number) The number of clicks to move the row editor to a new row while it is visible and actively editing another row. ... */ + clicksToMoveEditor?: number; + /** [Config Option] (Boolean) True to show a tooltip that summarizes all validation errors present in the row editor. ... */ + errorSummary?: bool; + /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited + * @param record Ext.data.IModel The Store data record which backs the row to be edited. + * @param columnHeader Ext.data.IModel The Column object defining the column to be edited. + */ + startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.data.IModel ): bool; + } +} +declare module Ext.grid.plugin { + export interface IRowExpander extends Ext.IAbstractPlugin { + /** [Config Option] (Boolean) true to toggle a row between expanded/collapsed when double clicked (defaults to true). ... */ + expandOnDblClick?: bool; + /** [Config Option] (Boolean) true to toggle selected row(s) between expanded/collapsed when the enter key is pressed (defaults to true). ... */ + expandOnEnter?: bool; + /** [Config Option] (Boolean) true to select a row when clicking on the expander icon (defaults to false). ... */ + selectRowOnExpand?: bool; + /** [Method] The init method is invoked after initComponent method has been run for the client Component + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + } +} +declare module Ext.grid.property { + export interface IGrid extends Ext.grid.IPanel { + /** [Config Option] (Boolean) Adds column line styling ... */ + columnLines?: bool; + /** [Config Option] (Object) An object containing name/value pairs of custom editor type definitions that allow the grid to support additional typ... */ + customEditors?: any; + /** [Config Option] (Object) An object containing name/value pairs of custom renderer type definitions that allow the grid to support custom rende... */ + customRenderers?: any; + /** [Config Option] (Boolean) private config overrides False to disable column dragging within this grid. ... */ + enableColumnMove?: bool; + /** [Config Option] (Boolean) True to automatically infer the type based on the initial value passed for each field. ... */ + inferTypes?: bool; + /** [Config Option] (Number/String) Specify the width for the name column. ... */ + nameColumnWidth?: any; + /** [Config Option] (String) The name of the field from the property store to use as the property field name. ... */ + nameField?: string; + /** [Config Option] (Object) An object containing custom property name/display name pairs. ... */ + propertyNames?: any; + /** [Config Option] (Object) */ + source?: any; + /** [Config Option] (Object) This option allows various configurations to be set for each field in the property grid. ... */ + sourceConfig?: any; + /** [Config Option] (String) The name of the field from the property store to use as the value field name. ... */ + valueField?: string; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets the source data object containing the property data */ + getSource?(): any; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Removes a property from the grid + * @param prop String The name of the property to remove. + */ + removeProperty?( prop?:string ): void; + /** [Method] Sets the value of a property + * @param prop String The name of the property to set. + * @param value Object The value to test. + * @param create Boolean true to create the property if it doesn't already exist. + */ + setProperty?( prop?:string, value?:any, create?:bool ): void; + /** [Method] Sets the source data object containing the property data + * @param source Object The data object. + * @param sourceConfig Object A new object. If this argument is not passed the current configuration will be re-used. To reset the config, pass null or an empty object literal. + */ + setSource?( source?:any, sourceConfig?:any ): void; + } +} +declare module Ext.grid { + export interface IPropertyGrid extends Ext.grid.IPanel { + /** [Config Option] (Boolean) Adds column line styling ... */ + columnLines?: bool; + /** [Config Option] (Object) An object containing name/value pairs of custom editor type definitions that allow the grid to support additional typ... */ + customEditors?: any; + /** [Config Option] (Object) An object containing name/value pairs of custom renderer type definitions that allow the grid to support custom rende... */ + customRenderers?: any; + /** [Config Option] (Boolean) private config overrides False to disable column dragging within this grid. ... */ + enableColumnMove?: bool; + /** [Config Option] (Boolean) True to automatically infer the type based on the initial value passed for each field. ... */ + inferTypes?: bool; + /** [Config Option] (Number/String) Specify the width for the name column. ... */ + nameColumnWidth?: any; + /** [Config Option] (String) The name of the field from the property store to use as the property field name. ... */ + nameField?: string; + /** [Config Option] (Object) An object containing custom property name/display name pairs. ... */ + propertyNames?: any; + /** [Config Option] (Object) */ + source?: any; + /** [Config Option] (Object) This option allows various configurations to be set for each field in the property grid. ... */ + sourceConfig?: any; + /** [Config Option] (String) The name of the field from the property store to use as the value field name. ... */ + valueField?: string; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets the source data object containing the property data */ + getSource?(): any; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Removes a property from the grid + * @param prop String The name of the property to remove. + */ + removeProperty?( prop?:string ): void; + /** [Method] Sets the value of a property + * @param prop String The name of the property to set. + * @param value Object The value to test. + * @param create Boolean true to create the property if it doesn't already exist. + */ + setProperty?( prop?:string, value?:any, create?:bool ): void; + /** [Method] Sets the source data object containing the property data + * @param source Object The data object. + * @param sourceConfig Object A new object. If this argument is not passed the current configuration will be re-used. To reset the config, pass null or an empty object literal. + */ + setSource?( source?:any, sourceConfig?:any ): void; + } +} +declare module Ext.grid.property { + export interface IHeaderContainer extends Ext.grid.header.IContainer { + } +} +declare module Ext.grid { + export interface IPropertyColumnModel extends Ext.grid.header.IContainer { + } +} +declare module Ext.grid.property { + export interface IProperty extends Ext.data.IModel { + /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + idProperty?: any; + /** [Property] (Ext.util.MixedCollection) A Collection of the fields defined for this Model (including fields defined in superclasses) This is a collection of... */ + fields?: Ext.util.IMixedCollection; + } +} +declare module Ext { + export interface IPropGridProperty extends Ext.data.IModel { + /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + idProperty?: any; + /** [Property] (Ext.util.MixedCollection) A Collection of the fields defined for this Model (including fields defined in superclasses) This is a collection of... */ + fields?: Ext.util.IMixedCollection; + } +} +declare module Ext.grid.property { + export interface IStore extends Ext.data.IStore { + /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + sortOnLoad?: bool; + /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader Returns the proxy currently */ + getProxy?(): Ext.data.proxy.IProxy; + /** [Method] Should only be called by the grid */ + getSource?(): void; + /** [Method] Should only be called by the grid + * @param dataObject Object + */ + setSource?( dataObject?:any ): void; + } +} +declare module Ext.grid { + export interface IPropertyStore extends Ext.data.IStore { + /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + sortOnLoad?: bool; + /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader Returns the proxy currently */ + getProxy?(): Ext.data.proxy.IProxy; + /** [Method] Should only be called by the grid */ + getSource?(): void; + /** [Method] Should only be called by the grid + * @param dataObject Object + */ + setSource?( dataObject?:any ): void; + } +} +declare module Ext.grid { + export interface IRowEditor extends Ext.form.IPanel { + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String) Change the hideMode to offsets so that we get accurate measurements when the roweditor is hidden for laying out thing... */ + hideMode?: string; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Returns the x coordinate of this element reletive to its offsetParent */ + getLocalX?(): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Returns true if any fields in this form have changed from their original values */ + isDirty?(): bool; + /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad + * @param record Ext.data.IModel The record to load + */ + loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Start editing the specified grid at the specified position + * @param record Ext.data.IModel The Store data record which backs the row to be edited. + * @param columnHeader Ext.data.IModel The Column object defining the column to be edited. + */ + startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.data.IModel ): void; + } +} +declare module Ext.grid { + export interface IRowEditorButtons extends Ext.container.IContainer { + /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + frame?: bool; + /** [Method] Work round position absolute 100 width bug in IEQuirks Called by the layout system after the Component has been lai + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + } +} +declare module Ext.grid { + export interface IRowNumberer extends Ext.grid.column.IColumn { + /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ + align?: string; + /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + cls?: string; + /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ + dataIndex?: string; + /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ + draggable?: bool; + /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + hideable?: bool; + /** [Config Option] (Boolean) May not be moved from its preferred locked side when grid is enableLocking:true If the grid is configured with enabl... */ + lockable?: bool; + /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ + menuDisabled?: bool; + /** [Config Option] (Boolean) private False to prevent the column from being resizable. ... */ + resizable?: bool; + /** [Config Option] (String) Any valid text or HTML fragment to display in the header cell for the row number column. ... */ + text?: string; + /** [Config Option] (Number) The default width in pixels of the row number column. ... */ + width?: number; + } +} +declare module Ext.grid { + export interface IView extends Ext.view.ITable { + /** [Config Option] (Boolean) true to use overflow:'auto' on the components layout element and show scroll bars automatically when necessary, false... */ + autoScroll?: bool; + /** [Config Option] (Boolean) True to stripe the rows. ... */ + stripeRows?: bool; + } +} +declare module Ext.grid { + export interface IViewDropZone extends Ext.view.IDropZone { + } +} +declare module Ext { + export interface IImg extends Ext.IComponent { + /** [Config Option] (String) The descriptive text for non-visual UI description. ... */ + alt?: string; + /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + autoEl?: any; + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number/String) A numeric unicode character code to serve as the image. ... */ + glyph?: any; + /** [Config Option] (String) Optional CSS classes to add to the img element. ... */ + imgCls?: string; + /** [Config Option] (String) The image src. ... */ + src?: string; + /** [Config Option] (String) Specifies addtional information about the image. ... */ + title?: string; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Updates the src of the image + * @param src String + */ + setSrc?( src?:string ): void; + } +} +declare module Ext { + export interface Iis { + } + export class is { + } +} +declare module Ext { + /** [Property] (String) URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. ... */ + export var BLANK_IMAGE_URL: string; + /** [Property] (String) URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent the IE insecure content... */ + export var SSL_SECURE_URL: string; + /** [Property] (Boolean) Indicates whether to use native browser parsing for JSON methods. ... */ + export var USE_NATIVE_JSON: bool; + /** [Property] (Number) */ + export var chromeVersion: number; + /** [Property] (Function) */ + export var emptyFn: any; + /** [Property] (Object) A zero length string which will pass a truth test. ... */ + export var emptyString: any; + /** [Property] (Boolean) */ + export var enableFx: bool; + /** [Property] (Boolean) True to automatically uncache orphaned Ext.Elements periodically ... */ + export var enableGarbageCollector: bool; + /** [Property] (Boolean) True to automatically purge event listeners during garbageCollection. ... */ + export var enableListenerCollection: bool; + /** [Property] (Boolean) Experimental. ... */ + export var enableNestedListenerRemoval: bool; + /** [Property] (String[]) */ + export var enumerables: string[]; + /** [Property] (Number) */ + export var firefoxVersion: number; + /** [Property] (Ext.util.Observable) An instance of Ext.util.Observable through which Ext fires global events. ... */ + export var globalEvents: Ext.util.IObservable; + /** [Property] (Number) The current version of IE (0 if the browser is not IE). ... */ + export var ieVersion: number; + /** [Property] (Boolean) */ + export var isChrome: bool; + /** [Property] (Boolean) */ + export var isFF10: bool; + /** [Property] (Boolean) */ + export var isFF3_0: bool; + /** [Property] (Boolean) */ + export var isFF3_5: bool; + /** [Property] (Boolean) */ + export var isFF3_6: bool; + /** [Property] (Boolean) */ + export var isFF4: bool; + /** [Property] (Boolean) */ + export var isFF5: bool; + /** [Property] (Boolean) True if the detected browser uses the Gecko layout engine (e.g. ... */ + export var isGecko: bool; + /** [Property] (Boolean) True if the detected browser uses a Gecko 5.0+ layout engine (e.g. ... */ + export var isGecko10: bool; + /** [Property] (Boolean) True if the detected browser uses a Gecko 1.9+ layout engine (e.g. ... */ + export var isGecko3: bool; + /** [Property] (Boolean) True if the detected browser uses a Gecko 2.0+ layout engine (e.g. ... */ + export var isGecko4: bool; + /** [Property] (Boolean) True if the detected browser uses a Gecko 5.0+ layout engine (e.g. ... */ + export var isGecko5: bool; + /** [Property] (Boolean) */ + export var isIE: bool; + /** [Property] (Boolean) */ + export var isIE10: bool; + /** [Property] (Boolean) */ + export var isIE10m: bool; + /** [Property] (Boolean) */ + export var isIE10p: bool; + /** [Property] (Boolean) */ + export var isIE6: bool; + /** [Property] (Boolean) */ + export var isIE7: bool; + /** [Property] (Boolean) */ + export var isIE7m: bool; + /** [Property] (Boolean) */ + export var isIE7p: bool; + /** [Property] (Boolean) */ + export var isIE8: bool; + /** [Property] (Boolean) */ + export var isIE8m: bool; + /** [Property] (Boolean) */ + export var isIE8p: bool; + /** [Property] (Boolean) */ + export var isIE9: bool; + /** [Property] (Boolean) */ + export var isIE9m: bool; + /** [Property] (Boolean) */ + export var isIE9p: bool; + /** [Property] (Boolean) */ + export var isLinux: bool; + /** [Property] (Boolean) */ + export var isMac: bool; + /** [Property] (Boolean) */ + export var isOpera: bool; + /** [Property] (Boolean) */ + export var isOpera10_5: bool; + /** [Property] (Boolean) True when the document is fully initialized and ready for action ... */ + export var isReady: bool; + /** [Property] (Boolean) */ + export var isSafari: bool; + /** [Property] (Boolean) */ + export var isSafari2: bool; + /** [Property] (Boolean) */ + export var isSafari3: bool; + /** [Property] (Boolean) */ + export var isSafari4: bool; + /** [Property] (Boolean) */ + export var isSafari5: bool; + /** [Property] (Boolean) */ + export var isSafari5_0: bool; + /** [Property] (Boolean) */ + export var isSecure: bool; + /** [Property] (Boolean) */ + export var isWebKit: bool; + /** [Property] (Boolean) */ + export var isWindows: bool; + /** [Property] (String) The name of the property in the global namespace (The window in browser environments) which refers to the current ins... */ + export var name: string; + /** [Property] (Number) */ + export var operaVersion: number; + /** [Property] (Number) */ + export var safariVersion: number; + /** [Property] (Boolean) By default, Ext intelligently decides whether floating elements should be shimmed. ... */ + export var useShims: bool; + /** [Property] (Number) */ + export var webKitVersion: number; + /** [Method] Applies event listeners to elements by selectors when the document is ready + * @param obj Object The list of behaviors to apply + */ + export function addBehaviors( obj?:any ): void; + /** [Method] Adds namespace s to known list + * @param namespace String + */ + export function addNamespaces( namespace?:string ): void; + export function addNamespaces( namespace?:string[] ): void; + /** [Method] Loads Ext app Application class and starts it up with given configuration after the page is ready + * @param config any Application config object or name of a class derived from Ext.app.Application. + */ + export function application( config?:any ): void; + /** [Method] Copies all the properties of config to the specified object + * @param object Object The receiver of the properties + * @param config Object The source of the properties + * @param defaults Object A different object that will also be applied for default values + */ + export function apply( object?:any, config?:any, defaults?:any ): any; + /** [Method] Copies all the properties of config to object if they don t already exist + * @param object Object The receiver of the properties + * @param config Object The source of the properties + */ + export function applyIf( object?:any, config?:any ): any; + /** [Method] Utility wrapper that suspends layouts of all components for the duration of a given function + * @param fn Function The function to execute. + * @param scope Object The scope (this reference) in which the specified function is executed. + */ + export function batchLayouts( fn?:any, scope?:any ): void; + /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the + * @param fn any The function to delegate. + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + export function bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; + export function bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; + export function bind( fn?:any, scope?:any, args?:any[], appendArgs?:number ): any; + /** [Method] Execute a callback function in a particular scope + * @param callback Function The callback to execute + * @param scope Object The scope to execute in + * @param args Array The arguments to pass to the function + * @param delay Number Pass a number to delay the call by a number of milliseconds. + */ + export function callback( callback?:any, scope?:any, args?:any[], delay?:number ): void; + /** [Method] Clone simple variables including array like objects DOM nodes and Date without keeping the old reference + * @param item Object The variable to clone + */ + export function clone( item?:any ): any; + /** [Method] Coerces the first value if possible so that it is comparable to the second value + * @param from Mixed The value to coerce + * @param to Mixed The value it must be compared against + */ + export function coerce( from?:any, to?:any ): any; + /** [Method] Copies a set of named properties fom the source object to the destination object + * @param dest any The destination object. + * @param source any The source object. + * @param names any Either an Array of property names, or a comma-delimited list of property names to copy. + * @param usePrototypeKeys any Defaults to false. Pass true to copy keys off of the prototype as well as the instance. + */ + export function copyTo( dest?:any, source?:any, names?:any, usePrototypeKeys?:any ): any; + export function copyTo( dest?:any, source?:any, names?:string, usePrototypeKeys?:bool ): any; + export function copyTo( dest?:any, source?:any, names?:string[], usePrototypeKeys?:bool ): any; + /** [Method] Instantiate a class by either full name alias or alternate name + * @param name String The class name or alias. Can be specified as xclass property if only one object parameter is specified. + * @param args Object... Additional arguments after the name will be passed to the class' constructor. + */ + export function create( name:string, ...args:any[] ): any; + /** [Method] Instantiate a class by its alias + * @param alias String + * @param args Object... Additional arguments after the alias will be passed to the class constructor. + */ + export function createByAlias( alias:string, ...args:any[] ): any; + /** [Method] Shorthand for Ext JSON decode Decodes parses a JSON string to an object + * @param json String The JSON string + * @param safe Boolean True to return null, false to throw an exception if the JSON is invalid. + */ + export function decode( json?:string, safe?:bool ): any; + /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope + * @param fn any The function to defer. + * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + */ + export function defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; + export function defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; + export function defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:number ): number; + /** [Method] Defines a class or override + * @param className String The class name to create in string dot-namespaced format, for example: 'My.very.awesome.Class', 'FeedViewer.plugin.CoolPager' It is highly recommended to follow this simple convention: - The root and the class name are 'CamelCased' - Everything else is lower-cased Pass null to create an anonymous class. + * @param data Object The key - value pairs of properties to apply to this class. Property names can be of any valid strings, except those in the reserved listed below: - mixins - statics - config - alias - self - singleton - alternateClassName - override + * @param createdFn Function Optional callback to execute after the class is created, the execution scope of which (this) will be the newly created class itself. + */ + export function define( className?:string, data?:any, createdFn?:any ): Ext.IBase; + /** [Method] Create a closure for deprecated code + * @param packageName String The package name + * @param since String The last version before it's deprecated + * @param closure Function The callback function to be executed with the specified version is less than the current version + * @param scope Object The execution scope (this) if the closure + */ + export function deprecate( packageName?:string, since?:string, closure?:any, scope?:any ): void; + /** [Method] Attempts to destroy any objects passed to it by removing all event listeners removing them from the DOM if applicab + * @param args Ext.IElement An Ext.Element, Ext.Component, or an Array of either of these to destroy + */ + export function destroy( args?:Ext.IElement ): void; + export function destroy( args?:Ext.IComponent ): void; + export function destroy( args?:Ext.IElement[] ): void; + export function destroy( args:Ext.IComponent[] ): void; + /** [Method] Attempts to destroy and then remove a set of named properties of the passed object + * @param o Object The object (most likely a Component) who's properties you wish to destroy. + * @param args String... One or more names of the properties to destroy and remove from the object. + */ + export function destroyMembers( o:any, ...args:any[] ): void; + /** [Method] Iterates an array or an iterable value and invoke the given callback function for each item + * @param iterable any The value to be iterated. If this argument is not iterable, the callback function is called once. + * @param fn Function The callback function. If it returns false, the iteration stops and this method returns the current index. + * @param scope Object The scope (this reference) in which the specified function is executed. + * @param reverse Boolean Reverse the iteration order (loop from the end to the beginning) Defaults false + */ + export function each( iterable?:any, fn?:any, scope?:any, reverse?:bool ): bool; + /** [Method] Shorthand for Ext JSON encode Encodes an Object Array or other value + * @param o Object The variable to encode + */ + export function encode( o?:any ): string; + /** [Method] Convenient shortcut to Ext Loader exclude Explicitly exclude files from being loaded + * @param excludes Array + */ + export function exclude( excludes?:any[] ): any; + /** [Method] Gets the singleton flyweight element with the passed node as the active element + * @param dom any The dom node or id + * @param named any Allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_global") + */ + export function fly( dom?:any, named?:any ): any; + export function fly( dom?:string, named?:string ): Ext.dom.element.IFly; + export function fly( dom?:HTMLElement, named?:string ): Ext.dom.element.IFly; + /** [Method] Retrieves Ext dom Element objects + * @param el any The id of the node, a DOM Node or an existing Element. + */ + export function get( el?:any ): any; + export function get( el?:string ): Ext.dom.IElement; + export function get( el?:HTMLElement ): Ext.dom.IElement; + export function get( el?:Ext.IElement ): Ext.dom.IElement; + /** [Method] Returns the current document body as an Ext Element */ + export function getBody(): Ext.IElement; + /** [Method] Get the class of the provided object returns null if it s not an instance of any class created with Ext define + * @param object Object + */ + export function getClass( object?:any ): Ext.IClass; + /** [Method] Get the name of the class by its reference or its instance Ext ClassManager getName is usually invoked by the short + * @param object any + */ + export function getClassName( object?:any ): string; + /** [Method] This is shorthand reference to Ext ComponentManager get + * @param id String The component id + */ + export function getCmp( id?:string ): any; + /** [Method] Returns the current HTML document object as an Ext Element */ + export function getDoc(): Ext.IElement; + /** [Method] Returns the dom node for the passed String id dom node or Ext Element + * @param el any + */ + export function getDom( el?:any ): any; + export function getDom( el?:string ): any; + export function getDom( el?:HTMLElement ): any; + export function getDom( el?:Ext.IElement ): any; + /** [Method] Returns the current document head as an Ext Element */ + export function getHead(): Ext.IElement; + /** [Method] Get namespace prefix for a class name + * @param className String + */ + export function getNamespace( className?:string ): string; + /** [Method] Returns the current orientation of the mobile device */ + export function getOrientation(): string; + /** [Method] Returns the size of the browser scrollbars + * @param force Boolean true to force a recalculation of the value. + */ + export function getScrollbarSize( force?:bool ): any; + /** [Method] Shortcut to Ext data StoreManager lookup + * @param store any The id of the Store, or a Store instance, or a store configuration + */ + export function getStore( store?:any ): Ext.data.IStore; + /** [Method] Get the version number of the supplied package name will return the last registered version last Ext setVersion cal + * @param packageName String The package name, for example: 'core', 'touch', 'extjs' + */ + export function getVersion( packageName?:string ): Ext.IVersion; + /** [Method] Generates unique ids + * @param el any The element to generate an id for + * @param prefix any Id prefix (defaults "ext-gen") + */ + export function id( el?:any, prefix?:any ): any; + export function id( el?:HTMLElement, prefix?:string ): string; + export function id( el?:Ext.IElement, prefix?:string ): string; + /** [Method] A reusable identity function + * @param o Object + */ + export function identityFn( o?:any ): void; + /** [Method] Returns true if the passed value is a JavaScript Array false otherwise + * @param target Object The target to test + */ + export function isArray( target?:any ): bool; + /** [Method] Returns true if the passed value is a boolean + * @param value Object The value to test + */ + export function isBoolean( value?:any ): bool; + /** [Method] Returns true if the passed value is a JavaScript Date object false otherwise + * @param object Object The object to test + */ + export function isDate( object?:any ): bool; + /** [Method] Returns true if the passed value is defined + * @param value Object The value to test + */ + export function isDefined( value?:any ): bool; + /** [Method] Returns true if the passed value is an HTMLElement + * @param value Object The value to test + */ + export function isElement( value?:any ): bool; + /** [Method] Returns true if the passed value is empty false otherwise + * @param value Object The value to test + * @param allowEmptyString Boolean true to allow empty strings (defaults to false) + */ + export function isEmpty( value?:any, allowEmptyString?:bool ): bool; + /** [Method] Returns true if the passed value is a JavaScript Function false otherwise + * @param value Object The value to test + */ + export function isFunction( value?:any ): bool; + /** [Method] Returns true if the passed value is iterable false otherwise + * @param value Object The value to test + */ + export function isIterable( value?:any ): bool; + /** [Method] Returns true if the passed value is a number + * @param value Object The value to test + */ + export function isNumber( value?:any ): bool; + /** [Method] Validates that a value is numeric + * @param value Object Examples: 1, '1', '2.34' + */ + export function isNumeric( value?:any ): bool; + /** [Method] Returns true if the passed value is a JavaScript Object false otherwise + * @param value Object The value to test + */ + export function isObject( value?:any ): bool; + /** [Method] Returns true if the passed value is a JavaScript primitive a string number or boolean + * @param value Object The value to test + */ + export function isPrimitive( value?:any ): bool; + /** [Method] Returns true if the passed value is a string + * @param value Object The value to test + */ + export function isString( value?:any ): bool; + /** [Method] Returns true if the passed value is a TextNode + * @param value Object The value to test + */ + export function isTextNode( value?:any ): bool; + /** [Method] Iterates either an array or an object + * @param object any The object or array to be iterated. + * @param fn Function The function to be called for each iteration. See and Ext.Array.each and Ext.Object.each for detailed lists of arguments passed to this function depending on the given object type that is being iterated. + * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to the object being iterated itself. + */ + export function iterate( object?:any, fn?:any, scope?:any ): void; + /** [Method] Logs a message + * @param options any The message to log or an options object with any of the following properties: msg: The message to log (required). level: One of: "error", "warn", "info" or "log" (the default is "log"). dump: An object to dump to the log as part of the message. stack: True to include a stack trace in the log. indent: Cause subsequent log statements to be indented one step. outdent: Cause this and following statements to be one step less indented. + * @param message String... The message to log (required unless specified in options object). + */ + export function log( options:any, ...message:any[] ): void; + /** [Method] A convenient alias method for Ext Object merge + * @param destination Object The object into which all subsequent objects are merged. + * @param object Object... Any number of objects to merge into the destination. + */ + export function merge( destination:any, ...object:any[] ): any; + /** [Method] Creates namespaces to be used for scoping variables and classes so that they are not global + * @param namespaces String... + */ + export function namespace( ...namespaces:any[] ): any; + /** [Method] Convenient alias for Ext namespace + * @param namespaces String... + */ + export function ns( ...namespaces:any[] ): any; + /** [Method] Shorthand for the Ext util Observable addListener method of the globalEvents Observable instance + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + export function on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds a listener to be notified when the document is ready before onload and before images are loaded + * @param fn Function The method the event invokes. + * @param scope Object The scope (this reference) in which the handler function executes. Defaults to the browser window. + * @param options Object Options object as passed to Ext.Element.addListener. + */ + export function onDocumentReady( fn?:any, scope?:any, options?:any ): void; + /** [Method] Adds a function to be called when the DOM is ready and all required classes have been loaded + * @param fn Function The function callback to be executed + * @param scope Object The execution scope (this reference) of the callback function + * @param options Object The options to modify the listener as passed to addListener. + */ + export function onReady( fn?:any, scope?:any, options?:any ): void; + /** [Method] Overrides members of the specified target with the given values + * @param target Object The target to override. + * @param overrides Object The properties to add or replace on target. + */ + export function override( target?:any, overrides?:any ): void; + /** [Method] Create a new function from the provided fn the arguments of which are pre set to args + * @param fn Function The original function + * @param args Array The arguments to pass to new callback + * @param scope Object The scope (this reference) in which the function is executed. + */ + export function pass( fn?:any, args?:any[], scope?:any ): any; + /** [Method] Shorthand for Ext PluginManager registerType + * @param ptype String The ptype mnemonic string by which the Plugin class may be looked up. + * @param cls Function The new Plugin class. + */ + export function preg( ptype?:string, cls?:any ): void; + /** [Method] Shorthand of Ext dom Query select Selects an array of DOM nodes by CSS XPath selector + * @param path String The selector/xpath query + * @param root HTMLElement The start of the query. + * @param type String Either "select" or "simple" for a simple selector match (only valid when used when the call is deferred to the jsSelect method) + * @param single Boolean Pass true to select only the first matching node using document.querySelector (where available) + */ + export function query( path?:string, root?:HTMLElement, type?:string, single?:bool ): HTMLElement[]; + /** [Method] Creates a new store for the given id and config then registers it with the Store Manager + * @param id String The id to set on the new store + * @param config Object The store config + */ + export function regStore( id?:string, config?:any ): void; + /** [Method] Removes a DOM node from the document + * @param node HTMLElement The node to remove + */ + export function removeNode( node?:HTMLElement ): void; + /** [Method] Loads all classes by the given names and all their direct dependencies optionally executes the given callback functi + * @param expressions String Can either be a string or an array of string + * @param fn Function The callback function + * @param scope Object The execution scope (this) of the callback function + * @param excludes String Classes to be excluded, useful when being used with expressions + */ + export function require( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; + export function require( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; + export function require( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; + export function require( expressions?:any[], fn?:any, scope?:any, excludes?:any[] ): void; + /** [Method] + * @param flush Object + */ + export function resumeLayouts( flush?:any ): void; + /** [Method] Shorthand of Ext Element select + * @param selector String The CSS selector + * @param unique Boolean True to create a unique Ext.Element for each element. Defaults to a shared flyweight object. + */ + export function select( selector?:string, unique?:bool ): Ext.ICompositeElement; + /** [Method] Sets the default font family to use for components that support a glyph config + * @param fontFamily String The name of the font-family + */ + export function setGlyphFontFamily( fontFamily?:string ): void; + /** [Method] Set version number for the given package name + * @param packageName any The package name, for example: 'core', 'touch', 'extjs' + * @param version any The version, for example: '1.2.3alpha', '2.4.0-dev' + */ + export function setVersion( packageName?:any, version?:any ): any; + export function setVersion( packageName?:string, version?:string ): Ext; + export function setVersion( packageName?:string, version?:Ext.IVersion ): Ext; + /** [Method] */ + export function suspendLayouts(): void; + /** [Method] Synchronously loads all classes by the given names and all their direct dependencies optionally executes the given c + * @param expressions String Can either be a string or an array of string + * @param fn Function The callback function + * @param scope Object The execution scope (this) of the callback function + * @param excludes String Classes to be excluded, useful when being used with expressions + */ + export function syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; + export function syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; + export function syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; + export function syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:any[] ): void; + /** [Method] Converts any iterable numeric indices and a length property into a true array + * @param iterable Object the iterable object to be turned into a true Array. + * @param start Number a zero-based index that specifies the start of extraction. Defaults to 0 + * @param end Number a 1-based index that specifies the end of extraction. Defaults to the last index of the iterable value + */ + export function toArray( iterable?:any, start?:number, end?:number ): any[]; + /** [Method] Returns the type of the given variable in string format + * @param value Object + */ + export function typeOf( value?:any ): string; + /** [Method] Shorthand for the Ext util Observable removeListener method of the globalEvents Observable instance + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + export function un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Returns the given value itself if it s not empty as described in isEmpty returns the default value second argument + * @param value Object The value to test + * @param defaultValue Object The value to return if the original value is empty + * @param allowBlank Boolean true to allow zero length strings to qualify as non-empty (defaults to false) + */ + export function valueFrom( value?:any, defaultValue?:any, allowBlank?:bool ): any; + /** [Method] Convenient shorthand to create a widget by its xtype or a config object + * @param name String The xtype of the widget to create. + * @param config Object The configuration object for the widget constructor. + */ + export function widget( name?:string, config?:any ): any; +} +declare module Ext { + export interface IJSON { + } + export class JSON { + /** [Method] Decodes parses a JSON string to an object + * @param json String The JSON string + * @param safe Boolean True to return null, false to throw an exception if the JSON is invalid. + */ + static decode( json?:string, safe?:bool ): any; + /** [Method] Encodes an Object Array or other value + * @param o Object The variable to encode + */ + static encode( o?:any ): string; + /** [Method] Encodes a Date + * @param d Date The Date to encode + */ + static encodeDate( d?:any ): string; + /** [Method] Encodes a String + * @param s String The String to encode + */ + static encodeString( s?:string ): string; + /** [Method] The function which encode uses to encode all javascript values to their JSON representations when Ext USE_NATIVE_JSON + * @param o Object Any javascript value to be converted to its JSON representation + */ + static encodeValue( o?:any ): string; + } +} +declare module Ext.layout { + export interface IClassList extends Ext.IBase { + /** [Method] Adds a single class to the class list + * @param cls Object + */ + add?( cls?:any ): void; + /** [Method] Adds one or more classes in an array or space delimited string to the class list + * @param classes Object + */ + addMany?( classes?:any ): void; + /** [Method] Removes a single class from the class list + * @param cls Object + */ + remove?( cls?:any ): void; + /** [Method] Removes one or more classes in an array or space delimited string from the class list + * @param classes Object + */ + removeMany?( classes?:any ): void; + } +} +declare module Ext.layout.component { + export interface IAuto extends Ext.layout.component.IComponent { + /** [Config Option] (Boolean) When publishing height of an auto Component, it is usually not written to the DOM. ... */ + setHeightInDom?: bool; + /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + setWidthInDom?: bool; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component { + export interface IBody extends Ext.layout.component.IAuto { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component { + export interface IBoundList extends Ext.layout.component.IAuto { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns the set of items to layout empty by default */ + getLayoutItems?(): void; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + } +} +declare module Ext.layout.component { + export interface IButton extends Ext.layout.component.IAuto { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component { + export interface IComponent extends Ext.layout.ILayout { + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns the element into which rendering must take place */ + getRenderTarget?(): Ext.IElement; + /** [Method] Returns the owner component s resize element */ + getTarget?(): Ext.IElement; + /** [Method] This method if implemented is called after all layouts are finished and all have a lastComponentSize cached + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + notifyOwner?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component { + export interface IDock extends Ext.layout.component.IComponent { + /** [Method] Removes layout s itemCls and owning Container s itemCls + * @param item Object + */ + afterRemove?( item?:any ): void; + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] We are overriding the Ext layout Layout configureItem method to also add a class that indicates the position of the d + * @param item Ext.IComponent The item we are configuring + */ + configureItem?( item?:Ext.IComponent ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Retrieve an ordered and or filtered array of all docked Components + * @param order String The desired ordering of the items ('render' or 'visual'). + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + getDockedItems?( order?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Returns an array containing all the visible docked items inside this layout s owner Panel */ + getLayoutItems?(): any[]; + /** [Method] The default weighting of docked items produces this arrangement + * @param ownerContext Object + * @param horz Object + * @param vert Object + */ + invalidateAxes?( ownerContext?:any, horz?:any, vert?:any ): void; + /** [Method] Render the top and left docked items before any existing DOM nodes in our render target and then render the right an + * @param items Object + * @param target Object + */ + renderItems?( items?:any, target?:any ): void; + } +} +declare module Ext.layout.component { + export interface IAbstractDock extends Ext.layout.component.IComponent { + /** [Method] Removes layout s itemCls and owning Container s itemCls + * @param item Object + */ + afterRemove?( item?:any ): void; + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] We are overriding the Ext layout Layout configureItem method to also add a class that indicates the position of the d + * @param item Ext.IComponent The item we are configuring + */ + configureItem?( item?:Ext.IComponent ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Retrieve an ordered and or filtered array of all docked Components + * @param order String The desired ordering of the items ('render' or 'visual'). + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + getDockedItems?( order?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Returns an array containing all the visible docked items inside this layout s owner Panel */ + getLayoutItems?(): any[]; + /** [Method] The default weighting of docked items produces this arrangement + * @param ownerContext Object + * @param horz Object + * @param vert Object + */ + invalidateAxes?( ownerContext?:any, horz?:any, vert?:any ): void; + /** [Method] Render the top and left docked items before any existing DOM nodes in our render target and then render the right an + * @param items Object + * @param target Object + */ + renderItems?( items?:any, target?:any ): void; + } +} +declare module Ext.layout.component { + export interface IDraw extends Ext.layout.component.IAuto { + /** [Config Option] (Boolean) When publishing height of an auto Component, it is usually not written to the DOM. ... */ + setHeightInDom?: bool; + /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + setWidthInDom?: bool; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface IComboBox extends Ext.layout.component.field.ITrigger { + } +} +declare module Ext.layout.component.field { + export interface IField extends Ext.layout.component.IAuto { + /** [Property] (Object) */ + elementId?: any; + /** [Property] (Object) Collection of named strategies for laying out and adjusting insets to accommodate error messages. ... */ + errorStrategies?: any; + /** [Property] (Object) Collection of named strategies for laying out and adjusting labels to accommodate error messages. ... */ + labelStrategies?: any; + /** [Property] (Object) */ + left?: any; + /** [Property] (Object) */ + qtip?: any; + /** [Property] (Object) */ + right?: any; + /** [Property] (Object) */ + side?: any; + /** [Property] (Object) */ + title?: any; + /** [Property] (Object) */ + top?: any; + /** [Property] (Object) */ + under?: any; + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Return the set of strategy functions from the errorStrategies collection that is appropriate for the field s msgTarge */ + getErrorStrategy?(): void; + /** [Method] Return the set of strategy functions from the labelStrategies collection that is appropriate for the field s labelAli */ + getLabelStrategy?(): void; + } +} +declare module Ext.layout.component.field { + export interface IFieldContainer extends Ext.layout.component.field.IField { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface IHtmlEditor extends Ext.layout.component.field.IFieldContainer { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface ISlider extends Ext.layout.component.field.IField { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface IText extends Ext.layout.component.field.IField { + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface ITextArea extends Ext.layout.component.field.IText { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component.field { + export interface ITrigger extends Ext.layout.component.field.IField { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.component { + export interface IFieldSet extends Ext.layout.component.IBody { + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns the set of items to layout empty by default */ + getLayoutItems?(): void; + } +} +declare module Ext.layout.component { + export interface IProgressBar extends Ext.layout.component.IAuto { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.layout.container { + export interface IAbsolute extends Ext.layout.container.IAnchor { + /** [Config Option] (Boolean) True indicates that changes to one item in this layout do not effect the layout in general. ... */ + ignoreOnContentChange?: bool; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] This method is called when a child item changes in some way + * @param child Ext.IComponent The child item that has changed. + */ + onContentChange?( child?:Ext.IComponent ): bool; + } +} +declare module Ext.layout { + export interface IAbsoluteLayout extends Ext.layout.container.IAnchor { + /** [Config Option] (Boolean) True indicates that changes to one item in this layout do not effect the layout in general. ... */ + ignoreOnContentChange?: bool; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] This method is called when a child item changes in some way + * @param child Ext.IComponent The child item that has changed. + */ + onContentChange?( child?:Ext.IComponent ): bool; + } +} +declare module Ext.layout.container { + export interface IAccordion extends Ext.layout.container.IVBox { + /** [Config Option] (Boolean) Only valid when multi is false and animate is false. ... */ + activeOnTop?: bool; + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] (Boolean) True to slide the contained panels open and closed during expand/collapse using animation, false to open and close di... */ + animate?: bool; + /** [Config Option] (Boolean) */ + autoWidth?: bool; + /** [Config Option] (Boolean) True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the cont... */ + collapseFirst?: bool; + /** [Config Option] (Boolean) True to adjust the active item's height to fill the available space in the container, false to use the item's current... */ + fill?: bool; + /** [Config Option] (Boolean) True to hide the contained Panels' collapse/expand toggle buttons, false to display them. ... */ + hideCollapseTool?: bool; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (Boolean) Set to true to enable multiple accordion items to be open at once. ... */ + multi?: bool; + /** [Config Option] (Boolean) True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/co... */ + titleCollapse?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Iterates over all passed items ensuring they are rendered + * @param items Object + * @param target Object + */ + renderItems?( items?:any, target?:any ): void; + } +} +declare module Ext.layout { + export interface IAccordionLayout extends Ext.layout.container.IVBox { + /** [Config Option] (Boolean) Only valid when multi is false and animate is false. ... */ + activeOnTop?: bool; + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] (Boolean) True to slide the contained panels open and closed during expand/collapse using animation, false to open and close di... */ + animate?: bool; + /** [Config Option] (Boolean) */ + autoWidth?: bool; + /** [Config Option] (Boolean) True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the cont... */ + collapseFirst?: bool; + /** [Config Option] (Boolean) True to adjust the active item's height to fill the available space in the container, false to use the item's current... */ + fill?: bool; + /** [Config Option] (Boolean) True to hide the contained Panels' collapse/expand toggle buttons, false to display them. ... */ + hideCollapseTool?: bool; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (Boolean) Set to true to enable multiple accordion items to be open at once. ... */ + multi?: bool; + /** [Config Option] (Boolean) True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/co... */ + titleCollapse?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Iterates over all passed items ensuring they are rendered + * @param items Object + * @param target Object + */ + renderItems?( items?:any, target?:any ): void; + } +} +declare module Ext.layout.container { + export interface IAnchor extends Ext.layout.container.IAuto { + /** [Config Option] (String) This configuation option is to be applied to child items of a container managed by this layout (ie. ... */ + anchor?: string; + /** [Config Option] (String) Default anchor for all child container items applied if no anchor or specific width is set on the child item. ... */ + defaultAnchor?: string; + /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + manageOverflow?: bool; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + } +} +declare module Ext.layout { + export interface IAnchorLayout extends Ext.layout.container.IAuto { + /** [Config Option] (String) This configuation option is to be applied to child items of a container managed by this layout (ie. ... */ + anchor?: string; + /** [Config Option] (String) Default anchor for all child container items applied if no anchor or specific width is set on the child item. ... */ + defaultAnchor?: string; + /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + manageOverflow?: bool; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + } +} +declare module Ext.layout.container { + export interface IAuto extends Ext.layout.container.IContainer { + /** [Config Option] (Boolean) Set to true to leave space for a vertical scrollbar (if the OS shows space-consuming scrollbars) regardless of whethe... */ + reserveScrollbar?: bool; + /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + manageOverflow?: bool; + /** [Property] (Boolean) indicates that this layout will correct cross browser padding differences when the container has overflow. ... */ + managePadding?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Handles overflow processing for a container + * @param ownerContext Ext.layout.IContextItem + */ + calculateOverflow?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns the container size that of the target + * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param inDom Boolean True if the container size must be in the DOM. + */ + getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; + /** [Method] Overridden method from Ext layout container Container */ + getElementTarget?(): Ext.IElement; + /** [Method] Returns the overflow x style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] Returns the overflow y style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] Overridden method from Ext layout container Container */ + getRenderTarget?(): Ext.IElement; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues + * @param ownerContext Ext.layout.IContextItem + * @param containerSize Object + */ + setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; + } +} +declare module Ext.layout.container { + export interface IBorder extends Ext.layout.container.IContainer { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (Number/String/Object) Sets the padding to be applied to all child items managed by this layout. ... */ + padding?: any; + /** [Config Option] (Object) The default weights to assign to regions in the border layout. ... */ + regionWeights?: any; + /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout. ... */ + split?: bool; + /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout and is used in conjunction with ... */ + splitterResize?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + } +} +declare module Ext.layout { + export interface IBorderLayout extends Ext.layout.container.IContainer { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (Number/String/Object) Sets the padding to be applied to all child items managed by this layout. ... */ + padding?: any; + /** [Config Option] (Object) The default weights to assign to regions in the border layout. ... */ + regionWeights?: any; + /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout. ... */ + split?: bool; + /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout and is used in conjunction with ... */ + splitterResize?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + } +} +declare module Ext.layout.container { + export interface IBox extends Ext.layout.container.IContainer { + /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + defaultMargins?: any; + /** [Config Option] (Number) This configuration option is to be applied to child items of the container managed by this layout. ... */ + flex?: number; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (String) Controls how the child items of the container are packed together. ... */ + pack?: string; + /** [Config Option] (String) Sets the padding to be applied to all child items managed by this layout. ... */ + padding?: string; + /** [Config Option] (String/Ext.Component) Allows stretchMax calculation to take into account the max perpendicular size (height for HBox layout and width for V... */ + stretchMaxPartner?: any; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called to re cache our understanding of flexes + * @param ownerContext Object + */ + cacheFlexes?( ownerContext?:any ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Overridden method from Ext layout container Container */ + getElementTarget?(): Ext.IElement; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Overridden method from Ext layout container Container */ + getRenderTarget?(): Ext.IElement; + } +} +declare module Ext.layout { + export interface IBoxLayout extends Ext.layout.container.IContainer { + /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + defaultMargins?: any; + /** [Config Option] (Number) This configuration option is to be applied to child items of the container managed by this layout. ... */ + flex?: number; + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Config Option] (String) Controls how the child items of the container are packed together. ... */ + pack?: string; + /** [Config Option] (String) Sets the padding to be applied to all child items managed by this layout. ... */ + padding?: string; + /** [Config Option] (String/Ext.Component) Allows stretchMax calculation to take into account the max perpendicular size (height for HBox layout and width for V... */ + stretchMaxPartner?: any; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called to re cache our understanding of flexes + * @param ownerContext Object + */ + cacheFlexes?( ownerContext?:any ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Overridden method from Ext layout container Container */ + getElementTarget?(): Ext.IElement; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Overridden method from Ext layout container Container */ + getRenderTarget?(): Ext.IElement; + } +} +declare module Ext.layout.container.boxoverflow { + export interface IMenu extends Ext.layout.container.boxoverflow.INone { + /** [Config Option] (String) */ + triggerButtonCls?: string; + /** [Property] (Array) */ + menuItems?: any[]; + /** [Property] (String) HTML fragment to render into the toolbar overflow menu if there are no items to display ... */ + noItemsMenuText?: string; + } +} +declare module Ext.layout.boxoverflow { + export interface IMenu extends Ext.layout.container.boxoverflow.INone { + /** [Config Option] (String) */ + triggerButtonCls?: string; + /** [Property] (Array) */ + menuItems?: any[]; + /** [Property] (String) HTML fragment to render into the toolbar overflow menu if there are no items to display ... */ + noItemsMenuText?: string; + } +} +declare module Ext.layout.container.boxoverflow { + export interface INone extends Ext.IBase { + } +} +declare module Ext.layout.boxoverflow { + export interface INone extends Ext.IBase { + } +} +declare module Ext.layout.container.boxoverflow { + export interface IScroller extends Ext.layout.container.boxoverflow.INone,Ext.util.IObservable { + /** [Config Option] (String) CSS class added to the afterCt element. ... */ + afterCtCls?: string; + /** [Config Option] (String) */ + afterScrollerCls?: string; + /** [Config Option] (Boolean) True to animate the scrolling of items within the layout (ignored if enableScroll is false) ... */ + animateScroll?: bool; + /** [Config Option] (String) CSS class added to the beforeCt element. ... */ + beforeCtCls?: string; + /** [Config Option] (String) */ + beforeScrollerCls?: string; + /** [Config Option] (Number) Number of milliseconds that each scroll animation lasts ... */ + scrollDuration?: number; + /** [Config Option] (Number) The number of pixels to scroll by on scroller click ... */ + scrollIncrement?: number; + /** [Config Option] (Number) Number of milliseconds between each scroll while a scroller button is held down ... */ + scrollRepeatInterval?: number; + /** [Config Option] (String) CSS class added to both scroller elements if enableScroll is used ... */ + scrollerCls?: string; + /** [Config Option] (Number) The number of pixels to increment on mouse wheel scrolling. ... */ + wheelIncrement?: number; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the current scroll position of the innerCt element */ + getScrollPosition?(): number; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Scrolls to the given component + * @param item String The item to scroll to. Can be a numerical index, component id or a reference to the component itself. + * @param animate Boolean True to animate the scrolling + */ + scrollToItem?( item?:string, animate?:bool ): void; + scrollToItem?( item?:number, animate?:bool ): void; + scrollToItem?( item?:Ext.IComponent, animate?:bool ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.layout.boxoverflow { + export interface IScroller extends Ext.layout.container.boxoverflow.INone,Ext.util.IObservable { + /** [Config Option] (String) CSS class added to the afterCt element. ... */ + afterCtCls?: string; + /** [Config Option] (String) */ + afterScrollerCls?: string; + /** [Config Option] (Boolean) True to animate the scrolling of items within the layout (ignored if enableScroll is false) ... */ + animateScroll?: bool; + /** [Config Option] (String) CSS class added to the beforeCt element. ... */ + beforeCtCls?: string; + /** [Config Option] (String) */ + beforeScrollerCls?: string; + /** [Config Option] (Number) Number of milliseconds that each scroll animation lasts ... */ + scrollDuration?: number; + /** [Config Option] (Number) The number of pixels to scroll by on scroller click ... */ + scrollIncrement?: number; + /** [Config Option] (Number) Number of milliseconds between each scroll while a scroller button is held down ... */ + scrollRepeatInterval?: number; + /** [Config Option] (String) CSS class added to both scroller elements if enableScroll is used ... */ + scrollerCls?: string; + /** [Config Option] (Number) The number of pixels to increment on mouse wheel scrolling. ... */ + wheelIncrement?: number; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the current scroll position of the innerCt element */ + getScrollPosition?(): number; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Scrolls to the given component + * @param item String The item to scroll to. Can be a numerical index, component id or a reference to the component itself. + * @param animate Boolean True to animate the scrolling + */ + scrollToItem?( item?:string, animate?:bool ): void; + scrollToItem?( item?:number, animate?:bool ): void; + scrollToItem?( item?:Ext.IComponent, animate?:bool ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.layout.container { + export interface ICard extends Ext.layout.container.IFit { + /** [Config Option] (Boolean) True to render each contained item at the time it becomes active, false to render all contained items as soon as the ... */ + deferredRender?: bool; + /** [Method] Called before both dynamic render and bulk render + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Return the active visible component in the layout */ + getActiveItem?(): Ext.IComponent; + /** [Method] Return the active visible component in the layout to the next card */ + getNext?(): Ext.IComponent; + /** [Method] Return the active visible component in the layout to the previous card */ + getPrev?(): Ext.IComponent; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] Sets the active visible component in the layout to the next card */ + next?(): Ext.IComponent; + /** [Method] Sets the active visible component in the layout to the previous card */ + prev?(): Ext.IComponent; + /** [Method] Makes the given card active + * @param newCard any The component, component id, itemId, or index of component. + */ + setActiveItem?( newCard?:any ): any; + setActiveItem?( newCard?:Ext.IComponent ): Ext.IComponent; + setActiveItem?( newCard?:number ): Ext.IComponent; + setActiveItem?( newCard?:string ): Ext.IComponent; + } +} +declare module Ext.layout { + export interface ICardLayout extends Ext.layout.container.IFit { + /** [Config Option] (Boolean) True to render each contained item at the time it becomes active, false to render all contained items as soon as the ... */ + deferredRender?: bool; + /** [Method] Called before both dynamic render and bulk render + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Return the active visible component in the layout */ + getActiveItem?(): Ext.IComponent; + /** [Method] Return the active visible component in the layout to the next card */ + getNext?(): Ext.IComponent; + /** [Method] Return the active visible component in the layout to the previous card */ + getPrev?(): Ext.IComponent; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] Sets the active visible component in the layout to the next card */ + next?(): Ext.IComponent; + /** [Method] Sets the active visible component in the layout to the previous card */ + prev?(): Ext.IComponent; + /** [Method] Makes the given card active + * @param newCard any The component, component id, itemId, or index of component. + */ + setActiveItem?( newCard?:any ): any; + setActiveItem?( newCard?:Ext.IComponent ): Ext.IComponent; + setActiveItem?( newCard?:number ): Ext.IComponent; + setActiveItem?( newCard?:string ): Ext.IComponent; + } +} +declare module Ext.layout.container { + export interface ICheckboxGroup extends Ext.layout.container.IContainer { + /** [Config Option] (Boolean) By default, CheckboxGroup allocates all available space to the configured columns meaning that column are evenly spa... */ + autoFlex?: bool; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Just wait for the child items to all lay themselves out in the width we are configured to make available to them + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + /** [Method] Always valid + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] Iterates over all passed items ensuring they are rendered + * @param items Object + */ + renderItems?( items?:any ): void; + } +} +declare module Ext.layout.container { + export interface IColumn extends Ext.layout.container.IAuto { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + manageOverflow?: bool; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues + * @param ownerContext Ext.layout.IContextItem + * @param containerSize Object + */ + setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; + } +} +declare module Ext.layout { + export interface IColumnLayout extends Ext.layout.container.IAuto { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + manageOverflow?: bool; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues + * @param ownerContext Ext.layout.IContextItem + * @param containerSize Object + */ + setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; + } +} +declare module Ext.layout.container { + export interface IContainer extends Ext.layout.ILayout,Ext.util.IElementContainer { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Property] (Ext.Element) */ + overflowPadderEl?: Ext.IElement; + /** [Method] Adds each argument passed to this method to the childEls array */ + addChildEls?(): void; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Returns the container size that of the target + * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param inDom Boolean True if the container size must be in the DOM. + */ + getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; + /** [Method] Returns the element into which extra functional DOM elements can be inserted */ + getElementTarget?(): Ext.IElement; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + /** [Method] Returns the element into which rendering must take place */ + getRenderTarget?(): Ext.IElement; + /** [Method] Returns all items that are rendered */ + getRenderedItems?(): any[]; + /** [Method] Returns the owner component s resize element */ + getTarget?(): Ext.IElement; + /** [Method] Returns all items that are both rendered and visible */ + getVisibleItems?(): any[]; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + removeChildEls?( testFn?:any ): void; + } +} +declare module Ext.layout { + export interface IContainerLayout extends Ext.layout.ILayout,Ext.util.IElementContainer { + /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Property] (Ext.Element) */ + overflowPadderEl?: Ext.IElement; + /** [Method] Adds each argument passed to this method to the childEls array */ + addChildEls?(): void; + /** [Method] In addition to work done by our base classes containers benefit from some extra cached data + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Adds layout s itemCls and owning Container s itemCls + * @param item Object + */ + configureItem?( item?:any ): void; + /** [Method] Returns the container size that of the target + * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param inDom Boolean True if the container size must be in the DOM. + */ + getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; + /** [Method] Returns the element into which extra functional DOM elements can be inserted */ + getElementTarget?(): Ext.IElement; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + /** [Method] Returns the element into which rendering must take place */ + getRenderTarget?(): Ext.IElement; + /** [Method] Returns all items that are rendered */ + getRenderedItems?(): any[]; + /** [Method] Returns the owner component s resize element */ + getTarget?(): Ext.IElement; + /** [Method] Returns all items that are both rendered and visible */ + getVisibleItems?(): any[]; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + removeChildEls?( testFn?:any ): void; + } +} +declare module Ext.layout.container { + export interface IEditor extends Ext.layout.container.IContainer { + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + } +} +declare module Ext.layout.container { + export interface IFit extends Ext.layout.container.IContainer { + /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + defaultMargins?: any; + /** [Config Option] (String) End Definitions An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + } +} +declare module Ext.layout { + export interface IFitLayout extends Ext.layout.container.IContainer { + /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + defaultMargins?: any; + /** [Config Option] (String) End Definitions An optional extra CSS class that will be added to the container. ... */ + itemCls?: string; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + } +} +declare module Ext.layout.container { + export interface IForm extends Ext.layout.container.IContainer { + /** [Property] (Object) Returns flags indicating cross-browser handling of scrollHeight/Width. ... */ + getScrollRangeFlags?: any; + /** [Method] All of the below methods are old methods moved here from Container layout TODO remove these methods once Form layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Handles overflow processing for a container + * @param ownerContext Ext.layout.IContextItem + * @param containerSize Object + * @param dimensions Number A bit mask for the overflow managed dimensions. The 0-bit is for width and the 1-bit is for height. In other words, a value of 1 would be only width, 2 would be only height and 3 would be both. + */ + calculateOverflow?( ownerContext?:Ext.layout.IContextItem, containerSize?:any, dimensions?:number ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Creates an element that makes bottom right body padding consistent across browsers + * @param out Object + * @param renderData Object + */ + doRenderPadder?( out?:any, renderData?:any ): void; + /** [Method] Returns the container size that of the target + * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param inDom Boolean True if the container size must be in the DOM. + * @param ignoreOverflow Boolean if true scrollbar size will not be subtracted from container size. + */ + getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool, ignoreOverflow?:bool ): any; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] returns the overflow x style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] returns the overflow y style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] Returns the element into which rendering must take place */ + getRenderTarget?(): Ext.IElement; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + } +} +declare module Ext.layout { + export interface IFormLayout extends Ext.layout.container.IContainer { + /** [Property] (Object) Returns flags indicating cross-browser handling of scrollHeight/Width. ... */ + getScrollRangeFlags?: any; + /** [Method] All of the below methods are old methods moved here from Container layout TODO remove these methods once Form layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Handles overflow processing for a container + * @param ownerContext Ext.layout.IContextItem + * @param containerSize Object + * @param dimensions Number A bit mask for the overflow managed dimensions. The 0-bit is for width and the 1-bit is for height. In other words, a value of 1 would be only width, 2 would be only height and 3 would be both. + */ + calculateOverflow?( ownerContext?:Ext.layout.IContextItem, containerSize?:any, dimensions?:number ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Creates an element that makes bottom right body padding consistent across browsers + * @param out Object + * @param renderData Object + */ + doRenderPadder?( out?:any, renderData?:any ): void; + /** [Method] Returns the container size that of the target + * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param inDom Boolean True if the container size must be in the DOM. + * @param ignoreOverflow Boolean if true scrollbar size will not be subtracted from container size. + */ + getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool, ignoreOverflow?:bool ): any; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] returns the overflow x style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] returns the overflow y style of the render target + * @param ownerContext Ext.layout.IContextItem + */ + getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; + /** [Method] Returns the element into which rendering must take place */ + getRenderTarget?(): Ext.IElement; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + } +} +declare module Ext.layout.container { + export interface IHBox extends Ext.layout.container.IBox { + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:middle is used. ... */ + alignRoundingMethod?: any; + /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + constrainAlign?: bool; + } +} +declare module Ext.layout { + export interface IHBoxLayout extends Ext.layout.container.IBox { + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:middle is used. ... */ + alignRoundingMethod?: any; + /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + constrainAlign?: bool; + } +} +declare module Ext.layout.container { + export interface ITable extends Ext.layout.container.IContainer { + /** [Config Option] (Number) The total number of columns to create in the table for this layout. ... */ + columns?: number; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <table&... */ + tableAttrs?: any; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <td>... */ + tdAttrs?: any; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <tr>... */ + trAttrs?: any; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called after all layouts have completed + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + } +} +declare module Ext.layout { + export interface ITableLayout extends Ext.layout.container.IContainer { + /** [Config Option] (Number) The total number of columns to create in the table for this layout. ... */ + columns?: number; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <table&... */ + tableAttrs?: any; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <td>... */ + tdAttrs?: any; + /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <tr>... */ + trAttrs?: any; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called after all layouts have completed + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ + getLayoutItems?(): Ext.IComponent[]; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + } +} +declare module Ext.layout.container { + export interface IVBox extends Ext.layout.container.IBox { + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:center is used. ... */ + alignRoundingMethod?: any; + /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + constrainAlign?: bool; + } +} +declare module Ext.layout { + export interface IVBoxLayout extends Ext.layout.container.IBox { + /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + align?: string; + /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:center is used. ... */ + alignRoundingMethod?: any; + /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + constrainAlign?: bool; + } +} +declare module Ext.layout { + export interface IContext extends Ext.IBase { + /** [Property] (Ext.util.Queue) */ + layoutQueue?: Ext.util.IQueue; + /** [Property] (Number) One of these values: 0 - Before run 1 - Running 2 - Run complete ... */ + state?: number; + /** [Method] Flushes any pending writes to the DOM by calling each ContextItem in the flushQueue */ + flush?(): void; + /** [Method] Returns the ContextItem for a component + * @param cmp Ext.IComponent + */ + getCmp?( cmp?:Ext.IComponent ): void; + /** [Method] Returns the ContextItem for an element + * @param parent Ext.layout.IContextItem + * @param el Ext.dom.IElement + */ + getEl?( parent?:Ext.layout.IContextItem, el?:Ext.dom.IElement ): void; + /** [Method] Invalidates one or more components layouts component and container + * @param components Ext.IComponent An array of Components or a single Component. + * @param full Boolean True if all properties should be invalidated, otherwise only those calculated by the component should be invalidated. + */ + invalidate?( components?:Ext.IComponent, full?:bool ): void; + invalidate?( components?:any[], full?:bool ): void; + /** [Method] Removes the ContextItem for an element from the cache and from the parent s children array + * @param parent Ext.layout.IContextItem + * @param el Ext.dom.IElement + */ + removeEl?( parent?:Ext.layout.IContextItem, el?:Ext.dom.IElement ): void; + /** [Method] Resets the given layout object + * @param layout Object + * @param ownerContext Object + * @param firstTime Object + */ + resetLayout?( layout?:any, ownerContext?:any, firstTime?:any ): void; + /** [Method] Runs the layout calculations */ + run?(): bool; + /** [Method] Performs one layout cycle by calling each layout in the layout queue */ + runCycle?(): bool; + /** [Method] Set the size of a component element or composite or an array of components or elements + * @param item Ext.IComponent The item(s) to size. + * @param width Number The new width to set (ignored if undefined or NaN). + * @param height Number The new height to set (ignored if undefined or NaN). + */ + setItemSize?( item?:Ext.IComponent, width?:number, height?:number ): void; + setItemSize?( item?:Ext.IComponent[], width?:number, height?:number ): void; + setItemSize?( item?:Ext.dom.IElement, width?:number, height?:number ): void; + setItemSize?( item?:Ext.dom.IElement[], width?:number, height?:number ): void; + setItemSize?( item?:Ext.dom.ICompositeElement, width?:number, height?:number ): void; + } +} +declare module Ext.layout { + export interface IContextItem extends Ext.IBase { + /** [Property] (Object) State variables that are cleared when invalidated. ... */ + state?: any; + /** [Property] (Boolean) True if this item wraps a Component (rather than an Element). ... */ + wrapsComponent?: bool; + /** [Method] Queue the addition of a class name or array of class names to this ContextItem s target when next flushed + * @param newCls Object + */ + addCls?( newCls?:any ): void; + /** [Method] Registers a layout in the block list for the given property + * @param layout Ext.layout.ILayout + * @param propName String The property name that blocked the layout (e.g., 'width'). + */ + block?( layout?:Ext.layout.ILayout, propName?:string ): void; + /** [Method] clears the margin cache so that marginInfo get re read from the dom on the next call to getMarginInfo This is neede */ + clearMarginCache?(): void; + /** [Method] Registers a layout in the DOM block list for the given property + * @param layout Ext.layout.ILayout + * @param propName String The property name that blocked the layout (e.g., 'width'). + */ + domBlock?( layout?:Ext.layout.ILayout, propName?:string ): void; + /** [Method] Flushes any updates in the dirty collection to the DOM */ + flush?(): void; + /** [Method] Gets the border information for the element as an object with left top right and bottom properties holding border s */ + getBorderInfo?(): any; + /** [Method] Returns a ClassList like object to buffer access to this item s element s classes */ + getClassList?(): void; + /** [Method] Gets a property of this object if it is correct in the DOM + * @param propName String The property name (e.g., 'width'). + */ + getDomProp?( propName?:string ): any; + /** [Method] Returns the context item for an owned element + * @param nameOrEl any The element or the name of an owned element + * @param owner any The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. For more details on owned elements see childEls and renderSelectors + */ + getEl?( nameOrEl?:any, owner?:any ): any; + getEl?( nameOrEl?:string, owner?:Ext.layout.container.IContainer ): Ext.layout.IContextItem; + getEl?( nameOrEl?:Ext.dom.IElement, owner?:Ext.layout.container.IContainer ): Ext.layout.IContextItem; + getEl?( nameOrEl?:string, owner?:Ext.IComponent ): Ext.layout.IContextItem; + getEl?( nameOrEl?:Ext.dom.IElement, owner?:Ext.IComponent ): Ext.layout.IContextItem; + /** [Method] Gets the frame information for the element as an object with left top right and bottom properties holding border */ + getFrameInfo?(): any; + /** [Method] Gets the margin information for the element as an object with left top right and bottom properties holding margin s */ + getMarginInfo?(): any; + /** [Method] Gets the padding information for the element as an object with left top right and bottom properties holding padding */ + getPaddingInfo?(): any; + /** [Method] Gets a property of this object + * @param propName String The property name that blocked the layout (e.g., 'width'). + */ + getProp?( propName?:string ): any; + /** [Method] Returns a style for this item + * @param styleName String The CSS style name. + */ + getStyle?( styleName?:string ): any; + /** [Method] Returns styles for this item + * @param styleNames String[] The CSS style names. + * @param altNames String[] The alternate names for the returned styles. If given, these names must correspond one-for-one to the styleNames. + */ + getStyles?( styleNames?:string[], altNames?:string[] ): any; + /** [Method] Returns true if the given property is correct in the DOM + * @param propName String The property name (e.g., 'width'). + */ + hasDomProp?( propName?:string ): bool; + /** [Method] Returns true if the given property has been set + * @param propName String The property name (e.g., 'width'). + */ + hasProp?( propName?:string ): bool; + /** [Method] Invalidates the component associated with this item + * @param options Object An object describing how to handle the invalidation. + */ + invalidate?( options?:any ): void; + /** [Method] Recovers a property value from the last computation and restores its value and dirty state + * @param propName String The name of the property to recover. + * @param oldProps Object The old "props" object from which to recover values. + * @param oldDirty Object The old "dirty" object from which to recover state. + */ + recoverProp?( propName?:string, oldProps?:any, oldDirty?:any ): void; + /** [Method] Queue the removal of a class name or array of class names from this ContextItem s target when next flushed + * @param removeCls Object + */ + removeCls?( removeCls?:any ): void; + /** [Method] Removes a cached ContextItem that was created using getEl + * @param nameOrEl String The element or the name of an owned element + * @param owner Ext.layout.container.IContainer The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. + */ + removeEl?( nameOrEl?:string, owner?:Ext.layout.container.IContainer ): void; + removeEl?( nameOrEl?:Ext.dom.IElement, owner?:Ext.layout.container.IContainer ): void; + removeEl?( nameOrEl?:string, owner?:Ext.IComponent ): void; + removeEl?( nameOrEl?:Ext.dom.IElement, owner?:Ext.IComponent ): void; + /** [Method] Queue the setting of a DOM attribute on this ContextItem s target when next flushed + * @param name Object + * @param value Object + */ + setAttribute?( name?:any, value?:any ): void; + /** [Method] Sets the contentHeight property + * @param height Object + * @param measured Object + */ + setContentHeight?( height?:any, measured?:any ): void; + /** [Method] Sets the contentWidth and contentHeight properties + * @param width Object + * @param height Object + * @param measured Object + */ + setContentSize?( width?:any, height?:any, measured?:any ): void; + /** [Method] Sets the contentWidth property + * @param width Object + * @param measured Object + */ + setContentWidth?( width?:any, measured?:any ): void; + /** [Method] Sets the height and constrains the height to min maxHeight range + * @param height Number The height. + * @param dirty Boolean Specifies if the value is currently in the DOM. A value of false indicates that the value is already in the DOM. + */ + setHeight?( height?:number, dirty?:bool ): number; + /** [Method] Sets a property value + * @param propName String The property name (e.g., 'width'). + * @param value Object The new value of the property. + * @param dirty Boolean Optionally specifies if the value is currently in the DOM (default is true which indicates the value is not in the DOM and must be flushed at some point). + */ + setProp?( propName?:string, value?:any, dirty?:bool ): number; + /** [Method] Sets the height and constrains the width to min maxWidth range + * @param width Number The width. + * @param dirty Boolean Specifies if the value is currently in the DOM. A value of false indicates that the value is already in the DOM. + */ + setWidth?( width?:number, dirty?:bool ): number; + } +} +declare module Ext.layout { + export interface ILayout extends Ext.IBase { + /** [Property] (Boolean) Used only during a layout run, this value indicates that a layout has finished its calculations. ... */ + done?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Layout, or subclass thereof. ... */ + isLayout?: bool; + /** [Method] Removes layout s itemCls and owning Container s itemCls + * @param item Object + */ + afterRemove?( item?:any ): void; + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called before an item is rendered to allow the layout to configure the item + * @param item Ext.IComponent The item to be configured + */ + configureItem?( item?:Ext.IComponent ): void; + /** [Method] Destroys this layout */ + destroy?(): void; + /** [Method] This method if implemented is called after all layouts have completed + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Returns an object describing how this layout manages the size of the given component + * @param item Ext.IComponent + */ + getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + /** [Method] Returns the set of items to layout empty by default */ + getLayoutItems?(): void; + /** [Method] A one time initialization method called just before rendering */ + initLayout?(): void; + /** [Method] Validates item is in the proper place in the dom + * @param item Object + * @param target Object + * @param position Object + */ + isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] This method if implemented is called after all layouts are finished and all have a lastComponentSize cached + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + notifyOwner?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called when a child item changes in some way + * @param child Ext.IComponent The child item that has changed. + */ + onContentChange?( child?:Ext.IComponent ): bool; + /** [Method] Iterates over all passed items ensuring they are rendered + * @param items Object + * @param target Object + */ + renderItems?( items?:any, target?:any ): void; + } +} +declare module Ext.layout { + export interface ISizeModel extends Ext.IBase { + /** [Property] (Boolean) */ + auto?: bool; + /** [Property] (Boolean) True if the size is calculated by the ownerLayout. ... */ + calculated?: bool; + /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on a configured size. ... */ + calculatedFromConfigured?: bool; + /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on natural size model results. ... */ + calculatedFromNatural?: bool; + /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on shrinkWrap size model results. ... */ + calculatedFromShrinkWrap?: bool; + /** [Property] (Boolean) True if the size is configured (e.g., by a width or minWidth). ... */ + configured?: bool; + /** [Property] (Boolean) True if the size is constrained by a maxWidth or maxHeight configuration. ... */ + constrainedMax?: bool; + /** [Property] (Boolean) True if the size is constrained by a minWidth or minHeight configuration. ... */ + constrainedMin?: bool; + /** [Property] (Boolean) */ + fixed?: bool; + /** [Property] (String) */ + name?: string; + /** [Property] (Object) An object with the config property names that determine the size. ... */ + names?: any; + /** [Property] (Boolean) True if the size is determined by CSS and not by content. ... */ + natural?: bool; + /** [Property] (Number) */ + ordinal?: number; + /** [Property] (Object[]) An array of objects indexed by the ordinal of a height SizeModel on a width SizeModel to yield an object describing b... */ + pairsByHeightOrdinal?: Object[]; + /** [Property] (Boolean) True if the size is determined by content irrespective of the container box. ... */ + shrinkWrap?: bool; + } +} +declare module Ext.layout { + export interface ISizePolicy { + /** [Property] (Boolean) */ + readsHeight?: bool; + /** [Property] (Boolean) */ + readsWidth?: bool; + /** [Property] (Boolean) */ + setsHeight?: bool; + /** [Property] (Boolean) */ + setsWidth?: bool; + } +} +declare module Ext { + export interface ILoader { + } + export class Loader { + /** [Method] Sets a batch of path entries + * @param paths Object a set of className: path mappings + */ + static addClassPathMappings( paths?:Object ): Ext.ILoader; + /** [Method] Explicitly exclude files from being loaded + * @param excludes Array + */ + static exclude( excludes?:any[] ): any; + /** [Method] Get the config value corresponding to the specified name + * @param name String The config property name + */ + static getConfig( name?:string ): any; + /** [Method] Translates a className to a file path by adding the the proper prefix and converting the s to s + * @param className String + */ + static getPath( className?:string ): string; + /** [Method] Loads the specified script URL and calls the supplied callbacks + * @param options any The options object or simply the URL to load. + */ + static loadScript( options?:any ): void; + /** [Method] Add a new listener to be executed when all required scripts are fully loaded + * @param fn Function The function callback to be executed + * @param scope Object The execution scope (this) of the callback function + * @param withDomReady Boolean Whether or not to wait for document dom ready as well + */ + static onReady( fn?:any, scope?:any, withDomReady?:bool ): void; + /** [Method] Loads all classes by the given names and all their direct dependencies optionally executes the given callback functi + * @param expressions String Can either be a string or an array of string + * @param fn Function The callback function + * @param scope Object The execution scope (this) of the callback function + * @param excludes String Classes to be excluded, useful when being used with expressions + */ + static require( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; + static require( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; + static require( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; + static require( expressions?:any[], fn?:any, scope?:any, excludes?:any[] ): void; + /** [Method] Set the configuration for the loader + * @param config Object The config object to override the default values + */ + static setConfig( config?:any ): Ext.ILoader; + /** [Method] Sets the path of a namespace + * @param name any See flexSetter + * @param path String See flexSetter + */ + static setPath( name?:any, path?:string ): Ext.ILoader; + /** [Method] Synchronously loads all classes by the given names and all their direct dependencies optionally executes the given c + * @param expressions String Can either be a string or an array of string + * @param fn Function The callback function + * @param scope Object The execution scope (this) of the callback function + * @param excludes String Classes to be excluded, useful when being used with expressions + */ + static syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; + static syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; + static syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; + static syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:any[] ): void; + } +} +declare module Ext { + export interface ILoadMask extends Ext.IComponent,Ext.util.IBindable,Ext.util.IFloating { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String) The CSS class to apply to the mask element ... */ + maskCls?: string; + /** [Config Option] (String) The text to display in a centered loading message box. ... */ + msg?: string; + /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + msgCls?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Ext.data.Store) Optional Store to which the mask is bound. ... */ + store?: Ext.data.IStore; + /** [Config Option] (Ext.Component) The Component you wish to mask. ... */ + target?: Ext.IComponent; + /** [Config Option] (Boolean) Whether or not to use a loading message class or simply mask the bound element. ... */ + useMsg?: bool; + /** [Config Option] (Boolean) True to mask the targetEl of the bound Component. ... */ + useTargetEl?: bool; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked after the Component is shown after onShow is called + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + afterShow?( animateTarget?:string, callback?:any, scope?:any ): void; + afterShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Changes the data store bound to this LoadMask + * @param store Ext.data.IStore The store to bind to this LoadMask + */ + bindStore?( store?:Ext.data.IStore ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Center this Component in its container */ + center?(): Ext.IComponent; + /** [Method] Moves this floating Component into a constrain region + * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + */ + doConstrain?( constrainTo?:string ): void; + doConstrain?( constrainTo?:HTMLElement ): void; + doConstrain?( constrainTo?:Ext.IElement ): void; + doConstrain?( constrainTo?:Ext.util.IRegion ): void; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th + * @param active Boolean True to activate the Component, false to deactivate it. + * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + */ + setActive?( active?:bool, newActive?:Ext.IComponent ): void; + /** [Method] Shows this Component rendering it first if autoRender or floating are true + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + show?( animateTarget?:any, callback?:any, scope?:any ): any; + show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Sends this Component to the back of lower z index than any other visible windows */ + toBack?(): Ext.IComponent; + /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag + * @param preventFocus Boolean Specify true to prevent the Component from being focused. + */ + toFront?( preventFocus?:bool ): Ext.IComponent; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.menu { + export interface ICheckItem extends Ext.menu.IItem { + /** [Config Option] (Boolean) True to prevent the checked item from being toggled. ... */ + checkChangeDisabled?: bool; + /** [Config Option] (Function) Alternative for the checkchange event. ... */ + checkHandler?: any; + /** [Config Option] (Boolean) True to render the menuitem initially checked. ... */ + checked?: bool; + /** [Config Option] (String) The CSS class used by cls to show the checked state. ... */ + checkedCls?: string; + /** [Config Option] (String) Name of a radio group that the item belongs. ... */ + group?: string; + /** [Config Option] (String) The CSS class applied to this item's icon image to denote being a part of a radio group. ... */ + groupCls?: string; + /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + hideOnClick?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (String) The CSS class used by cls to show the unchecked state. ... */ + uncheckedCls?: string; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Disables just the checkbox functionality of this menu Item */ + disableCheckChange?(): void; + /** [Method] Reenables the checkbox functionality of this menu item after having been disabled by disableCheckChange */ + enableCheckChange?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Sets the checked state of the item + * @param checked Boolean True to check, false to uncheck + * @param suppressEvents Boolean True to prevent firing the checkchange events. + */ + setChecked?( checked?:bool, suppressEvents?:bool ): void; + } +} +declare module Ext.menu { + export interface IColorPicker extends Ext.menu.IMenu { + /** [Config Option] (Boolean) False to continue showing the menu after a color is selected. ... */ + hideOnClick?: bool; + /** [Config Option] (String) */ + pickerId?: string; + /** [Property] (Ext.picker.Color) */ + picker?: Ext.picker.IColor; + } +} +declare module Ext.menu { + export interface IDatePicker extends Ext.menu.IMenu { + /** [Config Option] (Boolean) False to continue showing the menu after a date is selected. ... */ + hideOnClick?: bool; + /** [Config Option] (String) */ + pickerId?: string; + /** [Property] (Ext.picker.Date) */ + picker?: Ext.picker.IDate; + } +} +declare module Ext.menu { + export interface IItem extends Ext.IComponent { + /** [Config Option] (String) The CSS class added to the menu item when the item is activated (focused/mouseover). ... */ + activeCls?: string; + /** [Config Option] (Boolean) Whether or not this menu item can be activated when focused/mouseovered. ... */ + canActivate?: bool; + /** [Config Option] (Number) The delay in milliseconds to wait before hiding the menu after clicking the menu item. ... */ + clickHideDelay?: number; + /** [Config Option] (Boolean) Whether or not to destroy any associated sub-menu when this item is destroyed. ... */ + destroyMenu?: bool; + /** [Config Option] (String) The CSS class added to the menu item when the item is disabled. ... */ + disabledCls?: string; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this item. ... */ + glyph?: any; + /** [Config Option] (Function) A function called when the menu item is clicked (can be used instead of click event). ... */ + handler?: any; + /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + hideOnClick?: bool; + /** [Config Option] (String) The href attribute to use for the underlying anchor link. ... */ + href?: string; + /** [Config Option] (String) */ + hrefTarget?: string; + /** [Config Option] (String) The path to an icon to display in this item. ... */ + icon?: string; + /** [Config Option] (String) */ + iconCls?: string; + /** [Config Option] (Ext.menu.Menu/Object) */ + menu?: any; + /** [Config Option] (String) The default Ext.util.Positionable.getAlignToXY anchor position value for this item's sub-menu relative to this item's... */ + menuAlign?: string; + /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu expands after this item is moused over. ... */ + menuExpandDelay?: number; + /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu hides after this item is moused out. ... */ + menuHideDelay?: number; + /** [Config Option] (Boolean) */ + plain?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + tooltip?: any; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Property] (Boolean) */ + activated?: bool; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Property] (Ext.menu.Menu) */ + parentMenu?: Ext.menu.IMenu; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Sets the click handler of this item + * @param fn Function The handler function + * @param scope Object The scope of the handler function + */ + setHandler?( fn?:any, scope?:any ): void; + /** [Method] Sets the icon on this item + * @param icon String The new icon + */ + setIcon?( icon?:string ): void; + /** [Method] Sets the iconCls of this item + * @param iconCls String The CSS class to set to iconCls + */ + setIconCls?( iconCls?:string ): void; + /** [Method] Set a child menu for this item + * @param menu any A menu, or menu configuration. null may be passed to remove the menu. + * @param destroyMenu Boolean True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used. + */ + setMenu?( menu?:any, destroyMenu?:bool ): void; + /** [Method] Sets the text of this item + * @param text String The text + */ + setText?( text?:string ): void; + /** [Method] Sets the tooltip for this menu item + * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + */ + setTooltip?( tooltip?:any ): Ext.menu.IItem; + } +} +declare module Ext.menu { + export interface ITextItem extends Ext.IComponent { + /** [Config Option] (String) The CSS class added to the menu item when the item is activated (focused/mouseover). ... */ + activeCls?: string; + /** [Config Option] (Boolean) Whether or not this menu item can be activated when focused/mouseovered. ... */ + canActivate?: bool; + /** [Config Option] (Number) The delay in milliseconds to wait before hiding the menu after clicking the menu item. ... */ + clickHideDelay?: number; + /** [Config Option] (Boolean) Whether or not to destroy any associated sub-menu when this item is destroyed. ... */ + destroyMenu?: bool; + /** [Config Option] (String) The CSS class added to the menu item when the item is disabled. ... */ + disabledCls?: string; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this item. ... */ + glyph?: any; + /** [Config Option] (Function) A function called when the menu item is clicked (can be used instead of click event). ... */ + handler?: any; + /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + hideOnClick?: bool; + /** [Config Option] (String) The href attribute to use for the underlying anchor link. ... */ + href?: string; + /** [Config Option] (String) */ + hrefTarget?: string; + /** [Config Option] (String) The path to an icon to display in this item. ... */ + icon?: string; + /** [Config Option] (String) */ + iconCls?: string; + /** [Config Option] (Ext.menu.Menu/Object) */ + menu?: any; + /** [Config Option] (String) The default Ext.util.Positionable.getAlignToXY anchor position value for this item's sub-menu relative to this item's... */ + menuAlign?: string; + /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu expands after this item is moused over. ... */ + menuExpandDelay?: number; + /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu hides after this item is moused out. ... */ + menuHideDelay?: number; + /** [Config Option] (Boolean) */ + plain?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + tooltip?: any; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Property] (Boolean) */ + activated?: bool; + /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + maskOnDisable?: bool; + /** [Property] (Ext.menu.Menu) */ + parentMenu?: Ext.menu.IMenu; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Sets the click handler of this item + * @param fn Function The handler function + * @param scope Object The scope of the handler function + */ + setHandler?( fn?:any, scope?:any ): void; + /** [Method] Sets the icon on this item + * @param icon String The new icon + */ + setIcon?( icon?:string ): void; + /** [Method] Sets the iconCls of this item + * @param iconCls String The CSS class to set to iconCls + */ + setIconCls?( iconCls?:string ): void; + /** [Method] Set a child menu for this item + * @param menu any A menu, or menu configuration. null may be passed to remove the menu. + * @param destroyMenu Boolean True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used. + */ + setMenu?( menu?:any, destroyMenu?:bool ): void; + /** [Method] Sets the text of this item + * @param text String The text + */ + setText?( text?:string ): void; + /** [Method] Sets the tooltip for this menu item + * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + */ + setTooltip?( tooltip?:any ): Ext.menu.IItem; + } +} +declare module Ext.menu { + export interface IKeyNav extends Ext.util.IKeyNav { + } +} +declare module Ext.menu { + export interface IManager extends Ext.IBase { + } + export class Manager { + /** [Method] Returns a Ext menu Menu object + * @param menu any The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. + */ + static get( menu?:any ): Ext.menu.IMenu; + /** [Method] Hides all menus that are currently visible */ + static hideAll(): bool; + } +} +declare module Ext.menu { + export interface IMenuMgr extends Ext.IBase { + } + export class MenuMgr { + /** [Method] Returns a Ext menu Menu object + * @param menu any The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. + */ + static get( menu?:any ): Ext.menu.IMenu; + /** [Method] Hides all menus that are currently visible */ + static hideAll(): bool; + } +} +declare module Ext.menu { + export interface IMenu extends Ext.panel.IPanel { + /** [Config Option] (Boolean) True to allow multiple menus to be displayed at the same time. ... */ + allowOtherMenus?: bool; + /** [Config Option] (Boolean) True to enable keyboard navigation for controlling the menu. ... */ + enableKeyNav?: bool; + /** [Config Option] (Boolean) A Menu configured as floating: true (the default) will be rendered as an absolutely positioned, floating Component. ... */ + floating?: bool; + /** [Config Option] (Boolean) True to initially render the Menu as hidden, requiring to be shown manually. ... */ + hidden?: bool; + /** [Config Option] (String) A String which specifies how this Component's encapsulating DOM element will be hidden. ... */ + hideMode?: string; + /** [Config Option] (Boolean) True to ignore clicks on any item in this menu that is a parent item (displays a submenu) so that the submenu is not ... */ + ignoreParentClicks?: bool; + /** [Config Option] (Number) The minimum width of the Menu. ... */ + minWidth?: number; + /** [Config Option] (Boolean) True to remove the incised line down the left side of the menu and to not indent general Component items. ... */ + plain?: bool; + /** [Config Option] (Boolean) True to show the icon separator. ... */ + showSeparator?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Menu, or subclass thereof. ... */ + isMenu?: bool; + /** [Property] (Ext.menu.Menu) */ + parentMenu?: Ext.menu.IMenu; + /** [Method] Returns whether a menu item can be activated or not + * @param item Object + */ + canActivateItem?( item?:any ): bool; + /** [Method] Deactivates the current active item on the menu if one exists + * @param andBlurFocusedItem Object + */ + deactivateActiveItem?( andBlurFocusedItem?:any ): void; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Menus are never contained and must not ascertain their visibility from the ancestor hierarchy Returns true if this + * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Shows this Component rendering it first if autoRender or floating are true + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + show?( animateTarget?:any, callback?:any, scope?:any ): any; + show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Shows this component by the specified Component or Element + * @param component any The Ext.Component or Ext.Element to show the component by. + * @param position any Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. + * @param offsets any Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + */ + showBy?( component?:any, position?:any, offsets?:any ): any; + showBy?( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; + showBy?( component?:Ext.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + } +} +declare module Ext.menu { + export interface ISeparator extends Ext.menu.IItem { + /** [Config Option] (String) The CSS class used by the separator item to show the incised line. ... */ + separatorCls?: string; + } +} +declare module Ext { + export interface IMessageBox extends Ext.window.IMessageBox { + } + export class MessageBox { + } +} +declare module Ext { + export interface IMsg extends Ext.window.IMessageBox { + } + export class Msg { + } +} +declare module Ext { + export interface IModelManager extends Ext.IAbstractManager { + } + export class ModelManager { + /** [Method] Returns the Ext data Model class for a given model name + * @param id any The classname of the model or the model class itself. + */ + static getModel( id?:any ): Ext.data.IModel; + } +} +declare module Ext { + export interface IModelMgr extends Ext.IAbstractManager { + } + export class ModelMgr { + /** [Method] Returns the Ext data Model class for a given model name + * @param id any The classname of the model or the model class itself. + */ + static getModel( id?:any ): Ext.data.IModel; + } +} +declare module Ext { + export interface INumber { + } + export class Number { + /** [Method] Checks whether or not the passed number is within a desired range + * @param number Number The number to check + * @param min Number The minimum number in the range + * @param max Number The maximum number in the range + */ + static constrain( number?:number, min?:number, max?:number ): number; + /** [Method] Corrects floating point numbers that overflow to a non precise value because of their floating nature for example 0 + * @param The Number number + */ + static correctFloat( The?:number ): number; + /** [Method] Validate that a value is numeric and convert it to a number if necessary + * @param value Object + * @param defaultValue Number The value to return if the original value is non-numeric + */ + static from( value?:any, defaultValue?:number ): number; + /** [Method] Returns a random integer between the specified range inclusive + * @param from Number Lowest value to return. + * @param to Number Highst value to return. + */ + static randomInt( from?:number, to?:number ): number; + /** [Method] Snaps the passed number between stopping points based upon a passed increment value + * @param value Number The unsnapped value. + * @param increment Number The increment by which the value must move. + * @param minValue Number The minimum value to which the returned value must be constrained. Overrides the increment. + * @param maxValue Number The maximum value to which the returned value must be constrained. Overrides the increment. + */ + static snap( value?:number, increment?:number, minValue?:number, maxValue?:number ): number; + /** [Method] Snaps the passed number between stopping points based upon a passed increment value + * @param value Number The unsnapped value. + * @param increment Number The increment by which the value must move. + * @param minValue Number The minimum value to which the returned value must be constrained. + * @param maxValue Number The maximum value to which the returned value must be constrained. + */ + static snapInRange( value?:number, increment?:number, minValue?:number, maxValue?:number ): number; + /** [Method] Formats a number using fixed point notation + * @param value Number The number to format + * @param precision Number The number of digits to show after the decimal point + */ + static toFixed( value?:number, precision?:number ): void; + } +} +declare module Ext { + export interface IObject { + } + export class Object { + /** [Method] Returns a new object with the given object as the prototype chain + * @param object Object The prototype chain for the new object. + */ + static chain( object?:any ): void; + /** [Method] Iterates through an object and invokes the given callback function for each iteration + * @param object Object The object to iterate + * @param fn Function The callback function. + * @param scope Object The execution scope (this) of the callback function + */ + static each( object?:any, fn?:any, scope?:any ): void; + /** [Method] Shallow compares the contents of 2 objects using strict equality + * @param object1 Object + * @param object2 Object + */ + static equals( object1?:any, object2?:any ): bool; + /** [Method] Converts a query string back into an object + * @param queryString String The query string to decode + * @param recursive Boolean Whether or not to recursively decode the string. This format is supported by PHP / Ruby on Rails servers and similar. + */ + static fromQueryString( queryString?:string, recursive?:bool ): any; + /** [Method] Returns the first matching key corresponding to the given value + * @param object Object + * @param value Object The value to find + */ + static getKey( object?:any, value?:any ): void; + /** [Method] Gets all keys of the given object as an array + * @param object Object + */ + static getKeys( object?:any ): string[]; + /** [Method] Gets the total number of this object s own properties var size Ext Object getSize name Jacky loves + * @param object Object + */ + static getSize( object?:any ): number; + /** [Method] Gets all values of the given object as an array + * @param object Object + */ + static getValues( object?:any ): any[]; + /** [Method] Checks if there are any properties on this object + * @param object Object + */ + static isEmpty( object?:any ): bool; + /** [Method] Merges any number of objects recursively without referencing them or their children + * @param destination Object The object into which all subsequent objects are merged. + * @param object Object... Any number of objects to merge into the destination. + */ + static merge( destination:any, ...object:any[] ): any; + /** [Method] Converts a name value pair to an array of objects with support for nested structures + * @param name String + * @param value any + * @param recursive Boolean True to traverse object recursively + */ + static toQueryObjects( name?:string, value?:any, recursive?:bool ): any[]; + /** [Method] Takes an object and converts it to an encoded query string + * @param object Object The object to encode + * @param recursive Boolean Whether or not to interpret the object in recursive format. (PHP / Ruby on Rails servers and similar). + */ + static toQueryString( object?:any, recursive?:bool ): string; + } +} +declare module Ext.panel { + export interface IAbstractPanel extends Ext.container.IContainer,Ext.container.IDockingContainer { + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) A shortcut to add or remove the border on the body of a panel. ... */ + bodyBorder?: bool; + /** [Config Option] (String/String[]) A CSS class, space-delimited string of classes, or array of classes to be applied to the panel's body element. ... */ + bodyCls?: any; + /** [Config Option] (Number/String) A shortcut for setting a padding style on the body element. ... */ + bodyPadding?: any; + /** [Config Option] (String/Object/Function) Custom CSS styles to be applied to the panel's body element, which can be supplied as a valid CSS style string, an ob... */ + bodyStyle?: any; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + dockedItems?: any; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Boolean/Number) Allows for this panel to include the dockedItems when trying to determine the overall size of the panel. ... */ + shrinkWrapDock?: any; + /** [Property] (Ext.dom.Element) The Panel's body Element which may be used to contain HTML content. ... */ + body?: Ext.dom.IElement; + /** [Property] (String) The name of the padding property that is used by the layout to manage padding. ... */ + contentPaddingProperty?: string; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Panel, or subclass thereof. ... */ + isPanel?: bool; + /** [Method] Adds a CSS class to the body element + * @param cls String The class to add + */ + addBodyCls?( cls?:string ): Ext.panel.IPanel; + /** [Method] Adds docked item s to the container + * @param component any The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param pos Number The index at which the Component will be added + */ + addDocked?( component?:any, pos?:number ): Ext.IComponent[]; + /** [Method] inherit docs Method which adds a specified UI uiCls to the components element + * @param ui String The UI to remove from the element. + */ + addUIClsToElement?( ui?:string ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Attempts a default component lookup see Ext container Container getComponent + * @param comp any The component id, itemId or position to find + */ + getComponent?( comp?:any ): any; + getComponent?( comp?:string ): Ext.IComponent; + getComponent?( comp?:number ): Ext.IComponent; + /** [Method] Finds a docked component by id itemId or position + * @param comp any The id, itemId or position of the docked component (see getComponent for details) + */ + getDockedComponent?( comp?:any ): any; + getDockedComponent?( comp?:string ): Ext.IComponent; + getDockedComponent?( comp?:number ): Ext.IComponent; + /** [Method] Retrieves an array of all currently docked Components + * @param selector String A ComponentQuery selector string to filter the returned items. + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + getDockedItems?( selector?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + getRefItems?( deep?:any ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Inserts docked item s to the panel at the indicated position + * @param pos Number The index at which the Component will be inserted + * @param component any The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + */ + insertDocked?( pos?:number, component?:any ): void; + /** [Method] Invoked after a docked item is added to the Panel + * @param component Ext.IComponent + */ + onDockedAdd?( component?:Ext.IComponent ): void; + /** [Method] Invoked after a docked item is removed from the Panel + * @param component Ext.IComponent + */ + onDockedRemove?( component?:Ext.IComponent ): void; + /** [Method] Removes a CSS class from the body element + * @param cls String The class to remove + */ + removeBodyCls?( cls?:string ): Ext.panel.IPanel; + /** [Method] Removes the docked item from the panel + * @param item Ext.IComponent The Component to remove. + * @param autoDestroy Boolean Destroy the component after removal. + */ + removeDocked?( item?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] inherit docs Method which removes a specified UI uiCls from the components element + * @param ui String The UI to add to the element. + */ + removeUIClsFromElement?( ui?:string ): void; + /** [Method] Sets the body style according to the passed parameters + * @param style Mixed A full style specification string, or object, or the name of a style property to set. + * @param value String If the first param was a style property name, the style property value. + */ + setBodyStyle?( style?:any, value?:string ): Ext.panel.IPanel; + } +} +declare module Ext.panel { + export interface IDD extends Ext.dd.IDragSource { + /** [Method] An empty function by default but provided so that you can perform a custom action after an invalid drop has occurred + * @param e Event The event object + * @param id String The id of the dropped element + */ + afterInvalidDrop?( e?:Event, id?:string ): void; + /** [Method] Sets the pointer offset to the distance between the linked element s top left corner and the location the element was + * @param iPageX Number the X coordinate of the click + * @param iPageY Number the Y coordinate of the click + */ + autoOffset?( iPageX?:number, iPageY?:number ): void; + /** [Method] Event that fires prior to the onMouseDown event + * @param e Object + */ + b4MouseDown?( e?:any ): void; + /** [Method] Creates the proxy element if it does not yet exist */ + createFrame?(): void; + /** [Method] Called when we are done dragging the object + * @param e Event the mouseup event + */ + endDrag?( e?:Event ): void; + /** [Method] Returns a reference to the actual element to drag */ + getDragEl?(): HTMLElement; + /** [Method] Override this we don t want to repair on an invalid drop the panel should main it s position Abstract method cal + * @param e Event the mouseup event + */ + onInvalidDrop?( e?:Event ): void; + /** [Method] Abstract method called after a drag drop object is clicked and the drag or mousedown time thresholds have beeen met + * @param x Number X click location + * @param y Number Y click location + */ + startDrag?( x?:number, y?:number ): void; + } +} +declare module Ext.panel { + export interface IHeader extends Ext.container.IContainer { + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + glyph?: any; + /** [Config Option] (String) Path to image for an icon in the header. ... */ + icon?: string; + /** [Config Option] (String) CSS class for an icon in the header. ... */ + iconCls?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + shrinkWrap?: any; + /** [Config Option] (String) */ + title?: string; + /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + titleAlign?: string; + /** [Config Option] (Number) The ordinal position among the header items (tools and other components specified using the items config) at which th... */ + titlePosition?: number; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Header, or subclass thereof. ... */ + isHeader?: bool; + /** [Method] Add a tool to the header + * @param tool Object + */ + addTool?( tool?:any ): void; + /** [Method] inherit docs Method which adds a specified UI uiCls to the components element + * @param ui String The UI to remove from the element. + */ + addUIClsToElement?( ui?:string ): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components + * @param layout Ext.layout.container.IContainer + */ + afterLayout?( layout?:Ext.layout.container.IContainer ): void; + /** [Method] Occurs before componentLayout is run */ + beforeLayout?(): void; + /** [Method] Gets the tools for this header */ + getTools?(): Ext.panel.ITool[]; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Set up the tools lt tool type gt link in the owning Panel + * @param component Object + * @param index Object + */ + onAdd?( component?:any, index?:any ): void; + /** [Method] inherit docs Method which removes a specified UI uiCls from the components element + * @param ui String The UI to add to the element. + */ + removeUIClsFromElement?( ui?:string ): void; + /** [Method] Sets glyph that provides the icon image for this header + * @param glyph Number the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + */ + setGlyph?( glyph?:number ): void; + setGlyph?( glyph?:string ): void; + /** [Method] Sets the image path that provides the icon image for this header + * @param icon String The new icon path + */ + setIcon?( icon?:string ): void; + /** [Method] Sets the CSS class that provides the icon image for this header + * @param cls String The new CSS class name + */ + setIconCls?( cls?:string ): void; + /** [Method] Sets the title of the header + * @param title String The title to be set + */ + setTitle?( title?:string ): void; + } +} +declare module Ext.panel { + export interface IPanel extends Ext.panel.IAbstractPanel { + /** [Config Option] (Boolean) true to animate the transition when the panel is collapsed, false to skip the animation (defaults to true if the Ext.... */ + animCollapse?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + bbar?: any; + /** [Config Option] (String) The alignment of any buttons added to this panel. ... */ + buttonAlign?: string; + /** [Config Option] (Object/Object[]) Convenience config used for adding buttons docked to the bottom of the panel. ... */ + buttons?: any; + /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + closable?: bool; + /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + closeAction?: string; + /** [Config Option] (String) The direction to collapse the Panel when the toggle button is clicked. ... */ + collapseDirection?: string; + /** [Config Option] (Boolean) true to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the pane... */ + collapseFirst?: bool; + /** [Config Option] (String) Important: this config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + collapseMode?: string; + /** [Config Option] (Boolean) true to render the panel collapsed, false to render it expanded. ... */ + collapsed?: bool; + /** [Config Option] (String) A CSS class to add to the panel's element after it has been collapsed. ... */ + collapsedCls?: string; + /** [Config Option] (Boolean) True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area. ... */ + collapsible?: bool; + /** [Config Option] (Boolean) True to constrain the panel within its containing element, false to allow it to fall outside of its containing element. ... */ + constrain?: bool; + /** [Config Option] (Boolean) True to constrain the panel header within its containing element (allowing the panel body to fall outside of its cont... */ + constrainHeader?: bool; + /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + dockedItems?: any; + /** [Config Option] (Object/Object[]) Convenience config used for adding items to the bottom of the panel. ... */ + fbar?: any; + /** [Config Option] (Boolean) Important: This config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + floatable?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + frame?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + frameHeader?: bool; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + glyph?: any; + /** [Config Option] (Boolean/Object) Pass as false to prevent a Header from being created and shown. ... */ + header?: any; + /** [Config Option] (String) */ + headerOverCls?: string; + /** [Config Option] (String) Specify as 'top', 'bottom', 'left' or 'right'. ... */ + headerPosition?: string; + /** [Config Option] (Boolean) true to hide the expand/collapse toggle button when collapsible == true, false to display it. ... */ + hideCollapseTool?: bool; + /** [Config Option] (String) Path to image for an icon in the header. ... */ + icon?: string; + /** [Config Option] (String) CSS class for an icon in the header. ... */ + iconCls?: string; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + lbar?: any; + /** [Config Option] (Boolean) When true, the dock component layout writes height information to the panel's DOM elements based on its shrink wrap h... */ + manageHeight?: bool; + /** [Config Option] (Number) Minimum width of all footer toolbar buttons in pixels. ... */ + minButtonWidth?: number; + /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + overlapHeader?: bool; + /** [Config Option] (Ext.Component/Object) Important: This config is only effective for collapsible Panels which are direct child items of a border layout when ... */ + placeholder?: any; + /** [Config Option] (Number) */ + placeholderCollapseHideMode?: number; + /** [Config Option] (Boolean) ... */ + preventHeader?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + rbar?: any; + /** [Config Option] (Boolean) When draggable is true, Specify this as true to cause the draggable config to work the same as it does in Window. ... */ + simpleDrag?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + tbar?: any; + /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + title?: string; + /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + titleAlign?: string; + /** [Config Option] (Boolean) true to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, fa... */ + titleCollapse?: bool; + /** [Config Option] (Object[]/Ext.panel.Tool[]) An array of Ext.panel.Tool configs/instances to be added to the header tool area. ... */ + tools?: any; + /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) Only present if this Panel has been configured with draggable true. ... */ + dd?: any; + /** [Method] Add tools to this panel + * @param tools any The tools to add + */ + addTool?( tools?:any ): void; + /** [Method] Template method to be implemented in subclasses to add their tools after the collapsible tool */ + addTools?(): void; + /** [Method] Invoked after the Panel is Collapsed + * @param animated Boolean + */ + afterCollapse?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Expanded + * @param animated Boolean + */ + afterExpand?( animated?:bool ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Closes the Panel */ + close?(): void; + /** [Method] Collapses the panel body so that the body becomes hidden + * @param direction String The direction to collapse towards. Must be one of Ext.Component.DIRECTION_TOP Ext.Component.DIRECTION_RIGHT Ext.Component.DIRECTION_BOTTOM Ext.Component.DIRECTION_LEFT Defaults to collapseDirection. + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + collapse?( direction?:string, animate?:bool ): Ext.panel.IPanel; + /** [Method] converts a collapsdDir into an anchor argument for Element slideIn overridden in rtl mode to switch l and r + * @param collapseDir Object + */ + convertCollapseDir?( collapseDir?:any ): void; + /** [Method] Expands the panel body so that it becomes visible + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + expand?( animate?:bool ): Ext.panel.IPanel; + /** [Method] Returns the current collapsed state of the panel */ + getCollapsed?(): bool; + /** [Method] Returns the current collapsed state of the panel */ + getCollapsed?(): string; + /** [Method] Gets the Header for this panel */ + getHeader?(): void; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Determines whether this Component is the root of a layout */ + isLayoutRoot?(): void; + /** [Method] Returns true if this component is visible + * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] + * @param border String The border, see border. If a falsey value is passed the border will be removed. + */ + setBorder?( border?:string ): void; + setBorder?( border?:number ): void; + /** [Method] Set the glyph for the panel s header + * @param newGlyph Number The new glyph This parameter expects a format consistent with that of glyph + */ + setGlyph?( newGlyph?:number ): void; + setGlyph?( newGlyph?:string ): void; + /** [Method] Set the icon for the panel s header + * @param newIcon String The new icon path + */ + setIcon?( newIcon?:string ): void; + /** [Method] Set the iconCls for the panel s header + * @param newIconCls String The new CSS class name + */ + setIconCls?( newIconCls?:string ): void; + /** [Method] Set a title for the panel s header + * @param newTitle String + */ + setTitle?( newTitle?:string ): void; + /** [Method] Sets the UI for the component + * @param ui String The new UI for the component. + */ + setUI?( ui?:string ): void; + /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ + toggleCollapse?(): Ext.panel.IPanel; + } +} +declare module Ext { + export interface IPanel extends Ext.panel.IAbstractPanel { + /** [Config Option] (Boolean) true to animate the transition when the panel is collapsed, false to skip the animation (defaults to true if the Ext.... */ + animCollapse?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + bbar?: any; + /** [Config Option] (String) The alignment of any buttons added to this panel. ... */ + buttonAlign?: string; + /** [Config Option] (Object/Object[]) Convenience config used for adding buttons docked to the bottom of the panel. ... */ + buttons?: any; + /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + closable?: bool; + /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + closeAction?: string; + /** [Config Option] (String) The direction to collapse the Panel when the toggle button is clicked. ... */ + collapseDirection?: string; + /** [Config Option] (Boolean) true to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the pane... */ + collapseFirst?: bool; + /** [Config Option] (String) Important: this config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + collapseMode?: string; + /** [Config Option] (Boolean) true to render the panel collapsed, false to render it expanded. ... */ + collapsed?: bool; + /** [Config Option] (String) A CSS class to add to the panel's element after it has been collapsed. ... */ + collapsedCls?: string; + /** [Config Option] (Boolean) True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area. ... */ + collapsible?: bool; + /** [Config Option] (Boolean) True to constrain the panel within its containing element, false to allow it to fall outside of its containing element. ... */ + constrain?: bool; + /** [Config Option] (Boolean) True to constrain the panel header within its containing element (allowing the panel body to fall outside of its cont... */ + constrainHeader?: bool; + /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + dockedItems?: any; + /** [Config Option] (Object/Object[]) Convenience config used for adding items to the bottom of the panel. ... */ + fbar?: any; + /** [Config Option] (Boolean) Important: This config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + floatable?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + frame?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + frameHeader?: bool; + /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + glyph?: any; + /** [Config Option] (Boolean/Object) Pass as false to prevent a Header from being created and shown. ... */ + header?: any; + /** [Config Option] (String) */ + headerOverCls?: string; + /** [Config Option] (String) Specify as 'top', 'bottom', 'left' or 'right'. ... */ + headerPosition?: string; + /** [Config Option] (Boolean) true to hide the expand/collapse toggle button when collapsible == true, false to display it. ... */ + hideCollapseTool?: bool; + /** [Config Option] (String) Path to image for an icon in the header. ... */ + icon?: string; + /** [Config Option] (String) CSS class for an icon in the header. ... */ + iconCls?: string; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + lbar?: any; + /** [Config Option] (Boolean) When true, the dock component layout writes height information to the panel's DOM elements based on its shrink wrap h... */ + manageHeight?: bool; + /** [Config Option] (Number) Minimum width of all footer toolbar buttons in pixels. ... */ + minButtonWidth?: number; + /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + overlapHeader?: bool; + /** [Config Option] (Ext.Component/Object) Important: This config is only effective for collapsible Panels which are direct child items of a border layout when ... */ + placeholder?: any; + /** [Config Option] (Number) */ + placeholderCollapseHideMode?: number; + /** [Config Option] (Boolean) ... */ + preventHeader?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + rbar?: any; + /** [Config Option] (Boolean) When draggable is true, Specify this as true to cause the draggable config to work the same as it does in Window. ... */ + simpleDrag?: bool; + /** [Config Option] (Object/Object[]) Convenience config. ... */ + tbar?: any; + /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + title?: string; + /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + titleAlign?: string; + /** [Config Option] (Boolean) true to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, fa... */ + titleCollapse?: bool; + /** [Config Option] (Object[]/Ext.panel.Tool[]) An array of Ext.panel.Tool configs/instances to be added to the header tool area. ... */ + tools?: any; + /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) Only present if this Panel has been configured with draggable true. ... */ + dd?: any; + /** [Method] Add tools to this panel + * @param tools any The tools to add + */ + addTool?( tools?:any ): void; + /** [Method] Template method to be implemented in subclasses to add their tools after the collapsible tool */ + addTools?(): void; + /** [Method] Invoked after the Panel is Collapsed + * @param animated Boolean + */ + afterCollapse?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Expanded + * @param animated Boolean + */ + afterExpand?( animated?:bool ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Closes the Panel */ + close?(): void; + /** [Method] Collapses the panel body so that the body becomes hidden + * @param direction String The direction to collapse towards. Must be one of Ext.Component.DIRECTION_TOP Ext.Component.DIRECTION_RIGHT Ext.Component.DIRECTION_BOTTOM Ext.Component.DIRECTION_LEFT Defaults to collapseDirection. + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + collapse?( direction?:string, animate?:bool ): Ext.panel.IPanel; + /** [Method] converts a collapsdDir into an anchor argument for Element slideIn overridden in rtl mode to switch l and r + * @param collapseDir Object + */ + convertCollapseDir?( collapseDir?:any ): void; + /** [Method] Expands the panel body so that it becomes visible + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + expand?( animate?:bool ): Ext.panel.IPanel; + /** [Method] Returns the current collapsed state of the panel */ + getCollapsed?(): bool; + /** [Method] Returns the current collapsed state of the panel */ + getCollapsed?(): string; + /** [Method] Gets the Header for this panel */ + getHeader?(): void; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Determines whether this Component is the root of a layout */ + isLayoutRoot?(): void; + /** [Method] Returns true if this component is visible + * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + */ + isVisible?( deep?:bool ): bool; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + */ + onRemoved?( destroying?:bool ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] + * @param border String The border, see border. If a falsey value is passed the border will be removed. + */ + setBorder?( border?:string ): void; + setBorder?( border?:number ): void; + /** [Method] Set the glyph for the panel s header + * @param newGlyph Number The new glyph This parameter expects a format consistent with that of glyph + */ + setGlyph?( newGlyph?:number ): void; + setGlyph?( newGlyph?:string ): void; + /** [Method] Set the icon for the panel s header + * @param newIcon String The new icon path + */ + setIcon?( newIcon?:string ): void; + /** [Method] Set the iconCls for the panel s header + * @param newIconCls String The new CSS class name + */ + setIconCls?( newIconCls?:string ): void; + /** [Method] Set a title for the panel s header + * @param newTitle String + */ + setTitle?( newTitle?:string ): void; + /** [Method] Sets the UI for the component + * @param ui String The new UI for the component. + */ + setUI?( ui?:string ): void; + /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ + toggleCollapse?(): Ext.panel.IPanel; + } +} +declare module Ext.panel { + export interface IProxy extends Ext.IBase { + /** [Config Option] (Boolean) True to insert a placeholder proxy element while dragging the panel, false to drag with no proxy. ... */ + insertProxy?: bool; + /** [Config Option] (Boolean) True to move the panel to the dragged position when dropped ... */ + moveOnDrag?: bool; + /** [Property] (Ext.panel.Panel) */ + panel?: Ext.panel.IPanel; + /** [Method] Gets the proxy s element */ + getEl?(): Ext.IElement; + /** [Method] Gets the proxy s ghost Panel */ + getGhost?(): Ext.panel.IPanel; + /** [Method] Gets the proxy element */ + getProxy?(): Ext.IElement; + /** [Method] Hides the proxy */ + hide?(): void; + /** [Method] Moves the proxy to a different position in the DOM + * @param parentNode HTMLElement The proxy's parent DOM node + * @param before HTMLElement The sibling node before which the proxy should be inserted. Defaults to the parent's last child if not specified. + */ + moveProxy?( parentNode?:HTMLElement, before?:HTMLElement ): void; + /** [Method] Shows the proxy */ + show?(): void; + } +} +declare module Ext.dd { + export interface IPanelProxy extends Ext.IBase { + /** [Config Option] (Boolean) True to insert a placeholder proxy element while dragging the panel, false to drag with no proxy. ... */ + insertProxy?: bool; + /** [Config Option] (Boolean) True to move the panel to the dragged position when dropped ... */ + moveOnDrag?: bool; + /** [Property] (Ext.panel.Panel) */ + panel?: Ext.panel.IPanel; + /** [Method] Gets the proxy s element */ + getEl?(): Ext.IElement; + /** [Method] Gets the proxy s ghost Panel */ + getGhost?(): Ext.panel.IPanel; + /** [Method] Gets the proxy element */ + getProxy?(): Ext.IElement; + /** [Method] Hides the proxy */ + hide?(): void; + /** [Method] Moves the proxy to a different position in the DOM + * @param parentNode HTMLElement The proxy's parent DOM node + * @param before HTMLElement The sibling node before which the proxy should be inserted. Defaults to the parent's last child if not specified. + */ + moveProxy?( parentNode?:HTMLElement, before?:HTMLElement ): void; + /** [Method] Shows the proxy */ + show?(): void; + } +} +declare module Ext.panel { + export interface ITable extends Ext.panel.IPanel { + /** [Config Option] (Boolean) True to allow deselecting a record. ... */ + allowDeselect?: bool; + /** [Config Option] (Boolean) */ + columnLines?: bool; + /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + columns?: any; + /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + deferRowRender?: bool; + /** [Config Option] (Boolean) True to disable selection model. ... */ + disableSelection?: bool; + /** [Config Option] (String) Default text (html tags are accepted) to display in the Panel body when the Store is empty. ... */ + emptyText?: string; + /** [Config Option] (Boolean) False to disable column hiding within this grid. ... */ + enableColumnHide?: bool; + /** [Config Option] (Boolean) False to disable column dragging within this grid. ... */ + enableColumnMove?: bool; + /** [Config Option] (Boolean) False to disable column resizing within this grid. ... */ + enableColumnResize?: bool; + /** [Config Option] (Boolean) Configure as true to enable locking support for this grid. ... */ + enableLocking?: bool; + /** [Config Option] (Ext.grid.feature.Feature[]/Object[]/Ext.enums.Feature[]) An array of grid Features to be added to this grid. ... */ + features?: any; + /** [Config Option] (Boolean) True to force the columns to fit into the available width. ... */ + forceFit?: bool; + /** [Config Option] (Boolean) True to hide column headers. ... */ + hideHeaders?: bool; + /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + layout?: any; + /** [Config Option] (Boolean) True to enable 'MULTI' selection mode on selection model. ... */ + multiSelect?: bool; + /** [Config Option] (Boolean) Adds row line styling ... */ + rowLines?: bool; + /** [Config Option] (String/Boolean) Scrollers configuration. ... */ + scroll?: any; + /** [Config Option] (Boolean) True to constrain column dragging so that a column cannot be dragged in or out of it's current group. ... */ + sealedColumns?: bool; + /** [Config Option] (Ext.selection.Model/Object) A selection model instance or config object. ... */ + selModel?: any; + /** [Config Option] (String) An xtype of selection model to use. ... */ + selType?: string; + /** [Config Option] (Boolean) True to enable 'SIMPLE' selection mode on selection model. ... */ + simpleSelect?: bool; + /** [Config Option] (Boolean) False to disable column sorting via clicking the header and via the Sorting menu items. ... */ + sortableColumns?: bool; + /** [Config Option] (Ext.data.Store) */ + store?: Ext.data.IStore; + /** [Config Option] (Object) A config object to be used when configuring the scroll monitor to control refreshing of data in an "infinite grid". ... */ + verticalScroller?: any; + /** [Config Option] (Ext.view.Table) The Ext.view.Table used by the grid. ... */ + view?: Ext.view.ITable; + /** [Config Option] (Object) A config object that will be applied to the grid's UI view. ... */ + viewConfig?: any; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Property] (Boolean) True to indicate that a view has been injected into the panel. ... */ + hasView?: bool; + /** [Property] (Boolean) If you are writing a grid plugin or a {Ext.grid.feature.Feature Feature} which creates a column-based structure which... */ + optimizedColumnMove?: bool; + /** [Method] Invoked after the Panel is Collapsed + * @param animated Boolean + */ + afterCollapse?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Expanded + * @param animated Boolean + */ + afterExpand?( animated?:bool ): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Returns the selection model being used and creates it via the configuration if it has not been created already */ + getSelectionModel?(): Ext.selection.IModel; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Returns the store associated with this Panel */ + getStore?(): Ext.data.IStore; + /** [Method] Gets the view for this panel */ + getView?(): Ext.view.ITable; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + } +} +declare module Ext.panel { + export interface ITool extends Ext.IComponent { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String) CSS class to add when the Component is disabled. ... */ + disabledCls?: string; + /** [Config Option] (Function) A function to execute when the tool is clicked. ... */ + handler?: any; + /** [Config Option] (Number) Tool size is fixed so that Box layout can avoid measurements. ... */ + height?: number; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) The scope to execute the handler function. ... */ + scope?: any; + /** [Config Option] (Boolean) Specify as false to allow click event to propagate. ... */ + stopEvent?: bool; + /** [Config Option] (String/Object) */ + tooltip?: any; + /** [Config Option] (String) The type of tooltip to use. ... */ + tooltipType?: string; + /** [Config Option] (String) The type of tool to render. ... */ + type?: string; + /** [Config Option] (Number) The width of this component in pixels. ... */ + width?: number; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Tool, or subclass thereof. ... */ + isTool?: bool; + /** [Method] inherit docs Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] inherit docs Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Sets the type of the tool + * @param type String The new type. See the type config. + */ + setType?( type?:string ): Ext.panel.ITool; + } +} +declare module Ext.perf { + export interface IAccumulator extends Ext.IBase { + } +} +declare module Ext.perf { + export interface IMonitor extends Ext.IBase { + } + export class Monitor { + /** [Method] */ + constructor(); + } +} +declare module Ext { + export interface IPerf extends Ext.IBase { + } + export class Perf { + /** [Method] */ + constructor(); + } +} +declare module Ext.picker { + export interface IColor extends Ext.IComponent { + /** [Config Option] (Boolean) If set to true then reselecting a color that is already selected fires the select event ... */ + allowReselect?: bool; + /** [Config Option] (String) The DOM event that will cause a color to be selected. ... */ + clickEvent?: string; + /** [Config Option] (String) The CSS class to apply to the containing element. ... */ + componentCls?: string; + /** [Config Option] (Function) A function that will handle the select event of this picker. ... */ + handler?: any; + /** [Config Option] (String) The CSS class to apply to the color picker's items ... */ + itemCls?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + scope?: any; + /** [Config Option] (String) The CSS class to apply to the selected element ... */ + selectedCls?: string; + /** [Config Option] (String) The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). ... */ + value?: string; + /** [Property] (String[]) An array of 6-digit color hex code strings (without the # symbol). ... */ + colors?: string[]; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Get the currently selected color value */ + getValue?(): string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Selects the specified color in the picker fires the select event + * @param color String A valid 6-digit color hex code (# will be stripped if included) + * @param suppressEvent Boolean True to stop the select event from firing. + */ + select?( color?:string, suppressEvent?:bool ): void; + } +} +declare module Ext { + export interface IColorPalette extends Ext.IComponent { + /** [Config Option] (Boolean) If set to true then reselecting a color that is already selected fires the select event ... */ + allowReselect?: bool; + /** [Config Option] (String) The DOM event that will cause a color to be selected. ... */ + clickEvent?: string; + /** [Config Option] (String) The CSS class to apply to the containing element. ... */ + componentCls?: string; + /** [Config Option] (Function) A function that will handle the select event of this picker. ... */ + handler?: any; + /** [Config Option] (String) The CSS class to apply to the color picker's items ... */ + itemCls?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + scope?: any; + /** [Config Option] (String) The CSS class to apply to the selected element ... */ + selectedCls?: string; + /** [Config Option] (String) The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). ... */ + value?: string; + /** [Property] (String[]) An array of 6-digit color hex code strings (without the # symbol). ... */ + colors?: string[]; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Get the currently selected color value */ + getValue?(): string; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Selects the specified color in the picker fires the select event + * @param color String A valid 6-digit color hex code (# will be stripped if included) + * @param suppressEvent Boolean True to stop the select event from firing. + */ + select?( color?:string, suppressEvent?:bool ): void; + } +} +declare module Ext.picker { + export interface IDate extends Ext.IComponent { + /** [Config Option] (String) The text to display for the aria title ... */ + ariaTitle?: string; + /** [Config Option] (String) The date format to display for the current value in the ariaTitle ... */ + ariaTitleDateFormat?: string; + /** [Config Option] (String) The base CSS class to apply to this components element. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String[]) */ + dayNames?: string[]; + /** [Config Option] (Boolean) True to disable animations when showing the month picker. ... */ + disableAnim?: bool; + /** [Config Option] (String) The class to apply to disabled cells. ... */ + disabledCellCls?: string; + /** [Config Option] (String[]) An array of 'dates' to disable, as strings. ... */ + disabledDates?: string[]; + /** [Config Option] (RegExp) JavaScript regular expression used to disable a pattern of dates. ... */ + disabledDatesRE?: RegExp; + /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + disabledDatesText?: string; + /** [Config Option] (Number[]) An array of days to disable, 0-based. ... */ + disabledDays?: number[]; + /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + disabledDaysText?: string; + /** [Config Option] (Boolean) True to automatically focus the picker on show. ... */ + focusOnShow?: bool; + /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Function) Optional. ... */ + handler?: any; + /** [Config Option] (Object) Specifies optional custom key event handlers for the Ext.util.KeyNav attached to this date picker. ... */ + keyNavConfig?: any; + /** [Config Option] (String) The format for displaying a date in a longer format. ... */ + longDayFormat?: string; + /** [Config Option] (Date) Maximum allowable date (JavaScript date object) ... */ + maxDate?: any; + /** [Config Option] (String) The error text to display if the maxDate validation fails. ... */ + maxText?: string; + /** [Config Option] (Date) Minimum allowable date (JavaScript date object) ... */ + minDate?: any; + /** [Config Option] (String) The error text to display if the minDate validation fails. ... */ + minText?: string; + /** [Config Option] (String[]) */ + monthNames?: string[]; + /** [Config Option] (String) The date format for the header month ... */ + monthYearFormat?: string; + /** [Config Option] (String) The header month selector tooltip ... */ + monthYearText?: string; + /** [Config Option] (String) The next month navigation button tooltip ... */ + nextText?: string; + /** [Config Option] (String) The previous month navigation button tooltip ... */ + prevText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + scope?: any; + /** [Config Option] (String) The class to apply to the selected cell. ... */ + selectedCls?: string; + /** [Config Option] (Boolean) False to hide the footer area containing the Today button and disable the keyboard handler for spacebar that selects ... */ + showToday?: bool; + /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + startDay?: number; + /** [Config Option] (String) The text to display on the button that selects the current date ... */ + todayText?: string; + /** [Config Option] (String) A string used to format the message for displaying in a tooltip over the button that selects the current date. ... */ + todayTip?: string; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets a single character to represent the day of the week + * @param value Object + */ + getDayInitial?( value?:any ): string; + /** [Method] Gets the current selected value of the date field */ + getValue?(): any; + /** [Method] Hides the month picker if it s visible + * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. + */ + hideMonthPicker?( animate?:bool ): Ext.picker.IDate; + /** [Method] private inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Sets the current value to today */ + selectToday?(): Ext.picker.IDate; + /** [Method] Replaces any existing disabled dates with new values and refreshes the DatePicker + * @param disabledDates any An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:any ): any; + setDisabledDates?( disabledDates?:string[] ): Ext.picker.IDate; + setDisabledDates?( disabledDates?:RegExp ): Ext.picker.IDate; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the DatePicker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): Ext.picker.IDate; + /** [Method] Replaces any existing maxDate with the new value and refreshes the DatePicker + * @param value Date The maximum date that can be selected + */ + setMaxDate?( value?:any ): Ext.picker.IDate; + /** [Method] Replaces any existing minDate with the new value and refreshes the DatePicker + * @param value Date The minimum date that can be selected + */ + setMinDate?( value?:any ): Ext.picker.IDate; + /** [Method] Sets the value of the date field + * @param value Date The date to set + */ + setValue?( value?:any ): Ext.picker.IDate; + /** [Method] Show the month picker + * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. + */ + showMonthPicker?( animate?:bool ): Ext.picker.IDate; + /** [Method] Show the next month + * @param e Object + */ + showNextMonth?( e?:any ): Ext.picker.IDate; + /** [Method] Show the next year */ + showNextYear?(): Ext.picker.IDate; + /** [Method] Show the previous month + * @param e Object + */ + showPrevMonth?( e?:any ): Ext.picker.IDate; + /** [Method] Show the previous year */ + showPrevYear?(): Ext.picker.IDate; + } +} +declare module Ext { + export interface IDatePicker extends Ext.IComponent { + /** [Config Option] (String) The text to display for the aria title ... */ + ariaTitle?: string; + /** [Config Option] (String) The date format to display for the current value in the ariaTitle ... */ + ariaTitleDateFormat?: string; + /** [Config Option] (String) The base CSS class to apply to this components element. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + border?: any; + /** [Config Option] (String[]) */ + dayNames?: string[]; + /** [Config Option] (Boolean) True to disable animations when showing the month picker. ... */ + disableAnim?: bool; + /** [Config Option] (String) The class to apply to disabled cells. ... */ + disabledCellCls?: string; + /** [Config Option] (String[]) An array of 'dates' to disable, as strings. ... */ + disabledDates?: string[]; + /** [Config Option] (RegExp) JavaScript regular expression used to disable a pattern of dates. ... */ + disabledDatesRE?: RegExp; + /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + disabledDatesText?: string; + /** [Config Option] (Number[]) An array of days to disable, 0-based. ... */ + disabledDays?: number[]; + /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + disabledDaysText?: string; + /** [Config Option] (Boolean) True to automatically focus the picker on show. ... */ + focusOnShow?: bool; + /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Function) Optional. ... */ + handler?: any; + /** [Config Option] (Object) Specifies optional custom key event handlers for the Ext.util.KeyNav attached to this date picker. ... */ + keyNavConfig?: any; + /** [Config Option] (String) The format for displaying a date in a longer format. ... */ + longDayFormat?: string; + /** [Config Option] (Date) Maximum allowable date (JavaScript date object) ... */ + maxDate?: any; + /** [Config Option] (String) The error text to display if the maxDate validation fails. ... */ + maxText?: string; + /** [Config Option] (Date) Minimum allowable date (JavaScript date object) ... */ + minDate?: any; + /** [Config Option] (String) The error text to display if the minDate validation fails. ... */ + minText?: string; + /** [Config Option] (String[]) */ + monthNames?: string[]; + /** [Config Option] (String) The date format for the header month ... */ + monthYearFormat?: string; + /** [Config Option] (String) The header month selector tooltip ... */ + monthYearText?: string; + /** [Config Option] (String) The next month navigation button tooltip ... */ + nextText?: string; + /** [Config Option] (String) The previous month navigation button tooltip ... */ + prevText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + scope?: any; + /** [Config Option] (String) The class to apply to the selected cell. ... */ + selectedCls?: string; + /** [Config Option] (Boolean) False to hide the footer area containing the Today button and disable the keyboard handler for spacebar that selects ... */ + showToday?: bool; + /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + startDay?: number; + /** [Config Option] (String) The text to display on the button that selects the current date ... */ + todayText?: string; + /** [Config Option] (String) A string used to format the message for displaying in a tooltip over the button that selects the current date. ... */ + todayTip?: string; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets a single character to represent the day of the week + * @param value Object + */ + getDayInitial?( value?:any ): string; + /** [Method] Gets the current selected value of the date field */ + getValue?(): any; + /** [Method] Hides the month picker if it s visible + * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. + */ + hideMonthPicker?( animate?:bool ): Ext.picker.IDate; + /** [Method] private inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialize any events on this component */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Allows addition of behavior to the enable operation */ + onEnable?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Sets the current value to today */ + selectToday?(): Ext.picker.IDate; + /** [Method] Replaces any existing disabled dates with new values and refreshes the DatePicker + * @param disabledDates any An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:any ): any; + setDisabledDates?( disabledDates?:string[] ): Ext.picker.IDate; + setDisabledDates?( disabledDates?:RegExp ): Ext.picker.IDate; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the DatePicker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): Ext.picker.IDate; + /** [Method] Replaces any existing maxDate with the new value and refreshes the DatePicker + * @param value Date The maximum date that can be selected + */ + setMaxDate?( value?:any ): Ext.picker.IDate; + /** [Method] Replaces any existing minDate with the new value and refreshes the DatePicker + * @param value Date The minimum date that can be selected + */ + setMinDate?( value?:any ): Ext.picker.IDate; + /** [Method] Sets the value of the date field + * @param value Date The date to set + */ + setValue?( value?:any ): Ext.picker.IDate; + /** [Method] Show the month picker + * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. + */ + showMonthPicker?( animate?:bool ): Ext.picker.IDate; + /** [Method] Show the next month + * @param e Object + */ + showNextMonth?( e?:any ): Ext.picker.IDate; + /** [Method] Show the next year */ + showNextYear?(): Ext.picker.IDate; + /** [Method] Show the previous month + * @param e Object + */ + showPrevMonth?( e?:any ): Ext.picker.IDate; + /** [Method] Show the previous year */ + showPrevYear?(): Ext.picker.IDate; + } +} +declare module Ext.picker { + export interface IMonth extends Ext.IComponent { + /** [Config Option] (String) The base CSS class to apply to the picker element. ... */ + baseCls?: string; + /** [Config Option] (String) The text to display on the cancel button. ... */ + cancelText?: string; + /** [Config Option] (String) The text to display on the ok button. ... */ + okText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) The class to be added to selected items in the picker. ... */ + selectedCls?: string; + /** [Config Option] (Boolean) True to show ok and cancel buttons below the picker. ... */ + showButtons?: bool; + /** [Config Option] (Date/Number[]) The default value to set. ... */ + value?: any; + /** [Method] Modify the year display by passing an offset + * @param offset Number The offset to move by. + */ + adjustYear?( offset?:number ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets the selected value */ + getValue?(): number[]; + /** [Method] Checks whether the picker has a selection */ + hasSelection?(): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Set the value for the picker + * @param value any The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. + */ + setValue?( value?:any ): any; + setValue?( value?:number[] ): Ext.picker.IMonth; + } +} +declare module Ext { + export interface IMonthPicker extends Ext.IComponent { + /** [Config Option] (String) The base CSS class to apply to the picker element. ... */ + baseCls?: string; + /** [Config Option] (String) The text to display on the cancel button. ... */ + cancelText?: string; + /** [Config Option] (String) The text to display on the ok button. ... */ + okText?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) The class to be added to selected items in the picker. ... */ + selectedCls?: string; + /** [Config Option] (Boolean) True to show ok and cancel buttons below the picker. ... */ + showButtons?: bool; + /** [Config Option] (Date/Number[]) The default value to set. ... */ + value?: any; + /** [Method] Modify the year display by passing an offset + * @param offset Number The offset to move by. + */ + adjustYear?( offset?:number ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Gets the selected value */ + getValue?(): number[]; + /** [Method] Checks whether the picker has a selection */ + hasSelection?(): bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Set the value for the picker + * @param value any The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. + */ + setValue?( value?:any ): any; + setValue?( value?:number[] ): Ext.picker.IMonth; + } +} +declare module Ext.picker { + export interface ITime extends Ext.view.IBoundList { + /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + componentCls?: string; + /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + format?: string; + /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + increment?: number; + /** [Config Option] (Date) The maximum time to be shown in the list of times. ... */ + maxValue?: any; + /** [Config Option] (Date) The minimum time to be shown in the list of times. ... */ + minValue?: any; + /** [Method] Focuses a node in the view + * @param rec Ext.data.IModel The record associated to the node that is to be focused. + */ + focusNode?( rec?:Ext.data.IModel ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Set the maxValue and update the list of available times + * @param value Date + */ + setMaxValue?( value?:any ): void; + /** [Method] Set the minValue and update the list of available times + * @param value Date + */ + setMinValue?( value?:any ): void; + /** [Method] Update the list of available times in the list to be constrained within the minValue and maxValue */ + updateList?(): void; + } +} +declare module Ext { + export interface IPluginManager extends Ext.IAbstractManager { + } + export class PluginManager { + /** [Method] Creates a new Plugin from the specified config object using the config object s ptype to determine the class to insta + * @param config Object A configuration object for the Plugin you wish to create. + * @param defaultType Function The constructor to provide the default Plugin type if the config object does not contain a ptype. (Optional if the config contains a ptype). + */ + static create( config?:any, defaultType?:any ): Ext.IComponent; + /** [Method] Returns all plugins registered with the given type + * @param type String The type to search for + * @param defaultsOnly Boolean True to only return plugins of this type where the plugin's isDefault property is truthy + */ + static findByType( type?:string, defaultsOnly?:bool ): Ext.IAbstractPlugin[]; + } +} +declare module Ext { + export interface IPluginMgr extends Ext.IAbstractManager { + } + export class PluginMgr { + /** [Method] Creates a new Plugin from the specified config object using the config object s ptype to determine the class to insta + * @param config Object A configuration object for the Plugin you wish to create. + * @param defaultType Function The constructor to provide the default Plugin type if the config object does not contain a ptype. (Optional if the config contains a ptype). + */ + static create( config?:any, defaultType?:any ): Ext.IComponent; + /** [Method] Returns all plugins registered with the given type + * @param type String The type to search for + * @param defaultsOnly Boolean True to only return plugins of this type where the plugin's isDefault property is truthy + */ + static findByType( type?:string, defaultsOnly?:bool ): Ext.IAbstractPlugin[]; + } +} +declare module Ext { + export interface IProgressBar extends Ext.IComponent { + /** [Config Option] (Boolean/Object) True to animate the progress bar during transitions, or an animation configuration (see the animate method for details). ... */ + animate?: any; + /** [Config Option] (String) The base CSS class to apply to the progress bar's wrapper element. ... */ + baseCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (String) */ + id?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) The text shown in the progress bar. ... */ + text?: string; + /** [Config Option] (String/HTMLElement/Ext.Element) */ + textEl?: any; + /** [Config Option] (Number) A floating point value between 0 and 1 (e.g., .5) ... */ + value?: number; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Returns true if the progress bar is currently in a wait operation */ + isWaiting?(): bool; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Resets the progress bar value to 0 and text to empty string + * @param hide Boolean True to hide the progress bar. + */ + reset?( hide?:bool ): Ext.IProgressBar; + /** [Method] Updates the progress bar value and optionally its text + * @param value Number A floating point value between 0 and 1 (e.g., .5) + * @param text String The string to display in the progress text element + * @param animate Boolean Whether to animate the transition of the progress bar. If this value is not specified, the default for the class is used + */ + updateProgress?( value?:number, text?:string, animate?:bool ): Ext.IProgressBar; + /** [Method] Updates the progress bar text + * @param text String The string to display in the progress text element + */ + updateText?( text?:string ): Ext.IProgressBar; + /** [Method] Initiates an auto updating progress bar + * @param config Object Configuration options + */ + wait?( config?:any ): Ext.IProgressBar; + } +} +declare module Ext.resizer { + export interface IBorderSplitter extends Ext.resizer.ISplitter { + /** [Config Option] (String/Ext.panel.Panel) must be configured in by the border layout: A string describing the relative position of the immediate sibling Panel... */ + collapseTarget?: any; + /** [Method] Returns the config object with an xclass property for the splitter tracker */ + getTrackerConfig?(): void; + } +} +declare module Ext.resizer { + export interface IBorderSplitterTracker extends Ext.resizer.ISplitterTracker { + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onBeforeStart?( e?:Ext.IEventObject ): void; + } +} +declare module Ext.resizer { + export interface IHandle extends Ext.IComponent { + /** [Config Option] ("north"/"south"/"east"/"west"/"center") Ext.resizer.Resizer.prototype.possiblePositions define the regions which will be passed in as a region configuration. ... */ + region?: any; + } +} +declare module Ext.resizer { + export interface IResizer extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Ext.Element/Ext.util.Region) */ + constrainTo?: any; + /** [Config Option] (Boolean) Specify as true to update the target (Element or Component) dynamically during dragging. ... */ + dynamic?: bool; + /** [Config Option] (String) String consisting of the resize handles to display. ... */ + handles?: string; + /** [Config Option] (Number) Optional. ... */ + height?: number; + /** [Config Option] (Number) The increment to snap the height resize in pixels. ... */ + heightIncrement?: number; + /** [Config Option] (Number) The maximum height for the element ... */ + maxHeight?: number; + /** [Config Option] (Number) The maximum width for the element ... */ + maxWidth?: number; + /** [Config Option] (Number) The minimum height for the element ... */ + minHeight?: number; + /** [Config Option] (Number) The minimum width for the element ... */ + minWidth?: number; + /** [Config Option] (Boolean) True to ensure that the resize handles are always visible, false indicates resizing by cursor changes only ... */ + pinned?: bool; + /** [Config Option] (Boolean) True to preserve the original ratio between height and width during resize ... */ + preserveRatio?: bool; + /** [Config Option] (Ext.Element/Ext.Component) */ + target?: any; + /** [Config Option] (Boolean) True for transparent handles. ... */ + transparent?: bool; + /** [Config Option] (Number) Optional. ... */ + width?: number; + /** [Config Option] (Number) The increment to snap the width resize in pixels. ... */ + widthIncrement?: number; + /** [Property] (Ext.Element) */ + el?: Ext.IElement; + /** [Property] (Ext.Element/Ext.Component) Reference to the original resize target if the element of the original resize target was a Field, or an IMG or a TEXT... */ + originalTarget?: any; + /** [Property] (Ext.resizer.ResizeTracker) */ + resizeTracker?: Ext.resizer.IResizeTracker; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the element that was configured with the el or target config property */ + getEl?(): Ext.IElement; + /** [Method] Returns the element or component that was configured with the target config property */ + getTarget?(): Ext.IElement; + /** [Method] Returns the element or component that was configured with the target config property */ + getTarget?(): Ext.IComponent; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Perform a manual resize and fires the resize event + * @param width Number + * @param height Number + */ + resizeTo?( width?:number, height?:number ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IResizable extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Ext.Element/Ext.util.Region) */ + constrainTo?: any; + /** [Config Option] (Boolean) Specify as true to update the target (Element or Component) dynamically during dragging. ... */ + dynamic?: bool; + /** [Config Option] (String) String consisting of the resize handles to display. ... */ + handles?: string; + /** [Config Option] (Number) Optional. ... */ + height?: number; + /** [Config Option] (Number) The increment to snap the height resize in pixels. ... */ + heightIncrement?: number; + /** [Config Option] (Number) The maximum height for the element ... */ + maxHeight?: number; + /** [Config Option] (Number) The maximum width for the element ... */ + maxWidth?: number; + /** [Config Option] (Number) The minimum height for the element ... */ + minHeight?: number; + /** [Config Option] (Number) The minimum width for the element ... */ + minWidth?: number; + /** [Config Option] (Boolean) True to ensure that the resize handles are always visible, false indicates resizing by cursor changes only ... */ + pinned?: bool; + /** [Config Option] (Boolean) True to preserve the original ratio between height and width during resize ... */ + preserveRatio?: bool; + /** [Config Option] (Ext.Element/Ext.Component) */ + target?: any; + /** [Config Option] (Boolean) True for transparent handles. ... */ + transparent?: bool; + /** [Config Option] (Number) Optional. ... */ + width?: number; + /** [Config Option] (Number) The increment to snap the width resize in pixels. ... */ + widthIncrement?: number; + /** [Property] (Ext.Element) */ + el?: Ext.IElement; + /** [Property] (Ext.Element/Ext.Component) Reference to the original resize target if the element of the original resize target was a Field, or an IMG or a TEXT... */ + originalTarget?: any; + /** [Property] (Ext.resizer.ResizeTracker) */ + resizeTracker?: Ext.resizer.IResizeTracker; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the element that was configured with the el or target config property */ + getEl?(): Ext.IElement; + /** [Method] Returns the element or component that was configured with the target config property */ + getTarget?(): Ext.IElement; + /** [Method] Returns the element or component that was configured with the target config property */ + getTarget?(): Ext.IComponent; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Perform a manual resize and fires the resize event + * @param width Number + * @param height Number + */ + resizeTo?( width?:number, height?:number ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.resizer { + export interface IResizeTracker extends Ext.dd.IDragTracker { + /** [Config Option] (Ext.util.Region/Ext.Element) Default to no constraint A Region (Or an element from which a Region measurement will be read) which is used to cons... */ + constrainTo?: any; + /** [Method] Create a proxy for this resizer + * @param target any The target + */ + createProxy?( target?:any ): any; + createProxy?( target?:Ext.IComponent ): Ext.IElement; + createProxy?( target?:Ext.IElement ): Ext.IElement; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onBeforeStart?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onDrag?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onEnd?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onStart?( e?:Ext.IEventObject ): void; + } +} +declare module Ext.resizer { + export interface ISplitter extends Ext.IComponent { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to enable dblclick to toggle expand and collapse on the collapseTarget Panel. ... */ + collapseOnDblClick?: bool; + /** [Config Option] (String/Ext.panel.Panel) A string describing the relative position of the immediate sibling Panel to collapse. ... */ + collapseTarget?: any; + /** [Config Option] (String) A class to add to the splitter when it is collapsed. ... */ + collapsedCls?: string; + /** [Config Option] (Boolean) True to show a mini-collapse tool in the Splitter to toggle expand and collapse on the collapseTarget Panel. ... */ + collapsible?: bool; + /** [Config Option] (Number) Provides a default maximum width or height for the two components that the splitter is between. ... */ + defaultSplitMax?: number; + /** [Config Option] (Number) Provides a default minimum width or height for the two components that the splitter is between. ... */ + defaultSplitMin?: number; + /** [Config Option] (Boolean) */ + performCollapse?: bool; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (Number) The size of the splitter. ... */ + size?: number; + /** [Property] (String) Orientation of this Splitter. ... */ + orientation?: string; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Returns the config object with an xclass property for the splitter tracker */ + getTrackerConfig?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Work around IE bug + * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + setSize?( width?:any, height?:any ): any; + setSize?( width?:any, height?:number ): Ext.IComponent; + setSize?( width?:any, height?:string ): Ext.IComponent; + } +} +declare module Ext.resizer { + export interface ISplitterTracker extends Ext.dd.IDragTracker { + /** [Method] ensure the tracker is enabled store boxes of previous and next components and calculate the constrain region Templa + * @param e Ext.IEventObject The event object + */ + onBeforeStart?( e?:Ext.IEventObject ): void; + /** [Method] Track the proxy and set the proper XY coordinates while constraining the drag Template method which should be overri + * @param e Ext.IEventObject The event object + */ + onDrag?( e?:Ext.IEventObject ): void; + /** [Method] perform the resize and remove the proxy class from the splitter el Template method which should be overridden by eac + * @param e Ext.IEventObject The event object + */ + onEnd?( e?:Ext.IEventObject ): void; + /** [Method] We move the splitter el + * @param e Ext.IEventObject The event object + */ + onStart?( e?:Ext.IEventObject ): void; + } +} +declare module Ext.selection { + export interface ICellModel extends Ext.selection.IModel { + /** [Config Option] (Boolean) Turns on/off keyboard navigation within the grid. ... */ + enableKeyNav?: bool; + /** [Config Option] ("SINGLE") Mode of selection. ... */ + mode?: string; + /** [Config Option] (Boolean) Set this configuration to true to prevent wrapping around of selection as a user navigates to the first or last column. ... */ + preventWrap?: bool; + /** [Method] Returns the current position in the format row row column column */ + getCurrentPosition?(): void; + /** [Method] Sets the current position + * @param position Object The position to set. + */ + setCurrentPosition?( position?:any ): void; + } +} +declare module Ext.selection { + export interface ICheckboxModel extends Ext.selection.IRowModel { + /** [Config Option] (Boolean) True if rows can only be selected by clicking on the checkbox column. ... */ + checkOnly?: bool; + /** [Config Option] (String) The selector for determining whether the checkbox element is clicked. ... */ + checkSelector?: string; + /** [Config Option] (Number/String) The index at which to insert the checkbox column. ... */ + injectCheckbox?: any; + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Modes of selection. ... */ + mode?: any; + /** [Config Option] (Boolean) Configure as false to not display the header checkbox at the top of the column. ... */ + showHeaderCheckbox?: bool; + /** [Method] Retrieve a configuration to be used in a HeaderContainer */ + getHeaderConfig?(): void; + /** [Method] Toggle between selecting all and deselecting all when clicking on a checkbox header + * @param headerCt Object + * @param header Object + * @param e Object + */ + onHeaderClick?( headerCt?:any, header?:any, e?:any ): void; + /** [Method] Generates the HTML to be rendered in the injected checkbox column for each row + * @param value Object + * @param metaData Object + * @param record Object + * @param rowIndex Object + * @param colIndex Object + * @param store Object + * @param view Object + */ + renderer?( value?:any, metaData?:any, record?:any, rowIndex?:any, colIndex?:any, store?:any, view?:any ): void; + } +} +declare module Ext.selection { + export interface IDataViewModel extends Ext.selection.IModel { + /** [Config Option] (Boolean) Turns on/off keyboard navigation within the DataView. ... */ + enableKeyNav?: bool; + } +} +declare module Ext.selection { + export interface IModel extends Ext.util.IObservable,Ext.util.IBindable { + /** [Config Option] (Boolean) Allow users to deselect a record in a DataView, List or Grid. ... */ + allowDeselect?: bool; + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Mode of selection. ... */ + mode?: any; + /** [Config Option] (Boolean) Remove records from the selection when they are removed from the store. ... */ + pruneRemoved?: bool; + /** [Property] (Ext.util.MixedCollection) A MixedCollection that maintains all of the currently selected records. ... */ + selected?: Ext.util.IMixedCollection; + /** [Method] binds the store to the selModel + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Deselects a record instance by record instance or index + * @param records Ext.data.IModel[] An array of records or an index + * @param suppressEvent Boolean True to not fire a deselect event + */ + deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; + deselect?( records?:number, suppressEvent?:bool ): void; + /** [Method] Deselects all records in the view + * @param suppressEvent Boolean True to suppress any deselect events + */ + deselectAll?( suppressEvent?:bool ): void; + /** [Method] Deselects a range of rows if the selection model is not locked + * @param startRow Ext.data.IModel The record or index of the first row in the range + * @param endRow Ext.data.IModel The record or index of the last row in the range + */ + deselectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel ): void; + deselectRange?( startRow?:number, endRow?:Ext.data.IModel ): void; + deselectRange?( startRow?:Ext.data.IModel, endRow?:number ): void; + deselectRange?( startRow?:number, endRow?:number ): void; + /** [Method] Returns the count of selected records */ + getCount?(): number; + /** [Method] */ + getLastSelected?(): Ext.data.IModel; + /** [Method] Returns an array of the currently selected records */ + getSelection?(): Ext.data.IModel[]; + /** [Method] Returns the current selectionMode */ + getSelectionMode?(): string; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Returns true if there are any a selected records */ + hasSelection?(): bool; + /** [Method] Determines if this record is currently focused + * @param record Ext.data.IModel + */ + isFocused?( record?:Ext.data.IModel ): void; + /** [Method] Returns true if the selections are locked */ + isLocked?(): bool; + /** [Method] Returns true if the specified row is selected + * @param from any The start of the range to check. + * @param to any The end of the range to check. + */ + isRangeSelected?( from?:any, to?:any ): any; + isRangeSelected?( from?:Ext.data.IModel, to?:Ext.data.IModel ): bool; + isRangeSelected?( from?:number, to?:Ext.data.IModel ): bool; + isRangeSelected?( from?:Ext.data.IModel, to?:number ): bool; + isRangeSelected?( from?:number, to?:number ): bool; + /** [Method] Returns true if the specified row is selected + * @param record any The record or index of the record to check + */ + isSelected?( record?:any ): any; + isSelected?( record?:Ext.data.IModel ): bool; + isSelected?( record?:number ): bool; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Selects a record instance by record instance or index + * @param records Ext.data.IModel[] An array of records or an index + * @param keepExisting Boolean True to retain existing selections + * @param suppressEvent Boolean True to not fire a select event + */ + select?( records?:Ext.data.IModel[], keepExisting?:bool, suppressEvent?:bool ): void; + select?( records?:number, keepExisting?:bool, suppressEvent?:bool ): void; + /** [Method] Selects all records in the view + * @param suppressEvent Boolean True to suppress any select events + */ + selectAll?( suppressEvent?:bool ): void; + /** [Method] Selects a range of rows if the selection model is not locked + * @param startRow Ext.data.IModel The record or index of the first row in the range + * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param keepExisting Boolean True to retain existing selections + */ + selectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel, keepExisting?:bool ): void; + selectRange?( startRow?:number, endRow?:Ext.data.IModel, keepExisting?:bool ): void; + selectRange?( startRow?:Ext.data.IModel, endRow?:number, keepExisting?:bool ): void; + selectRange?( startRow?:number, endRow?:number, keepExisting?:bool ): void; + /** [Method] Sets a record as the last focused record + * @param record Ext.data.IModel + */ + setLastFocused?( record?:Ext.data.IModel ): void; + /** [Method] Locks the current selection and disables any changes from happening to the selection + * @param locked Boolean True to lock, false to unlock. + */ + setLocked?( locked?:bool ): void; + /** [Method] Sets the current selectionMode + * @param selMode String 'SINGLE', 'MULTI' or 'SIMPLE'. + */ + setSelectionMode?( selMode?:string ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext { + export interface IAbstractSelectionModel extends Ext.util.IObservable,Ext.util.IBindable { + /** [Config Option] (Boolean) Allow users to deselect a record in a DataView, List or Grid. ... */ + allowDeselect?: bool; + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Mode of selection. ... */ + mode?: any; + /** [Config Option] (Boolean) Remove records from the selection when they are removed from the store. ... */ + pruneRemoved?: bool; + /** [Property] (Ext.util.MixedCollection) A MixedCollection that maintains all of the currently selected records. ... */ + selected?: Ext.util.IMixedCollection; + /** [Method] binds the store to the selModel + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Deselects a record instance by record instance or index + * @param records Ext.data.IModel[] An array of records or an index + * @param suppressEvent Boolean True to not fire a deselect event + */ + deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; + deselect?( records?:number, suppressEvent?:bool ): void; + /** [Method] Deselects all records in the view + * @param suppressEvent Boolean True to suppress any deselect events + */ + deselectAll?( suppressEvent?:bool ): void; + /** [Method] Deselects a range of rows if the selection model is not locked + * @param startRow Ext.data.IModel The record or index of the first row in the range + * @param endRow Ext.data.IModel The record or index of the last row in the range + */ + deselectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel ): void; + deselectRange?( startRow?:number, endRow?:Ext.data.IModel ): void; + deselectRange?( startRow?:Ext.data.IModel, endRow?:number ): void; + deselectRange?( startRow?:number, endRow?:number ): void; + /** [Method] Returns the count of selected records */ + getCount?(): number; + /** [Method] */ + getLastSelected?(): Ext.data.IModel; + /** [Method] Returns an array of the currently selected records */ + getSelection?(): Ext.data.IModel[]; + /** [Method] Returns the current selectionMode */ + getSelectionMode?(): string; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Returns true if there are any a selected records */ + hasSelection?(): bool; + /** [Method] Determines if this record is currently focused + * @param record Ext.data.IModel + */ + isFocused?( record?:Ext.data.IModel ): void; + /** [Method] Returns true if the selections are locked */ + isLocked?(): bool; + /** [Method] Returns true if the specified row is selected + * @param from any The start of the range to check. + * @param to any The end of the range to check. + */ + isRangeSelected?( from?:any, to?:any ): any; + isRangeSelected?( from?:Ext.data.IModel, to?:Ext.data.IModel ): bool; + isRangeSelected?( from?:number, to?:Ext.data.IModel ): bool; + isRangeSelected?( from?:Ext.data.IModel, to?:number ): bool; + isRangeSelected?( from?:number, to?:number ): bool; + /** [Method] Returns true if the specified row is selected + * @param record any The record or index of the record to check + */ + isSelected?( record?:any ): any; + isSelected?( record?:Ext.data.IModel ): bool; + isSelected?( record?:number ): bool; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Selects a record instance by record instance or index + * @param records Ext.data.IModel[] An array of records or an index + * @param keepExisting Boolean True to retain existing selections + * @param suppressEvent Boolean True to not fire a select event + */ + select?( records?:Ext.data.IModel[], keepExisting?:bool, suppressEvent?:bool ): void; + select?( records?:number, keepExisting?:bool, suppressEvent?:bool ): void; + /** [Method] Selects all records in the view + * @param suppressEvent Boolean True to suppress any select events + */ + selectAll?( suppressEvent?:bool ): void; + /** [Method] Selects a range of rows if the selection model is not locked + * @param startRow Ext.data.IModel The record or index of the first row in the range + * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param keepExisting Boolean True to retain existing selections + */ + selectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel, keepExisting?:bool ): void; + selectRange?( startRow?:number, endRow?:Ext.data.IModel, keepExisting?:bool ): void; + selectRange?( startRow?:Ext.data.IModel, endRow?:number, keepExisting?:bool ): void; + selectRange?( startRow?:number, endRow?:number, keepExisting?:bool ): void; + /** [Method] Sets a record as the last focused record + * @param record Ext.data.IModel + */ + setLastFocused?( record?:Ext.data.IModel ): void; + /** [Method] Locks the current selection and disables any changes from happening to the selection + * @param locked Boolean True to lock, false to unlock. + */ + setLocked?( locked?:bool ): void; + /** [Method] Sets the current selectionMode + * @param selMode String 'SINGLE', 'MULTI' or 'SIMPLE'. + */ + setSelectionMode?( selMode?:string ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.selection { + export interface IRowModel extends Ext.selection.IModel { + /** [Config Option] (Boolean) Turns on/off keyboard navigation within the grid. ... */ + enableKeyNav?: bool; + /** [Config Option] (Boolean) True to ignore selections that are made when using the right mouse button if there are records that are already selec... */ + ignoreRightMouseSelection?: bool; + /** [Method] Returns position of the first selected cell in the selection in the format row row column column */ + getCurrentPosition?(): void; + /** [Method] Selects the record immediately following the currently selected record + * @param keepExisting Boolean True to retain existing selections + * @param suppressEvent Boolean Set to false to not fire a select event + */ + selectNext?( keepExisting?:bool, suppressEvent?:bool ): bool; + /** [Method] Selects the record that precedes the currently selected record + * @param keepExisting Boolean True to retain existing selections + * @param suppressEvent Boolean Set to false to not fire a select event + */ + selectPrevious?( keepExisting?:bool, suppressEvent?:bool ): bool; + } +} +declare module Ext.selection { + export interface ITreeModel extends Ext.selection.IRowModel { + /** [Method] binds the store to the selModel + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + } +} +declare module Ext { + export interface IShadow extends Ext.IBase { + /** [Config Option] (String) The shadow display mode. ... */ + mode?: string; + /** [Config Option] (Number) The number of pixels to offset the shadow from the element ... */ + offset?: number; + /** [Method] Hides this shadow */ + hide?(): void; + /** [Method] Returns true if the shadow is visible else false */ + isVisible?(): void; + /** [Method] Direct alignment when values are already available + * @param left Number The target element left position + * @param top Number The target element top position + * @param width Number The target element width + * @param height Number The target element height + */ + realign?( left?:number, top?:number, width?:number, height?:number ): void; + /** [Method] Sets the opacity of the shadow + * @param opacity Number The opacity + */ + setOpacity?( opacity?:number ): void; + /** [Method] Adjust the z index of this shadow + * @param zindex Number The new z-index + */ + setZIndex?( zindex?:number ): void; + /** [Method] Displays the shadow under the target element + * @param targetEl String The id or element under which the shadow should display + */ + show?( targetEl?:string ): void; + show?( targetEl?:HTMLElement ): void; + show?( targetEl?:Ext.IElement ): void; + } +} +declare module Ext { + export interface IShadowPool extends Ext.IBase { + } + export class ShadowPool { + } +} +declare module Ext.slider { + export interface IMulti extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Turn on or off animation. ... */ + animate?: bool; + /** [Config Option] (Boolean) Determines whether or not clicking on the Slider axis will change the slider. ... */ + clickToChange?: bool; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) True to disallow thumbs from overlapping one another. ... */ + constrainThumbs?: bool; + /** [Config Option] (Number/Boolean) The number of decimal places to which to round the Slider's value. ... */ + decimalPrecision?: any; + /** [Config Option] (Number) How many units to change the slider when adjusting by drag and drop. ... */ + increment?: number; + /** [Config Option] (Number) How many units to change the Slider when adjusting with keyboard navigation. ... */ + keyIncrement?: number; + /** [Config Option] (Number) The maximum value for the Slider. ... */ + maxValue?: number; + /** [Config Option] (Number) The minimum value for the Slider. ... */ + minValue?: number; + /** [Config Option] (Function) A function used to display custom text for the slider tip. ... */ + tipText?: any; + /** [Config Option] (Object/Boolean) True to use an Ext.slider.Tip to display tips for the value. ... */ + useTips?: any; + /** [Config Option] (Number) A value with which to initialize the slider. ... */ + value?: number; + /** [Config Option] (Number[]) Array of Number values with which to initalize the slider. ... */ + values?: number[]; + /** [Config Option] (Boolean) Orient the Slider vertically rather than horizontally. ... */ + vertical?: bool; + /** [Config Option] (Boolean) Set to true to calculate snap points based on increments from zero as opposed to from this Slider's minValue. ... */ + zeroBasedSnapping?: bool; + /** [Property] (Boolean) True while the thumb is in a drag operation ... */ + dragging?: bool; + /** [Property] (Array) */ + thumbs?: any[]; + /** [Method] Creates a new thumb and adds it to the slider + * @param value Number The initial value to set on the thumb. + */ + addThumb?( value?:number ): any; + /** [Method] private Invoked before the Component is destroyed */ + beforeDestroy?(): any; + /** [Method] private override Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): any; + /** [Method] Returns the current value of the slider + * @param index Number The index of the thumb to return a value for + */ + getValue?( index?:number ): any; + /** [Method] Returns an array of values one for the location of each thumb */ + getValues?(): any; + /** [Method] private override The initComponent template method is an important initialization step for a Component */ + initComponent?(): any; + /** [Method] private override Initializes the field s value based on the initial config */ + initValue?(): any; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): any; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): any; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): any; + /** [Method] Sets the maximum value for the slider instance + * @param val Number The new maximum value + */ + setMaxValue?( val?:number ): any; + /** [Method] Sets the minimum value for the slider instance + * @param val Number The new minimum value + */ + setMinValue?( val?:number ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): any; + /** [Method] Programmatically sets the value of the Slider + * @param index any Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. + * @param value any The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate any Turn on or off animation + */ + setValue?( index?:any, value?:any, animate?:any ): any; + setValue?( index?:number, value?:number, animate?:bool ): any; + setValue?( index?:number[], value?:number, animate?:bool ): any; + /** [Method] Synchronizes thumbs position to the proper proportion of the total component width based on the current slider value */ + syncThumbs?(): any; + } +} +declare module Ext.slider { + export interface IMultiSlider extends Ext.form.field.IBase { + /** [Config Option] (Boolean) Turn on or off animation. ... */ + animate?: bool; + /** [Config Option] (Boolean) Determines whether or not clicking on the Slider axis will change the slider. ... */ + clickToChange?: bool; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) True to disallow thumbs from overlapping one another. ... */ + constrainThumbs?: bool; + /** [Config Option] (Number/Boolean) The number of decimal places to which to round the Slider's value. ... */ + decimalPrecision?: any; + /** [Config Option] (Number) How many units to change the slider when adjusting by drag and drop. ... */ + increment?: number; + /** [Config Option] (Number) How many units to change the Slider when adjusting with keyboard navigation. ... */ + keyIncrement?: number; + /** [Config Option] (Number) The maximum value for the Slider. ... */ + maxValue?: number; + /** [Config Option] (Number) The minimum value for the Slider. ... */ + minValue?: number; + /** [Config Option] (Function) A function used to display custom text for the slider tip. ... */ + tipText?: any; + /** [Config Option] (Object/Boolean) True to use an Ext.slider.Tip to display tips for the value. ... */ + useTips?: any; + /** [Config Option] (Number) A value with which to initialize the slider. ... */ + value?: number; + /** [Config Option] (Number[]) Array of Number values with which to initalize the slider. ... */ + values?: number[]; + /** [Config Option] (Boolean) Orient the Slider vertically rather than horizontally. ... */ + vertical?: bool; + /** [Config Option] (Boolean) Set to true to calculate snap points based on increments from zero as opposed to from this Slider's minValue. ... */ + zeroBasedSnapping?: bool; + /** [Property] (Boolean) True while the thumb is in a drag operation ... */ + dragging?: bool; + /** [Property] (Array) */ + thumbs?: any[]; + /** [Method] Creates a new thumb and adds it to the slider + * @param value Number The initial value to set on the thumb. + */ + addThumb?( value?:number ): any; + /** [Method] private Invoked before the Component is destroyed */ + beforeDestroy?(): any; + /** [Method] private override Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): any; + /** [Method] Returns the current value of the slider + * @param index Number The index of the thumb to return a value for + */ + getValue?( index?:number ): any; + /** [Method] Returns an array of values one for the location of each thumb */ + getValues?(): any; + /** [Method] private override The initComponent template method is an important initialization step for a Component */ + initComponent?(): any; + /** [Method] private override Initializes the field s value based on the initial config */ + initValue?(): any; + /** [Method] private Allows addition of behavior to the disable operation */ + onDisable?(): any; + /** [Method] private Allows addition of behavior to the enable operation */ + onEnable?(): any; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): any; + /** [Method] Sets the maximum value for the slider instance + * @param val Number The new maximum value + */ + setMaxValue?( val?:number ): any; + /** [Method] Sets the minimum value for the slider instance + * @param val Number The new minimum value + */ + setMinValue?( val?:number ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): any; + /** [Method] Programmatically sets the value of the Slider + * @param index any Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. + * @param value any The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate any Turn on or off animation + */ + setValue?( index?:any, value?:any, animate?:any ): any; + setValue?( index?:number, value?:number, animate?:bool ): any; + setValue?( index?:number[], value?:number, animate?:bool ): any; + /** [Method] Synchronizes thumbs position to the proper proportion of the total component width based on the current slider value */ + syncThumbs?(): any; + } +} +declare module Ext.slider { + export interface ISingle extends Ext.slider.IMulti { + /** [Method] Returns the current value of the slider */ + getValue?(): any; + /** [Method] Programmatically sets the value of the Slider + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation + */ + setValue?( value?:number, animate?:bool ): any; + } +} +declare module Ext { + export interface ISlider extends Ext.slider.IMulti { + /** [Method] Returns the current value of the slider */ + getValue?(): any; + /** [Method] Programmatically sets the value of the Slider + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation + */ + setValue?( value?:number, animate?:bool ): any; + } +} +declare module Ext.form { + export interface ISliderField extends Ext.slider.IMulti { + /** [Method] Returns the current value of the slider */ + getValue?(): any; + /** [Method] Programmatically sets the value of the Slider + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation + */ + setValue?( value?:number, animate?:bool ): any; + } +} +declare module Ext.slider { + export interface ISingleSlider extends Ext.slider.IMulti { + /** [Method] Returns the current value of the slider */ + getValue?(): any; + /** [Method] Programmatically sets the value of the Slider + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation + */ + setValue?( value?:number, animate?:bool ): any; + } +} +declare module Ext.slider { + export interface ISlider extends Ext.slider.IMulti { + /** [Method] Returns the current value of the slider */ + getValue?(): any; + /** [Method] Programmatically sets the value of the Slider + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation + */ + setValue?( value?:number, animate?:bool ): any; + } +} +declare module Ext.slider { + export interface IThumb extends Ext.IBase { + /** [Config Option] (Boolean) True to constrain the thumb so that it cannot overlap its siblings ... */ + constrain?: bool; + /** [Config Option] (Ext.slider.MultiSlider) */ + slider?: Ext.slider.IMultiSlider; + /** [Method] Disables the thumb if it is currently enabled */ + disable?(): void; + /** [Method] Enables the thumb if it is currently disabled */ + enable?(): void; + /** [Method] Sets up an Ext dd DragTracker for this thumb */ + initEvents?(): void; + /** [Method] Renders the thumb into a slider */ + render?(): void; + } +} +declare module Ext.slider { + export interface ITip extends Ext.tip.ITip { + /** [Config Option] (String) Alignment configuration for the tip to the slider. ... */ + align?: string; + /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + minWidth?: number; + /** [Config Option] (Array) Offsets for aligning the tip to the slider. ... */ + offsets?: any[]; + /** [Config Option] (String) Sets the position for where the tip will be displayed related to the thumb. ... */ + position?: string; + /** [Method] Used to create the text that appears in the Tip s body + * @param thumb Ext.slider.IThumb The Thumb that the Tip is attached to + */ + getText?( thumb?:Ext.slider.IThumb ): string; + } +} +declare module Ext.state { + export interface ICookieProvider extends Ext.state.IProvider { + /** [Config Option] (String) The domain to save the cookie for. ... */ + domain?: string; + /** [Config Option] (Date) The cookie expiration date. ... */ + expires?: any; + /** [Config Option] (String) The path for which the cookie is active. ... */ + path?: string; + /** [Config Option] (Boolean) True if the site is using SSL ... */ + secure?: bool; + /** [Method] private Clears a value from the state + * @param name String The key name + */ + clear?( name?:string ): void; + /** [Method] private Sets the value for a key + * @param name String The key name + * @param value Object The value to set + */ + set?( name?:string, value?:any ): void; + } +} +declare module Ext.state { + export interface ILocalStorageProvider extends Ext.state.IProvider { + /** [Method] private Clears a value from the state + * @param name String The key name + */ + clear?( name?:string ): void; + /** [Method] Sets the value for a key + * @param name String The key name + * @param value Object The value to set + */ + set?( name?:string, value?:any ): void; + } +} +declare module Ext.state { + export interface IManager extends Ext.IBase { + } + export class Manager { + /** [Method] */ + constructor(); + /** [Method] Clears a value from the state + * @param name String The key name + */ + static clear( name?:string ): void; + /** [Method] Returns the current value for a key + * @param name String The key name + * @param defaultValue Object The default value to return if the key lookup does not match + */ + static get( name?:string, defaultValue?:any ): any; + /** [Method] Gets the currently configured state provider */ + static getProvider(): Ext.state.IProvider; + /** [Method] Sets the value for a key + * @param name String The key name + * @param value Object The state data + */ + static set( name?:string, value?:any ): void; + /** [Method] Configures the default state provider for your application + * @param stateProvider Ext.state.IProvider The state provider to set + */ + static setProvider( stateProvider?:Ext.state.IProvider ): void; + } +} +declare module Ext.state { + export interface IProvider extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) A string to prefix to items stored in the underlying state store. ... */ + prefix?: string; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Clears a value from the state + * @param name String The key name + */ + clear?( name?:string ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Decodes a string previously encoded with encodeValue + * @param value String The value to decode + */ + decodeValue?( value?:string ): any; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Encodes a value including type information + * @param value Object The value to encode + */ + encodeValue?( value?:any ): string; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the current value for a key + * @param name String The key name + * @param defaultValue Object A default value to return if the key's value is not found + */ + get?( name?:string, defaultValue?:any ): any; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Sets the value for a key + * @param name String The key name + * @param value Object The value to set + */ + set?( name?:string, value?:any ): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.state { + export interface IStateful extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Number) A buffer to be applied if many state events are fired within a short period. ... */ + saveDelay?: number; + /** [Config Option] (String[]) An array of events that, when fired, should trigger this object to save its state. ... */ + stateEvents?: string[]; + /** [Config Option] (String) The unique id for this object to use for state management purposes. ... */ + stateId?: string; + /** [Config Option] (Boolean) A flag which causes the object to attempt to restore the state of internal properties from a saved state on startup. ... */ + stateful?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Add events that will trigger the state to be saved + * @param events String The event name or an array of event names. + */ + addStateEvents?( events?:string ): void; + addStateEvents?( events?:string[] ): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Destroys this stateful object */ + destroy?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Gets the current state of the object */ + getState?(): any; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Conditionally saves a single property from this object to the given state object + * @param propName String The name of the property to save. + * @param state Object The state object in to which to save the property. + * @param stateName String The name to use for the property in state. + */ + savePropToState?( propName?:string, state?:any, stateName?:string ): bool; + /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object + * @param propNames any The name (or array of names) of the property to save. + * @param state any The state object in to which to save the property values. + */ + savePropsToState?( propNames?:any, state?:any ): any; + savePropsToState?( propNames?:string, state?:any ): any; + savePropsToState?( propNames?:string[], state?:any ): any; + /** [Method] Saves the state of the object to the persistence store */ + saveState?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IString { + } + export class String { + /** [Method] Adds a set of character entity definitions to the set used by htmlEncode and htmlDecode + * @param entities Object The set of character entities to add to the current definitions. + */ + static addCharacterEntities( entities?:any ): void; + /** [Method] Capitalize the given string + * @param string String + */ + static capitalize( string?:string ): string; + /** [Method] Converts a string of characters into a legal parse able JavaScript var name as long as the passed string contains at + * @param s String A string to be converted into a var name. + */ + static createVarName( s?:string ): string; + /** [Method] Truncate a string and add an ellipsis to the end if it exceeds the specified length + * @param value String The string to truncate. + * @param length Number The maximum length to allow before truncating. + * @param word Boolean true to try to find a common word break. + */ + static ellipsis( value?:string, length?:number, word?:bool ): string; + /** [Method] Checks if a string ends with a substring + * @param s String The original string + * @param start String The substring to check + * @param ignoreCase Boolean True to ignore the case in the comparison + */ + static endsWith( s?:string, start?:string, ignoreCase?:bool ): void; + /** [Method] Escapes the passed string for and + * @param string String The string to escape + */ + static escape( string?:string ): string; + /** [Method] Escapes the passed string for use in a regular expression + * @param string String + */ + static escapeRegex( string?:string ): string; + /** [Method] Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens + * @param string String The tokenized string to be formatted. + * @param values Mixed... The values to replace tokens {0}, {1}, etc in order. + */ + static format( string:string, ...values:any[] ): string; + /** [Method] Convert certain characters amp lt and from their HTML character equivalents + * @param value String The string to decode. + */ + static htmlDecode( value?:string ): string; + /** [Method] Convert certain characters amp lt and to their HTML character equivalents for literal display in web + * @param value String The string to encode. + */ + static htmlEncode( value?:string ): string; + /** [Method] Inserts a substring into a string + * @param s String The original string. + * @param value String The substring to insert. + * @param index Number The index to insert the substring. Negative indexes will insert from the end of the string. Example: Ext.String.insert("abcdefg", "h", -1); // abcdefhg + */ + static insert( s?:string, value?:string, index?:number ): string; + /** [Method] Pads the left side of a string with a specified character + * @param string String The original string. + * @param size Number The total length of the output string. + * @param character String The character with which to pad the original string. + */ + static leftPad( string?:string, size?:number, character?:string ): string; + /** [Method] Returns a string with a specified number of repetitions a given string pattern + * @param pattern String The pattern to repeat. + * @param count Number The number of times to repeat the pattern (may be 0). + * @param sep String An option string to separate each pattern. + */ + static repeat( pattern?:string, count?:number, sep?:string ): void; + /** [Method] Resets the set of character entity definitions used by htmlEncode and htmlDecode back to the default state */ + static resetCharacterEntities(): void; + /** [Method] Splits a string of space separated words into an array trimming as needed + * @param words String + */ + static splitWords( words?:string ): void; + static splitWords( words?:any[] ): void; + /** [Method] Checks if a string starts with a substring + * @param s String The original string + * @param start String The substring to check + * @param ignoreCase Boolean True to ignore the case in the comparison + */ + static startsWith( s?:string, start?:string, ignoreCase?:bool ): void; + /** [Method] Utility function that allows you to easily switch a string between two alternating values + * @param string String The current string. + * @param value String The value to compare to the current string. + * @param other String The new value to use if the string already equals the first value passed in. + */ + static toggle( string?:string, value?:string, other?:string ): string; + /** [Method] Trims whitespace from either end of a string leaving spaces within the string intact + * @param string String The string to trim. + */ + static trim( string?:string ): string; + /** [Method] Uncapitalize the given string + * @param string String + */ + static uncapitalize( string?:string ): string; + /** [Method] Appends content to the query string of a URL handling logic for whether to place a question mark or ampersand + * @param url String The URL to append to. + * @param string String The content to append to the URL. + */ + static urlAppend( url?:string, string?:string ): string; + } +} +declare module Ext { + export interface Isupports { + } + export class supports { + } +} +declare module Ext.tab { + export interface IBar extends Ext.panel.IHeader { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number) The maximum width for a tab in this tab Bar. ... */ + maxTabWidth?: number; + /** [Config Option] (Number) The minimum width for a tab in this tab Bar. ... */ + minTabWidth?: number; + /** [Config Option] (Boolean) True to not show the full background on the tabbar ... */ + plain?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Tab Bar, or subclass thereof. ... */ + isTabBar?: bool; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components + * @param layout Ext.layout.container.IContainer + */ + afterLayout?( layout?:Ext.layout.container.IContainer ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Returns the layout instance currently associated with this Container */ + getLayout?(): Ext.layout.container.IContainer; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Set up the tools lt tool type gt link in the owning Panel + * @param component Object + * @param index Object + */ + onAdd?( component?:any, index?:any ): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + } +} +declare module Ext.tab { + export interface IPanel extends Ext.panel.IPanel { + /** [Config Option] (String/Number) */ + activeItem?: any; + /** [Config Option] (String/Number/Ext.Component) The tab to activate initially. ... */ + activeTab?: any; + /** [Config Option] (Boolean) True by default to defer the rendering of child items to the browsers DOM until a tab is activated. ... */ + deferredRender?: bool; + /** [Config Option] (String) The class added to each child item of this TabPanel. ... */ + itemCls?: string; + /** [Config Option] (Ext.enums.Layout/Object) Optional configuration object for the internal card layout. ... */ + layout?: any; + /** [Config Option] (Number) */ + maxTabWidth?: number; + /** [Config Option] (Number) */ + minTabWidth?: number; + /** [Config Option] (Boolean) True to not show the full background on the TabBar. ... */ + plain?: bool; + /** [Config Option] (Boolean) True to instruct each Panel added to the TabContainer to not render its header element. ... */ + removePanelHeader?: bool; + /** [Config Option] (Object) Optional configuration object for the internal Ext.tab.Bar. ... */ + tabBar?: any; + /** [Config Option] ("top"/"bottom"/"left"/"right") The position where the tab strip should be rendered. ... */ + tabPosition?: any; + /** [Method] Returns the item that is currently active inside this TabPanel */ + getActiveTab?(): Ext.IComponent; + /** [Method] Returns the Ext tab Bar currently used in this TabPanel */ + getTabBar?(): Ext.tab.IBar; + /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Makes sure we have a Tab for each item added to the TabPanel + * @param item Object + * @param index Object + */ + onAdd?( item?:any, index?:any ): void; + /** [Method] Makes the given card active + * @param card any The card to make active. Either an ID, index or the component itself. + */ + setActiveTab?( card?:any ): any; + setActiveTab?( card?:string ): Ext.IComponent; + setActiveTab?( card?:number ): Ext.IComponent; + setActiveTab?( card?:Ext.IComponent ): Ext.IComponent; + } +} +declare module Ext { + export interface ITabPanel extends Ext.panel.IPanel { + /** [Config Option] (String/Number) */ + activeItem?: any; + /** [Config Option] (String/Number/Ext.Component) The tab to activate initially. ... */ + activeTab?: any; + /** [Config Option] (Boolean) True by default to defer the rendering of child items to the browsers DOM until a tab is activated. ... */ + deferredRender?: bool; + /** [Config Option] (String) The class added to each child item of this TabPanel. ... */ + itemCls?: string; + /** [Config Option] (Ext.enums.Layout/Object) Optional configuration object for the internal card layout. ... */ + layout?: any; + /** [Config Option] (Number) */ + maxTabWidth?: number; + /** [Config Option] (Number) */ + minTabWidth?: number; + /** [Config Option] (Boolean) True to not show the full background on the TabBar. ... */ + plain?: bool; + /** [Config Option] (Boolean) True to instruct each Panel added to the TabContainer to not render its header element. ... */ + removePanelHeader?: bool; + /** [Config Option] (Object) Optional configuration object for the internal Ext.tab.Bar. ... */ + tabBar?: any; + /** [Config Option] ("top"/"bottom"/"left"/"right") The position where the tab strip should be rendered. ... */ + tabPosition?: any; + /** [Method] Returns the item that is currently active inside this TabPanel */ + getActiveTab?(): Ext.IComponent; + /** [Method] Returns the Ext tab Bar currently used in this TabPanel */ + getTabBar?(): Ext.tab.IBar; + /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Makes sure we have a Tab for each item added to the TabPanel + * @param item Object + * @param index Object + */ + onAdd?( item?:any, index?:any ): void; + /** [Method] Makes the given card active + * @param card any The card to make active. Either an ID, index or the component itself. + */ + setActiveTab?( card?:any ): any; + setActiveTab?( card?:string ): Ext.IComponent; + setActiveTab?( card?:number ): Ext.IComponent; + setActiveTab?( card?:Ext.IComponent ): Ext.IComponent; + } +} +declare module Ext.tab { + export interface ITab extends Ext.button.IButton { + /** [Config Option] (String) The CSS class to be applied to a Tab when it is active. ... */ + activeCls?: string; + /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to make the Tab start closable (the close icon will be visible). ... */ + closable?: bool; + /** [Config Option] (String) The CSS class which is added to the tab when it is closable ... */ + closableCls?: string; + /** [Config Option] (String) The accessible text label for the close button link; only used when closable = true. ... */ + closeText?: string; + /** [Config Option] (String) The CSS class to be applied to a Tab when it is disabled. ... */ + disabledCls?: string; + /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + scale?: any; + /** [Property] (Boolean) Indicates that this tab is currently active. ... */ + active?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Tab, or subclass thereof. ... */ + isTab?: bool; + /** [Method] inherit docs Disable the component + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): void; + /** [Method] inherit docs Enable the component + * @param silent Boolean Passing true will suppress the enable event from being fired. + */ + enable?( silent?:bool ): void; + /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ + getTemplateArgs?(): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Sets this tab s attached card + * @param card Ext.IComponent The card to set + */ + setCard?( card?:Ext.IComponent ): void; + /** [Method] Sets the tab as either closable or not + * @param closable Boolean Pass false to make the tab not closable. Otherwise the tab will be made closable (eg a close button will appear on the tab) + */ + setClosable?( closable?:bool ): void; + } +} +declare module Ext { + export interface ITemplate extends Ext.IBase { + /** [Config Option] (Boolean) True to immediately compile the template. ... */ + compiled?: bool; + /** [Config Option] (Boolean) True to disable format functions in the template. ... */ + disableFormats?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Template, or subclass thereof. ... */ + isTemplate?: bool; + /** [Method] Applies the supplied values to the template and appends the new node s to the specified el + * @param el any The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement any true to return an Ext.Element. + */ + append?( el?:any, values?:any, returnElement?:any ): any; + append?( el?:string, values?:any, returnElement?:bool ): HTMLElement; + append?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; + append?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; + /** [Method] Applies the supplied values to the template and appends the new node s to the specified el + * @param el String The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement Boolean true to return an Ext.Element. + */ + append?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; + append?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; + append?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Returns an HTML fragment of this template with the specified values applied + * @param values any The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); + */ + apply?( values?:any ): string; + /** [Method] Appends the result of this template to the provided output array + * @param values any The template values. See apply. + * @param out Array The array to which output is pushed. + */ + applyOut?( values?:any, out?:any[] ): any[]; + /** [Method] Alias for apply + * @param values any The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); + */ + applyTemplate?( values?:any ): string; + /** [Method] Compiles the template into an internal function eliminating the RegEx overhead */ + compile?(): Ext.ITemplate; + /** [Method] Applies the supplied values to the template and inserts the new node s after el + * @param el any The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement any true to return a Ext.Element. + */ + insertAfter?( el?:any, values?:any, returnElement?:any ): any; + insertAfter?( el?:string, values?:any, returnElement?:bool ): HTMLElement; + insertAfter?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; + insertAfter?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; + /** [Method] Applies the supplied values to the template and inserts the new node s after el + * @param el String The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. + */ + insertAfter?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; + insertAfter?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; + insertAfter?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies the supplied values to the template and inserts the new node s before el + * @param el any The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement any true to return a Ext.Element. + */ + insertBefore?( el?:any, values?:any, returnElement?:any ): any; + insertBefore?( el?:string, values?:any, returnElement?:bool ): HTMLElement; + insertBefore?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; + insertBefore?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; + /** [Method] Applies the supplied values to the template and inserts the new node s before el + * @param el String The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. + */ + insertBefore?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; + insertBefore?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; + insertBefore?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies the supplied values to the template and inserts the new node s as the first child of el + * @param el any The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement any true to return a Ext.Element. + */ + insertFirst?( el?:any, values?:any, returnElement?:any ): any; + insertFirst?( el?:string, values?:any, returnElement?:bool ): HTMLElement; + insertFirst?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; + insertFirst?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; + /** [Method] Applies the supplied values to the template and inserts the new node s as the first child of el + * @param el String The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. + */ + insertFirst?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; + insertFirst?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; + insertFirst?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies the supplied values to the template and overwrites the content of el with the new node s + * @param el any The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement any true to return a Ext.Element. + */ + overwrite?( el?:any, values?:any, returnElement?:any ): any; + overwrite?( el?:string, values?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; + overwrite?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; + /** [Method] Applies the supplied values to the template and overwrites the content of el with the new node s + * @param el String The context element + * @param values any The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. + */ + overwrite?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; + overwrite?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Sets the HTML used as the template and optionally compiles it + * @param html String + * @param compile Boolean True to compile the template. + */ + set?( html?:string, compile?:bool ): Ext.ITemplate; + } +} +declare module Ext.tip { + export interface IQuickTip extends Ext.tip.IToolTip { + /** [Config Option] (Boolean) true to automatically use the element's DOM title value if available. ... */ + interceptTitles?: bool; + /** [Config Option] (String/HTMLElement/Ext.Element) The target HTMLElement, Ext.Element or id to associate with this Quicktip. ... */ + target?: any; + /** [Config Option] (String) Force creation of header Component The title text to be used to display in the panel header. ... */ + title?: string; + /** [Method] Hides a visible tip or cancels an impending show for a particular element + * @param el String The element that is the target of the tip or ID of the element. + */ + cancelShow?( el?:string ): void; + cancelShow?( el?:HTMLElement ): void; + cancelShow?( el?:Ext.IElement ): void; + /** [Method] Hides this tooltip if visible */ + hide?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Configures a new quick tip instance and assigns it to a target element + * @param config Object The config object with the following properties: + */ + register?( config?:any ): void; + /** [Method] Shows this tooltip at the current event target XY position */ + show?(): void; + /** [Method] Removes this quick tip from its element and destroys it + * @param el String The element from which the quick tip is to be removed or ID of the element. + */ + unregister?( el?:string ): void; + unregister?( el?:HTMLElement ): void; + unregister?( el?:Ext.IElement ): void; + } +} +declare module Ext { + export interface IQuickTip extends Ext.tip.IToolTip { + /** [Config Option] (Boolean) true to automatically use the element's DOM title value if available. ... */ + interceptTitles?: bool; + /** [Config Option] (String/HTMLElement/Ext.Element) The target HTMLElement, Ext.Element or id to associate with this Quicktip. ... */ + target?: any; + /** [Config Option] (String) Force creation of header Component The title text to be used to display in the panel header. ... */ + title?: string; + /** [Method] Hides a visible tip or cancels an impending show for a particular element + * @param el String The element that is the target of the tip or ID of the element. + */ + cancelShow?( el?:string ): void; + cancelShow?( el?:HTMLElement ): void; + cancelShow?( el?:Ext.IElement ): void; + /** [Method] Hides this tooltip if visible */ + hide?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Configures a new quick tip instance and assigns it to a target element + * @param config Object The config object with the following properties: + */ + register?( config?:any ): void; + /** [Method] Shows this tooltip at the current event target XY position */ + show?(): void; + /** [Method] Removes this quick tip from its element and destroys it + * @param el String The element from which the quick tip is to be removed or ID of the element. + */ + unregister?( el?:string ): void; + unregister?( el?:HTMLElement ): void; + unregister?( el?:Ext.IElement ): void; + } +} +declare module Ext.tip { + export interface IQuickTipManager extends Ext.IBase { + } + export class QuickTipManager { + /** [Method] Destroys the QuickTips instance */ + static destroy(): void; + /** [Method] Disables quick tips globally */ + static disable(): void; + /** [Method] Enables quick tips globally */ + static enable(): void; + /** [Method] Gets the single QuickTip instance used to show tips from all registered elements */ + static getQuickTip(): Ext.tip.IQuickTip; + /** [Method] Initializes the global QuickTips instance and prepare any quick tips + * @param autoRender Boolean True to render the QuickTips container immediately to preload images. + * @param config Object config object for the created QuickTip. By default, the QuickTip class is instantiated, but this can be changed by supplying an xtype property or a className property in this object. All other properties on this object are configuration for the created component. + */ + static init( autoRender?:bool, config?:any ): void; + /** [Method] Returns true if quick tips are enabled else false */ + static isEnabled(): bool; + /** [Method] Configures a new quick tip instance and assigns it to a target element + * @param config Object The config object + */ + static register( config?:any ): void; + /** [Method] Alias of register + * @param config Object The config object + */ + static tips( config?:any ): void; + /** [Method] Removes any registered quick tip from the target element and destroys it + * @param el String The element from which the quick tip is to be removed or ID of the element. + */ + static unregister( el?:string ): void; + static unregister( el?:HTMLElement ): void; + static unregister( el?:Ext.IElement ): void; + } +} +declare module Ext.tip { + export interface ITip extends Ext.panel.IPanel { + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) private panel overrides This config is intended mainly for non-floating Components which may or may not be shown. ... */ + autoRender?: any; + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to render a close tool button into the tooltip header. ... */ + closable?: bool; + /** [Config Option] (String) The action to take when the close header tool is clicked: destroy : remove the window from the DOM and destroy it a... */ + closeAction?: string; + /** [Config Option] (Boolean) If true, then the tooltip will be automatically constrained to stay within the browser viewport. ... */ + constrainPosition?: bool; + /** [Config Option] (String) Experimental. ... */ + defaultAlign?: string; + /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + floating?: bool; + /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + focusOnToFront?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + frameHeader?: bool; + /** [Config Option] (Boolean) true to hide the component. ... */ + hidden?: bool; + /** [Config Option] (Number) The maximum width of the tip in pixels. ... */ + maxWidth?: number; + /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + minWidth?: number; + /** [Config Option] (Boolean/String) true or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + shadow?: any; + /** [Config Option] (Number) Width in pixels of the tip. ... */ + width?: number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext { + export interface ITip extends Ext.panel.IPanel { + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) private panel overrides This config is intended mainly for non-floating Components which may or may not be shown. ... */ + autoRender?: any; + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to render a close tool button into the tooltip header. ... */ + closable?: bool; + /** [Config Option] (String) The action to take when the close header tool is clicked: destroy : remove the window from the DOM and destroy it a... */ + closeAction?: string; + /** [Config Option] (Boolean) If true, then the tooltip will be automatically constrained to stay within the browser viewport. ... */ + constrainPosition?: bool; + /** [Config Option] (String) Experimental. ... */ + defaultAlign?: string; + /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + floating?: bool; + /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + focusOnToFront?: bool; + /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + frameHeader?: bool; + /** [Config Option] (Boolean) true to hide the component. ... */ + hidden?: bool; + /** [Config Option] (Number) The maximum width of the tip in pixels. ... */ + maxWidth?: number; + /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + minWidth?: number; + /** [Config Option] (Boolean/String) true or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + shadow?: any; + /** [Config Option] (Number) Width in pixels of the tip. ... */ + width?: number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext.tip { + export interface IToolTip extends Ext.tip.ITip { + /** [Config Option] (String) If specified, indicates that the tip should be anchored to a particular side of the target element or mouse pointer (... */ + anchor?: string; + /** [Config Option] (Number) A numeric pixel value used to offset the default position of the anchor arrow. ... */ + anchorOffset?: number; + /** [Config Option] (Boolean) True to anchor the tooltip to the target element, false to anchor it relative to the mouse coordinates. ... */ + anchorToTarget?: bool; + /** [Config Option] (Boolean) True to automatically hide the tooltip after the mouse exits the target element or after the dismissDelay has expired... */ + autoHide?: bool; + /** [Config Option] (String) A DomQuery selector which allows selection of individual elements within the target element to trigger showing and hi... */ + delegate?: string; + /** [Config Option] (Number) Delay in milliseconds before the tooltip automatically hides. ... */ + dismissDelay?: number; + /** [Config Option] (Number) Delay in milliseconds after the mouse exits the target element but before the tooltip actually hides. ... */ + hideDelay?: number; + /** [Config Option] (Number[]) An XY offset from the mouse position where the tooltip should be shown. ... */ + mouseOffset?: number[]; + /** [Config Option] (Number) Delay in milliseconds before the tooltip displays after the mouse enters the target element. ... */ + showDelay?: number; + /** [Config Option] (HTMLElement/Ext.Element/String) */ + target?: any; + /** [Config Option] (Boolean) True to have the tooltip follow the mouse as it moves over the target element. ... */ + trackMouse?: bool; + /** [Property] (HTMLElement) When a ToolTip is configured with the delegate option to cause selected child elements of the target Element to each ... */ + triggerElement?: HTMLElement; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Hides this tooltip if visible */ + hide?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Binds this ToolTip to the specified element + * @param t String The Element, HtmlElement, or ID of an element to bind to + */ + setTarget?( t?:string ): void; + setTarget?( t?:HTMLElement ): void; + setTarget?( t?:Ext.IElement ): void; + /** [Method] Shows this tooltip at the current event target XY position */ + show?(): void; + } +} +declare module Ext { + export interface IToolTip extends Ext.tip.ITip { + /** [Config Option] (String) If specified, indicates that the tip should be anchored to a particular side of the target element or mouse pointer (... */ + anchor?: string; + /** [Config Option] (Number) A numeric pixel value used to offset the default position of the anchor arrow. ... */ + anchorOffset?: number; + /** [Config Option] (Boolean) True to anchor the tooltip to the target element, false to anchor it relative to the mouse coordinates. ... */ + anchorToTarget?: bool; + /** [Config Option] (Boolean) True to automatically hide the tooltip after the mouse exits the target element or after the dismissDelay has expired... */ + autoHide?: bool; + /** [Config Option] (String) A DomQuery selector which allows selection of individual elements within the target element to trigger showing and hi... */ + delegate?: string; + /** [Config Option] (Number) Delay in milliseconds before the tooltip automatically hides. ... */ + dismissDelay?: number; + /** [Config Option] (Number) Delay in milliseconds after the mouse exits the target element but before the tooltip actually hides. ... */ + hideDelay?: number; + /** [Config Option] (Number[]) An XY offset from the mouse position where the tooltip should be shown. ... */ + mouseOffset?: number[]; + /** [Config Option] (Number) Delay in milliseconds before the tooltip displays after the mouse enters the target element. ... */ + showDelay?: number; + /** [Config Option] (HTMLElement/Ext.Element/String) */ + target?: any; + /** [Config Option] (Boolean) True to have the tooltip follow the mouse as it moves over the target element. ... */ + trackMouse?: bool; + /** [Property] (HTMLElement) When a ToolTip is configured with the delegate option to cause selected child elements of the target Element to each ... */ + triggerElement?: HTMLElement; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Hides this tooltip if visible */ + hide?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Allows addition of behavior to the disable operation */ + onDisable?(): void; + /** [Method] Possibly animates down to a target element + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onHide?( animateTarget?:string, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Binds this ToolTip to the specified element + * @param t String The Element, HtmlElement, or ID of an element to bind to + */ + setTarget?( t?:string ): void; + setTarget?( t?:HTMLElement ): void; + setTarget?( t?:Ext.IElement ): void; + /** [Method] Shows this tooltip at the current event target XY position */ + show?(): void; + } +} +declare module Ext.toolbar { + export interface IFill extends Ext.IComponent { + /** [Property] (Boolean) true in this class to identify an object as an instantiated Fill, or subclass thereof. ... */ + isFill?: bool; + } +} +declare module Ext.toolbar { + export interface IItem extends Ext.IComponent { + /** [Config Option] (String) */ + overflowText?: string; + /** [Method] Disable the component + * @param silent Boolean Passing true will suppress the disable event from being fired. + */ + disable?( silent?:bool ): void; + /** [Method] Enable the component + * @param silent Boolean Passing true will suppress the enable event from being fired. + */ + enable?( silent?:bool ): void; + /** [Method] Try to focus this component + * @param selectText any If applicable, true to also select the text in this component + * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + */ + focus?( selectText?:any, delay?:any ): any; + focus?( selectText?:bool, delay?:bool ): Ext.IComponent; + focus?( selectText?:bool, delay?:number ): Ext.IComponent; + } +} +declare module Ext.toolbar { + export interface IPaging extends Ext.toolbar.IToolbar,Ext.util.IBindable { + /** [Config Option] (String) Customizable piece of the default paging text. ... */ + afterPageText?: string; + /** [Config Option] (String) The text displayed before the input item. ... */ + beforePageText?: string; + /** [Config Option] (Boolean) true to display the displayMsg ... */ + displayInfo?: bool; + /** [Config Option] (String) The paging status message to display. ... */ + displayMsg?: string; + /** [Config Option] (String) The message to display when no records are found. ... */ + emptyMsg?: string; + /** [Config Option] (String) The quicktip text displayed for the first page button. ... */ + firstText?: string; + /** [Config Option] (Number) The width in pixels of the input field used to display and change the current page number. ... */ + inputItemWidth?: number; + /** [Config Option] (String) The quicktip text displayed for the last page button. ... */ + lastText?: string; + /** [Config Option] (String) The quicktip text displayed for the next page button. ... */ + nextText?: string; + /** [Config Option] (Boolean) true to insert any configured items before the paging buttons. ... */ + prependButtons?: bool; + /** [Config Option] (String) The quicktip text displayed for the previous page button. ... */ + prevText?: string; + /** [Config Option] (String) The quicktip text displayed for the Refresh button. ... */ + refreshText?: string; + /** [Config Option] (Ext.data.Store) */ + store?: Ext.data.IStore; + /** [Method] Binds the paging toolbar to the specified Ext data Store deprecated + * @param store Ext.data.IStore The data store to bind + */ + bind?( store?:Ext.data.IStore ): void; + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Refresh the current page has the same effect as clicking the refresh button */ + doRefresh?(): void; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Move to the first page has the same effect as clicking the first button */ + moveFirst?(): void; + /** [Method] Move to the last page has the same effect as clicking the last button */ + moveLast?(): void; + /** [Method] Move to the next page has the same effect as clicking the next button */ + moveNext?(): void; + /** [Method] Move to the previous page has the same effect as clicking the previous button */ + movePrevious?(): void; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Unbinds the paging toolbar from the specified Ext data Store deprecated + * @param store Ext.data.IStore The data store to unbind + */ + unbind?( store?:Ext.data.IStore ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext { + export interface IPagingToolbar extends Ext.toolbar.IToolbar,Ext.util.IBindable { + /** [Config Option] (String) Customizable piece of the default paging text. ... */ + afterPageText?: string; + /** [Config Option] (String) The text displayed before the input item. ... */ + beforePageText?: string; + /** [Config Option] (Boolean) true to display the displayMsg ... */ + displayInfo?: bool; + /** [Config Option] (String) The paging status message to display. ... */ + displayMsg?: string; + /** [Config Option] (String) The message to display when no records are found. ... */ + emptyMsg?: string; + /** [Config Option] (String) The quicktip text displayed for the first page button. ... */ + firstText?: string; + /** [Config Option] (Number) The width in pixels of the input field used to display and change the current page number. ... */ + inputItemWidth?: number; + /** [Config Option] (String) The quicktip text displayed for the last page button. ... */ + lastText?: string; + /** [Config Option] (String) The quicktip text displayed for the next page button. ... */ + nextText?: string; + /** [Config Option] (Boolean) true to insert any configured items before the paging buttons. ... */ + prependButtons?: bool; + /** [Config Option] (String) The quicktip text displayed for the previous page button. ... */ + prevText?: string; + /** [Config Option] (String) The quicktip text displayed for the Refresh button. ... */ + refreshText?: string; + /** [Config Option] (Ext.data.Store) */ + store?: Ext.data.IStore; + /** [Method] Binds the paging toolbar to the specified Ext data Store deprecated + * @param store Ext.data.IStore The data store to bind + */ + bind?( store?:Ext.data.IStore ): void; + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Refresh the current page has the same effect as clicking the refresh button */ + doRefresh?(): void; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Move to the first page has the same effect as clicking the first button */ + moveFirst?(): void; + /** [Method] Move to the last page has the same effect as clicking the last button */ + moveLast?(): void; + /** [Method] Move to the next page has the same effect as clicking the next button */ + moveNext?(): void; + /** [Method] Move to the previous page has the same effect as clicking the previous button */ + movePrevious?(): void; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Unbinds the paging toolbar from the specified Ext data Store deprecated + * @param store Ext.data.IStore The data store to unbind + */ + unbind?( store?:Ext.data.IStore ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.toolbar { + export interface ISeparator extends Ext.toolbar.IItem { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Number/String/Boolean) Force border: true so container border is not set on this Specifies the border size for this component. ... */ + border?: any; + } +} +declare module Ext.toolbar { + export interface ISpacer extends Ext.IComponent { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + } +} +declare module Ext.toolbar { + export interface ITextItem extends Ext.toolbar.IItem { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String) The text to be used as innerHTML (html tags are accepted). ... */ + text?: string; + /** [Method] Updates this item s text setting the text to be used as innerHTML + * @param text String The text to display (html accepted). + */ + setText?( text?:string ): void; + } +} +declare module Ext.toolbar { + export interface IToolbar extends Ext.container.IContainer { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Boolean) Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the ... */ + enableOverflow?: bool; + /** [Config Option] (Ext.enums.Layout/Object) This class assigns a default layout (layout: 'hbox'). ... */ + layout?: any; + /** [Config Option] (String) Configure the icon class of the overflow button. ... */ + menuTriggerCls?: string; + /** [Config Option] (Boolean) Set to true to make the toolbar vertical. ... */ + vertical?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Toolbar, or subclass thereof. ... */ + isToolbar?: bool; + /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t + * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + */ + add?( args?:any ): Ext.IComponent[]; + /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t + * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + */ + add?( args?:any ): Ext.IComponent; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + getRefItems?( deep?:any ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Inserts a Component into this Container at a specified index + * @param index Number The index at which the Component will be inserted. + * @param component any See add method for overview of possible values. + */ + insert?( index?:number, component?:any ): Ext.IComponent; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] This method is invoked before adding a new child Component + * @param item Ext.IComponent + */ + onBeforeAdd?( item?:Ext.IComponent ): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + } +} +declare module Ext { + export interface IToolbar extends Ext.container.IContainer { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String) */ + defaultButtonUI?: string; + /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + defaultType?: string; + /** [Config Option] (Boolean) Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the ... */ + enableOverflow?: bool; + /** [Config Option] (Ext.enums.Layout/Object) This class assigns a default layout (layout: 'hbox'). ... */ + layout?: any; + /** [Config Option] (String) Configure the icon class of the overflow button. ... */ + menuTriggerCls?: string; + /** [Config Option] (Boolean) Set to true to make the toolbar vertical. ... */ + vertical?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Toolbar, or subclass thereof. ... */ + isToolbar?: bool; + /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t + * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + */ + add?( args?:any ): Ext.IComponent[]; + /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t + * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + */ + add?( args?:any ): Ext.IComponent; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + getRefItems?( deep?:any ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Inserts a Component into this Container at a specified index + * @param index Number The index at which the Component will be inserted. + * @param component any See add method for overview of possible values. + */ + insert?( index?:number, component?:any ): Ext.IComponent; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.IComponent + * @param position Number + */ + onAdd?( component?:Ext.IComponent, position?:number ): void; + /** [Method] This method is invoked before adding a new child Component + * @param item Ext.IComponent + */ + onBeforeAdd?( item?:Ext.IComponent ): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.IComponent + * @param autoDestroy Boolean + */ + onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + } +} +declare module Ext.tree { + export interface IColumn extends Ext.grid.column.IColumn { + /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + hideable?: bool; + /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + lockable?: bool; + /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + tdCls?: string; + /** [Property] (Boolean) Indicates whether or not the component can be dragged. ... */ + draggable?: bool; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + } +} +declare module Ext.tree { + export interface IPanel extends Ext.panel.ITable { + /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ + animate?: bool; + /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + deferRowRender?: bool; + /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ + displayField?: string; + /** [Config Option] (Boolean) */ + folderSort?: bool; + /** [Config Option] (Boolean) */ + hideHeaders?: bool; + /** [Config Option] (Boolean) False to disable tree lines. ... */ + lines?: bool; + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ + root?: any; + /** [Config Option] (Boolean) False to hide the root node. ... */ + rootVisible?: bool; + /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of selection model to use. ... */ + selType?: string; + /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ + singleExpand?: bool; + /** [Config Option] (Ext.data.TreeStore) */ + store?: Ext.data.ITreeStore; + /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ + useArrows?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Collapse all nodes + * @param callback Function A function to execute when the collapse finishes. + * @param scope Object The scope of the callback function + */ + collapseAll?( callback?:any, scope?:any ): void; + /** [Method] Collapses a record that is loaded in the tree + * @param record Ext.data.IModel The record to collapse + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the collapse is completed + * @param scope Object The scope of the callback function. + */ + collapseNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand all nodes + * @param callback Function A function to execute when the expand finishes. + * @param scope Object The scope of the callback function + */ + expandAll?( callback?:any, scope?:any ): void; + /** [Method] Expands a record that is loaded in the tree + * @param record Ext.data.IModel The record to expand + * @param deep Boolean True to expand nodes all the way down the tree hierarchy. + * @param callback Function The function to run after the expand is completed + * @param scope Object The scope of the callback function. + */ + expandNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand the tree to the path of a particular node + * @param path String The path to expand. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the expand finishes. The callback will be called with (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + expandPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Retrieve an array of checked records */ + getChecked?(): Ext.data.INodeInterface[]; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Expand the tree to the path of a particular node then select it + * @param path String The path to select. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the select finishes. The callback will be called with (bSuccess, oLastNode) where bSuccess is if the select was successful and oLastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Sets root node of this tree + * @param root any + */ + setRootNode?( root?:any ): Ext.data.INodeInterface; + } +} +declare module Ext { + export interface ITreePanel extends Ext.panel.ITable { + /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ + animate?: bool; + /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + deferRowRender?: bool; + /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ + displayField?: string; + /** [Config Option] (Boolean) */ + folderSort?: bool; + /** [Config Option] (Boolean) */ + hideHeaders?: bool; + /** [Config Option] (Boolean) False to disable tree lines. ... */ + lines?: bool; + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ + root?: any; + /** [Config Option] (Boolean) False to hide the root node. ... */ + rootVisible?: bool; + /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of selection model to use. ... */ + selType?: string; + /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ + singleExpand?: bool; + /** [Config Option] (Ext.data.TreeStore) */ + store?: Ext.data.ITreeStore; + /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ + useArrows?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Collapse all nodes + * @param callback Function A function to execute when the collapse finishes. + * @param scope Object The scope of the callback function + */ + collapseAll?( callback?:any, scope?:any ): void; + /** [Method] Collapses a record that is loaded in the tree + * @param record Ext.data.IModel The record to collapse + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the collapse is completed + * @param scope Object The scope of the callback function. + */ + collapseNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand all nodes + * @param callback Function A function to execute when the expand finishes. + * @param scope Object The scope of the callback function + */ + expandAll?( callback?:any, scope?:any ): void; + /** [Method] Expands a record that is loaded in the tree + * @param record Ext.data.IModel The record to expand + * @param deep Boolean True to expand nodes all the way down the tree hierarchy. + * @param callback Function The function to run after the expand is completed + * @param scope Object The scope of the callback function. + */ + expandNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand the tree to the path of a particular node + * @param path String The path to expand. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the expand finishes. The callback will be called with (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + expandPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Retrieve an array of checked records */ + getChecked?(): Ext.data.INodeInterface[]; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Expand the tree to the path of a particular node then select it + * @param path String The path to select. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the select finishes. The callback will be called with (bSuccess, oLastNode) where bSuccess is if the select was successful and oLastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Sets root node of this tree + * @param root any + */ + setRootNode?( root?:any ): Ext.data.INodeInterface; + } +} +declare module Ext.tree { + export interface ITreePanel extends Ext.panel.ITable { + /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ + animate?: bool; + /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + deferRowRender?: bool; + /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ + displayField?: string; + /** [Config Option] (Boolean) */ + folderSort?: bool; + /** [Config Option] (Boolean) */ + hideHeaders?: bool; + /** [Config Option] (Boolean) False to disable tree lines. ... */ + lines?: bool; + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ + root?: any; + /** [Config Option] (Boolean) False to hide the root node. ... */ + rootVisible?: bool; + /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ + rowLines?: bool; + /** [Config Option] (String) An xtype of selection model to use. ... */ + selType?: string; + /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ + singleExpand?: bool; + /** [Config Option] (Ext.data.TreeStore) */ + store?: Ext.data.ITreeStore; + /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ + useArrows?: bool; + /** [Config Option] (String) An xtype of view to use. ... */ + viewType?: string; + /** [Method] Collapse all nodes + * @param callback Function A function to execute when the collapse finishes. + * @param scope Object The scope of the callback function + */ + collapseAll?( callback?:any, scope?:any ): void; + /** [Method] Collapses a record that is loaded in the tree + * @param record Ext.data.IModel The record to collapse + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the collapse is completed + * @param scope Object The scope of the callback function. + */ + collapseNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand all nodes + * @param callback Function A function to execute when the expand finishes. + * @param scope Object The scope of the callback function + */ + expandAll?( callback?:any, scope?:any ): void; + /** [Method] Expands a record that is loaded in the tree + * @param record Ext.data.IModel The record to expand + * @param deep Boolean True to expand nodes all the way down the tree hierarchy. + * @param callback Function The function to run after the expand is completed + * @param scope Object The scope of the callback function. + */ + expandNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand the tree to the path of a particular node + * @param path String The path to expand. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the expand finishes. The callback will be called with (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + expandPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Retrieve an array of checked records */ + getChecked?(): Ext.data.INodeInterface[]; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Expand the tree to the path of a particular node then select it + * @param path String The path to select. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the select finishes. The callback will be called with (bSuccess, oLastNode) where bSuccess is if the select was successful and oLastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Sets root node of this tree + * @param root any + */ + setRootNode?( root?:any ): Ext.data.INodeInterface; + } +} +declare module Ext.tree.plugin { + export interface ITreeViewDragDrop extends Ext.IAbstractPlugin { + /** [Config Option] (Boolean) True if drops on the tree container (outside of a specific tree node) are allowed. ... */ + allowContainerDrops?: bool; + /** [Config Option] (Boolean) Allow inserting a dragged node between an expanded parent node and its first child that will become a sibling of the ... */ + allowParentInserts?: bool; + /** [Config Option] (Boolean) True if the tree should only allow append drops (use for trees which are sorted). ... */ + appendOnly?: bool; + /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + containerScroll?: any; + /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + ddGroup?: string; + /** [Config Option] (String) The name of the model field that is used to display the text for the nodes ... */ + displayField?: string; + /** [Config Option] (String) The ddGroup to which the DragZone will belong. ... */ + dragGroup?: string; + /** [Config Option] (String) The text to show while dragging. ... */ + dragText?: string; + /** [Config Option] (String) The ddGroup to which the DropZone will belong. ... */ + dropGroup?: string; + /** [Config Option] (Boolean) Set to false to disallow dragging items from the View. ... */ + enableDrag?: bool; + /** [Config Option] (Boolean) Set to false to disallow the View from accepting drop gestures. ... */ + enableDrop?: bool; + /** [Config Option] (String) The delay in milliseconds to wait before expanding a target tree node while dragging a droppable node over the target. ... */ + expandDelay?: string; + /** [Config Option] (String) The color to use when visually highlighting the dragged or dropped node (default value is light blue). ... */ + nodeHighlightColor?: string; + /** [Config Option] (Boolean) Whether or not to highlight any nodes after they are successfully dropped on their target. ... */ + nodeHighlightOnDrop?: bool; + /** [Config Option] (Boolean) Whether or not to highlight any nodes after they are repaired from an unsuccessful drag/drop. ... */ + nodeHighlightOnRepair?: bool; + /** [Config Option] (Boolean) Configure as true to sort the target node into the current tree sort order after the dropped node is added. ... */ + sortOnDrop?: bool; + /** [Method] The init method is invoked after initComponent method has been run for the client Component + * @param client Ext.IComponent The client Component which owns this plugin. + */ + init?( client?:Ext.IComponent ): void; + } +} +declare module Ext.tree { + export interface IView extends Ext.view.ITable { + /** [Config Option] (Boolean) */ + animate?: bool; + /** [Config Option] (Boolean) Set this to true to ignore refresh events on the bound store. ... */ + blockRefresh?: bool; + /** [Config Option] (Boolean) Must be false for Tree Views because the root node must be rendered in order to be updated with its child nodes. ... */ + deferInitialRefresh?: bool; + /** [Config Option] (Boolean/Object) False to disable a load mask from displaying while the view is loading. ... */ + loadMask?: any; + /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + loadingCls?: string; + /** [Config Option] (Boolean) False to hide the root node. ... */ + rootVisible?: bool; + /** [Config Option] (Boolean) True to stripe the rows. ... */ + stripeRows?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated TreeView, or subclass thereof. ... */ + isTreeView?: bool; + /** [Method] Called by the layout system after the Component has been laid out + * @param width Number The width that was set + * @param height Number The height that was set + * @param oldWidth Number The old width, or undefined if this was the initial layout. + * @param oldHeight Number The old height, or undefined if this was the initial layout. + */ + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; + afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Collapses a record that is loaded in the view + * @param record Ext.data.IModel The record to collapse + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the collapse is completed + * @param scope Object The scope of the callback function. + */ + collapse?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expands a record that is loaded in the view + * @param record Ext.data.IModel The record to expand + * @param deep Boolean True to expand nodes all the way down the tree hierarchy. + * @param callback Function The function to run after the expand is completed + * @param scope Object The scope of the callback function. + */ + expand?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the base TreeStore from the bound TreePanel */ + getTreeStore?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Toggles a record between expanded and collapsed + * @param record Ext.data.IModel + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the expand/collapse is completed + * @param scope Object The scope of the callback function. + */ + toggle?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + } +} +declare module Ext.tree { + export interface IViewDragZone extends Ext.view.IDragZone { + } +} +declare module Ext.tree { + export interface IViewDropZone extends Ext.view.IDropZone { + /** [Config Option] (String) */ + allowContainerDrop?: string; + /** [Config Option] (Boolean) Allow inserting a dragged node between an expanded parent node and its first child that will become a sibling of the ... */ + allowParentInserts?: bool; + /** [Config Option] (String) True if the tree should only allow append drops (use for trees which are sorted). ... */ + appendOnly?: string; + /** [Config Option] (String) The delay in milliseconds to wait before expanding a target tree node while dragging a droppable node over the target. ... */ + expandDelay?: string; + /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source has been dragged out of the zone + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag zone + */ + notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called while the DropZone determines that a Ext dd DragSource is being dragged over it but not over any of its regis + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] The mouse is no longer over a tree node so dropping is not valid Called when the DropZone determines that a Ext dd + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + } +} +declare module Ext.util { + export interface IAbstractMixedCollection extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Boolean) Specify true if the addAll function should add function references to the collection. ... */ + allowFunctions?: bool; + /** [Property] (Boolean) true in this class to identify an object as an instantiated MixedCollection, or subclass thereof. ... */ + isMixedCollection?: bool; + /** [Method] Adds an item to the collection + * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + add?( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs any An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + addAll?( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all items from the collection */ + clear?(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Creates a shallow copy of this collection */ + clone?(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + collect?( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + contains?( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + containsKey?( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + eachKey?( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property any A property on your objects, or an array of Filter objects + * @param value any Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch any True to match any part of the string, not just the beginning + * @param caseSensitive any True for case sensitive comparison. + */ + filter?( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + filter?( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + filter?( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + filter?( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + filter?( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + filterBy?( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + findBy?( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property any The name of a property on your objects. + * @param value any A string that the property values should start with or a RegExp to test against the property. + * @param start any The index to start searching at. + * @param anyMatch any True to match any part of the string, not just the beginning. + * @param caseSensitive any True for case sensitive comparison. + */ + findIndex?( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + findIndex?( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + findIndex?( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + findIndexBy?( fn?:any, scope?:any, start?:number ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Returns the first item in the collection */ + first?(): any; + /** [Method] Returns the item associated with the passed key OR index + * @param key any The key or index of the item. + */ + get?( key?:any ): any; + get?( key?:string ): any; + get?( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + getAt?( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key any The key of the item. + */ + getByKey?( key?:any ): any; + getByKey?( key?:string ): any; + getByKey?( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + getCount?(): number; + /** [Method] A function which will be called passing a newly added object when the object is added without a separate id + * @param item Object The item for which to find the key. + */ + getKey?( item?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + getRange?( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + indexOf?( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + indexOfKey?( key?:string ): number; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key any The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o any If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + insert?( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + last?(): any; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + remove?( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + removeAll?( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + removeAt?( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + removeAtKey?( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + removeRange?( index?:number, removeCount?:number ): any; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + replace?( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + sum?( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + updateKey?( oldKey?:any, newKey?:any ): void; + } +} +declare module Ext.util { + export interface IAnimate extends Ext.IBase { + /** [Method] Performs custom animation on this object. ... */ + animate?: any; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + getActiveAnimation?(): bool; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + sequenceFx?(): any; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopAnimation?(): Ext.IElement; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + syncFx?(): any; + } +} +declare module Ext.util { + export interface IBindable extends Ext.IBase { + /** [Method] Binds a store to this instance + * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + */ + bindStore?( store?:Ext.data.IAbstractStore ): void; + bindStore?( store?:string ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Gets the current store instance */ + getStore?(): Ext.data.IAbstractStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.util { + export interface IClickRepeater extends Ext.util.IObservable { + /** [Config Option] (Boolean) True if autorepeating should start slowly and accelerate. ... */ + accelerate?: bool; + /** [Config Option] (Number) The initial delay before the repeating event begins firing. ... */ + delay?: number; + /** [Config Option] (String/HTMLElement/Ext.Element) */ + el?: any; + /** [Config Option] (Number) The interval between firings of the "click" event (in milliseconds). ... */ + interval?: number; + /** [Config Option] (String) */ + pressedCls?: string; + /** [Config Option] (Boolean) True to prevent the default click event ... */ + preventDefault?: bool; + /** [Config Option] (Boolean) True to stop the default click event ... */ + stopDefault?: bool; + /** [Method] Disables the repeater and stops events from firing + * @param force Object + */ + disable?( force?:any ): void; + /** [Method] Enables the repeater and allows events to fire */ + enable?(): void; + /** [Method] Convenience function for setting disabled enabled by boolean + * @param disabled Boolean + */ + setDisabled?( disabled?:bool ): void; + } +} +declare module Ext.util { + export interface IComponentDragger extends Ext.dd.IDragTracker { + /** [Config Option] (Boolean) */ + constrain?: bool; + /** [Config Option] (Boolean) */ + constrainDelegate?: bool; + /** [Method] Move either the ghost Component or the target Component to its new position on drag Template method which should be + * @param e Ext.IEventObject The event object + */ + onDrag?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onEnd?( e?:Ext.IEventObject ): void; + /** [Method] Template method which should be overridden by each DragTracker instance + * @param e Ext.IEventObject The event object + */ + onStart?( e?:Ext.IEventObject ): void; + } +} +declare module Ext.util { + export interface ICookies extends Ext.IBase { + } + export class Cookies { + /** [Method] Removes a cookie with the provided name from the browser if found by setting its expiration date to sometime in the p + * @param name String The name of the cookie to remove + * @param path String The path for the cookie. This must be included if you included a path while setting the cookie. + */ + static clear( name?:string, path?:string ): void; + /** [Method] Retrieves cookies that are accessible by the current page + * @param name String The name of the cookie to get + */ + static get( name?:string ): any; + /** [Method] Creates a cookie with the specified name and value + * @param name String The name of the cookie to set. + * @param value Object The value to set for the cookie. + * @param expires Object Specify an expiration date the cookie is to persist until. Note that the specified Date object will be converted to Greenwich Mean Time (GMT). + * @param path String Setting a path on the cookie restricts access to pages that match that path. Defaults to all pages ('/'). + * @param domain String Setting a domain restricts access to pages on a given domain (typically used to allow cookie access across subdomains). For example, "sencha.com" will create a cookie that can be accessed from any subdomain of sencha.com, including www.sencha.com, support.sencha.com, etc. + * @param secure Boolean Specify true to indicate that the cookie should only be accessible via SSL on a page using the HTTPS protocol. Defaults to false. Note that this will only work if the page calling this code uses the HTTPS protocol, otherwise the cookie will be created with default options. + */ + static set( name?:string, value?:any, expires?:any, path?:string, domain?:string, secure?:bool ): void; + } +} +declare module Ext.util { + export interface ICSS extends Ext.IBase { + } + export class CSS { + /** [Method] Creates a rule + * @param styleSheet CSSStyleSheet The StyleSheet to create the rule in as returned from createStyleSheet. + * @param selector String The selector to target the rule. + * @param property String The cssText specification eg "color:red;font-weight:bold;text-decoration:underline" + */ + static createRule( styleSheet?:CSSStyleSheet, selector?:string, property?:string ): CSSStyleRule; + /** [Method] Creates a stylesheet from a text blob of rules + * @param cssText String The text containing the css rules + * @param id String An id to add to the stylesheet for later removal + */ + static createStyleSheet( cssText?:string, id?:string ): CSSStyleSheet; + /** [Method] Gets an an individual CSS rule by selector s + * @param selector any The CSS selector or an array of selectors to try. The first selector that is found is returned. + * @param refreshCache any true to refresh the internal cache if you have recently updated any rules or added styles dynamically + */ + static getRule( selector?:any, refreshCache?:any ): any; + static getRule( selector?:string, refreshCache?:bool ): CSSStyleRule; + static getRule( selector?:string[], refreshCache?:bool ): CSSStyleRule; + /** [Method] Gets all css rules for the document + * @param refreshCache Boolean true to refresh the internal cache + */ + static getRules( refreshCache?:bool ): any; + /** [Method] Refresh the rule cache if you have dynamically added stylesheets */ + static refreshCache(): any; + /** [Method] Removes a style or link tag by id + * @param id String The id of the tag + */ + static removeStyleSheet( id?:string ): void; + /** [Method] Dynamically swaps an existing stylesheet reference for a new one + * @param id String The id of an existing link tag to remove + * @param url String The href of the new stylesheet to include + */ + static swapStyleSheet( id?:string, url?:string ): void; + /** [Method] Updates a rule property + * @param selector any If it's an array it tries each selector until it finds one. Stops immediately once one is found. + * @param property any The css property or a cssText specification eg "color:red;font-weight:bold;text-decoration:underline" + * @param value any The new value for the property + */ + static updateRule( selector?:any, property?:any, value?:any ): any; + static updateRule( selector?:string, property?:string, value?:string ): bool; + static updateRule( selector?:string[], property?:string, value?:string ): bool; + } +} +declare module Ext.util { + export interface IDelayedTask { + /** [Method] Cancel the last queued timeout */ + cancel?(): void; + /** [Method] By default cancels any pending timeout and queues a new one + * @param newDelay Number The milliseconds to delay + * @param newFn Function Overrides function passed to constructor + * @param newScope Object Overrides scope passed to constructor. Remember that if no scope is specified, this will refer to the browser window. + * @param newArgs Array Overrides args passed to constructor + */ + delay?( newDelay?:number, newFn?:any, newScope?:any, newArgs?:any[] ): void; + } +} +declare module Ext.util { + export interface IElementContainer extends Ext.IBase { + /** [Method] Adds each argument passed to this method to the childEls array */ + addChildEls?(): void; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + removeChildEls?( testFn?:any ): void; + } +} +declare module Ext.util { + export interface IEvent extends Ext.IBase { + /** [Property] (Boolean) true in this class to identify an object as an instantiated Event, or subclass thereof. ... */ + isEvent?: bool; + } +} +declare module Ext.util { + export interface IFilter extends Ext.IBase { + /** [Config Option] (Boolean) True to allow any match - no regex start/end line anchors will be added. ... */ + anyMatch?: bool; + /** [Config Option] (Boolean) True to make the regex case sensitive (adds 'i' switch to regex). ... */ + caseSensitive?: bool; + /** [Config Option] (Boolean) True to force exact match (^ and $ characters added to the regex). ... */ + exactMatch?: bool; + /** [Config Option] (Function) A custom filter function which is passed each item in the Ext.util.MixedCollection in turn. ... */ + filterFn?: any; + /** [Config Option] (String) An identifier by which this Filter is indexed in a Store's filters collection Identified Filters may be individually... */ + id?: string; + /** [Config Option] (String) The operator to use to compare the property to this Filter's value Possible values are: * < * <= * = ... */ + operator?: string; + /** [Config Option] (String) The property to filter on. ... */ + property?: string; + /** [Config Option] (String) Optional root property. ... */ + root?: string; + /** [Config Option] (Mixed) The value to filter on. ... */ + value?: any; + /** [Property] (Boolean) Setting this property to true disables this individual Filter so that it no longer contributes to a Store's filter se... */ + disabled?: bool; + /** [Method] Changes the filtering function which this Filter uses to choose items to include + * @param filterFn Function A function which returns true or false to either include or exclude the passed object. + */ + setFilterFn?( filterFn?:any ): void; + /** [Method] Changes the value that this filter tests its configured link cfg property with + * @param value Mixed The new value to compare the property with. + */ + setValue?( value?:any ): void; + } +} +declare module Ext.util { + export interface IFloating extends Ext.IBase { + /** [Config Option] (Boolean) True to constrain this Components within its containing element, false to allow it to fall outside of its containing ... */ + constrain?: bool; + /** [Config Option] (Boolean) Configure as true to have this Component fixed at its X, Y coordinates in the browser viewport, immune to scrolling t... */ + fixed?: bool; + /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + focusOnToFront?: bool; + /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + shadow?: any; + /** [Config Option] (Number) */ + shadowOffset?: number; + /** [Method] Center this Component in its container */ + center?(): Ext.IComponent; + /** [Method] Moves this floating Component into a constrain region + * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + */ + doConstrain?( constrainTo?:string ): void; + doConstrain?( constrainTo?:HTMLElement ): void; + doConstrain?( constrainTo?:Ext.IElement ): void; + doConstrain?( constrainTo?:Ext.util.IRegion ): void; + /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th + * @param active Boolean True to activate the Component, false to deactivate it. + * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + */ + setActive?( active?:bool, newActive?:Ext.IComponent ): void; + /** [Method] Sends this Component to the back of lower z index than any other visible windows */ + toBack?(): Ext.IComponent; + /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag + * @param preventFocus Boolean Specify true to prevent the Component from being focused. + */ + toFront?( preventFocus?:bool ): Ext.IComponent; + } +} +declare module Ext.util { + export interface IFormat { + } + export class Format { + /** [Method] Formats an object of name value properties as HTML element attribute values suitable for using when creating textual + * @param attributes Object An object containing the HTML attributes as properties eg: {height:40, vAlign:'top'} + */ + static attributes( attributes?:any ): void; + /** [Method] Alias for Ext String capitalize + * @param string String + */ + static capitalize( string?:string ): string; + /** [Method] Format a number as a currency + * @param value any The numeric value to format + * @param sign any The currency sign to use (defaults to currencySign) + * @param decimals any The number of decimals to use for the currency (defaults to currencyPrecision) + * @param end any True if the currency sign should be at the end of the string (defaults to currencyAtEnd) + */ + static currency( value?:any, sign?:any, decimals?:any, end?:any ): any; + static currency( value?:number, sign?:string, decimals?:number, end?:bool ): string; + static currency( value?:string, sign?:string, decimals?:number, end?:bool ): string; + /** [Method] Formats the passed date using the specified format pattern + * @param value any The value to format. If a string is passed, it is converted to a Date by the Javascript's built-in Date.parse method. + * @param format any Any valid date format string. Defaults to Ext.Date.defaultFormat. + */ + static date( value?:any, format?:any ): any; + static date( value?:string, format?:string ): string; + static date( value?:any, format?:string ): string; + /** [Method] Returns a date rendering function that can be reused to apply a date format multiple times efficiently + * @param format String Any valid date format string. Defaults to Ext.Date.defaultFormat. + */ + static dateRenderer( format?:string ): any; + /** [Method] Checks a reference and converts it to the default value if it s empty + * @param value Object Reference to check + * @param defaultValue String The value to insert of it's undefined. + */ + static defaultValue( value?:any, defaultValue?:string ): string; + /** [Method] Alias for Ext String ellipsis + * @param value String The string to truncate. + * @param length Number The maximum length to allow before truncating. + * @param word Boolean true to try to find a common word break. + */ + static ellipsis( value?:string, length?:number, word?:bool ): string; + /** [Method] Escapes the passed string for use in a regular expression + * @param str String + */ + static escapeRegex( str?:string ): string; + /** [Method] Simple format for a file size xxx bytes xxx KB xxx MB + * @param size any The numeric value to format + */ + static fileSize( size?:any ): any; + static fileSize( size?:number ): string; + static fileSize( size?:string ): string; + /** [Method] Alias for Ext String format + * @param string String The tokenized string to be formatted. + * @param values Mixed... The values to replace tokens {0}, {1}, etc in order. + */ + static format( string:string, ...values:any[] ): string; + /** [Method] Alias for Ext String htmlDecode + * @param value String The string to decode. + */ + static htmlDecode( value?:string ): string; + /** [Method] Alias for Ext String htmlEncode + * @param value String The string to encode. + */ + static htmlEncode( value?:string ): string; + /** [Method] Alias for Ext String leftPad + * @param string String The original string. + * @param size Number The total length of the output string. + * @param character String The character with which to pad the original string. + */ + static leftPad( string?:string, size?:number, character?:string ): string; + /** [Method] Converts a string to all lower case letters + * @param value String The text to convert + */ + static lowercase( value?:string ): string; + /** [Method] It does simple math for use in a template for example var tpl new Ext Template value 10 value math 10 */ + static math(): any; + /** [Method] Converts newline characters to the HTML tag lt br gt + * @param v String The string value to format. + */ + static nl2br( v?:string ): string; + /** [Method] Formats the passed number according to the passed format string + * @param v Number The number to format. + * @param format String The way you would like to format this text. + */ + static number( v?:number, format?:string ): string; + /** [Method] Returns a number rendering function that can be reused to apply a number format multiple times efficiently + * @param format String Any valid number format string for number + */ + static numberRenderer( format?:string ): any; + /** [Method] Parses a number or string representing margin sizes into an object + * @param v any The encoded margins + */ + static parseBox( v?:any ): any; + static parseBox( v?:number ): any; + static parseBox( v?:string ): any; + /** [Method] Selectively do a plural form of a word based on a numeric value + * @param value Number The value to compare against + * @param singular String The singular form of the word + * @param plural String The plural form of the word (defaults to the singular with an "s") + */ + static plural( value?:number, singular?:string, plural?:string ): void; + /** [Method] Rounds the passed number to the required decimal precision + * @param value any The numeric value to round. + * @param precision any The number of decimal places to which to round the first parameter's value. + */ + static round( value?:any, precision?:any ): any; + static round( value?:number, precision?:number ): number; + static round( value?:string, precision?:number ): number; + /** [Method] Strips all script tags + * @param value Object The text from which to strip script tags + */ + static stripScripts( value?:any ): string; + /** [Method] Strips all HTML tags + * @param value Object The text from which to strip tags + */ + static stripTags( value?:any ): string; + /** [Method] Returns a substring from within an original string + * @param value String The original text + * @param start Number The start index of the substring + * @param length Number The length of the substring + */ + static substr( value?:string, start?:number, length?:number ): string; + /** [Method] Alias for Ext String trim + * @param string String The string to trim. + */ + static trim( string?:string ): string; + /** [Method] Checks a reference and converts it to empty string if it is undefined + * @param value Object Reference to check + */ + static undef( value?:any ): any; + /** [Method] Converts a string to all upper case letters + * @param value String The text to convert + */ + static uppercase( value?:string ): string; + /** [Method] Format a number as US currency + * @param value any The numeric value to format + */ + static usMoney( value?:any ): any; + static usMoney( value?:number ): string; + static usMoney( value?:string ): string; + } +} +declare module Ext.util { + export interface IGrouper extends Ext.util.ISorter { + /** [Method] Returns the value for grouping to be used + * @param instance Ext.data.IModel The Model instance + */ + getGroupString?( instance?:Ext.data.IModel ): string; + } +} +declare module Ext.util { + export interface IHashMap extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (Function) A function that is used to retrieve a default key for a passed object. ... */ + keyFn?: any; + /** [Method] Adds an item to the collection + * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this HashMap, or if the key of the stored items is in a property called id, the HashMap will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param o Object The item to add. + */ + add?( key?:any, o?:any ): any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all items from the hash + * @param initial Object + */ + clear?( initial?:any ): Ext.util.IHashMap; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Performs a shallow copy on this hash */ + clone?(): Ext.util.IHashMap; + /** [Method] Checks whether a value exists in the hash + * @param value Object The value to check for. + */ + contains?( value?:any ): bool; + /** [Method] Checks whether a key exists in the hash + * @param key String The key to check for. + */ + containsKey?( key?:string ): bool; + /** [Method] Executes the specified function once for each item in the hash + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + each?( fn?:any, scope?:any ): Ext.util.IHashMap; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Retrieves an item with a particular key + * @param key String The key to lookup. + */ + get?( key?:string ): any; + /** [Method] Gets the number of items in the hash */ + getCount?(): number; + /** [Method] Extracts the key from an object + * @param o Object The object to get the key from + */ + getKey?( o?:any ): string; + /** [Method] Return all of the keys in the hash */ + getKeys?(): any[]; + /** [Method] Return all of the values in the hash */ + getValues?(): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the hash + * @param o Object The value of the item to remove. + */ + remove?( o?:any ): bool; + /** [Method] Remove an item from the hash + * @param key String The key to remove. + */ + removeAtKey?( key?:string ): bool; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Replaces an item in the hash + * @param key String The key of the item. + * @param value Object The new value for the item. + */ + replace?( key?:string, value?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.util { + export interface IHistory extends Ext.IBase,Ext.util.IObservable { + } + export class History { + /** [Method] */ + constructor(); + /** [Method] Add a new token to the history stack + * @param token String The value that defines a particular application-specific history state + * @param preventDuplicates Boolean When true, if the passed token matches the current token it will not save a new history step. Set to false if the same state can be saved more than once at the same history stack location. + */ + static add( token?:string, preventDuplicates?:bool ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Programmatically steps back one step in browser history equivalent to the user pressing the Back button */ + static back(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Programmatically steps forward one step in browser history equivalent to the user pressing the Forward button */ + static forward(): void; + /** [Method] Retrieves the currently active history token */ + static getToken(): string; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Initializes the global History instance + * @param onReady Function A callback function that will be called once the history component is fully initialized. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the browser window. + */ + static init( onReady?:any, scope?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IHistory extends Ext.IBase,Ext.util.IObservable { + } + export class History { + /** [Method] */ + constructor(); + /** [Method] Add a new token to the history stack + * @param token String The value that defines a particular application-specific history state + * @param preventDuplicates Boolean When true, if the passed token matches the current token it will not save a new history step. Set to false if the same state can be saved more than once at the same history stack location. + */ + static add( token?:string, preventDuplicates?:bool ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Programmatically steps back one step in browser history equivalent to the user pressing the Back button */ + static back(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:Object[] ): bool; + /** [Method] Programmatically steps forward one step in browser history equivalent to the user pressing the Forward button */ + static forward(): void; + /** [Method] Retrieves the currently active history token */ + static getToken(): string; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Initializes the global History instance + * @param onReady Function A callback function that will be called once the history component is fully initialized. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the browser window. + */ + static init( onReady?:any, scope?:any ): void; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.util { + export interface IInflector extends Ext.IBase { + } + export class Inflector { + /** [Method] Returns the correct Model name for a given string + * @param word String The word to classify + */ + static classify( word?:string ): string; + /** [Method] Removes all registered pluralization rules */ + static clearPlurals(): void; + /** [Method] Removes all registered singularization rules */ + static clearSingulars(): void; + /** [Method] Returns true if the given word is transnumeral the word is its own singular and plural form e g + * @param word String The word to test + */ + static isTransnumeral( word?:string ): bool; + /** [Method] Ordinalizes a given number by adding a prefix such as st nd rd or th based on the last digit of the number + * @param number Number The number to ordinalize + */ + static ordinalize( number?:number ): string; + /** [Method] Adds a new pluralization rule to the Inflector + * @param matcher RegExp The matcher regex + * @param replacer String The replacement string, which can reference matches from the matcher argument + */ + static plural( matcher?:RegExp, replacer?:string ): void; + /** [Method] Returns the pluralized form of a word e g + * @param word String The word to pluralize + */ + static pluralize( word?:string ): string; + /** [Method] Adds a new singularization rule to the Inflector + * @param matcher RegExp The matcher regex + * @param replacer String The replacement string, which can reference matches from the matcher argument + */ + static singular( matcher?:RegExp, replacer?:string ): void; + /** [Method] Returns the singularized form of a word e g + * @param word String The word to singularize + */ + static singularize( word?:string ): string; + } +} +declare module Ext.util { + export interface IKeyMap extends Ext.IBase { + /** [Config Option] (Object/Object[][]) Either a single object describing a handling function for s specified key (or set of keys), or an array of such objects. ... */ + binding?: any; + /** [Config Option] (String) The event to listen for to pick up key events. ... */ + eventName?: string; + /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + ignoreInputFields?: bool; + /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + processEvent?: any; + /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + processEventScope?: any; + /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ + target?: any; + /** [Method] Add a new binding to this KeyMap + * @param binding any A single KeyMap config or an array of configs. The following config object properties are supported: + */ + addBinding?( binding?:any ): void; + /** [Method] Destroys the KeyMap instance and removes all handlers + * @param removeTarget Boolean True to also remove the target + */ + destroy?( removeTarget?:bool ): void; + /** [Method] Disable this KeyMap */ + disable?(): void; + /** [Method] Enables this KeyMap */ + enable?(): void; + /** [Method] Returns true if this KeyMap is enabled */ + isEnabled?(): bool; + /** [Method] Shorthand for adding a single key listener + * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + on?( key?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a binding from this KeyMap + * @param binding Object See for options + */ + removeBinding?( binding?:any ): void; + /** [Method] Convenience function for setting disabled enabled by boolean + * @param disabled Boolean + */ + setDisabled?( disabled?:bool ): void; + /** [Method] Shorthand for removing a single key listener + * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + un?( key?:any, fn?:any, scope?:any ): void; + } +} +declare module Ext { + export interface IKeyMap extends Ext.IBase { + /** [Config Option] (Object/Object[][]) Either a single object describing a handling function for s specified key (or set of keys), or an array of such objects. ... */ + binding?: any; + /** [Config Option] (String) The event to listen for to pick up key events. ... */ + eventName?: string; + /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + ignoreInputFields?: bool; + /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + processEvent?: any; + /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + processEventScope?: any; + /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ + target?: any; + /** [Method] Add a new binding to this KeyMap + * @param binding any A single KeyMap config or an array of configs. The following config object properties are supported: + */ + addBinding?( binding?:any ): void; + /** [Method] Destroys the KeyMap instance and removes all handlers + * @param removeTarget Boolean True to also remove the target + */ + destroy?( removeTarget?:bool ): void; + /** [Method] Disable this KeyMap */ + disable?(): void; + /** [Method] Enables this KeyMap */ + enable?(): void; + /** [Method] Returns true if this KeyMap is enabled */ + isEnabled?(): bool; + /** [Method] Shorthand for adding a single key listener + * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + on?( key?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a binding from this KeyMap + * @param binding Object See for options + */ + removeBinding?( binding?:any ): void; + /** [Method] Convenience function for setting disabled enabled by boolean + * @param disabled Boolean + */ + setDisabled?( disabled?:bool ): void; + /** [Method] Shorthand for removing a single key listener + * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param fn Function The function to call + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + un?( key?:any, fn?:any, scope?:any ): void; + } +} +declare module Ext.util { + export interface IKeyNav extends Ext.IBase { + /** [Config Option] (String) The method to call on the Ext.EventObject after this KeyNav intercepts a key. ... */ + defaultEventAction?: string; + /** [Config Option] (Boolean) True to disable this KeyNav instance. ... */ + disabled?: bool; + /** [Config Option] (String) The event to listen for to pick up key events. ... */ + eventName?: string; + /** [Config Option] (Boolean) Handle the keydown event instead of keypress. ... */ + forceKeyDown?: bool; + /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + ignoreInputFields?: bool; + /** [Config Option] (Ext.util.KeyMap) An optional pre-existing KeyMap to use to listen for key events. ... */ + keyMap?: Ext.util.IKeyMap; + /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + processEvent?: any; + /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + processEventScope?: any; + /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ + target?: any; + /** [Method] Destroy this KeyNav + * @param removeEl Boolean Pass true to remove the element associated with this KeyNav. + */ + destroy?( removeEl?:bool ): void; + /** [Method] Disables this KeyNav */ + disable?(): void; + /** [Method] Enables this KeyNav */ + enable?(): void; + /** [Method] Convenience function for setting disabled enabled by boolean + * @param disabled Boolean + */ + setDisabled?( disabled?:bool ): void; + } +} +declare module Ext { + export interface IKeyNav extends Ext.IBase { + /** [Config Option] (String) The method to call on the Ext.EventObject after this KeyNav intercepts a key. ... */ + defaultEventAction?: string; + /** [Config Option] (Boolean) True to disable this KeyNav instance. ... */ + disabled?: bool; + /** [Config Option] (String) The event to listen for to pick up key events. ... */ + eventName?: string; + /** [Config Option] (Boolean) Handle the keydown event instead of keypress. ... */ + forceKeyDown?: bool; + /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + ignoreInputFields?: bool; + /** [Config Option] (Ext.util.KeyMap) An optional pre-existing KeyMap to use to listen for key events. ... */ + keyMap?: Ext.util.IKeyMap; + /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + processEvent?: any; + /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + processEventScope?: any; + /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ + target?: any; + /** [Method] Destroy this KeyNav + * @param removeEl Boolean Pass true to remove the element associated with this KeyNav. + */ + destroy?( removeEl?:bool ): void; + /** [Method] Disables this KeyNav */ + disable?(): void; + /** [Method] Enables this KeyNav */ + enable?(): void; + /** [Method] Convenience function for setting disabled enabled by boolean + * @param disabled Boolean + */ + setDisabled?( disabled?:bool ): void; + } +} +declare module Ext.util { + export interface ILruCache extends Ext.util.IHashMap { + /** [Config Option] (Number) The maximum size the cache is allowed to grow to before further additions cause removal of the least recently used en... */ + maxSize?: number; + /** [Method] Adds an item to the collection + * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this HashMap, or if the key of the stored items is in a property called id, the HashMap will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param o Object The item to add. + */ + add?( key?:any, o?:any ): any; + /** [Method] Removes all items from the hash + * @param initial Object + */ + clear?( initial?:any ): Ext.util.IHashMap; + /** [Method] Performs a shallow copy on this haLruCachesh */ + clone?(): Ext.util.IHashMap; + /** [Method] Executes the specified function once for each item in the cache + * @param fn Function The function to execute. + * @param scope Object The scope (this reference) to execute in. Defaults to this LruCache. + * @param reverse Boolean Pass true to iterate the list in reverse (most recent first) order. + */ + each?( fn?:any, scope?:any, reverse?:bool ): Ext.util.ILruCache; + /** [Method] Retrieves an item with a particular key + * @param key String The key to lookup. + */ + get?( key?:string ): any; + /** [Method] Purge the least recently used entries if the maxSize has been exceeded */ + prune?(): void; + } +} +declare module Ext.util { + export interface IMemento extends Ext.IBase { + /** [Property] (Object) */ + target?: any; + /** [Method] Captures the specified properties from the target object in this memento + * @param props String The property or array of properties to capture. + * @param target Object The object from which to capture properties. + */ + capture?( props?:string, target?:any ): void; + capture?( props?:string[], target?:any ): void; + /** [Method] Removes the specified properties from this memento + * @param props String The property or array of properties to remove. + */ + remove?( props?:string ): void; + remove?( props?:string[] ): void; + /** [Method] Restores the specified properties from this memento to the target object + * @param props String The property or array of properties to restore. + * @param clear Boolean True to remove the restored properties from this memento or false to keep them (default is true). + * @param target Object The object to which to restore properties. + */ + restore?( props?:string, clear?:bool, target?:any ): void; + restore?( props?:string[], clear?:bool, target?:any ): void; + /** [Method] Restores all captured properties in this memento to the target object + * @param clear Boolean True to remove the restored properties from this memento or false to keep them (default is true). + * @param target Object The object to which to restore properties. + */ + restoreAll?( clear?:bool, target?:any ): void; + } +} +declare module Ext.util { + export interface IMixedCollection extends Ext.util.IAbstractMixedCollection,Ext.util.ISortable { + /** [Config Option] (Boolean) */ + allowFunctions?: bool; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + findInsertionIndex?( newItem?:any, sorterFn?:any ): number; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + generateComparator?(): void; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + getFirstSorter?(): Ext.util.ISorter; + /** [Method] Performs initialization of this mixin */ + initSortable?(): void; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + reorder?( mapping?:any ): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction any The overall direction to sort the data by. + */ + sort?( sorters?:any, direction?:any ): any; + sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; + sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + sortBy?( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + sortByKey?( direction?:string, fn?:any ): void; + } +} +declare module Ext.util { + export interface IObservable extends Ext.IBase { + /** [Config Option] (Object) A config object containing one or more event handlers to be added to this object during initialization. ... */ + listeners?: any; + /** [Property] (Object) This object holds a key for any event that has a listener. ... */ + hasListeners?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Observable, or subclass thereof. ... */ + isObservable?: bool; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:Object[] ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item any The item to which to add a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn any If the ename parameter was an event name, this is the handler function. + * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options any If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.IObservable The item from which to remove a listener/listeners. + * @param ename any The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.util { + export interface IOffset extends Ext.IBase { + } +} +declare module Ext.util { + export interface IPoint extends Ext.util.IRegion { + /** [Method] Compare this point and another point + * @param p any The point to compare with, either an instance of Ext.util.Point or an object with left and top properties + */ + equals?( p?:any ): bool; + /** [Method] Determins whether this Point contained by the passed Region Component or element + * @param region any The rectangle to check that this Point is within. + */ + isContainedBy?( region?:any ): any; + isContainedBy?( region?:Ext.util.IRegion ): bool; + isContainedBy?( region?:Ext.IComponent ): bool; + isContainedBy?( region?:Ext.dom.IElement ): bool; + isContainedBy?( region?:HTMLElement ): bool; + /** [Method] Whether the given point is not away from this point within the given threshold amount + * @param p any The point to check with, either an instance of Ext.util.Point or an object with left and top properties + * @param threshold any Can be either an object with x and y properties or a number + */ + isWithin?( p?:any, threshold?:any ): bool; + /** [Method] Compare this point with another point when the x and y values of both points are rounded + * @param p any The point to compare with, either an instance of Ext.util.Point or an object with x and y properties + */ + roundedEquals?( p?:any ): bool; + /** [Method] Returns a human eye friendly string that represents this point useful for debugging */ + toString?(): string; + /** [Method] Alias for translateBy Translate this region by the given offset amount + * @param x any Object containing the x and y properties. Or the x value is using the two argument form. + * @param y Number The y value unless using an Offset object. + */ + translate?( x?:any, y?:number ): Ext.util.IRegion; + } +} +declare module Ext.util { + export interface IPositionable extends Ext.IBase { + /** [Method] Aligns the element with another element relative to the specified anchor points + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + * @param animate any true for the default animation or a standard Element animation config object + */ + alignTo?( element?:any, position?:any, offsets?:any, animate?:any ): any; + alignTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + alignTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + alignTo?( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Anchors an element to another element and realigns it when the window is resized + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + * @param animate any true for the default animation or a standard Element animation config object + * @param monitorScroll any True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback any The function to call after the animation finishes + */ + anchorTo?( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; + anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + anchorTo?( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + /** [Method] Calculates the new x y position to move this Positionable into a constrain region + * @param constrainTo any The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition any A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local any The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize any A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + */ + calculateConstrainedPosition?( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; + calculateConstrainedPosition?( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:HTMLElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:Ext.IElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + calculateConstrainedPosition?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + /** [Method] Gets the x y coordinates to align this element with another element + * @param element any The Positionable, HTMLElement, or id of the element to align to. + * @param position any The position to align to + * @param offsets any Offset the positioning by [x, y] + */ + getAlignToXY?( element?:any, position?:any, offsets?:any ): any; + getAlignToXY?( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; + getAlignToXY?( element?:HTMLElement, position?:string, offsets?:number[] ): number[]; + getAlignToXY?( element?:string, position?:string, offsets?:number[] ): number[]; + /** [Method] Gets the x y coordinates specified by the anchor position on the element + * @param anchor String The specified anchor position. See alignTo for details on supported anchor positions. + * @param local Boolean True to get the local (element top/left-relative) anchor position instead of page coordinates + * @param size Object An object containing the size to use for calculating anchor position {width: (target width), height: (target height)} (defaults to the element's current size) + */ + getAnchorXY?( anchor?:string, local?:bool, size?:any ): number[]; + /** [Method] Return an object defining the area of this Element which can be passed to setBox to set another Element s size locati + * @param contentBox Boolean If true a box for the content of the element is returned. + * @param local Boolean If true the element's left and top relative to its offsetParent are returned instead of page x/y. + */ + getBox?( contentBox?:bool, local?:bool ): any; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo any The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition any A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize any A proposed [width, height] size to constrain instead of using the element's current size + */ + getConstrainVector?( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; + getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; + getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.IPositionable The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): bool; + getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): bool; + /** [Method] Returns the x coordinate of this element reletive to its offsetParent */ + getLocalX?(): number; + /** [Method] Returns the x and y coordinates of this element relative to its offsetParent */ + getLocalXY?(): number[]; + /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ + getLocalY?(): number; + /** [Method] Returns the offsets of this element from the passed element + * @param offsetsTo any The Positionable, HTMLElement, or element id to get get the offsets from. + */ + getOffsetsTo?( offsetsTo?:any ): any; + getOffsetsTo?( offsetsTo?:Ext.util.IPositionable ): number[]; + getOffsetsTo?( offsetsTo?:HTMLElement ): number[]; + getOffsetsTo?( offsetsTo?:string ): number[]; + /** [Method] Returns a region object that defines the area of this element */ + getRegion?(): Ext.util.IRegion; + /** [Method] Returns the content region of this element */ + getViewRegion?(): Ext.util.IRegion; + /** [Method] Gets the current X position of the DOM element based on page coordinates */ + getX?(): number; + /** [Method] Gets the current position of the DOM element based on page coordinates */ + getXY?(): number[]; + /** [Method] Gets the current Y position of the DOM element based on page coordinates */ + getY?(): number; + /** [Method] Move the element relative to its current position + * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") + * @param distance Number How far to move the element in pixels + * @param animate any true for the default animation or a standard Element animation config object + */ + move?( direction?:string, distance?:number, animate?:any ): void; + /** [Method] Remove any anchor to this element */ + removeAnchor?(): Ext.util.IPositionable; + /** [Method] Sets the element s box + * @param box Object The box to fill {x, y, width, height} + * @param animate any true for the default animation or a standard Element animation config object + */ + setBox?( box?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the local x coordinate of this element using CSS style + * @param x Number The x coordinate. A value of null sets the left style to 'auto'. + */ + setLocalX?( x?:number ): Ext.util.IPositionable; + /** [Method] Sets the local x and y coordinates of this element using CSS style + * @param x any The x coordinate or an array containing [x, y]. A value of null sets the left style to 'auto' + * @param y any The y coordinate, required if x is not an array. A value of null sets the top style to 'auto' + */ + setLocalXY?( x?:any, y?:any ): any; + setLocalXY?( x?:number, y?:number ): Ext.util.IPositionable; + setLocalXY?( x?:any[], y?:number ): Ext.util.IPositionable; + /** [Method] Sets the local y coordinate of this element using CSS style + * @param y Number The y coordinate. A value of null sets the top style to 'auto'. + */ + setLocalY?( y?:number ): Ext.util.IPositionable; + /** [Method] Sets the element s position and size to the specified region + * @param region Ext.util.IRegion The region to fill + * @param animate any true for the default animation or a standard Element animation config object + */ + setRegion?( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the X position of the DOM element based on page coordinates + * @param The Number X position + * @param animate any True for the default animation, or a standard Element animation config object + */ + setX?( The?:number, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the position of the DOM element in page coordinates + * @param pos Number[] Contains X & Y [x, y] values for new position (coordinates are page-based) + * @param animate any True for the default animation, or a standard Element animation config object + */ + setXY?( pos?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the Y position of the DOM element based on page coordinates + * @param The Number Y position + * @param animate any True for the default animation, or a standard Element animation config object + */ + setY?( The?:number, animate?:any ): Ext.util.IPositionable; + /** [Method] Translates the passed page coordinates into left top css values for the element + * @param x any The page x or an array containing [x, y] + * @param y any The page y, required if x is not an array + */ + translatePoints?( x?:any, y?:any ): any; + translatePoints?( x?:number, y?:number ): any; + translatePoints?( x?:any[], y?:number ): any; + } +} +declare module Ext.util { + export interface IProtoElement extends Ext.IBase { + /** [Property] (String) The property name for the className on the data object passed to writeTo. ... */ + clsProp?: string; + /** [Property] (String) The property name for the removed classes on the data object passed to writeTo. ... */ + removedProp?: string; + /** [Property] (Boolean) True if the style must be converted to text during writeTo. ... */ + styleIsText?: bool; + /** [Property] (String) The property name for the style on the data object passed to writeTo. ... */ + styleProp?: string; + /** [Method] Adds class to the element + * @param cls String One or more classnames separated with spaces. + */ + addCls?( cls?:string ): Ext.util.IProtoElement; + /** [Method] Indicates that the current state of the object has been flushed to the DOM so we need to track any subsequent changes */ + flush?(): void; + /** [Method] True if the element has given class + * @param cls String + */ + hasCls?( cls?:string ): bool; + /** [Method] Removes class from the element + * @param cls String One or more classnames separated with spaces. + */ + removeCls?( cls?:string ): Ext.util.IProtoElement; + /** [Method] Adds styles to the element + * @param prop any The style property to be set, or an object of multiple styles. + * @param value String The value to apply to the given property. + */ + setStyle?( prop?:any, value?:string ): Ext.util.IProtoElement; + /** [Method] Writes style and class properties to given object + * @param to Object + */ + writeTo?( to?:any ): any; + } +} +declare module Ext.util { + export interface IQueue extends Ext.IBase { + /** [Method] Removes all items from the collection */ + clear?(): void; + /** [Method] Returns the number of items in the collection */ + getCount?(): number; + /** [Method] Remove an item from the collection + * @param obj Object The item to remove. + */ + remove?( obj?:any ): any; + } +} +declare module Ext.util { + export interface IRegion extends Ext.IBase { + /** [Method] Modifies the current region to be adjusted by offsets + * @param top Number top offset + * @param right Number right offset + * @param bottom Number bottom offset + * @param left Number left offset + */ + adjust?( top?:number, right?:number, bottom?:number, left?:number ): Ext.util.IRegion; + /** [Method] Modifies the current region to be constrained to the targetRegion + * @param targetRegion Ext.util.IRegion + */ + constrainTo?( targetRegion?:Ext.util.IRegion ): Ext.util.IRegion; + /** [Method] Checks if this region completely contains the region that is passed in + * @param region Ext.util.IRegion + */ + contains?( region?:Ext.util.IRegion ): bool; + /** [Method] Create a copy of this Region */ + copy?(): Ext.util.IRegion; + /** [Method] Copy the values of another Region to this Region + * @param p Ext.util.IRegion The region to copy from. + */ + copyFrom?( p?:Ext.util.IRegion ): Ext.util.IRegion; + /** [Method] Check whether this region is equivalent to the given region + * @param region Ext.util.IRegion The region to compare with + */ + equals?( region?:Ext.util.IRegion ): bool; + /** [Method] Get the offset amount of a point outside the region + * @param axis String + * @param p Ext.util.IPoint the point + */ + getOutOfBoundOffset?( axis?:string, p?:Ext.util.IPoint ): Ext.util.IOffset; + /** [Method] Get the offset amount on the x axis + * @param p Number the offset + */ + getOutOfBoundOffsetX?( p?:number ): number; + /** [Method] Get the offset amount on the y axis + * @param p Number the offset + */ + getOutOfBoundOffsetY?( p?:number ): number; + /** [Method] Checks if this region intersects the region passed in + * @param region Ext.util.IRegion + */ + intersect?( region?:Ext.util.IRegion ): Ext.util.IRegion; + /** [Method] Checks if this region intersects the region passed in + * @param region Ext.util.IRegion + */ + intersect?( region?:Ext.util.IRegion ): bool; + /** [Method] Check whether the point offset is out of bound + * @param axis any + * @param p any the point / offset + */ + isOutOfBound?( axis?:any, p?:any ): any; + isOutOfBound?( axis?:string, p?:Ext.util.IPoint ): bool; + isOutOfBound?( axis?:string, p?:number ): bool; + /** [Method] Check whether the offset is out of bound in the x axis + * @param p Number the offset + */ + isOutOfBoundX?( p?:number ): bool; + /** [Method] Check whether the offset is out of bound in the y axis + * @param p Number the offset + */ + isOutOfBoundY?( p?:number ): bool; + /** [Method] Round all the properties of this region */ + round?(): Ext.util.IRegion; + /** [Method] Translate this region by the given offset amount + * @param x any Object containing the x and y properties. Or the x value is using the two argument form. + * @param y Number The y value unless using an Offset object. + */ + translateBy?( x?:any, y?:number ): Ext.util.IRegion; + /** [Method] Returns the smallest region that contains the current AND targetRegion + * @param region Ext.util.IRegion + */ + union?( region?:Ext.util.IRegion ): Ext.util.IRegion; + } +} +declare module Ext.util { + export interface IRenderable extends Ext.IBase { + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Handles autoRender */ + doAutoRender?(): void; + /** [Method] Ensures that this component is attached to document body + * @param runLayout Boolean True to run the component's layout. + */ + ensureAttachedToBody?( runLayout?:bool ): void; + /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert + * @param position any Index, element id or element you want to put this component before. + */ + getInsertPosition?( position?:any ): any; + getInsertPosition?( position?:string ): HTMLElement; + getInsertPosition?( position?:number ): HTMLElement; + getInsertPosition?( position?:Ext.dom.IElement ): HTMLElement; + getInsertPosition?( position?:HTMLElement ): HTMLElement; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Renders the Component into the passed HTML element + * @param container Ext.IElement The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + */ + render?( container?:Ext.IElement, position?:string ): void; + render?( container?:HTMLElement, position?:string ): void; + render?( container?:string, position?:string ): void; + render?( container?:Ext.IElement, position?:number ): void; + render?( container?:HTMLElement, position?:number ): void; + render?( container?:string, position?:number ): void; + } +} +declare module Ext.util { + export interface ISortable extends Ext.IBase { + /** [Config Option] (String) The default sort direction to use if one is not specified. ... */ + defaultSortDirection?: string; + /** [Config Option] (String) */ + sortRoot?: string; + /** [Config Option] (Ext.util.Sorter[]/Object[]) */ + sorters?: any; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Sortable, or subclass thereof. ... */ + isSortable?: bool; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + generateComparator?(): void; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + getFirstSorter?(): Ext.util.ISorter; + /** [Method] Performs initialization of this mixin */ + initSortable?(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction any The overall direction to sort the data by. + */ + sort?( sorters?:any, direction?:any ): any; + sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; + sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + } +} +declare module Ext.util { + export interface ISorter extends Ext.IBase { + /** [Config Option] (String) The direction to sort by. ... */ + direction?: string; + /** [Config Option] (String) The property to sort by. ... */ + property?: string; + /** [Config Option] (String) Optional root property. ... */ + root?: string; + /** [Config Option] (Function) A specific sorter function to execute. ... */ + sorterFn?: any; + /** [Config Option] (Function) A function that will be run on each value before it is compared in the sorter. ... */ + transform?: any; + /** [Method] Set the sorting direction for this sorter + * @param direction String The direction to sort in. Should be either 'ASC' or 'DESC'. + */ + setDirection?( direction?:string ): void; + /** [Method] Toggles the sorting direction for this sorter */ + toggle?(): void; + /** [Method] Update the sort function for this sorter + * @param fn Function A new sorter function for this sorter. If not specified it will use the default sorting function. + */ + updateSortFunction?( fn?:any ): void; + } +} +declare module Ext.util { + export interface ITaskManager extends Ext.util.ITaskRunner { + } + export class TaskManager { + } +} +declare module Ext { + export interface ITaskManager extends Ext.util.ITaskRunner { + } + export class TaskManager { + } +} +declare module Ext.util { + export interface ITaskRunner extends Ext.IBase { + /** [Config Option] (Boolean) This may be configured false to inhibit firing of the idle event after task invocation. ... */ + fireIdleEvent?: bool; + /** [Config Option] (Number) The timer resolution. ... */ + interval?: number; + /** [Method] Destroys this instance stopping all tasks that are currently running */ + destroy?(): void; + /** [Method] Creates a new Task instance + * @param config Object The config object. For details on the supported properties, see start. + */ + newTask?( config?:any ): void; + /** [Method] Starts a new task + * @param task Object A config object that supports the following properties: + */ + start?( task?:any ): any; + /** [Method] Stops an existing running task + * @param task Object The task to stop + */ + stop?( task?:any ): any; + /** [Method] Stops all tasks that are currently running */ + stopAll?(): void; + } +} +declare module Ext.util.taskrunner { + export interface ITask { + /** [Property] (Boolean) Override default behavior ... */ + fireOnStart?: bool; + /** [Method] Destroys this instance stopping this task s execution */ + destroy?(): void; + /** [Method] Restarts this task clearing it duration expiration and run count + * @param interval Number Optionally reset this task's interval. + */ + restart?( interval?:number ): void; + /** [Method] Starts this task if it is not already started + * @param interval Number Optionally reset this task's interval. + */ + start?( interval?:number ): void; + /** [Method] Stops this task */ + stop?(): void; + } +} +declare module Ext.util { + export interface ITextMetrics extends Ext.IBase { + /** [Method] Binds this TextMetrics instance to a new element + * @param el String The element or its ID. + */ + bind?( el?:string ): void; + bind?( el?:HTMLElement ): void; + bind?( el?:Ext.IElement ): void; + /** [Method] Destroy this instance */ + destroy?(): void; + /** [Method] Returns the measured height of the specified text + * @param text String The text to measure + */ + getHeight?( text?:string ): number; + /** [Method] Returns the size of the specified text based on the internal element s style and width properties + * @param text String The text to measure + */ + getSize?( text?:string ): any; + /** [Method] Returns the measured width of the specified text + * @param text String The text to measure + */ + getWidth?( text?:string ): number; + /** [Method] Sets a fixed width on the internal measurement element + * @param width Number The width to set on the element + */ + setFixedWidth?( width?:number ): void; + } +} +declare module Ext { + export interface IVersion { + /** [Method] Returns whether this version equals to the supplied argument + * @param target any The version to compare with + */ + equals?( target?:any ): any; + equals?( target?:string ): bool; + equals?( target?:number ): bool; + /** [Method] Returns the build component value */ + getBuild?(): number; + /** [Method] Returns the major component value */ + getMajor?(): number; + /** [Method] Returns the minor component value */ + getMinor?(): number; + /** [Method] Returns the patch component value */ + getPatch?(): number; + /** [Method] Returns the release component value */ + getRelease?(): number; + /** [Method] Returns shortVersion version without dots and release */ + getShortVersion?(): string; + /** [Method] Convenient alias to isGreaterThan + * @param target any + */ + gt?( target?:any ): any; + gt?( target?:string ): bool; + gt?( target?:number ): bool; + /** [Method] Convenient alias to isGreaterThanOrEqual + * @param target any + */ + gtEq?( target?:any ): any; + gtEq?( target?:string ): bool; + gtEq?( target?:number ): bool; + /** [Method] Returns whether this version if greater than the supplied argument + * @param target any The version to compare with + */ + isGreaterThan?( target?:any ): any; + isGreaterThan?( target?:string ): bool; + isGreaterThan?( target?:number ): bool; + /** [Method] Returns whether this version if greater than or equal to the supplied argument + * @param target any The version to compare with + */ + isGreaterThanOrEqual?( target?:any ): any; + isGreaterThanOrEqual?( target?:string ): bool; + isGreaterThanOrEqual?( target?:number ): bool; + /** [Method] Returns whether this version if smaller than the supplied argument + * @param target any The version to compare with + */ + isLessThan?( target?:any ): any; + isLessThan?( target?:string ): bool; + isLessThan?( target?:number ): bool; + /** [Method] Returns whether this version if less than or equal to the supplied argument + * @param target any The version to compare with + */ + isLessThanOrEqual?( target?:any ): any; + isLessThanOrEqual?( target?:string ): bool; + isLessThanOrEqual?( target?:number ): bool; + /** [Method] Convenient alias to isLessThan + * @param target any + */ + lt?( target?:any ): any; + lt?( target?:string ): bool; + lt?( target?:number ): bool; + /** [Method] Convenient alias to isLessThanOrEqual + * @param target any + */ + ltEq?( target?:any ): any; + ltEq?( target?:string ): bool; + ltEq?( target?:number ): bool; + /** [Method] Returns whether this version matches the supplied argument + * @param target any The version to compare with + */ + match?( target?:any ): any; + match?( target?:string ): bool; + match?( target?:number ): bool; + /** [Method] Returns this format major minor patch build release */ + toArray?(): number[]; + } +} +declare module Ext.view { + export interface IAbstractView extends Ext.IComponent,Ext.util.IBindable { + /** [Config Option] (Boolean) Set this to true to ignore refresh events on the bound store. ... */ + blockRefresh?: bool; + /** [Config Option] (Boolean) True to defer emptyText being applied until the store's first load. ... */ + deferEmptyText?: bool; + /** [Config Option] (Boolean) Defaults to true to defer the initial refresh of the view. ... */ + deferInitialRefresh?: bool; + /** [Config Option] (Boolean) True to disable selection within the DataView. ... */ + disableSelection?: bool; + /** [Config Option] (String) The text to display in the view when there is no data to display. ... */ + emptyText?: string; + /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + itemCls?: string; + /** [Config Option] (String) This is a required setting. ... */ + itemSelector?: string; + /** [Config Option] (String/String[]/Ext.XTemplate) The inner portion of the item template to be rendered. ... */ + itemTpl?: any; + /** [Config Option] (Boolean/Object) False to disable a load mask from displaying while the view is loading. ... */ + loadMask?: any; + /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + loadingCls?: string; + /** [Config Option] (Number) If specified, gives an explicit height for the data view when it is showing the loadingText, if that is specified. ... */ + loadingHeight?: number; + /** [Config Option] (String) A string to display during data load operations. ... */ + loadingText?: string; + /** [Config Option] (Boolean) 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 ... */ + multiSelect?: bool; + /** [Config Option] (String) A CSS class to apply to each item in the view on mouseover. ... */ + overItemCls?: string; + /** [Config Option] (Boolean) True to preserve scroll position across refresh operations. ... */ + preserveScrollOnRefresh?: bool; + /** [Config Option] (String) A CSS class to apply to each selected item in the view. ... */ + selectedItemCls?: string; + /** [Config Option] (Boolean) True to enable multiselection by clicking on multiple items without requiring the user to hold Shift or Ctrl, false t... */ + simpleSelect?: bool; + /** [Config Option] (Boolean) Allows selection of exactly one item at a time. ... */ + singleSelect?: bool; + /** [Config Option] (Ext.data.Store) */ + store?: Ext.data.IStore; + /** [Config Option] (String/String[]/Ext.XTemplate) The HTML fragment or an array of fragments that will make up the template used by this DataView. ... */ + tpl?: any; + /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + trackOver?: bool; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Changes the data store bound to this view and refreshes it + * @param store Ext.data.IStore The store to bind to this view + */ + bindStore?( store?:Ext.data.IStore ): void; + /** [Method] Binds listeners for this component to the store + * @param store Ext.data.IAbstractStore The store to bind to + */ + bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Function which can be overridden which returns the data object passed to this DataView s template to render the whole + * @param records Ext.data.IModel[] An Array of Ext.data.Models to be rendered into the DataView. + * @param startIndex Number the index number of the Record being prepared for rendering. + */ + collectData?( records?:Ext.data.IModel[], startIndex?:number ): Object[]; + /** [Method] Deselects a record instance by record instance or index + * @param records Ext.data.IModel[] An array of records or an index + * @param suppressEvent Boolean Set to false to not fire a deselect event + */ + deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; + deselect?( records?:number, suppressEvent?:bool ): void; + /** [Method] Returns the template node the passed child belongs to or null if it doesn t belong to one + * @param node HTMLElement + */ + findItemByChild?( node?:HTMLElement ): HTMLElement; + /** [Method] Returns the template node by the Ext EventObject or null if it is not found + * @param e Ext.IEventObject + */ + findTargetByEvent?( e?:Ext.IEventObject ): void; + /** [Method] Gets a template node + * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node. + */ + getNode?( nodeInfo?:any ): any; + getNode?( nodeInfo?:HTMLElement ): HTMLElement; + getNode?( nodeInfo?:string ): HTMLElement; + getNode?( nodeInfo?:number ): HTMLElement; + getNode?( nodeInfo?:Ext.data.IModel ): HTMLElement; + /** [Method] Gets a range nodes + * @param start Number The index of the first node in the range + * @param end Number The index of the last node in the range + */ + getNodes?( start?:number, end?:number ): HTMLElement[]; + /** [Method] Gets a record from a node + * @param node any The node to evaluate + */ + getRecord?( node?:any ): any; + getRecord?( node?:Ext.IElement ): Ext.data.IModel; + getRecord?( node?:HTMLElement ): Ext.data.IModel; + /** [Method] Gets an array of the records from an array of nodes + * @param nodes HTMLElement[] The nodes to evaluate + */ + getRecords?( nodes?:HTMLElement[] ): Ext.data.IModel[]; + /** [Method] Gets the currently selected nodes */ + getSelectedNodes?(): HTMLElement[]; + /** [Method] Gets the selection model for this view */ + getSelectionModel?(): Ext.selection.IModel; + /** [Method] Returns the store associated with this DataView */ + getStore?(): Ext.data.IStore; + /** [Method] Gets the listeners to bind to a new store + * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + */ + getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Finds the index of the passed node + * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or a record associated with a node. + */ + indexOf?( nodeInfo?:any ): any; + indexOf?( nodeInfo?:HTMLElement ): number; + indexOf?( nodeInfo?:string ): number; + indexOf?( nodeInfo?:number ): number; + indexOf?( nodeInfo?:Ext.data.IModel ): number; + /** [Method] private The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Returns true if the passed node is selected else false + * @param node any The node, node index or record to check + */ + isSelected?( node?:any ): any; + isSelected?( node?:HTMLElement ): bool; + isSelected?( node?:number ): bool; + isSelected?( node?:Ext.data.IModel ): bool; + /** [Method] Template method it is called when a new store is bound to the current instance + * @param store Ext.data.IAbstractStore The store being bound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance + * @param store Ext.data.IAbstractStore The store being unbound + * @param initial Boolean True if this store is being bound as initialization of the instance. + */ + onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Function which can be overridden to provide custom formatting for each Record that is used by this DataView s templat + * @param data any The raw data object that was used to create the Record. + * @param recordIndex Number the index number of the Record being prepared for rendering. + * @param record Ext.data.IModel The Record being prepared for rendering. + */ + prepareData?( data?:any, recordIndex?:number, record?:Ext.data.IModel ): any; + /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ + refresh?(): void; + /** [Method] Refreshes an individual node s data from the store + * @param index Number The item's data index in the store + */ + refreshNode?( index?:number ): void; + /** [Method] Unbinds listeners from this component to the store + * @param store Ext.data.IAbstractStore The store to unbind from + */ + unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + } +} +declare module Ext.view { + export interface IBoundList extends Ext.view.IView { + /** [Config Option] (String) private overrides The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) This Component is used as a popup, not part of a complex layout. ... */ + deferInitialRefresh?: bool; + /** [Config Option] (String) The field from the store to show in the view. ... */ + displayField?: string; + /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + itemCls?: string; + /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed at the bottom of the list and store queries will execute with pa... */ + pageSize?: number; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + shadow?: any; + /** [Config Option] (String/Ext.XTemplate) A String or Ext.XTemplate instance to apply to inner template. ... */ + tpl?: any; + /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + trackOver?: bool; + /** [Property] (Ext.toolbar.Paging) A reference to the PagingToolbar instance in this view. ... */ + pagingToolbar?: Ext.toolbar.IPaging; + /** [Method] Changes the data store bound to this view and refreshes it + * @param store Ext.data.IStore The store to bind to this view + */ + bindStore?( store?:Ext.data.IStore ): void; + /** [Method] A method that returns the inner template for displaying items in the list + * @param displayField String The displayField for the BoundList. + */ + getInnerTpl?( displayField?:string ): string; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ + refresh?(): void; + } +} +declare module Ext { + export interface IBoundList extends Ext.view.IView { + /** [Config Option] (String) private overrides The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) This Component is used as a popup, not part of a complex layout. ... */ + deferInitialRefresh?: bool; + /** [Config Option] (String) The field from the store to show in the view. ... */ + displayField?: string; + /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + itemCls?: string; + /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed at the bottom of the list and store queries will execute with pa... */ + pageSize?: number; + /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + renderTpl?: any; + /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + shadow?: any; + /** [Config Option] (String/Ext.XTemplate) A String or Ext.XTemplate instance to apply to inner template. ... */ + tpl?: any; + /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + trackOver?: bool; + /** [Property] (Ext.toolbar.Paging) A reference to the PagingToolbar instance in this view. ... */ + pagingToolbar?: Ext.toolbar.IPaging; + /** [Method] Changes the data store bound to this view and refreshes it + * @param store Ext.data.IStore The store to bind to this view + */ + bindStore?( store?:Ext.data.IStore ): void; + /** [Method] A method that returns the inner template for displaying items in the list + * @param displayField String The displayField for the BoundList. + */ + getInnerTpl?( displayField?:string ): string; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ + refresh?(): void; + } +} +declare module Ext.view { + export interface IBoundListKeyNav extends Ext.util.IKeyNav { + /** [Config Option] (Ext.view.BoundList) */ + boundList?: Ext.view.IBoundList; + /** [Method] Highlights the item at the given index + * @param index Number + */ + highlightAt?( index?:number ): void; + /** [Method] Triggers selection of the currently highlighted item according to the behavior of the configured SelectionModel + * @param e Object + */ + selectHighlighted?( e?:any ): void; + } +} +declare module Ext.view { + export interface IDragZone extends Ext.dd.IDragZone { + /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + containerScroll?: any; + /** [Method] Called when a mousedown occurs in this container + * @param e Event The mouse down event + */ + getDragData?( e?:Event ): any; + /** [Method] Called before a repair of an invalid drop to get the XY to animate to + * @param e Event The mouse up event + */ + getRepairXY?( e?:Event ): number[]; + /** [Method] Sets up the DragDrop object + * @param id String the id of the linked element + * @param sGroup String the group of related items + * @param config Object configuration attributes + */ + init?( id?:string, sGroup?:string, config?:any ): void; + /** [Method] Called once drag threshold has been reached to initialize the proxy element + * @param x Number The x position of the click on the dragged object + * @param y Number The y position of the click on the dragged object + */ + onInitDrag?( x?:number, y?:number ): bool; + } +} +declare module Ext.view { + export interface IDropZone extends Ext.dd.IDropZone { + /** [Method] Returns a custom data object associated with the DOM node that is the target of the event + * @param e Event The event + */ + getTargetFromEvent?( e?:Event ): any; + /** [Method] Moved out of the DropZone without dropping + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag zone + */ + notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped on it but not on any of its registered + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onContainerDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] The mouse is past the end of all nodes or there are no nodes Called while the DropZone determines that a Ext dd Dr + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; + /** [Method] The mouse is over a View node Called while the DropZone determines that a Ext dd DragSource is over a drop node that + * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) + * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param e Event The event + * @param data Object An object containing arbitrary data supplied by the drag source + */ + onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + } +} +declare module Ext.view { + export interface INodeCache extends Ext.IBase { + /** [Method] Removes all elements from this NodeCache + * @param removeDom Boolean True to also remove the elements from the document. + */ + clear?( removeDom?:bool ): void; + /** [Method] Clears this NodeCache and adds the elements passed + * @param els HTMLElement[] An array of DOM elements from which to fill this NodeCache. + */ + fill?( els?:HTMLElement[] ): Ext.view.INodeCache; + /** [Method] Find the index of the passed element within the composite collection + * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + */ + indexOf?( el?:any ): any; + indexOf?( el?:string ): number; + indexOf?( el?:HTMLElement ): number; + indexOf?( el?:Ext.IElement ): number; + indexOf?( el?:number ): number; + /** [Method] Removes the specified element s + * @param el String The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param removeDom Boolean True to also remove the element from the document + */ + removeElement?( el?:string, removeDom?:bool ): void; + removeElement?( el?:HTMLElement, removeDom?:bool ): void; + removeElement?( el?:Ext.IElement, removeDom?:bool ): void; + removeElement?( el?:number, removeDom?:bool ): void; + /** [Method] Replaces the specified element with the passed element + * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement any The id of an element or the Element itself. + * @param domReplace any True to remove and replace the element in the document too. + */ + replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; + replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:HTMLElement, replacement?:string, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:Ext.IElement, replacement?:string, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:number, replacement?:string, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:string, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:HTMLElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:Ext.IElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; + replaceElement?( el?:number, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; + /** [Method] Appends prepends records depending on direction flag + * @param newRecords Ext.data.IModel[] Items to append/prepend + * @param direction Number -1' = scroll up,0` = scroll down. + * @param removeCount Number The number of records to remove from the end. if scrolling down, rows are removed from the top and the new rows are added at the bottom. + */ + scroll?( newRecords?:Ext.data.IModel[], direction?:number, removeCount?:number ): void; + } +} +declare module Ext.view { + export interface ITable extends Ext.view.IView { + /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + baseCls?: string; + /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + componentLayout?: any; + /** [Config Option] (Boolean) */ + enableTextSelection?: bool; + /** [Config Option] (String) A CSS class to add to the first cell in every row to enable special styling for the first column. ... */ + firstCls?: string; + /** [Config Option] (String) view item (may be a wrapper) This is a required setting. ... */ + itemSelector?: string; + /** [Config Option] (String) A CSS class to add to the last cell in every row to enable special styling for the last column. ... */ + lastCls?: string; + /** [Config Option] (Boolean) True to show the dirty cell indicator when a cell has been modified. ... */ + markDirty?: bool; + /** [Config Option] (String) A CSS class to apply to each item in the view on mouseover. ... */ + overItemCls?: string; + /** [Config Option] (String) A CSS class to apply to each selected item in the view. ... */ + selectedItemCls?: string; + /** [Config Option] (Boolean) True to stripe the rows. ... */ + stripeRows?: bool; + /** [Config Option] (Boolean) cfg docs inherited When true the overItemCls will be applied to rows when hovered over. ... */ + trackOver?: bool; + /** [Method] Adds a CSS Class to a specific row + * @param rowInfo HTMLElement An HTMLElement, index or instance of a model representing this row + * @param cls String + */ + addRowCls?( rowInfo?:HTMLElement, cls?:string ): void; + addRowCls?( rowInfo?:string, cls?:string ): void; + addRowCls?( rowInfo?:number, cls?:string ): void; + addRowCls?( rowInfo?:Ext.data.IModel, cls?:string ): void; + /** [Method] Sizes the passed header to fit the max content width + * @param header Ext.grid.column.IColumn The header (or index of header) to auto size. + */ + autoSizeColumn?( header?:Ext.grid.column.IColumn ): void; + autoSizeColumn?( header?:number ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Function which can be overridden which returns the data object passed to this DataView s template to render the whole + * @param records Ext.data.IModel[] An Array of Ext.data.Models to be rendered into the DataView. + * @param startIndex Number the index number of the Record being prepared for rendering. + */ + collectData?( records?:Ext.data.IModel[], startIndex?:number ): Object[]; + /** [Method] Try to focus this component + * @param selectText any If applicable, true to also select the text in this component + * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + */ + focus?( selectText?:any, delay?:any ): any; + focus?( selectText?:bool, delay?:bool ): Ext.IComponent; + focus?( selectText?:bool, delay?:number ): Ext.IComponent; + /** [Method] Focuses a particular row and brings it into view + * @param rowIdx HTMLElement An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node. + */ + focusRow?( rowIdx?:HTMLElement ): void; + focusRow?( rowIdx?:string ): void; + focusRow?( rowIdx?:number ): void; + focusRow?( rowIdx?:Ext.data.IModel ): void; + /** [Method] Returns a CSS selector which selects the outermost element s in this view */ + getBodySelector?(): void; + /** [Method] Returns a CSS selector which selects a particular column if the desired header is passed or a general cell selector + * @param header Ext.grid.column.IColumn The column for which to return the selector. If omitted, the general cell selector which matches ant cell will be returned. + */ + getCellSelector?( header?:Ext.grid.column.IColumn ): void; + /** [Method] Returns a CSS selector which selects the element s which define the width of a column + * @param header Object + */ + getColumnSizerSelector?( header?:any ): void; + /** [Method] Returns a CSS selector which selects a row which contains cells */ + getDataRowSelector?(): void; + /** [Method] Get a reference to a feature + * @param id String The id of the feature + */ + getFeature?( id?:string ): Ext.grid.feature.IFeature; + /** [Method] Returns a CSS selector which selects items of the view rendered by the rowTpl */ + getItemSelector?(): void; + /** [Method] Returns the node given the passed Record or index or node + * @param nodeInfo any The node or record + * @param dataRow any true to return the data row (not the top level row if wrapped), false to return the top level row. + */ + getNode?( nodeInfo?:any, dataRow?:any ): any; + getNode?( nodeInfo?:HTMLElement, dataRow?:bool ): HTMLElement; + getNode?( nodeInfo?:string, dataRow?:bool ): HTMLElement; + getNode?( nodeInfo?:number, dataRow?:bool ): HTMLElement; + getNode?( nodeInfo?:Ext.data.IModel, dataRow?:bool ): HTMLElement; + /** [Method] Returns a CSS selector which selects the element which contains record nodes */ + getNodeContainerSelector?(): void; + /** [Method] TODO have this use the new Ext grid CellContext class Gets the current XY position of the component s underlying el + * @param local Boolean If true the element's left and top are returned instead of page XY. + */ + getPosition?( local?:bool ): number[]; + /** [Method] Gets a record from a node + * @param node any The node to evaluate + */ + getRecord?( node?:any ): any; + getRecord?( node?:Ext.IElement ): Ext.data.IModel; + getRecord?( node?:HTMLElement ): Ext.data.IModel; + /** [Method] Override this function to apply custom CSS classes to rows during rendering + * @param record Ext.data.IModel The record corresponding to the current row. + * @param index Number The row index. + * @param rowParams Object DEPRECATED. For row body use the getAdditionalData method of the rowbody feature. + * @param store Ext.data.IStore The store this grid is bound to + */ + getRowClass?( record?:Ext.data.IModel, index?:number, rowParams?:any, store?:Ext.data.IStore ): string; + /** [Method] Finds the index of the passed node + * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or a record associated with a node. + */ + indexOf?( nodeInfo?:any ): any; + indexOf?( nodeInfo?:HTMLElement ): number; + indexOf?( nodeInfo?:string ): number; + indexOf?( nodeInfo?:number ): number; + indexOf?( nodeInfo?:Ext.data.IModel ): number; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] Refreshes the grid view */ + refresh?(): void; + /** [Method] Removes a CSS Class from a specific row + * @param rowInfo HTMLElement An HTMLElement, index or instance of a model representing this row + * @param cls String + */ + removeRowCls?( rowInfo?:HTMLElement, cls?:string ): void; + removeRowCls?( rowInfo?:string, cls?:string ): void; + removeRowCls?( rowInfo?:number, cls?:string ): void; + removeRowCls?( rowInfo?:Ext.data.IModel, cls?:string ): void; + /** [Method] Navigates from the passed record by the passed increment which may be ve or ve Skips hidden records + * @param startRec Ext.data.IModel The Record to start from. + * @param distance Number The distance to move from the record. May be +ve or -ve. + */ + walkRecs?( startRec?:Ext.data.IModel, distance?:number ): void; + /** [Method] Increments the passed row index by the passed increment which may be ve or ve Skips hidden rows + * @param startRow Number The zero-based row index to start from. + * @param distance Number The distance to move the row by. May be +ve or -ve. + */ + walkRows?( startRow?:number, distance?:number ): void; + } +} +declare module Ext.view { + export interface ITableLayout extends Ext.layout.component.IAuto { + /** [Method] Called before any calculation cycles to prepare for layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] Called to perform the calculations for this layout + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + calculate?( ownerContext?:Ext.layout.IContextItem ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM + * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + */ + finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + } +} +declare module Ext.view { + export interface IView extends Ext.view.IAbstractView { + /** [Config Option] (Number) The number of milliseconds to buffer mouseover and mouseout event handling on view items. ... */ + mouseOverOutBuffer?: number; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Un highlights the currently highlighted item if any */ + clearHighlight?(): void; + /** [Method] Focuses a node in the view + * @param rec Ext.data.IModel The record associated to the node that is to be focused. + */ + focusNode?( rec?:Ext.data.IModel ): void; + /** [Method] Highlights a given item in the View + * @param item HTMLElement The item to highlight + */ + highlightItem?( item?:HTMLElement ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ + refresh?(): void; + } +} +declare module Ext { + export interface IDataView extends Ext.view.IAbstractView { + /** [Config Option] (Number) The number of milliseconds to buffer mouseover and mouseout event handling on view items. ... */ + mouseOverOutBuffer?: number; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Un highlights the currently highlighted item if any */ + clearHighlight?(): void; + /** [Method] Focuses a node in the view + * @param rec Ext.data.IModel The record associated to the node that is to be focused. + */ + focusNode?( rec?:Ext.data.IModel ): void; + /** [Method] Highlights a given item in the View + * @param item HTMLElement The item to highlight + */ + highlightItem?( item?:HTMLElement ): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ + refresh?(): void; + } +} +declare module Ext.window { + export interface IMessageBox extends Ext.window.IWindow { + /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + closeAction?: string; + /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + cls?: string; + /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + constrain?: bool; + /** [Config Option] (String) hide it by offsets. ... */ + hideMode?: string; + /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + layout?: any; + /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + resizable?: any; + /** [Config Option] (Boolean/Number) We want to shrinkWrap around all docked items Allows for this panel to include the dockedItems when trying to determ... */ + shrinkWrapDock?: any; + /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + title?: string; + /** [Property] (Number) Button config that displays a single Cancel button ... */ + CANCEL?: number; + /** [Property] (String) The CSS class that provides the ERROR icon image ... */ + ERROR?: string; + /** [Property] (String) The CSS class that provides the INFO icon image ... */ + INFO?: string; + /** [Property] (Number) Button config that displays a single No button ... */ + NO?: number; + /** [Property] (Number) Button config that displays a single OK button ... */ + OK?: number; + /** [Property] (Number) Button config that displays OK and Cancel buttons ... */ + OKCANCEL?: number; + /** [Property] (String) The CSS class that provides the QUESTION icon image ... */ + QUESTION?: string; + /** [Property] (String) The CSS class that provides the WARNING icon image ... */ + WARNING?: string; + /** [Property] (Number) Button config that displays a single Yes button ... */ + YES?: number; + /** [Property] (Number) Button config that displays Yes and No buttons ... */ + YESNO?: number; + /** [Property] (Number) Button config that displays Yes, No and Cancel buttons ... */ + YESNOCANCEL?: number; + /** [Property] (Object) An object containing the default button text strings that can be overriden for localized language support. ... */ + buttonText?: any; + /** [Property] (Number) The default height in pixels of the message box's multiline textarea if displayed. ... */ + defaultTextHeight?: number; + /** [Property] (Number) The minimum width in pixels of the message box if it is a progress-style dialog. ... */ + minProgressWidth?: number; + /** [Property] (Number) The minimum width in pixels of the message box if it is a prompt dialog. ... */ + minPromptWidth?: number; + /** [Method] Displays a standard read only message box with an OK button comparable to the basic JavaScript alert prompt + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + alert?( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Displays a confirmation message box with Yes and No buttons comparable to JavaScript s confirm + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + confirm?( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Hides this Component setting it to invisible using the configured hideMode + * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback any A callback function to call after the Component is hidden. + * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + */ + hide?( animateTarget?:any, callback?:any, scope?:any ): any; + hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Displays a message box with a progress bar + * @param title String The title bar text + * @param msg String The message box body text + * @param progressText String The text to display inside the progress bar + */ + progress?( title?:string, msg?:string, progressText?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with OK and Cancel buttons prompting the user to enter some text comparable to JavaScript s p + * @param title any The title bar text + * @param msg any The message box body text + * @param fn any The callback function invoked after the message box is closed. See show method for details. + * @param scope any The scope (this reference) in which the callback is executed. + * @param multiline any True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox/ + * @param value any Default value of the text input element + */ + prompt?( title?:any, msg?:any, fn?:any, scope?:any, multiline?:any, value?:any ): any; + prompt?( title?:string, msg?:string, fn?:any, scope?:any, multiline?:bool, value?:string ): Ext.window.IMessageBox; + prompt?( title?:string, msg?:string, fn?:any, scope?:any, multiline?:number, value?:string ): Ext.window.IMessageBox; + /** [Method] Adds the specified icon to the dialog + * @param icon String A CSS classname specifying the icon's background image url, or empty string to clear the icon + * @param width Number The width of the icon. If not specified, the default is used + * @param height Number The height of the icon. If not specified, the default is used + */ + setIcon?( icon?:string, width?:number, height?:number ): Ext.window.IMessageBox; + /** [Method] Displays a new message box or reinitializes an existing message box based on the config options passed in + * @param config Object The following config options are supported: + */ + show?( config?:any ): Ext.window.IMessageBox; + /** [Method] Updates a progress style message box s text and progress bar + * @param value Number Any number between 0 and 1 (e.g., .5) + * @param progressText String The progress text to display inside the progress bar. + * @param msg String The message box's body text is replaced with the specified string (defaults to undefined so that any existing body text will not get overwritten by default unless a new value is passed in) + */ + updateProgress?( value?:number, progressText?:string, msg?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with an infinitely auto updating progress bar + * @param msg String The message box body text + * @param title String The title bar text + * @param config Object A Ext.ProgressBar.wait config object + */ + wait?( msg?:string, title?:string, config?:any ): Ext.window.IMessageBox; + } +} +declare module Ext.window { + export interface IWindow extends Ext.panel.IPanel { + /** [Config Option] (String/Ext.Element) Id or element from which the window should animate while opening. ... */ + animateTarget?: any; + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) Windows render to the body on first show. ... */ + autoRender?: any; + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + closable?: bool; + /** [Config Option] (Boolean) True to render the window collapsed, false to render it expanded. ... */ + collapsed?: bool; + /** [Config Option] (Boolean) inherited docs, same default True to make the panel collapsible and have an expand/collapse toggle Tool added into t... */ + collapsible?: bool; + /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + constrain?: bool; + /** [Config Option] (Boolean) True to constrain the window header within its containing element (allowing the window body to fall outside of its co... */ + constrainHeader?: bool; + /** [Config Option] (String/Number/Ext.Component) Specifies a Component to receive focus when this Window is focused. ... */ + defaultFocus?: any; + /** [Config Option] (Boolean) True to allow the window to be dragged by the header bar, false to disable dragging. ... */ + draggable?: bool; + /** [Config Option] (Boolean) True to always expand the window when it is displayed, false to keep it in its current state (which may be collapsed)... */ + expandOnShow?: bool; + /** [Config Option] (Boolean/Function) Set to false to disable the ghost panel during dragging the window. ... */ + ghost?: any; + /** [Config Option] (Boolean) Render this Window hidden. ... */ + hidden?: bool; + /** [Config Option] (String) Windows hide using offsets in order to preserve the scroll positions of their descendants. ... */ + hideMode?: string; + /** [Config Option] (Boolean) True to hide this Window's shadow when another floating item in the same z-index stack is activated. ... */ + hideShadowOnDeactivate?: bool; + /** [Config Option] (Boolean) True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and di... */ + maximizable?: bool; + /** [Config Option] (Boolean) True to initially display the window in a maximized state. ... */ + maximized?: bool; + /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its height to. ... */ + minHeight?: number; + /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its width to. ... */ + minWidth?: number; + /** [Config Option] (Boolean) True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and di... */ + minimizable?: bool; + /** [Config Option] (Boolean) True to make the window modal and mask everything behind it when displayed, false to display it without restricting a... */ + modal?: bool; + /** [Config Option] (Function) Allows override of the built-in processing for the escape key. ... */ + onEsc?: any; + /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + overlapHeader?: bool; + /** [Config Option] (Boolean) True to render the window body with a transparent background so that it will blend into the framing elements, false t... */ + plain?: bool; + /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + resizable?: any; + /** [Config Option] (Number) The X position of the left edge of the window on initial showing. ... */ + x?: number; + /** [Config Option] (Number) The Y position of the top edge of the window on initial showing. ... */ + y?: number; + /** [Property] (Ext.util.ComponentDragger) If this Window is configured draggable, this property will contain an instance of Ext.util.ComponentDragger (A subcla... */ + dd?: Ext.util.IComponentDragger; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Window, or subclass thereof. ... */ + isWindow?: bool; + /** [Method] Invoked after the Panel is Collapsed + * @param animated Boolean + */ + afterCollapse?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Expanded + * @param animated Boolean + */ + afterExpand?( animated?:bool ): void; + /** [Method] Invoked after the Component has been hidden + * @param callback Function + * @param scope Object + */ + afterHide?( callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Occurs before componentLayout is run */ + beforeLayout?(): void; + /** [Method] Gets the configured default focus item */ + getDefaultFocus?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore + * @param animate Boolean true to animate this Window to full size. + */ + maximize?( animate?:bool ): Ext.window.IWindow; + /** [Method] Placeholder method for minimizing the window */ + minimize?(): Ext.window.IWindow; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re + * @param animate Object + */ + restore?( animate?:any ): Ext.window.IWindow; + /** [Method] A shortcut method for toggling between maximize and restore based on the current maximized state of the window */ + toggleMaximize?(): Ext.window.IWindow; + } +} +declare module Ext { + export interface IWindow extends Ext.panel.IPanel { + /** [Config Option] (String/Ext.Element) Id or element from which the window should animate while opening. ... */ + animateTarget?: any; + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) Windows render to the body on first show. ... */ + autoRender?: any; + /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + baseCls?: string; + /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + closable?: bool; + /** [Config Option] (Boolean) True to render the window collapsed, false to render it expanded. ... */ + collapsed?: bool; + /** [Config Option] (Boolean) inherited docs, same default True to make the panel collapsible and have an expand/collapse toggle Tool added into t... */ + collapsible?: bool; + /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + constrain?: bool; + /** [Config Option] (Boolean) True to constrain the window header within its containing element (allowing the window body to fall outside of its co... */ + constrainHeader?: bool; + /** [Config Option] (String/Number/Ext.Component) Specifies a Component to receive focus when this Window is focused. ... */ + defaultFocus?: any; + /** [Config Option] (Boolean) True to allow the window to be dragged by the header bar, false to disable dragging. ... */ + draggable?: bool; + /** [Config Option] (Boolean) True to always expand the window when it is displayed, false to keep it in its current state (which may be collapsed)... */ + expandOnShow?: bool; + /** [Config Option] (Boolean/Function) Set to false to disable the ghost panel during dragging the window. ... */ + ghost?: any; + /** [Config Option] (Boolean) Render this Window hidden. ... */ + hidden?: bool; + /** [Config Option] (String) Windows hide using offsets in order to preserve the scroll positions of their descendants. ... */ + hideMode?: string; + /** [Config Option] (Boolean) True to hide this Window's shadow when another floating item in the same z-index stack is activated. ... */ + hideShadowOnDeactivate?: bool; + /** [Config Option] (Boolean) True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and di... */ + maximizable?: bool; + /** [Config Option] (Boolean) True to initially display the window in a maximized state. ... */ + maximized?: bool; + /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its height to. ... */ + minHeight?: number; + /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its width to. ... */ + minWidth?: number; + /** [Config Option] (Boolean) True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and di... */ + minimizable?: bool; + /** [Config Option] (Boolean) True to make the window modal and mask everything behind it when displayed, false to display it without restricting a... */ + modal?: bool; + /** [Config Option] (Function) Allows override of the built-in processing for the escape key. ... */ + onEsc?: any; + /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + overlapHeader?: bool; + /** [Config Option] (Boolean) True to render the window body with a transparent background so that it will blend into the framing elements, false t... */ + plain?: bool; + /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + resizable?: any; + /** [Config Option] (Number) The X position of the left edge of the window on initial showing. ... */ + x?: number; + /** [Config Option] (Number) The Y position of the top edge of the window on initial showing. ... */ + y?: number; + /** [Property] (Ext.util.ComponentDragger) If this Window is configured draggable, this property will contain an instance of Ext.util.ComponentDragger (A subcla... */ + dd?: Ext.util.IComponentDragger; + /** [Property] (Boolean) true in this class to identify an object as an instantiated Window, or subclass thereof. ... */ + isWindow?: bool; + /** [Method] Invoked after the Panel is Collapsed + * @param animated Boolean + */ + afterCollapse?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Expanded + * @param animated Boolean + */ + afterExpand?( animated?:bool ): void; + /** [Method] Invoked after the Component has been hidden + * @param callback Function + * @param scope Object + */ + afterHide?( callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object The state + */ + applyState?( state?:any ): void; + /** [Method] Invoked before the Component is destroyed */ + beforeDestroy?(): void; + /** [Method] Occurs before componentLayout is run */ + beforeLayout?(): void; + /** [Method] Gets the configured default focus item */ + getDefaultFocus?(): void; + /** [Method] The initComponent template method is an important initialization step for a Component */ + initComponent?(): void; + /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore + * @param animate Boolean true to animate this Window to full size. + */ + maximize?( animate?:bool ): Ext.window.IWindow; + /** [Method] Placeholder method for minimizing the window */ + minimize?(): Ext.window.IWindow; + /** [Method] Template method called when this Component s DOM structure is created + * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param containerIdx Number The index within the parent Container's child collection of this Component. + */ + onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Allows addition of behavior to the show operation + * @param animateTarget String + * @param callback Function + * @param scope Object + */ + onShow?( animateTarget?:string, callback?:any, scope?:any ): void; + onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re + * @param animate Object + */ + restore?( animate?:any ): Ext.window.IWindow; + /** [Method] A shortcut method for toggling between maximize and restore based on the current maximized state of the window */ + toggleMaximize?(): Ext.window.IWindow; + } +} +declare module Ext { + export interface IWindowManager extends Ext.IZIndexManager { + } + export class WindowManager { + } +} +declare module Ext { + export interface IXTemplate extends Ext.ITemplate { + /** [Config Option] (String/Array) Optional. ... */ + definitions?: any; + /** [Method] Appends the result of this template to the provided output array + * @param values any The template values. See apply. + * @param out Array The array to which output is pushed. + */ + applyOut?( values?:any, out?:any[] ): any[]; + /** [Method] Does nothing */ + compile?(): Ext.IXTemplate; + } +} +declare module Ext { + export interface IXTemplateCompiler extends Ext.IXTemplateParser { + /** [Method] This method is called to process lt tpl case action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doCase?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl default gt */ + doDefault?(): void; + /** [Method] This method is called to process lt tpl else gt */ + doElse?(): void; + /** [Method] This method is called to process lt tpl elseif action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doElseIf?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl gt + * @param type String The type of action that is being ended. + * @param actions Object The other actions keyed by the attribute name (such as 'exec'). + */ + doEnd?( type?:string, actions?:any ): void; + /** [Method] This method is called to process text + * @param text String + */ + doEval?( text?:string ): void; + /** [Method] This method is called to process lt tpl exec action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name. + */ + doExec?( action?:string, actions?:any ): void; + /** [Method] This method is called to process expressions like expr + * @param expr String The body of the expression (inside "{[" and "]}"). + */ + doExpr?( expr?:string ): void; + /** [Method] This method is called to process lt tpl for action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doFor?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl foreach action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doForEach?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl if action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doIf?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl switch action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doSwitch?( action?:string, actions?:any ): void; + /** [Method] This method is called to process simple tags like tag */ + doTag?(): void; + /** [Method] XTemplateParser callouts This method is called to process a piece of raw text from the tpl + * @param text String + */ + doText?( text?:string ): void; + } +} +declare module Ext { + export interface IXTemplateParser extends Ext.IBase { + /** [Property] (Number) The 'for' or 'foreach' loop context level. ... */ + level?: number; + /** [Method] This method is called to process lt tpl case action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doCase?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl default gt */ + doDefault?(): void; + /** [Method] This method is called to process lt tpl else gt */ + doElse?(): void; + /** [Method] This method is called to process lt tpl elseif action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doElseIf?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl gt + * @param type String The type of action that is being ended. + * @param actions Object The other actions keyed by the attribute name (such as 'exec'). + */ + doEnd?( type?:string, actions?:any ): void; + /** [Method] This method is called to process text + * @param text String + */ + doEval?( text?:string ): void; + /** [Method] This method is called to process lt tpl exec action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name. + */ + doExec?( action?:string, actions?:any ): void; + /** [Method] This method is called to process expressions like expr + * @param expr String The body of the expression (inside "{[" and "]}"). + */ + doExpr?( expr?:string ): void; + /** [Method] This method is called to process lt tpl for action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doFor?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl foreach action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doForEach?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl if action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doIf?( action?:string, actions?:any ): void; + /** [Method] This method is called to process lt tpl switch action gt + * @param action String + * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + */ + doSwitch?( action?:string, actions?:any ): void; + /** [Method] This method is called to process simple tags like tag */ + doTag?(): void; + /** [Method] This method is called to process a piece of raw text from the tpl + * @param text String + */ + doText?( text?:string ): void; + /** [Method] This method is called to process an empty lt tpl gt */ + doTpl?(): void; + } +} +declare module Ext { + export interface IZIndexManager extends Ext.IBase { + /** [Method] Brings the specified Component to the front of any other active Components in this ZIndexManager + * @param comp any The id of the Component or a Ext.Component instance + */ + bringToFront?( comp?:any ): bool; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + eachBottomUp?( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + eachTopDown?( fn?:any, scope?:any ): void; + /** [Method] Gets a registered Component by id + * @param id any The id of the Component or a Ext.Component instance + */ + get?( id?:any ): Ext.IComponent; + /** [Method] Gets the currently active Component in this ZIndexManager */ + getActive?(): Ext.IComponent; + /** [Method] Returns zero or more Components in this ZIndexManager using the custom search function passed to this method + * @param fn Function The search function + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Component being tested. That gets passed to the function if not specified. + */ + getBy?( fn?:any, scope?:any ): any[]; + /** [Method] Hides all Components managed by this ZIndexManager */ + hideAll?(): void; + /** [Method] Registers a floating Ext Component with this ZIndexManager + * @param comp Ext.IComponent The Component to register. + */ + register?( comp?:Ext.IComponent ): void; + /** [Method] Sends the specified Component to the back of other active Components in this ZIndexManager + * @param comp any The id of the Component or a Ext.Component instance + */ + sendToBack?( comp?:any ): Ext.IComponent; + /** [Method] Unregisters a Ext Component from this ZIndexManager + * @param comp Ext.IComponent The Component to unregister. + */ + unregister?( comp?:Ext.IComponent ): void; + } +} +declare module Ext { + export interface IWindowGroup extends Ext.IBase { + /** [Method] Brings the specified Component to the front of any other active Components in this ZIndexManager + * @param comp any The id of the Component or a Ext.Component instance + */ + bringToFront?( comp?:any ): bool; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + each?( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + eachBottomUp?( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + eachTopDown?( fn?:any, scope?:any ): void; + /** [Method] Gets a registered Component by id + * @param id any The id of the Component or a Ext.Component instance + */ + get?( id?:any ): Ext.IComponent; + /** [Method] Gets the currently active Component in this ZIndexManager */ + getActive?(): Ext.IComponent; + /** [Method] Returns zero or more Components in this ZIndexManager using the custom search function passed to this method + * @param fn Function The search function + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Component being tested. That gets passed to the function if not specified. + */ + getBy?( fn?:any, scope?:any ): any[]; + /** [Method] Hides all Components managed by this ZIndexManager */ + hideAll?(): void; + /** [Method] Registers a floating Ext Component with this ZIndexManager + * @param comp Ext.IComponent The Component to register. + */ + register?( comp?:Ext.IComponent ): void; + /** [Method] Sends the specified Component to the back of other active Components in this ZIndexManager + * @param comp any The id of the Component or a Ext.Component instance + */ + sendToBack?( comp?:any ): Ext.IComponent; + /** [Method] Unregisters a Ext Component from this ZIndexManager + * @param comp Ext.IComponent The Component to unregister. + */ + unregister?( comp?:Ext.IComponent ): void; + } +} diff --git a/extjs/ExtJS.d.ts b/extjs/ExtJS.d.ts index c5a6c37d4e..42b3d3a035 100644 --- a/extjs/ExtJS.d.ts +++ b/extjs/ExtJS.d.ts @@ -1,143 +1,150 @@ -// Type definitions for ExtJS 4.2.0 +// Type definitions for ExtJS 4.2.1 // Project: http://www.sencha.com/products/extjs/ // Definitions by: Brian Kotek // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module Ext { - export interface IAbstractComponent extends Ext.IBase,Ext.state.IStateful,Ext.util.IAnimate,Ext.util.IElementContainer,Ext.util.IObservable,Ext.util.IPositionable,Ext.util.IRenderable { - /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + export interface IAbstractComponent extends Ext.IBase,Ext.util.IPositionable,Ext.util.IObservable,Ext.util.IAnimate,Ext.util.IElementContainer,Ext.util.IRenderable,Ext.state.IStateful { + /** [Config Option] (String/Object) */ autoEl?: any; - /** [Config Option] (Ext.ComponentLoader/Object/String/Boolean) An alias for loader config which also allows to specify just a string which will be used as the url that's automatica... */ + /** [Config Option] (Ext.ComponentLoader/Object/String/Boolean) */ autoLoad?: any; - /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) This config is intended mainly for non-floating Components which may or may not be shown. ... */ + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) */ autoRender?: any; - /** [Config Option] (Boolean) true to automatically show the component upon creation. ... */ + /** [Config Option] (Boolean) */ autoShow?: bool; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; - /** [Config Option] (Object[]) An array describing the child elements of the Component. ... */ - childEls?: Object[]; - /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + /** [Config Option] (Object[]) */ + childEls?: any[]; + /** [Config Option] (String) */ cls?: string; /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) Specify an existing HTML element, or the id of an existing HTML element to use as the content for this component. ... */ + /** [Config Option] (String) */ contentEl?: string; /** [Config Option] (Object) */ data?: any; - /** [Config Option] (Boolean) true to disable the component. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (String) CSS class to add when the Component is disabled. ... */ + /** [Config Option] (String) */ disabledCls?: string; - /** [Config Option] (Boolean) Allows the component to be dragged. ... */ + /** [Config Option] (Boolean) */ draggable?: bool; - /** [Config Option] (Boolean) Create the Component as a floating and use absolute positioning. ... */ + /** [Config Option] (Boolean) */ floating?: bool; - /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + /** [Config Option] (Boolean) */ frame?: bool; /** [Config Option] (Number) */ height?: number; - /** [Config Option] (Boolean) true to hide the component. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) A String which specifies how this Component's encapsulating DOM element will be hidden. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (String/Object) An HTML fragment, or a DomHelper specification to use as the layout element content. ... */ + /** [Config Option] (String/Object) */ html?: any; - /** [Config Option] (String) The unique id of this component instance. ... */ + /** [Config Option] (String) */ id?: string; - /** [Config Option] (String) An itemId can be used as an alternative way to get a reference to a component when no object reference is available. ... */ + /** [Config Option] (String) */ itemId?: string; - /** [Config Option] (Ext.ComponentLoader/Object) A configuration object or an instance of a Ext.ComponentLoader to load remote content for this Component. ... */ + /** [Config Option] (Ext.ComponentLoader/Object) */ loader?: any; - /** [Config Option] (Number/String) Specifies the margin for this component. ... */ + /** [Config Option] (Number/String) */ margin?: any; - /** [Config Option] (Number) The maximum value in pixels which this Component will set its height to. ... */ + /** [Config Option] (Number) */ maxHeight?: number; - /** [Config Option] (Number) The maximum value in pixels which this Component will set its width to. ... */ + /** [Config Option] (Number) */ maxWidth?: number; - /** [Config Option] (Number) The minimum value in pixels which this Component will set its height to. ... */ + /** [Config Option] (Number) */ minHeight?: number; - /** [Config Option] (Number) The minimum value in pixels which this Component will set its width to. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and... */ + /** [Config Option] (String) */ overCls?: string; - /** [Config Option] (Number/String) Specifies the padding for this component. ... */ + /** [Config Option] (Number/String) */ padding?: any; - /** [Config Option] (Ext.AbstractPlugin[]/Ext.AbstractPlugin/Object[]/Object/Ext.enums.Plugin[]/Ext.enums.Plugin) An array of plugins to be added to this component. ... */ + /** [Config Option] (Ext.AbstractPlugin[]/Ext.AbstractPlugin/Object[]/Object/Ext.enums.Plugin[]/Ext.enums.Plugin) */ plugins?: any; - /** [Config Option] (Object) The data used by renderTpl in addition to the following property values of the component: id ui uiCls baseCls compo... */ + /** [Config Option] (Object) */ renderData?: any; - /** [Config Option] (Object) An object containing properties specifying DomQuery selectors which identify child elements created by the render pro... */ + /** [Config Option] (Object) */ renderSelectors?: any; - /** [Config Option] (String/HTMLElement/Ext.Element) Specify the id of the element, a DOM element or an existing Element that this component will be rendered into. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ renderTo?: any; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean) True to layout this component and its descendants in "rtl" (right-to-left) mode. ... */ + /** [Config Option] (Boolean) */ rtl?: bool; - /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrap?: any; - /** [Config Option] (String/Object) A custom style specification to be applied to this component's Element. ... */ + /** [Config Option] (String/Object) */ style?: any; - /** [Config Option] (Ext.XTemplate/Ext.Template/String/String[]) An Ext.Template, Ext.XTemplate or an array of strings to form an Ext.XTemplate. ... */ + /** [Config Option] (Ext.XTemplate/Ext.Template/String/String[]) */ tpl?: any; - /** [Config Option] (String) The Ext.(X)Template method to use when updating the content area of the Component. ... */ + /** [Config Option] (String) */ tplWriteMode?: string; - /** [Config Option] (String) A UI style for a component. ... */ + /** [Config Option] (String) */ ui?: string; /** [Config Option] (Number) */ width?: number; - /** [Config Option] (Ext.enums.Widget) This property provides a shorter alternative to creating objects than using a full class name. ... */ + /** [Config Option] (Ext.enums.Widget) */ xtype?: Ext.enums.IWidget; - /** [Property] (Boolean) Setting this property to true causes the isLayoutRoot method to return true and stop the search for the top-most comp... */ + /** [Property] (Boolean) */ _isLayoutRoot?: bool; - /** [Property] (String) The name of the padding property that is used by the layout to manage padding. ... */ + /** [Property] (String) */ contentPaddingProperty?: string; - /** [Property] (Object) Indicates the width of any framing elements which were added within the encapsulating element to provide graphical, r... */ + /** [Property] (Object) */ frameSize?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Component, or subclass thereof. ... */ + /** [Property] (Boolean) */ isComponent?: bool; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; - /** [Property] (Ext.Container) This Component's owner Container (is set automatically when this Component is added to a Container). ... */ + /** [Property] (Ext.Container) */ ownerCt?: Ext.IContainer; - /** [Property] (Boolean) Indicates whether or not the component has been rendered. ... */ + /** [Property] (Boolean) */ rendered?: bool; /** [Method] Adds each argument passed to this method to the childEls array */ addChildEls?(): void; /** [Method] Adds a CSS class to the top level element representing this component - * @param cls any The CSS class name to add. + * @param cls String/String[] The CSS class name to add. + */ + addClass?( cls?:any ): any; + addClass?( cls?:string ): Ext.IComponent; + addClass?( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls String/String[] The CSS class name to add. */ addCls?( cls?:any ): any; addCls?( cls?:string ): Ext.IComponent; addCls?( cls?:string[] ): Ext.IComponent; /** [Method] Adds a cls to the uiCls array which will also call addUIClsToElement and adds to all elements of this component - * @param classes String A string or an array of strings to add to the uiCls. + * @param classes String/String[] A string or an array of strings to add to the uiCls. * @param skip Object (Boolean) skip true to skip adding it to the class and do it later (via the return). */ + addClsWithUI?( classes?:any, skip?:any ): any; addClsWithUI?( classes?:string, skip?:any ): void; addClsWithUI?( classes?:string[], skip?:any ): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. - * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. - * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. - * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + * @param element Object + * @param listeners Object + * @param scope Object + * @param options Object */ - addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + addListener?( element?:any, listeners?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -149,8 +156,9 @@ declare module Ext { */ addPropertyToState?( state?:any, propName?:string, value?:string ): bool; /** [Method] Add events that will trigger the state to be saved - * @param events String The event name or an array of event names. + * @param events String/String[] The event name or an array of event names. */ + addStateEvents?( events?:any ): any; addStateEvents?( events?:string ): void; addStateEvents?( events?:string[] ): void; /** [Method] Method which adds a specified UI uiCls to the components element @@ -160,9 +168,10 @@ declare module Ext { /** [Method] Called by the layout system after the Component has been laid out * @param width Number The width that was set * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. + * @param oldWidth Number/undefined The old width, or undefined if this was the initial layout. + * @param oldHeight Number/undefined The old height, or undefined if this was the initial layout. */ + afterComponentLayout?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): any; afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; @@ -175,22 +184,22 @@ declare module Ext { */ afterSetPosition?( x?:number, y?:number ): void; /** [Method] Aligns the element with another element relative to the specified anchor points - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] - * @param animate any true for the default animation or a standard Element animation config object + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ alignTo?( element?:any, position?:any, offsets?:any, animate?:any ): any; alignTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; alignTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; alignTo?( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; /** [Method] Anchors an element to another element and realigns it when the window is resized - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] - * @param animate any true for the default animation or a standard Element animation config object - * @param monitorScroll any True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. - * @param callback any The function to call after the animation finishes + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + * @param monitorScroll Boolean/Number True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback Function The function to call after the animation finishes */ anchorTo?( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; @@ -206,7 +215,7 @@ declare module Ext { */ applyState?( state?:any ): void; /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ beforeBlur?( e?:Ext.IEventObject ): void; /** [Method] Occurs before componentLayout is run @@ -217,16 +226,16 @@ declare module Ext { /** [Method] Invoked before the Component is destroyed */ beforeDestroy?(): void; /** [Method] Template method to do any pre focus processing - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ beforeFocus?( e?:Ext.IEventObject ): void; /** [Method] Occurs before componentLayout is run */ beforeLayout?(): void; /** [Method] Calculates the new x y position to move this Positionable into a constrain region - * @param constrainTo any The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. - * @param proposedPosition any A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. - * @param local any The proposedPosition is local (relative to floatParent if a floating Component) - * @param proposedSize any A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local Boolean The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize Number[] A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. */ calculateConstrainedPosition?( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; calculateConstrainedPosition?( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; @@ -252,14 +261,19 @@ declare module Ext { */ enable?( silent?:bool ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Ensures that this component is attached to document body * @param runLayout Boolean True to run the component's layout. */ ensureAttachedToBody?( runLayout?:bool ): void; + /** [Method] Retrieves plugin from this component s collection by its ptype + * @param ptype String The Plugin's ptype as specified by the class's alias configuration. + */ + findPlugin?( ptype?:string ): Ext.IAbstractPlugin; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList * @param eventName String The name of the event to fire. * @param args Object... Variable number of parameters are passed to handlers. @@ -269,15 +283,17 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; + /** [Method] Forces this component to redo its componentLayout */ + forceComponentLayout?(): void; /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ getActiveAnimation?(): Ext.fx.IAnim; /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ getActiveAnimation?(): bool; /** [Method] Gets the x y coordinates to align this element with another element - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] */ getAlignToXY?( element?:any, position?:any, offsets?:any ): any; getAlignToXY?( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; @@ -297,9 +313,9 @@ declare module Ext { /** [Method] Provides the link for Observable s fireEvent method to bubble up the ownership hierarchy */ getBubbleTarget?(): Ext.container.IContainer; /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain - * @param constrainTo any The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. - * @param proposedPosition any A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position - * @param proposedSize any A proposed [width, height] size to constrain instead of using the element's current size + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size */ getConstrainVector?( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; @@ -307,7 +323,7 @@ declare module Ext { getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain - * @param constrainTo Ext.util.IPositionable The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size */ @@ -322,7 +338,7 @@ declare module Ext { /** [Method] Retrieves the id of this component */ getId?(): string; /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert - * @param position any Index, element id or element you want to put this component before. + * @param position String/Number/Ext.dom.Element/HTMLElement Index, element id or element you want to put this component before. */ getInsertPosition?( position?:any ): any; getInsertPosition?( position?:string ): HTMLElement; @@ -340,13 +356,13 @@ declare module Ext { /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ getLocalY?(): number; /** [Method] Returns the offsets of this element from the passed element - * @param offsetsTo any The Positionable, HTMLElement, or element id to get get the offsets from. + * @param offsetsTo Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or element id to get get the offsets from. */ getOffsetsTo?( offsetsTo?:any ): any; getOffsetsTo?( offsetsTo?:Ext.util.IPositionable ): number[]; getOffsetsTo?( offsetsTo?:HTMLElement ): number[]; getOffsetsTo?( offsetsTo?:string ): number[]; - /** [Method] Retrieves a plugin by its pluginId which has been bound to this component + /** [Method] Retrieves a plugin from this component s collection by its pluginId * @param pluginId String */ getPlugin?( pluginId?:string ): Ext.IAbstractPlugin; @@ -372,6 +388,10 @@ declare module Ext { getXY?(): number[]; /** [Method] Gets the current Y position of the DOM element based on page coordinates */ getY?(): number; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): bool; /** [Method] Checks if the specified CSS class exists on this element s DOM node * @param className String The CSS class to check for. */ @@ -393,7 +413,7 @@ declare module Ext { */ is?( selector?:string ): bool; /** [Method] Determines whether this component is the descendant of a particular container - * @param container Ext.IContainer + * @param container Ext.Container */ isDescendantOf?( container?:Ext.IContainer ): bool; /** [Method] Method to determine whether this Component is currently disabled */ @@ -411,7 +431,7 @@ declare module Ext { /** [Method] Returns true if layout is suspended for this component */ isLayoutSuspended?(): bool; /** [Method] Returns true if this component is visible - * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. */ isVisible?( deep?:bool ): bool; /** [Method] Tests whether or not this Component is of a specific xtype @@ -420,11 +440,11 @@ declare module Ext { */ isXType?( xtype?:string, shallow?:bool ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -432,15 +452,16 @@ declare module Ext { /** [Method] Move the element relative to its current position * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") * @param distance Number How far to move the element in pixels - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ move?( direction?:string, distance?:number, animate?:any ): void; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Returns the next node in the Component tree in tree traversal order @@ -452,14 +473,14 @@ declare module Ext { */ nextSibling?( selector?:string ): Ext.IComponent; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event - * @param container Ext.container.IContainer Container which holds the component. + * @param container Ext.container.Container Container which holds the component. * @param pos Number Position at which the component was added. */ onAdded?( container?:Ext.container.IContainer, pos?:number ): void; @@ -477,7 +498,7 @@ declare module Ext { */ onRemoved?( destroying?:bool ): void; /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param parentNode Ext.core.Element The parent Element in which this Component's encapsulating element is contained. * @param containerIdx Number The index within the parent Container's child collection of this Component. */ onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; @@ -489,7 +510,7 @@ declare module Ext { */ onResize?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; /** [Method] Template method to do any post blur processing - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ postBlur?( e?:Ext.IEventObject ): void; /** [Method] Returns the previous node in the Component tree in tree traversal order @@ -517,14 +538,15 @@ declare module Ext { */ removeChildEls?( testFn?:any ): void; /** [Method] Removes a CSS class from the top level element representing this component - * @param cls any The CSS class name to remove. + * @param cls String/String[] The CSS class name to remove. */ removeCls?( cls?:any ): any; removeCls?( cls?:string ): Ext.IComponent; removeCls?( cls?:string[] ): Ext.IComponent; /** [Method] Removes a cls to the uiCls array which will also call removeUIClsFromElement and removes it from all elements of thi - * @param cls String A string or an array of strings to remove to the uiCls. + * @param cls String/String[] A string or an array of strings to remove to the uiCls. */ + removeClsWithUI?( cls?:any ): any; removeClsWithUI?( cls?:string ): void; removeClsWithUI?( cls?:string[] ): void; /** [Method] Removes an event handler @@ -534,11 +556,12 @@ declare module Ext { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Method which removes a specified UI uiCls from the components element @@ -546,9 +569,10 @@ declare module Ext { */ removeUIClsFromElement?( ui?:string ): void; /** [Method] Renders the Component into the passed HTML element - * @param container Ext.IElement The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. - * @param position String The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + * @param container Ext.Element/HTMLElement/String The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String/Number The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) */ + render?( container?:any, position?:any ): any; render?( container?:Ext.IElement, position?:string ): void; render?( container?:HTMLElement, position?:string ): void; render?( container?:string, position?:string ): void; @@ -568,8 +592,8 @@ declare module Ext { */ savePropToState?( propName?:string, state?:any, stateName?:string ): bool; /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object - * @param propNames any The name (or array of names) of the property to save. - * @param state any The state object in to which to save the property values. + * @param propNames String/String[] The name (or array of names) of the property to save. + * @param state Object The state object in to which to save the property values. */ savePropsToState?( propNames?:any, state?:any ): any; savePropsToState?( propNames?:string, state?:any ): any; @@ -579,13 +603,14 @@ declare module Ext { /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ sequenceFx?(): any; /** [Method] - * @param border String The border, see border. If a falsey value is passed the border will be removed. + * @param border String/Number The border, see border. If a falsey value is passed the border will be removed. */ + setBorder?( border?:any ): any; setBorder?( border?:string ): void; setBorder?( border?:number ): void; /** [Method] Sets the element s box * @param box Object The box to fill {x, y, width, height} - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ setBox?( box?:any, animate?:any ): Ext.util.IPositionable; /** [Method] Enable or disable the component @@ -598,37 +623,36 @@ declare module Ext { */ setDocked?( dock?:any, layoutParent?:bool ): Ext.IComponent; /** [Method] Sets the height of the component - * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. */ setHeight?( height?:number ): Ext.IComponent; /** [Method] Overridden in Ext rtl AbstractComponent - * @param x Number The x coordinate. A value of null sets the left style to 'auto'. + * @param x Object */ - setLocalX?( x?:number ): Ext.util.IPositionable; + setLocalX?( x?:any ): Ext.util.IPositionable; /** [Method] Overridden in Ext rtl AbstractComponent - * @param x any The x coordinate or an array containing [x, y]. A value of null sets the left style to 'auto' - * @param y any The y coordinate, required if x is not an array. A value of null sets the top style to 'auto' + * @param x Object + * @param y Object */ - setLocalXY?( x?:any, y?:any ): any; - setLocalXY?( x?:number, y?:number ): Ext.util.IPositionable; - setLocalXY?( x?:any[], y?:number ): Ext.util.IPositionable; + setLocalXY?( x?:any, y?:any ): Ext.util.IPositionable; /** [Method] Sets the local y coordinate of this element using CSS style - * @param y Number The y coordinate. A value of null sets the top style to 'auto'. + * @param y Object */ - setLocalY?( y?:number ): Ext.util.IPositionable; + setLocalY?( y?:any ): Ext.util.IPositionable; /** [Method] Sets the margin on the target element - * @param margin Number The margin to set. See the margin config. + * @param margin Number/String The margin to set. See the margin config. */ + setMargin?( margin?:any ): any; setMargin?( margin?:number ): void; setMargin?( margin?:string ): void; /** [Method] Sets the element s position and size to the specified region - * @param region Ext.util.IRegion The region to fill - * @param animate any true for the default animation or a standard Element animation config object + * @param region Ext.util.Region The region to fill + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ setRegion?( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the width and height of this Component - * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. - * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + * @param width Number/String/Object The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height Number/String The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. */ setSize?( width?:any, height?:any ): any; setSize?( width?:any, height?:number ): Ext.IComponent; @@ -642,26 +666,28 @@ declare module Ext { */ setVisible?( visible?:bool ): Ext.IComponent; /** [Method] Sets the width of the component - * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. */ setWidth?( width?:number ): Ext.IComponent; /** [Method] Sets the X position of the DOM element based on page coordinates - * @param The Number X position - * @param animate any True for the default animation, or a standard Element animation config object + * @param x Object + * @param animate Object */ - setX?( The?:number, animate?:any ): Ext.util.IPositionable; + setX?( x?:any, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the position of the DOM element in page coordinates - * @param pos Number[] Contains X & Y [x, y] values for new position (coordinates are page-based) - * @param animate any True for the default animation, or a standard Element animation config object + * @param xy Object + * @param animate Object */ - setXY?( pos?:number[], animate?:any ): Ext.util.IPositionable; + setXY?( xy?:any, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the Y position of the DOM element based on page coordinates - * @param The Number Y position - * @param animate any True for the default animation, or a standard Element animation config object + * @param y Object + * @param animate Object */ - setY?( The?:number, animate?:any ): Ext.util.IPositionable; + setY?( y?:any, animate?:any ): Ext.util.IPositionable; /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ stopAnimation?(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopFx?(): Ext.IElement; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -673,8 +699,8 @@ declare module Ext { /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ syncFx?(): any; /** [Method] Translates the passed page coordinates into left top css values for the element - * @param x any The page x or an array containing [x, y] - * @param y any The page y, required if x is not an array + * @param x Number/Array The page x or an array containing [x, y] + * @param y Number The page y, required if x is not an array */ translatePoints?( x?:any, y?:any ): any; translatePoints?( x?:number, y?:number ): any; @@ -686,13 +712,18 @@ declare module Ext { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Navigates up the ownership hierarchy searching for an ancestor Container which matches any passed simple selector or - * @param selector any The simple selector component or actual component to test. If not passed the immediate owner/activater is returned. + * @param selector String/Ext.Component The simple selector component or actual component to test. If not passed the immediate owner/activater is returned. + * @param limit String/Number/Ext.Component This may be a selector upon which to stop the upward scan, or a limit of teh number of steps, or Component reference to stop on. */ - up?( selector?:any ): any; - up?( selector?:string ): Ext.container.IContainer; - up?( selector?:Ext.IComponent ): Ext.container.IContainer; + up?( selector?:any, limit?:any ): any; + up?( selector?:string, limit?:string ): Ext.container.IContainer; + up?( selector?:Ext.IComponent, limit?:string ): Ext.container.IContainer; + up?( selector?:string, limit?:number ): Ext.container.IContainer; + up?( selector?:Ext.IComponent, limit?:number ): Ext.container.IContainer; + up?( selector?:string, limit?:Ext.IComponent ): Ext.container.IContainer; + up?( selector?:Ext.IComponent, limit?:Ext.IComponent ): Ext.container.IContainer; /** [Method] Update the content area of a component - * @param htmlOrData any If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. If this component was not configured with a template, the components content area will be updated via Ext.Element update. + * @param htmlOrData String/Object If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. If this component was not configured with a template, the components content area will be updated via Ext.Element update. * @param loadScripts Boolean Only legitimate when using the html configuration. * @param callback Function Only legitimate when using the html configuration. Callback to execute when scripts have finished loading. */ @@ -701,6 +732,18 @@ declare module Ext { * @param options Object An object with layout options. */ updateLayout?( options?:any ): void; + /** [Method] Cancels layout of a component + * @param comp Ext.Component + */ + cancelLayout?( comp?:Ext.IComponent ): void; + /** [Method] Performs all pending layouts that were scheduled while suspendLayouts was in effect */ + flushLayouts?(): void; + /** [Method] Resumes layout activity in the whole framework + * @param flush Boolean true to perform all the pending layouts. This can also be achieved by calling flushLayouts directly. + */ + resumeLayouts?( flush?:bool ): void; + /** [Method] Stops layouts from happening in the whole framework */ + suspendLayouts?(): void; } } declare module Ext { @@ -750,37 +793,47 @@ declare module Ext { } declare module Ext { export interface IAbstractPlugin extends Ext.IBase { - /** [Config Option] (String) A name for the plugin that can be set at creation time to then retrieve the plugin through getPlugin method. ... */ + /** [Config Option] (String) */ pluginId?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Plugin, or subclass thereof. ... */ + /** [Property] (Boolean) */ isPlugin?: bool; + /** [Method] Creates clone of the plugin + * @param overrideCfg Object Additional config for the derived plugin. + */ + clonePlugin?( overrideCfg?:any ): void; /** [Method] The destroy method is invoked by the owning Component at the time the Component is being destroyed */ destroy?(): void; /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ disable?(): void; /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ enable?(): void; + /** [Method] Returns the component to which this plugin is attached */ + getCmp?(): Ext.IComponent; /** [Method] The init method is invoked after initComponent method has been run for the client Component - * @param client Ext.IComponent The client Component which owns this plugin. + * @param client Ext.Component The client Component which owns this plugin. */ init?( client?:Ext.IComponent ): void; + /** [Method] Sets the component to which this plugin is attached + * @param cmp Ext.Component Owner component. + */ + setCmp?( cmp?:Ext.IComponent ): void; } } declare module Ext { export interface IAction extends Ext.IBase { - /** [Config Option] (Boolean) True to disable all components configured by this Action, false to enable them. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Boolean) True to hide all components configured by this Action, false to show them. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) The CSS class selector that specifies a background image to be used as the header icon for all components configured ... */ + /** [Config Option] (String) */ iconCls?: string; /** [Config Option] (String) */ itemId?: string; - /** [Config Option] (Object) The scope (this reference) in which the handler is executed. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The text to set for all components configured by this Action. ... */ + /** [Config Option] (String) */ text?: string; /** [Method] Disables all components configured by this Action */ disable?(): void; @@ -834,34 +887,227 @@ declare module Ext { export interface IAjax extends Ext.data.IConnection { } export class Ajax { + /** [Method] Aborts an active request + * @param request Object Defaults to the last request + */ + static abort( request?:any ): void; + /** [Method] Aborts all active requests */ + static abortAll(): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Determines whether this object has a request outstanding + * @param request Object Defaults to the last transaction + */ + static isLoading( request?:any ): bool; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Checks if the response status was successful + * @param status Number The status code + */ + static parseStatus( status?:number ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Sends an HTTP request to a remote server + * @param options Object An object which may contain the following properties: (The options object may also contain any other property which might be needed to perform postprocessing in a callback because it is passed to callback functions.) + */ + static request( options?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sets various options such as the url params for the request + * @param options Object The initial options + * @param scope Object The scope to execute in + */ + static setOptions( options?:any, scope?:any ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Uploads a form using a hidden iframe + * @param form String/HTMLElement/Ext.Element The form to upload + * @param url String The url to post to + * @param params String Any extra parameters to pass + * @param options Object The initial options + */ + static upload( form?:any, url?:any, params?:any, options?:any ): any; + static upload( form?:string, url?:string, params?:string, options?:any ): void; + static upload( form?:HTMLElement, url?:string, params?:string, options?:any ): void; + static upload( form?:Ext.IElement, url?:string, params?:string, options?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app { export interface IApplication extends Ext.app.IController { - /** [Config Option] (String) The path to the directory which contains all application's classes. ... */ + /** [Config Option] (String) */ appFolder?: string; - /** [Config Option] (String) The name of a property to be assigned to the main namespace to gain a reference to this application. ... */ + /** [Config Option] (String) */ appProperty?: string; - /** [Config Option] (Boolean) True to automatically load and instantiate AppName.view.Viewport before firing the launch function. ... */ + /** [Config Option] (Boolean) */ autoCreateViewport?: bool; - /** [Config Option] (String[]) */ - controllers?: string[]; - /** [Config Option] (Boolean) True to automatically set up Ext.tip.QuickTip support. ... */ + /** [Config Option] (String/String[]) */ + controllers?: any; + /** [Config Option] (Boolean) */ enableQuickTips?: bool; - /** [Config Option] (String) The name of your application. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (String[]) The list of namespace prefixes used in the application to resolve dependencies like Views and Stores: Ext.applicati... */ - namespaces?: string[]; - /** [Config Option] (Object) Additional load paths to add to Ext.Loader. ... */ + /** [Config Option] (String/String[]) */ + namespaces?: any; + /** [Config Option] (Object) */ paths?: any; - /** [Config Option] (Object) The scope to execute the launch function in. ... */ + /** [Config Option] (Object) */ scope?: any; /** [Method] Returns the base Ext app Application for this controller */ getApplication?(): Ext.app.IApplication; /** [Method] Returns instance of a Controller with the given id - * @param id String + * @param name Object */ - getController?( id?:string ): Ext.app.IController; + getController?( name?:any ): Ext.app.IController; /** [Method] Called automatically when the page has completely loaded * @param profile String The detected application profile */ @@ -870,41 +1116,41 @@ declare module Ext.app { } declare module Ext.app { export interface IController extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) The id of this controller. ... */ + /** [Config Option] (String) */ id?: string; - /** [Config Option] (String[]) Array of models to require from AppName.model namespace. ... */ - models?: string[]; - /** [Config Option] (Object[]) Array of configs to build up references to views on page. ... */ - refs?: Object[]; - /** [Config Option] (String[]) Array of stores to require from AppName.store namespace and to generate getter methods for. ... */ - stores?: string[]; - /** [Config Option] (String[]) Array of views to require from AppName.view namespace and to generate getter methods for. ... */ - views?: string[]; + /** [Config Option] (String/String[]) */ + models?: any; + /** [Config Option] (Object[]) */ + refs?: any[]; + /** [Config Option] (String/String[]) */ + stores?: any; + /** [Config Option] (String/String[]) */ + views?: any; /** [Property] (Ext.app.Application) */ application?: Ext.app.IApplication; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Registers one or more references - * @param refs any + * @param refs Object/Object[] */ addRef?( refs?:any ): void; /** [Method] Removes all listeners for this object including the managed listeners */ @@ -912,13 +1158,14 @@ declare module Ext.app { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Adds listeners to components selected via Ext ComponentQuery - * @param selectors any If a String, the second argument is used as the listeners, otherwise an object of selectors -> listeners is assumed + * @param selectors String/Object If a String, the second argument is used as the listeners, otherwise an object of selectors -> listeners is assumed * @param listeners Object Config for listeners. */ control?( selectors?:any, listeners?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -930,7 +1177,7 @@ declare module Ext.app { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the base Ext app Application for this controller */ getApplication?(): Ext.app.IApplication; /** [Method] Returns instance of a Controller with the given id @@ -958,7 +1205,7 @@ declare module Ext.app { */ hasRef?( ref?:any ): bool; /** [Method] A template method that is called when your application boots - * @param application Ext.app.IApplication + * @param application Ext.app.Application */ init?( application?:Ext.app.IApplication ): void; /** [Method] Adds listeners to different event sources also called event domains @@ -966,32 +1213,33 @@ declare module Ext.app { */ listen?( to?:any ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] A template method like init but called after the viewport is created - * @param application Ext.app.IApplication + * @param application Ext.app.Application */ onLaunch?( application?:Ext.app.IApplication ): void; /** [Method] Relays selected events from the specified Observable as if the events were fired by this @@ -1007,11 +1255,12 @@ declare module Ext.app { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -1040,85 +1289,395 @@ declare module Ext.app.domain { export interface IComponent extends Ext.app.IEventDomain { } export class Component { - /** [Method] */ - constructor(); - /** [Method] This method matches the firer of the event the target to the given selector - * @param target Object The firer of the event. - * @param selector String The selector to which to match the target. + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) */ - static match( target?:any, selector?:string ): bool; + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object + * @param selector Object + */ + static match( target?:any, selector?:any ): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.Class The Observable to monitor for events. + */ + static monitor( observable?:Ext.IClass ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app.domain { export interface IController extends Ext.app.IEventDomain { } export class Controller { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + static match( target?:any, selector?:string ): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.Class The Observable to monitor for events. + */ + static monitor( observable?:Ext.IClass ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app.domain { export interface IDirect extends Ext.app.IEventDomain { } export class Direct { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + static match( target?:any, selector?:string ): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.Class The Observable to monitor for events. + */ + static monitor( observable?:Ext.IClass ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app.domain { export interface IGlobal extends Ext.app.IEventDomain { } export class Global { - /** [Method] */ - constructor(); - /** [Method] This method matches the firer of the event the target to the given selector - * @param target Object The firer of the event. - * @param selector String The selector to which to match the target. + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) */ - static match( target?:any, selector?:string ): bool; + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] This method matches the firer of the event the target to the given selector */ + static match(): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.Class The Observable to monitor for events. + */ + static monitor( observable?:Ext.IClass ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app.domain { export interface IStore extends Ext.app.IEventDomain { } export class Store { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] This method matches the firer of the event the target to the given selector + * @param target Object The firer of the event. + * @param selector String The selector to which to match the target. + */ + static match( target?:any, selector?:string ): bool; + /** [Method] This method is called by the derived class to monitor fireEvent calls + * @param observable Ext.Class The Observable to monitor for events. + */ + static monitor( observable?:Ext.IClass ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app { export interface IEventBus extends Ext.IBase { } export class EventBus { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Adds a set of component event listeners for a controller * @param selectors Object Config object containing selectors and listeners. - * @param controller Ext.app.IController The listening controller instance. + * @param controller Ext.app.Controller The listening controller instance. */ static control( selectors?:any, controller?:Ext.app.IController ): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Adds a set of event domain listeners for a controller * @param to Object Config object containing domains, selectors and listeners. - * @param controller Ext.app.IController The listening controller instance. + * @param controller Ext.app.Controller The listening controller instance. */ static listen( to?:any, controller?:Ext.app.IController ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Removes all of a controller s attached listeners * @param controllerId String The id of the controller. */ static unlisten( controllerId?:string ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.app { export interface IEventDomain extends Ext.IBase { /** [Config Option] (String) */ idProperty?: string; + /** [Property] (Object) */ + instances?: any; /** [Method] This method matches the firer of the event the target to the given selector * @param target Object The firer of the event. * @param selector String The selector to which to match the target. */ match?( target?:any, selector?:string ): bool; /** [Method] This method is called by the derived class to monitor fireEvent calls - * @param observable Ext.IClass The Observable to monitor for events. + * @param observable Ext.Class The Observable to monitor for events. */ monitor?( observable?:Ext.IClass ): void; } @@ -1146,7 +1705,7 @@ declare module Ext { */ static difference( arrayA?:any[], arrayB?:any[] ): any[]; /** [Method] Iterates an array or an iterable value and invoke the given callback function for each item - * @param iterable any The value to be iterated. If this argument is not iterable, the callback function is called once. + * @param iterable Array/NodeList/Object The value to be iterated. If this argument is not iterable, the callback function is called once. * @param fn Function The callback function. If it returns false, the iteration stops and this method returns the current index. * @param scope Object The scope (this reference) in which the specified function is executed. * @param reverse Boolean Reverse the iteration order (loop from the end to the beginning) Defaults false @@ -1226,8 +1785,8 @@ declare module Ext { */ static map( array?:any[], fn?:any, scope?:any ): any[]; /** [Method] Returns the maximum value in the Array - * @param array any The Array from which to select the maximum value. - * @param comparisonFn any a function to perform the comparision which determines maximization. If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 + * @param array Array/NodeList The Array from which to select the maximum value. + * @param comparisonFn Function a function to perform the comparision which determines maximization. If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 */ static max( array?:any, comparisonFn?:any ): any; static max( array?:any[], comparisonFn?:any ): any; @@ -1243,15 +1802,15 @@ declare module Ext { */ static merge( array1?:any[], array2?:any[], etc?:any[] ): any[]; /** [Method] Returns the minimum value in the Array - * @param array any The Array from which to select the minimum value. - * @param comparisonFn any a function to perform the comparision which determines minimization. If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 + * @param array Array/NodeList The Array from which to select the minimum value. + * @param comparisonFn Function a function to perform the comparision which determines minimization. If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 */ static min( array?:any, comparisonFn?:any ): any; static min( array?:any[], comparisonFn?:any ): any; static min( array?:NodeList, comparisonFn?:any ): any; /** [Method] Plucks the value of a property from each item in the Array - * @param array any The Array of items to pluck the value from. - * @param propertyName any The property name to pluck from each element. + * @param array Array/NodeList The Array of items to pluck the value from. + * @param propertyName String The property name to pluck from each element. */ static pluck( array?:any, propertyName?:any ): any; static pluck( array?:any[], propertyName?:string ): any[]; @@ -1308,17 +1867,17 @@ declare module Ext { */ static toArray( iterable?:any, start?:number, end?:number ): any[]; /** [Method] Creates a map object keyed by the elements of the given array - * @param array any The Array to create the map from. - * @param getKey any Name of the object property to use as a key or a function to extract the key. - * @param scope any Value of this inside callback. + * @param array Array The Array to create the map from. + * @param getKey String/Function Name of the object property to use as a key or a function to extract the key. + * @param scope Object Value of this inside callback. */ static toMap( array?:any, getKey?:any, scope?:any ): any; static toMap( array?:any[], getKey?:string, scope?:any ): any; static toMap( array?:any[], getKey?:any, scope?:any ): any; /** [Method] Creates a map object keyed by a property of elements of the given array - * @param array any The Array to create the map from. - * @param getKey any Name of the object property to use as a key or a function to extract the key. - * @param scope any Value of this inside callback. + * @param array Array The Array to create the map from. + * @param getKey String/Function Name of the object property to use as a key or a function to extract the key. + * @param scope Object Value of this inside callback. */ static toValueMap( array?:any, getKey?:any, scope?:any ): any; static toValueMap( array?:any[], getKey?:string, scope?:any ): any; @@ -1337,15 +1896,20 @@ declare module Ext { } declare module Ext { export interface IBase extends Ext.IClass { - /** [Property] (Ext.Class) Get the reference to the current class from which this object was instantiated. ... */ + /** [Property] (Ext.Class) */ self?: Ext.IClass; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + callOverridden?( args?:any ): any; + callOverridden?( args?:any[] ): any; /** [Method] Call the parent method of the current method - * @param args any The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) */ callParent?( args?:any ): any; callParent?( args?:any[] ): any; /** [Method] This method is used by an override to call the superclass method but bypass any overridden method - * @param args any The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) */ callSuper?( args?:any ): any; callSuper?( args?:any[] ): any; @@ -1357,114 +1921,147 @@ declare module Ext { * @param config Object */ initConfig?( config?:any ): Ext.IBase; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + addMembers?( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + addStatics?( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + create?(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + createAlias?( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + getName?(): string; + /** [Method] Adds members to class */ + implement?(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + override?( members?:any ): Ext.IBase; } } declare module Ext.button { - export interface IButton extends Ext.IComponent { - /** [Config Option] (Boolean) False to not allow a pressed Button to be depressed. ... */ + export interface IButton extends Ext.IComponent,Ext.IQueryable { + /** [Config Option] (Boolean) */ allowDepress?: bool; - /** [Config Option] (String) The side of the Button box to render the arrow if the button has an associated menu. ... */ + /** [Config Option] (String) */ arrowAlign?: string; - /** [Config Option] (String) The className used for the inner arrow element if the button has a menu. ... */ + /** [Config Option] (String) */ arrowCls?: string; - /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + /** [Config Option] (String) */ baseCls?: string; /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (String) The DOM event that will fire the handler of the button. ... */ + /** [Config Option] (String) */ clickEvent?: string; /** [Config Option] (String) */ cls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) Whether or not to destroy any associated menu when this button is destroyed. ... */ + /** [Config Option] (Boolean) */ destroyMenu?: bool; - /** [Config Option] (Boolean) True to start disabled. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (Boolean) True to enable pressed/not pressed toggling. ... */ + /** [Config Option] (Boolean) */ enableToggle?: bool; - /** [Config Option] (String) The CSS class to add to a button when it is in the focussed state. ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this button. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Boolean) False to disable visual cues on mouseover, mouseout and mousedown. ... */ + /** [Config Option] (Boolean) */ handleMouseEvents?: bool; - /** [Config Option] (Function) A function called when the button is clicked (can be used instead of click event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Boolean) True to start hidden. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) The URL to open when the button is clicked. ... */ + /** [Config Option] (String) */ href?: string; - /** [Config Option] (String) The target attribute to use for the underlying anchor. ... */ + /** [Config Option] (String) */ hrefTarget?: string; /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) The side of the Button box to render the icon. ... */ + /** [Config Option] (String) */ iconAlign?: string; /** [Config Option] (String) */ iconCls?: string; /** [Config Option] (Ext.menu.Menu/String/Object) */ menu?: any; - /** [Config Option] (String) The CSS class to add to a button when it's menu is active. ... */ + /** [Config Option] (String) */ menuActiveCls?: string; - /** [Config Option] (String) The position to align the menu to (see Ext.util.Positionable.alignTo for more details). ... */ + /** [Config Option] (String) */ menuAlign?: string; - /** [Config Option] (Number) The minimum width for this button (used to give a set of buttons a common width). ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (String) The CSS class to add to a button when it is in the over (hovered) state. ... */ + /** [Config Option] (String) */ overCls?: string; - /** [Config Option] (String) If used in a Toolbar, the text to be used if this item is shown in the overflow menu. ... */ + /** [Config Option] (String) */ overflowText?: string; - /** [Config Option] (Object) An object literal of parameters to pass to the url when the href property is specified. ... */ + /** [Config Option] (Object) */ params?: any; - /** [Config Option] (Boolean) True to start pressed (only if enableToggle = true) ... */ + /** [Config Option] (Boolean) */ pressed?: bool; - /** [Config Option] (String) The CSS class to add to a button when it is in the pressed state. ... */ + /** [Config Option] (String) */ pressedCls?: string; - /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + /** [Config Option] (Boolean) */ preventDefault?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) We have to keep "unselectable" attribute on all elements because it's not inheritable. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean/Object) True to repeat fire the click event while the mouse is down. ... */ + /** [Config Option] (Boolean/Object) */ repeat?: any; - /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + /** [Config Option] ("small"/"medium"/"large") */ scale?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler and toggleHandler is executed. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) True to force an attached menu with no items to be shown when clicking this button. ... */ + /** [Config Option] (Boolean) */ showEmptyMenu?: bool; - /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrap?: any; /** [Config Option] (Number) */ tabIndex?: number; /** [Config Option] (String) */ text?: string; - /** [Config Option] (String) The text alignment for this button (center, left, right). ... */ + /** [Config Option] (String) */ textAlign?: string; - /** [Config Option] (String) The group this toggle button is a member of (only 1 per group can be pressed). ... */ + /** [Config Option] (String) */ toggleGroup?: string; - /** [Config Option] (Function) Function called when a Button with enableToggle set to true is clicked. ... */ + /** [Config Option] (Function) */ toggleHandler?: any; - /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + /** [Config Option] (String/Object) */ tooltip?: any; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; - /** [Config Option] (String) The type of <input> to create: submit, reset or button. ... */ - type?: string; - /** [Property] (Ext.Template) A Template used to create the Button's DOM structure. ... */ + /** [Property] (Boolean) */ + isAction?: bool; + /** [Property] (Ext.Template) */ template?: Ext.ITemplate; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; - /** [Method] inherit docs Disable the component - * @param silent Boolean Passing true will suppress the disable event from being fired. + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. */ - disable?( silent?:bool ): void; - /** [Method] inherit docs Enable the component - * @param silent Boolean Passing true will suppress the enable event from being fired. + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] inherit docs + * @param silent Object */ - enable?( silent?:bool ): void; + disable?( silent?:any ): void; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; + /** [Method] inherit docs + * @param silent Object + */ + enable?( silent?:any ): void; /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ getTemplateArgs?(): any; /** [Method] Gets the text for this Button */ @@ -1473,19 +2070,25 @@ declare module Ext.button { hasVisibleMenu?(): bool; /** [Method] Hides this button s menu if it has one */ hideMenu?(): Ext.button.IButton; - /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + /** [Method] inherit docs */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] See comments in onFocus Allows addition of behavior to the disable operation */ + /** [Method] See comments in onFocus */ onDisable?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Sets this button s glyph - * @param glyph any the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + * @param glyph Number/String the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph */ setGlyph?( glyph?:any ): any; setGlyph?( glyph?:number ): Ext.button.IButton; @@ -1524,13 +2127,13 @@ declare module Ext.button { */ setTextAlign?( align?:string ): void; /** [Method] Sets the tooltip for this Button - * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + * @param tooltip String/Object This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. */ setTooltip?( tooltip?:any ): Ext.button.IButton; - /** [Method] inherit docs Sets the UI for the component - * @param ui String The new UI for the component. + /** [Method] inherit docs + * @param ui Object */ - setUI?( ui?:string ): void; + setUI?( ui?:any ): void; /** [Method] Shows this button s menu if it has one * @param fromEvent Object */ @@ -1543,111 +2146,121 @@ declare module Ext.button { } } declare module Ext { - export interface IButton extends Ext.IComponent { - /** [Config Option] (Boolean) False to not allow a pressed Button to be depressed. ... */ + export interface IButton extends Ext.IComponent,Ext.IQueryable { + /** [Config Option] (Boolean) */ allowDepress?: bool; - /** [Config Option] (String) The side of the Button box to render the arrow if the button has an associated menu. ... */ + /** [Config Option] (String) */ arrowAlign?: string; - /** [Config Option] (String) The className used for the inner arrow element if the button has a menu. ... */ + /** [Config Option] (String) */ arrowCls?: string; - /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + /** [Config Option] (String) */ baseCls?: string; /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (String) The DOM event that will fire the handler of the button. ... */ + /** [Config Option] (String) */ clickEvent?: string; /** [Config Option] (String) */ cls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) Whether or not to destroy any associated menu when this button is destroyed. ... */ + /** [Config Option] (Boolean) */ destroyMenu?: bool; - /** [Config Option] (Boolean) True to start disabled. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (Boolean) True to enable pressed/not pressed toggling. ... */ + /** [Config Option] (Boolean) */ enableToggle?: bool; - /** [Config Option] (String) The CSS class to add to a button when it is in the focussed state. ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this button. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Boolean) False to disable visual cues on mouseover, mouseout and mousedown. ... */ + /** [Config Option] (Boolean) */ handleMouseEvents?: bool; - /** [Config Option] (Function) A function called when the button is clicked (can be used instead of click event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Boolean) True to start hidden. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) The URL to open when the button is clicked. ... */ + /** [Config Option] (String) */ href?: string; - /** [Config Option] (String) The target attribute to use for the underlying anchor. ... */ + /** [Config Option] (String) */ hrefTarget?: string; /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) The side of the Button box to render the icon. ... */ + /** [Config Option] (String) */ iconAlign?: string; /** [Config Option] (String) */ iconCls?: string; /** [Config Option] (Ext.menu.Menu/String/Object) */ menu?: any; - /** [Config Option] (String) The CSS class to add to a button when it's menu is active. ... */ + /** [Config Option] (String) */ menuActiveCls?: string; - /** [Config Option] (String) The position to align the menu to (see Ext.util.Positionable.alignTo for more details). ... */ + /** [Config Option] (String) */ menuAlign?: string; - /** [Config Option] (Number) The minimum width for this button (used to give a set of buttons a common width). ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (String) The CSS class to add to a button when it is in the over (hovered) state. ... */ + /** [Config Option] (String) */ overCls?: string; - /** [Config Option] (String) If used in a Toolbar, the text to be used if this item is shown in the overflow menu. ... */ + /** [Config Option] (String) */ overflowText?: string; - /** [Config Option] (Object) An object literal of parameters to pass to the url when the href property is specified. ... */ + /** [Config Option] (Object) */ params?: any; - /** [Config Option] (Boolean) True to start pressed (only if enableToggle = true) ... */ + /** [Config Option] (Boolean) */ pressed?: bool; - /** [Config Option] (String) The CSS class to add to a button when it is in the pressed state. ... */ + /** [Config Option] (String) */ pressedCls?: string; - /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + /** [Config Option] (Boolean) */ preventDefault?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) We have to keep "unselectable" attribute on all elements because it's not inheritable. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean/Object) True to repeat fire the click event while the mouse is down. ... */ + /** [Config Option] (Boolean/Object) */ repeat?: any; - /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + /** [Config Option] ("small"/"medium"/"large") */ scale?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler and toggleHandler is executed. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) True to force an attached menu with no items to be shown when clicking this button. ... */ + /** [Config Option] (Boolean) */ showEmptyMenu?: bool; - /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrap?: any; /** [Config Option] (Number) */ tabIndex?: number; /** [Config Option] (String) */ text?: string; - /** [Config Option] (String) The text alignment for this button (center, left, right). ... */ + /** [Config Option] (String) */ textAlign?: string; - /** [Config Option] (String) The group this toggle button is a member of (only 1 per group can be pressed). ... */ + /** [Config Option] (String) */ toggleGroup?: string; - /** [Config Option] (Function) Function called when a Button with enableToggle set to true is clicked. ... */ + /** [Config Option] (Function) */ toggleHandler?: any; - /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + /** [Config Option] (String/Object) */ tooltip?: any; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; - /** [Config Option] (String) The type of <input> to create: submit, reset or button. ... */ - type?: string; - /** [Property] (Ext.Template) A Template used to create the Button's DOM structure. ... */ + /** [Property] (Boolean) */ + isAction?: bool; + /** [Property] (Ext.Template) */ template?: Ext.ITemplate; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; - /** [Method] inherit docs Disable the component - * @param silent Boolean Passing true will suppress the disable event from being fired. + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. */ - disable?( silent?:bool ): void; - /** [Method] inherit docs Enable the component - * @param silent Boolean Passing true will suppress the enable event from being fired. + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] inherit docs + * @param silent Object */ - enable?( silent?:bool ): void; + disable?( silent?:any ): void; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; + /** [Method] inherit docs + * @param silent Object + */ + enable?( silent?:any ): void; /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ getTemplateArgs?(): any; /** [Method] Gets the text for this Button */ @@ -1656,19 +2269,25 @@ declare module Ext { hasVisibleMenu?(): bool; /** [Method] Hides this button s menu if it has one */ hideMenu?(): Ext.button.IButton; - /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ + /** [Method] inherit docs */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] See comments in onFocus Allows addition of behavior to the disable operation */ + /** [Method] See comments in onFocus */ onDisable?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Sets this button s glyph - * @param glyph any the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + * @param glyph Number/String the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph */ setGlyph?( glyph?:any ): any; setGlyph?( glyph?:number ): Ext.button.IButton; @@ -1707,13 +2326,13 @@ declare module Ext { */ setTextAlign?( align?:string ): void; /** [Method] Sets the tooltip for this Button - * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + * @param tooltip String/Object This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. */ setTooltip?( tooltip?:any ): Ext.button.IButton; - /** [Method] inherit docs Sets the UI for the component - * @param ui String The new UI for the component. + /** [Method] inherit docs + * @param ui Object */ - setUI?( ui?:string ): void; + setUI?( ui?:any ): void; /** [Method] Shows this button s menu if it has one * @param fromEvent Object */ @@ -1727,26 +2346,24 @@ declare module Ext { } declare module Ext.button { export interface ICycle extends Ext.button.ISplit { - /** [Config Option] (Function) A callback function that will be invoked each time the active menu item in the button's menu has changed. ... */ + /** [Config Option] (Function) */ changeHandler?: any; - /** [Config Option] (Number/String) The charCode to be used as the static icon for this button. ... */ + /** [Config Option] (Number/String) */ forceGlyph?: any; - /** [Config Option] (String) A css class which sets an image to be used as the static icon for this button. ... */ + /** [Config Option] (String) */ forceIcon?: string; - /** [Config Option] (Object[]) An array of Ext.menu.CheckItem config objects to be used when creating the button's menu items (e.g., {text:'Foo', ic... */ - items?: Object[]; - /** [Config Option] (String) A static string to prepend before the active item's text when displayed as the button's text (only applies when showT... */ + /** [Config Option] (Object[]) */ + items?: any[]; + /** [Config Option] (String) */ prependText?: string; - /** [Config Option] (Boolean) True to display the active item's text as the button text. ... */ + /** [Config Option] (Boolean) */ showText?: bool; /** [Property] (Ext.menu.Menu) */ menu?: Ext.menu.IMenu; /** [Method] Gets the currently active menu item */ getActiveItem?(): Ext.menu.ICheckItem; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Sets the button s active menu item - * @param item Ext.menu.ICheckItem The item to activate + * @param item Ext.menu.CheckItem The item to activate * @param suppressEvent Boolean True to prevent the button's change event from firing. */ setActiveItem?( item?:Ext.menu.ICheckItem, suppressEvent?:bool ): void; @@ -1756,26 +2373,24 @@ declare module Ext.button { } declare module Ext { export interface ICycleButton extends Ext.button.ISplit { - /** [Config Option] (Function) A callback function that will be invoked each time the active menu item in the button's menu has changed. ... */ + /** [Config Option] (Function) */ changeHandler?: any; - /** [Config Option] (Number/String) The charCode to be used as the static icon for this button. ... */ + /** [Config Option] (Number/String) */ forceGlyph?: any; - /** [Config Option] (String) A css class which sets an image to be used as the static icon for this button. ... */ + /** [Config Option] (String) */ forceIcon?: string; - /** [Config Option] (Object[]) An array of Ext.menu.CheckItem config objects to be used when creating the button's menu items (e.g., {text:'Foo', ic... */ - items?: Object[]; - /** [Config Option] (String) A static string to prepend before the active item's text when displayed as the button's text (only applies when showT... */ + /** [Config Option] (Object[]) */ + items?: any[]; + /** [Config Option] (String) */ prependText?: string; - /** [Config Option] (Boolean) True to display the active item's text as the button text. ... */ + /** [Config Option] (Boolean) */ showText?: bool; /** [Property] (Ext.menu.Menu) */ menu?: Ext.menu.IMenu; /** [Method] Gets the currently active menu item */ getActiveItem?(): Ext.menu.ICheckItem; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Sets the button s active menu item - * @param item Ext.menu.ICheckItem The item to activate + * @param item Ext.menu.CheckItem The item to activate * @param suppressEvent Boolean True to prevent the button's change event from firing. */ setActiveItem?( item?:Ext.menu.ICheckItem, suppressEvent?:bool ): void; @@ -1787,22 +2402,116 @@ declare module Ext.button { export interface IManager extends Ext.IBase { } export class Manager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IButtonToggleManager extends Ext.IBase { } export class ButtonToggleManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.button { export interface ISplit extends Ext.button.IButton { - /** [Config Option] (Function) A function called when the arrow button is clicked (can be used instead of click event) ... */ + /** [Config Option] (Function) */ arrowHandler?: any; /** [Config Option] (String) */ arrowTooltip?: string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Sets this button s arrow click handler * @param handler Function The function to call when the arrow is clicked. * @param scope Object Scope for the function passed above. @@ -1812,12 +2521,10 @@ declare module Ext.button { } declare module Ext { export interface ISplitButton extends Ext.button.IButton { - /** [Config Option] (Function) A function called when the arrow button is clicked (can be used instead of click event) ... */ + /** [Config Option] (Function) */ arrowHandler?: any; /** [Config Option] (String) */ arrowTooltip?: string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Sets this button s arrow click handler * @param handler Function The function to call when the arrow is clicked. * @param scope Object Scope for the function passed above. @@ -1827,7 +2534,7 @@ declare module Ext { } declare module Ext.chart.axis { export interface IAbstract extends Ext.IBase { - /** [Config Option] (String[]) The fields of model to bind to this axis. ... */ + /** [Config Option] (String[]) */ fields?: string[]; /** [Config Option] (Ext.chart.Label) */ label?: Ext.chart.ILabel; @@ -1835,23 +2542,25 @@ declare module Ext.chart.axis { } declare module Ext.chart.axis { export interface IAxis extends Ext.chart.axis.IAbstract { - /** [Config Option] (Boolean) Whether to adjust the label at the end of the axis. ... */ + /** [Config Option] (Boolean) */ adjustEnd?: bool; - /** [Config Option] (Number) The size of the dash marker. ... */ + /** [Config Option] (Number) */ dashSize?: number; - /** [Config Option] (Boolean/Object) The grid configuration enables you to set a background grid for an axis. ... */ + /** [Config Option] (Boolean/Object) */ grid?: any; - /** [Config Option] (Number) Offset axis position. ... */ + /** [Config Option] (Boolean) */ + hidden?: bool; + /** [Config Option] (Number) */ length?: number; - /** [Config Option] (Number) If minimum and maximum are specified it forces the number of major ticks to the specified value. ... */ + /** [Config Option] (Number) */ majorTickSteps?: number; - /** [Config Option] (Number) The number of small ticks between two major ticks. ... */ + /** [Config Option] (Number) */ minorTickSteps?: number; - /** [Config Option] (String) Where to set the axis. ... */ + /** [Config Option] (String) */ position?: string; /** [Config Option] (String) */ title?: string; - /** [Config Option] (Number) Offset axis width. ... */ + /** [Config Option] (Number) */ width?: number; /** [Method] Renders the axis into the screen and updates its position * @param init Object @@ -1869,23 +2578,25 @@ declare module Ext.chart.axis { } declare module Ext.chart { export interface IAxis extends Ext.chart.axis.IAbstract { - /** [Config Option] (Boolean) Whether to adjust the label at the end of the axis. ... */ + /** [Config Option] (Boolean) */ adjustEnd?: bool; - /** [Config Option] (Number) The size of the dash marker. ... */ + /** [Config Option] (Number) */ dashSize?: number; - /** [Config Option] (Boolean/Object) The grid configuration enables you to set a background grid for an axis. ... */ + /** [Config Option] (Boolean/Object) */ grid?: any; - /** [Config Option] (Number) Offset axis position. ... */ + /** [Config Option] (Boolean) */ + hidden?: bool; + /** [Config Option] (Number) */ length?: number; - /** [Config Option] (Number) If minimum and maximum are specified it forces the number of major ticks to the specified value. ... */ + /** [Config Option] (Number) */ majorTickSteps?: number; - /** [Config Option] (Number) The number of small ticks between two major ticks. ... */ + /** [Config Option] (Number) */ minorTickSteps?: number; - /** [Config Option] (String) Where to set the axis. ... */ + /** [Config Option] (String) */ position?: string; /** [Config Option] (String) */ title?: string; - /** [Config Option] (Number) Offset axis width. ... */ + /** [Config Option] (Number) */ width?: number; /** [Method] Renders the axis into the screen and updates its position * @param init Object @@ -1903,7 +2614,7 @@ declare module Ext.chart { } declare module Ext.chart.axis { export interface ICategory extends Ext.chart.axis.IAxis { - /** [Config Option] (Boolean) Indicates whether or not to calculate the number of categories (ticks and labels) when there is not enough room to di... */ + /** [Config Option] (Boolean) */ calculateCategoryCount?: bool; /** [Config Option] (String) */ categoryNames?: string; @@ -1911,7 +2622,7 @@ declare module Ext.chart.axis { } declare module Ext.chart { export interface ICategoryAxis extends Ext.chart.axis.IAxis { - /** [Config Option] (Boolean) Indicates whether or not to calculate the number of categories (ticks and labels) when there is not enough room to di... */ + /** [Config Option] (Boolean) */ calculateCategoryCount?: bool; /** [Config Option] (String) */ categoryNames?: string; @@ -1919,7 +2630,7 @@ declare module Ext.chart { } declare module Ext.chart.axis { export interface IGauge extends Ext.chart.axis.IAbstract { - /** [Config Option] (Number) The offset positioning of the tick marks and labels in pixels. ... */ + /** [Config Option] (Number) */ margin?: number; /** [Config Option] (Number) */ maximum?: number; @@ -1937,47 +2648,47 @@ declare module Ext.chart.axis { } declare module Ext.chart.axis { export interface INumeric extends Ext.chart.axis.IAxis { - /** [Config Option] (Boolean) Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit. ... */ + /** [Config Option] (Boolean) */ adjustMaximumByMajorUnit?: bool; - /** [Config Option] (Boolean) Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit. ... */ + /** [Config Option] (Boolean) */ adjustMinimumByMajorUnit?: bool; - /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between minimum and maximum If false, all value... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Number) The number of decimals to round the value to. ... */ + /** [Config Option] (Number) */ decimals?: number; - /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + /** [Config Option] (Number) */ maximum?: number; - /** [Config Option] (Number) The minimum value drawn by the axis. ... */ + /** [Config Option] (Number) */ minimum?: number; - /** [Config Option] (String) Indicates the position of the axis relative to the chart ... */ + /** [Config Option] (String) */ position?: string; } } declare module Ext.chart { export interface INumericAxis extends Ext.chart.axis.IAxis { - /** [Config Option] (Boolean) Indicates whether to extend maximum beyond data's maximum to the nearest majorUnit. ... */ + /** [Config Option] (Boolean) */ adjustMaximumByMajorUnit?: bool; - /** [Config Option] (Boolean) Indicates whether to extend the minimum beyond data's minimum to the nearest majorUnit. ... */ + /** [Config Option] (Boolean) */ adjustMinimumByMajorUnit?: bool; - /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between minimum and maximum If false, all value... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Number) The number of decimals to round the value to. ... */ + /** [Config Option] (Number) */ decimals?: number; - /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + /** [Config Option] (Number) */ maximum?: number; - /** [Config Option] (Number) The minimum value drawn by the axis. ... */ + /** [Config Option] (Number) */ minimum?: number; - /** [Config Option] (String) Indicates the position of the axis relative to the chart ... */ + /** [Config Option] (String) */ position?: string; } } declare module Ext.chart.axis { export interface IRadial extends Ext.chart.axis.INumeric { - /** [Config Option] (Number) The maximum value drawn by the axis. ... */ + /** [Config Option] (Number) */ maximum?: number; - /** [Config Option] (String) End Definitions Indicates the position of the axis relative to the chart ... */ + /** [Config Option] (String) */ position?: string; - /** [Config Option] (Number) The number of circles to draw outward from the center. ... */ + /** [Config Option] (Number) */ steps?: number; /** [Method] Renders the labels in the axes */ drawLabel?(): void; @@ -1985,29 +2696,29 @@ declare module Ext.chart.axis { } declare module Ext.chart.axis { export interface ITime extends Ext.chart.axis.INumeric { - /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between the fromDate and toDate. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (String/Boolean) Indicates the format the date will be rendered on. ... */ + /** [Config Option] (String/Boolean) */ dateFormat?: any; - /** [Config Option] (Date) The starting date for the time axis. ... */ + /** [Config Option] (Date) */ fromDate?: any; - /** [Config Option] (Array) An array with two components: The first is the unit of the step (day, month, year, etc). ... */ + /** [Config Option] (Array) */ step?: any[]; - /** [Config Option] (Date) The ending date for the time axis. ... */ + /** [Config Option] (Date) */ toDate?: any; } } declare module Ext.chart { export interface ITimeAxis extends Ext.chart.axis.INumeric { - /** [Config Option] (Boolean) If true, the values of the chart will be rendered only if they belong between the fromDate and toDate. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (String/Boolean) Indicates the format the date will be rendered on. ... */ + /** [Config Option] (String/Boolean) */ dateFormat?: any; - /** [Config Option] (Date) The starting date for the time axis. ... */ + /** [Config Option] (Date) */ fromDate?: any; - /** [Config Option] (Array) An array with two components: The first is the unit of the step (day, month, year, etc). ... */ + /** [Config Option] (Array) */ step?: any[]; - /** [Config Option] (Date) The ending date for the time axis. ... */ + /** [Config Option] (Date) */ toDate?: any; } } @@ -2016,65 +2727,53 @@ declare module Ext.chart { } } declare module Ext.chart { - export interface IChart extends Ext.draw.IComponent,Ext.chart.IMask,Ext.chart.INavigation,Ext.chart.theme.ITheme,Ext.util.IBindable,Ext.util.IObservable { - /** [Config Option] (Boolean/Object) True for the default animation (easing: 'ease' and duration: 500) or a standard animation config object to be used fo... */ + export interface IChart extends Ext.draw.IComponent,Ext.chart.theme.ITheme,Ext.chart.IMask,Ext.chart.INavigation,Ext.util.IBindable,Ext.util.IObservable { + /** [Config Option] (Boolean/Object) */ animate?: any; - /** [Config Option] (Ext.chart.axis.Axis[]) Array of Axis instances or config objects. ... */ + /** [Config Option] (Ext.chart.axis.Axis[]) */ axes?: Ext.chart.axis.IAxis[]; - /** [Config Option] (Object/Boolean) The chart background. ... */ + /** [Config Option] (Object/Boolean) */ background?: any; - /** [Config Option] (Object[]) Define a set of gradients that can be used as fill property in sprites. ... */ - gradients?: Object[]; - /** [Config Option] (Number) The amount of inset padding in pixels for the chart. ... */ + /** [Config Option] (Object[]) */ + gradients?: any[]; + /** [Config Option] (Number) */ insetPadding?: number; - /** [Config Option] (Boolean/Object) True for the default legend display or a legend config object. ... */ + /** [Config Option] (Boolean/Object) */ legend?: any; - /** [Config Option] (Ext.chart.series.Series[]) Array of Series instances or config objects. ... */ + /** [Config Option] (Ext.chart.series.Series[]) */ series?: Ext.chart.series.ISeries[]; /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; - /** [Config Option] (String) The name of the theme to be used. ... */ + /** [Config Option] (String) */ theme?: string; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] overrides the component method to set the correct dimensions to the chart - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; - /** [Method] set the store after rendering the chart */ - afterRender?(): void; /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IAbstractStore ): void; - bindStore?( store?:string ): void; + bindStore?( store?:any, initial?:any ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Removes all listeners for this object including the managed listeners */ @@ -2082,8 +2781,9 @@ declare module Ext.chart { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -2095,13 +2795,11 @@ declare module Ext.chart { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ @@ -2109,44 +2807,40 @@ declare module Ext.chart { /** [Method] The initComponent template method is an important initialization step for a Component */ initComponent?(): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; @@ -2167,11 +2861,12 @@ declare module Ext.chart { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Restores the zoom to the original value */ @@ -2205,19 +2900,19 @@ declare module Ext.chart { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.chart { export interface IHighlight extends Ext.IBase { - /** [Config Option] (Boolean/Object) Set to true to enable highlighting using the default highlight attributes. ... */ + /** [Config Option] (Boolean/Object) */ highlight?: any; - /** [Property] (Object) The default properties to apply as a highight. ... */ + /** [Property] (Object) */ highlightCfg?: any; /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. + * @param item Object Info about the item; same format as returned by #getItemForPoint. */ highlightItem?( item?:any ): void; /** [Method] Un highlight any existing highlights */ @@ -2226,56 +2921,56 @@ declare module Ext.chart { } declare module Ext.chart { export interface ILabel extends Ext.IBase { - /** [Config Option] (Object) Object with the following properties: ... */ + /** [Config Option] (Object) */ label?: any; /** [Method] Called each time a new label is created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param storeItem Ext.data.Model The element of the store that is related to the sprite. + * @param item Object The item related to the sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden + * @param display String The label.display type. May be false if the label is hidden */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:string ): Ext.draw.ISprite; /** [Method] Called for updating the position of the label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param label Ext.draw.Sprite The sprite that draws the label. + * @param storeItem Ext.data.Model The element of the store that is related to the sprite. + * @param item Object The item related to the sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden + * @param display String The label.display type. May be false if the label is hidden * @param animate Boolean A boolean value to set or unset animations for the labels. * @param index Number The series index. */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:string, animate?:bool, index?:number ): void; } } declare module Ext.chart { export interface ILegend extends Ext.IBase { - /** [Config Option] (String) Fill style for the legend box ... */ + /** [Config Option] (String) */ boxFill?: string; - /** [Config Option] (String) Style of the stroke for the legend box ... */ + /** [Config Option] (String) */ boxStroke?: string; - /** [Config Option] (String) Width of the stroke for the legend box ... */ + /** [Config Option] (String) */ boxStrokeWidth?: string; - /** [Config Option] (Number) Sets the z-index for the legend. ... */ + /** [Config Option] (Number) */ boxZIndex?: number; - /** [Config Option] (Number) Amount of space between legend items ... */ + /** [Config Option] (Number) */ itemSpacing?: number; - /** [Config Option] (String) Color to be used for the legend labels, eg '#000' ... */ + /** [Config Option] (String) */ labelColor?: string; - /** [Config Option] (String) Font to be used for the legend labels, eg '12px Helvetica' ... */ + /** [Config Option] (String) */ labelFont?: string; - /** [Config Option] (Number) Amount of padding between the legend box's border and its items ... */ + /** [Config Option] (Number) */ padding?: number; - /** [Config Option] (String) The position of the legend in relation to the chart. ... */ + /** [Config Option] (String) */ position?: string; - /** [Config Option] (Boolean) If set to true the legend will be refreshed when the chart is. ... */ + /** [Config Option] (Boolean) */ update?: bool; - /** [Config Option] (Boolean) Whether or not the legend should be displayed. ... */ + /** [Config Option] (Boolean) */ visible?: bool; - /** [Config Option] (Number) X-position of the legend box. ... */ + /** [Config Option] (Number) */ x?: number; - /** [Config Option] (Number) Y-position of the legend box. ... */ + /** [Config Option] (Number) */ y?: number; - /** [Property] (Boolean) Whether the legend box is oriented vertically, i.e. ... */ + /** [Property] (Boolean) */ isVertical?: bool; /** [Method] toggle * @param show Boolean Whether to show or hide the legend. @@ -2297,7 +2992,7 @@ declare module Ext.chart { } declare module Ext.chart { export interface IMask extends Ext.IBase { - /** [Config Option] (Boolean/String) Enables selecting a region on chart. ... */ + /** [Config Option] (Boolean/String) */ mask?: any; } } @@ -2319,9 +3014,9 @@ declare module Ext.chart { } declare module Ext.chart.series { export interface IArea extends Ext.chart.series.ICartesian { - /** [Config Option] (Object) Append styling properties to this object for it to override theme properties. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; @@ -2337,23 +3032,6 @@ declare module Ext.chart.series { * @param item Object Info about the item; same format as returned by getItemForPoint. */ highlightSeries?( item?:any ): void; - /** [Method] Called each time a new label is created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] Called for updating the position of the label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; /** [Method] Un highlights the specified item * @param item Object Info about the item; same format as returned by getItemForPoint */ @@ -2366,21 +3044,21 @@ declare module Ext.chart.series { } declare module Ext.chart.series { export interface IBar extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ groupGutter?: number; - /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ gutter?: number; - /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + /** [Config Option] (Boolean) */ stacked?: bool; - /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ yPadding?: any; /** [Method] Draws the series for the current chart */ drawSeries?(): void; @@ -2389,96 +3067,30 @@ declare module Ext.chart.series { */ getLegendColor?( index?:any ): void; /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. + * @param item Object */ highlightItem?( item?:any ): void; - /** [Method] handled when creating a label - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback used when placing a label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; - /** [Method] Un highlight any existing highlights */ - unHighlightItem?(): void; - } -} -declare module Ext.chart { - export interface IBarChart extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ - column?: bool; - /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ - groupGutter?: number; - /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ - gutter?: number; - /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ - stacked?: bool; - /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ - style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ - type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ - xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ - yPadding?: any; - /** [Method] Draws the series for the current chart */ - drawSeries?(): void; - /** [Method] Returns a string with the color to be used for the series legend item - * @param index Object - */ - getLegendColor?( index?:any ): void; - /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. - */ - highlightItem?( item?:any ): void; - /** [Method] handled when creating a label - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback used when placing a label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; /** [Method] Un highlight any existing highlights */ unHighlightItem?(): void; } } declare module Ext.chart { export interface IBarSeries extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ groupGutter?: number; - /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ gutter?: number; - /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + /** [Config Option] (Boolean) */ stacked?: bool; - /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ yPadding?: any; /** [Method] Draws the series for the current chart */ drawSeries?(): void; @@ -2487,47 +3099,62 @@ declare module Ext.chart { */ getLegendColor?( index?:any ): void; /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. + * @param item Object */ highlightItem?( item?:any ): void; - /** [Method] handled when creating a label - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden + /** [Method] Un highlight any existing highlights */ + unHighlightItem?(): void; + } +} +declare module Ext.chart { + export interface IBarChart extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) */ + column?: bool; + /** [Config Option] (Number) */ + groupGutter?: number; + /** [Config Option] (Number) */ + gutter?: number; + /** [Config Option] (Boolean) */ + stacked?: bool; + /** [Config Option] (Object) */ + style?: any; + /** [Config Option] (String) */ + type?: string; + /** [Config Option] (Number/Object) */ + xPadding?: any; + /** [Config Option] (Number/Object) */ + yPadding?: any; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns a string with the color to be used for the series legend item + * @param index Object */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback used when placing a label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. + getLegendColor?( index?:any ): void; + /** [Method] Highlight the given series item + * @param item Object */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + highlightItem?( item?:any ): void; /** [Method] Un highlight any existing highlights */ unHighlightItem?(): void; } } declare module Ext.chart { export interface IStackedBarChart extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (Number) The gutter space between groups of bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ groupGutter?: number; - /** [Config Option] (Number) The gutter space between single bars, as a percentage of the bar width ... */ + /** [Config Option] (Number) */ gutter?: number; - /** [Config Option] (Boolean) If set to true then bars for multiple yField values will be rendered stacked on top of one another. ... */ + /** [Config Option] (Boolean) */ stacked?: bool; - /** [Config Option] (Object) Style properties that will override the theming series styles. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ yPadding?: any; /** [Method] Draws the series for the current chart */ drawSeries?(): void; @@ -2536,64 +3163,23 @@ declare module Ext.chart { */ getLegendColor?( index?:any ): void; /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. + * @param item Object */ highlightItem?( item?:any ): void; - /** [Method] handled when creating a label - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback used when placing a label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; /** [Method] Un highlight any existing highlights */ unHighlightItem?(): void; } } declare module Ext.chart.series { export interface ICartesian extends Ext.chart.series.ISeries { - /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ + /** [Config Option] (String/String[]) */ axis?: any; /** [Config Option] (String) */ xField?: string; /** [Config Option] (String/String[]) */ yField?: any; /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value - * @param record Ext.data.IModel - * @param fn Function - * @param scope Object - */ - eachYValue?( record?:Ext.data.IModel, fn?:any, scope?:any ): void; - /** [Method] Calculate the min and max values for this series s xField */ - getMinMaxXValues?(): any[]; - /** [Method] Calculate the min and max values for this series s yField s */ - getMinMaxYValues?(): any[]; - /** [Method] Returns an array of functions each of which returns the value of the yField corresponding to function s index in the */ - getYValueAccessors?(): any[]; - /** [Method] Returns the number of yField values taking into account fields combined via legend drag drop */ - getYValueCount?(): number; - } -} -declare module Ext.chart { - export interface ICartesianChart extends Ext.chart.series.ISeries { - /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ - axis?: any; - /** [Config Option] (String) */ - xField?: string; - /** [Config Option] (String/String[]) */ - yField?: any; - /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value - * @param record Ext.data.IModel + * @param record Ext.data.Model * @param fn Function * @param scope Object */ @@ -2610,14 +3196,38 @@ declare module Ext.chart { } declare module Ext.chart { export interface ICartesianSeries extends Ext.chart.series.ISeries { - /** [Config Option] (String/String[]) The position of the axis to bind the values to. ... */ + /** [Config Option] (String/String[]) */ axis?: any; /** [Config Option] (String) */ xField?: string; /** [Config Option] (String/String[]) */ yField?: any; /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value - * @param record Ext.data.IModel + * @param record Ext.data.Model + * @param fn Function + * @param scope Object + */ + eachYValue?( record?:Ext.data.IModel, fn?:any, scope?:any ): void; + /** [Method] Calculate the min and max values for this series s xField */ + getMinMaxXValues?(): any[]; + /** [Method] Calculate the min and max values for this series s yField s */ + getMinMaxYValues?(): any[]; + /** [Method] Returns an array of functions each of which returns the value of the yField corresponding to function s index in the */ + getYValueAccessors?(): any[]; + /** [Method] Returns the number of yField values taking into account fields combined via legend drag drop */ + getYValueCount?(): number; + } +} +declare module Ext.chart { + export interface ICartesianChart extends Ext.chart.series.ISeries { + /** [Config Option] (String/String[]) */ + axis?: any; + /** [Config Option] (String) */ + xField?: string; + /** [Config Option] (String/String[]) */ + yField?: any; + /** [Method] Iterates over a given record s values for each of this series s yFields executing a given function for each value + * @param record Ext.data.Model * @param fn Function * @param scope Object */ @@ -2634,75 +3244,75 @@ declare module Ext.chart { } declare module Ext.chart.series { export interface IColumn extends Ext.chart.series.IBar { - /** [Config Option] (String) The position of the axis to bind the values to. ... */ + /** [Config Option] (String) */ axis?: string; - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ - yPadding?: any; - } -} -declare module Ext.chart { - export interface IColumnChart extends Ext.chart.series.IBar { - /** [Config Option] (String) The position of the axis to bind the values to. ... */ - axis?: string; - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ - column?: bool; - /** [Config Option] (String) End Definitions The type of series. ... */ - type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ - xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ yPadding?: any; } } declare module Ext.chart { export interface IColumnSeries extends Ext.chart.series.IBar { - /** [Config Option] (String) The position of the axis to bind the values to. ... */ + /** [Config Option] (String) */ axis?: string; - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ + yPadding?: any; + } +} +declare module Ext.chart { + export interface IColumnChart extends Ext.chart.series.IBar { + /** [Config Option] (String) */ + axis?: string; + /** [Config Option] (Boolean) */ + column?: bool; + /** [Config Option] (String) */ + type?: string; + /** [Config Option] (Number/Object) */ + xPadding?: any; + /** [Config Option] (Number/Object) */ yPadding?: any; } } declare module Ext.chart { export interface IStackedColumnChart extends Ext.chart.series.IBar { - /** [Config Option] (String) The position of the axis to bind the values to. ... */ + /** [Config Option] (String) */ axis?: string; - /** [Config Option] (Boolean) Whether to set the visualization as column chart or horizontal bar chart. ... */ + /** [Config Option] (Boolean) */ column?: bool; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number/Object) Padding between the left/right axes and the bars. ... */ + /** [Config Option] (Number/Object) */ xPadding?: any; - /** [Config Option] (Number/Object) Padding between the top/bottom axes and the bars. ... */ + /** [Config Option] (Number/Object) */ yPadding?: any; } } declare module Ext.chart.series { export interface IGauge extends Ext.chart.series.ISeries { - /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + /** [Config Option] (String) */ angleField?: string; - /** [Config Option] (Boolean/Number) Use the entire disk or just a fraction of it for the gauge. ... */ + /** [Config Option] (Boolean/Number) */ donut?: any; - /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + /** [Config Option] (Number) */ highlightDuration?: number; - /** [Config Option] (Boolean) Use the Gauge Series as an area series or add a needle to it. ... */ + /** [Config Option] (Boolean) */ needle?: bool; - /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + /** [Config Option] (Boolean) */ showInLegend?: bool; - /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; @@ -2710,23 +3320,6 @@ declare module Ext.chart.series { * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ getLegendColor?( item?:any ): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; /** [Method] Sets the Gauge chart to the current specified value * @param value Object */ @@ -2735,134 +3328,83 @@ declare module Ext.chart.series { } declare module Ext.chart.series { export interface ILine extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ + /** [Config Option] (Boolean) */ fill?: bool; - /** [Config Option] (Object) The display style for the markers. ... */ + /** [Config Option] (Object) */ markerConfig?: any; - /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ + /** [Config Option] (Number) */ selectionTolerance?: number; - /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ + /** [Config Option] (Boolean) */ showMarkers?: bool; - /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ + /** [Config Option] (Boolean/Number) */ smooth?: any; - /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; - /** [Method] called when a label is to be created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] called when a label is to be created - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; - } -} -declare module Ext.chart { - export interface ILineChart extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ - fill?: bool; - /** [Config Option] (Object) The display style for the markers. ... */ - markerConfig?: any; - /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ - selectionTolerance?: number; - /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ - showMarkers?: bool; - /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ - smooth?: any; - /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ - style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ - type?: string; - /** [Method] Draws the series for the current chart */ - drawSeries?(): void; - /** [Method] called when a label is to be created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] called when a label is to be created - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; } } declare module Ext.chart { export interface ILineSeries extends Ext.chart.series.ICartesian { - /** [Config Option] (Boolean) If true, the area below the line will be filled in using the eefill and opacity config properties. ... */ + /** [Config Option] (Boolean) */ fill?: bool; - /** [Config Option] (Object) The display style for the markers. ... */ + /** [Config Option] (Object) */ markerConfig?: any; - /** [Config Option] (Number) The offset distance from the cursor position to the line series to trigger events (then used for highlighting series,... */ + /** [Config Option] (Number) */ selectionTolerance?: number; - /** [Config Option] (Boolean) Whether markers should be displayed at the data points along the line. ... */ + /** [Config Option] (Boolean) */ showMarkers?: bool; - /** [Config Option] (Boolean/Number) If set to true or a non-zero number, the line will be smoothed/rounded around its points; otherwise straight line seg... */ + /** [Config Option] (Boolean/Number) */ smooth?: any; - /** [Config Option] (Object) An object containing style properties for the visualization lines and fill. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ + type?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + } +} +declare module Ext.chart { + export interface ILineChart extends Ext.chart.series.ICartesian { + /** [Config Option] (Boolean) */ + fill?: bool; + /** [Config Option] (Object) */ + markerConfig?: any; + /** [Config Option] (Number) */ + selectionTolerance?: number; + /** [Config Option] (Boolean) */ + showMarkers?: bool; + /** [Config Option] (Boolean/Number) */ + smooth?: any; + /** [Config Option] (Object) */ + style?: any; + /** [Config Option] (String) */ type?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; - /** [Method] called when a label is to be created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] called when a label is to be created - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; } } declare module Ext.chart.series { export interface IPie extends Ext.chart.series.ISeries { - /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + /** [Config Option] (String) */ angleField?: string; /** [Config Option] (Array) */ colorSet?: any[]; - /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ + /** [Config Option] (Boolean/Number) */ donut?: any; /** [Config Option] (String) */ field?: string; - /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + /** [Config Option] (Number) */ highlightDuration?: number; - /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ + /** [Config Option] (String) */ lengthField?: string; - /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + /** [Config Option] (Boolean) */ showInLegend?: bool; - /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Config Option] (String) */ xField?: string; @@ -2876,78 +3418,6 @@ declare module Ext.chart.series { * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ highlightItem?( item?:any ): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; - /** [Method] Un highlights the specified item - * @param item Object {Object} Info about the item; same format as returned by getItemForPoint - */ - unHighlightItem?( item?:any ): void; - } -} -declare module Ext.chart { - export interface IPieChart extends Ext.chart.series.ISeries { - /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ - angleField?: string; - /** [Config Option] (Array) */ - colorSet?: any[]; - /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ - donut?: any; - /** [Config Option] (String) */ - field?: string; - /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ - highlightDuration?: number; - /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ - lengthField?: string; - /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ - showInLegend?: bool; - /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ - style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ - type?: string; - /** [Config Option] (String) */ - xField?: string; - /** [Method] Draws the series for the current chart */ - drawSeries?(): void; - /** [Method] Returns the color of the series to be displayed as color for the series legend item - * @param item Object {Object} Info about the item; same format as returned by getItemForPoint - */ - getLegendColor?( item?:any ): void; - /** [Method] Highlight the specified item - * @param item Object {Object} Info about the item; same format as returned by getItemForPoint - */ - highlightItem?( item?:any ): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; /** [Method] Un highlights the specified item * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ @@ -2956,23 +3426,23 @@ declare module Ext.chart { } declare module Ext.chart { export interface IPieSeries extends Ext.chart.series.ISeries { - /** [Config Option] (String) The store record field name to be used for the pie angles. ... */ + /** [Config Option] (String) */ angleField?: string; /** [Config Option] (Array) */ colorSet?: any[]; - /** [Config Option] (Boolean/Number) Whether to set the pie chart as donut chart. ... */ + /** [Config Option] (Boolean/Number) */ donut?: any; /** [Config Option] (String) */ field?: string; - /** [Config Option] (Number) The duration for the pie slice highlight effect. ... */ + /** [Config Option] (Number) */ highlightDuration?: number; - /** [Config Option] (String) The store record field name to be used for the pie slice lengths. ... */ + /** [Config Option] (String) */ lengthField?: string; - /** [Config Option] (Boolean) Whether to add the pie chart elements as legend items. ... */ + /** [Config Option] (Boolean) */ showInLegend?: bool; - /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Config Option] (String) */ xField?: string; @@ -2986,23 +3456,44 @@ declare module Ext.chart { * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ highlightItem?( item?:any ): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden + /** [Method] Un highlights the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. + unHighlightItem?( item?:any ): void; + } +} +declare module Ext.chart { + export interface IPieChart extends Ext.chart.series.ISeries { + /** [Config Option] (String) */ + angleField?: string; + /** [Config Option] (Array) */ + colorSet?: any[]; + /** [Config Option] (Boolean/Number) */ + donut?: any; + /** [Config Option] (String) */ + field?: string; + /** [Config Option] (Number) */ + highlightDuration?: number; + /** [Config Option] (String) */ + lengthField?: string; + /** [Config Option] (Boolean) */ + showInLegend?: bool; + /** [Config Option] (Object) */ + style?: any; + /** [Config Option] (String) */ + type?: string; + /** [Config Option] (String) */ + xField?: string; + /** [Method] Draws the series for the current chart */ + drawSeries?(): void; + /** [Method] Returns the color of the series to be displayed as color for the series legend item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + getLegendColor?( item?:any ): void; + /** [Method] Highlight the specified item + * @param item Object {Object} Info about the item; same format as returned by getItemForPoint + */ + highlightItem?( item?:any ): void; /** [Method] Un highlights the specified item * @param item Object {Object} Info about the item; same format as returned by getItemForPoint */ @@ -3011,15 +3502,15 @@ declare module Ext.chart { } declare module Ext.chart.series { export interface IRadar extends Ext.chart.series.ISeries { - /** [Config Option] (Object) The display style for the markers. ... */ + /** [Config Option] (Object) */ markerConfig?: any; - /** [Config Option] (Boolean) Whether to show this series in the legend. ... */ + /** [Config Option] (Boolean) */ showInLegend?: bool; - /** [Config Option] (Boolean) Whether markers should be displayed at the data points of the series. ... */ + /** [Config Option] (Boolean) */ showMarkers?: bool; - /** [Config Option] (Object) An object containing styles for overriding series styles from Theming. ... */ + /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Config Option] (String) */ xField?: string; @@ -3027,23 +3518,6 @@ declare module Ext.chart.series { yField?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; } } declare module Ext.chart.series { @@ -3052,64 +3526,47 @@ declare module Ext.chart.series { markerConfig?: any; /** [Config Option] (Object) */ style?: any; - /** [Config Option] (String) End Definitions The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Method] Draws the series for the current chart */ drawSeries?(): void; - /** [Method] callback for when creating a label sprite - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden - */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; - /** [Method] callback for when placing a label sprite - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). - * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden - * @param animate Boolean A boolean value to set or unset animations for the labels. - * @param index Number The series index. - */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; } } declare module Ext.chart.series { - export interface ISeries extends Ext.IBase,Ext.chart.ICallout,Ext.chart.IHighlight,Ext.chart.ILabel,Ext.chart.ITip,Ext.util.IObservable { - /** [Config Option] (Boolean/Object) If set to true it will highlight the markers or the series when hovering with the mouse. ... */ + export interface ISeries extends Ext.IBase,Ext.util.IObservable,Ext.chart.ILabel,Ext.chart.IHighlight,Ext.chart.ITip,Ext.chart.ICallout { + /** [Config Option] (Boolean/Object) */ highlight?: any; - /** [Config Option] (Object) An (optional) object with event callbacks. ... */ + /** [Config Option] (Object) */ listeners?: any; - /** [Config Option] (Function) A function that can be overridden to set custom styling properties to each rendered element. ... */ + /** [Config Option] (Function) */ renderer?: any; /** [Config Option] (Array) */ shadowAttributes?: any[]; - /** [Config Option] (Boolean) Whether to show this series in the legend. ... */ + /** [Config Option] (Boolean) */ showInLegend?: bool; - /** [Config Option] (Object) Add tooltips to the visualization's markers. ... */ + /** [Config Option] (Object) */ tips?: any; /** [Config Option] (String) */ title?: string; - /** [Config Option] (String) The type of series. ... */ + /** [Config Option] (String) */ type?: string; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -3124,8 +3581,9 @@ declare module Ext.chart.series { */ eachRecord?( fn?:any, scope?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -3137,7 +3595,7 @@ declare module Ext.chart.series { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] For a given x y point relative to the Surface find a corresponding item from this series if any * @param x Number * @param y Number @@ -3156,7 +3614,7 @@ declare module Ext.chart.series { /** [Method] Hides all the elements in the series */ hideAll?(): void; /** [Method] Highlight the given series item - * @param item Object Info about the item; same format as returned by getItemForPoint. + * @param item Object Info about the item; same format as returned by #getItemForPoint. */ highlightItem?( item?:any ): void; /** [Method] Determines whether the series item at the given index has been excluded i e @@ -3164,47 +3622,48 @@ declare module Ext.chart.series { */ isExcluded?( index?:any ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Called each time a new label is created - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param storeItem Ext.data.Model The element of the store that is related to the sprite. + * @param item Object The item related to the sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). * @param i Number The index of the element created (i.e the first created label, second created label, etc). - * @param display Boolean The display type. May be false if the label is hidden + * @param display String The label.display type. May be false if the label is hidden */ - onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool ): Ext.draw.ISprite; + onCreateLabel?( storeItem?:Ext.data.IModel, item?:any, i?:number, display?:string ): Ext.draw.ISprite; /** [Method] Called for updating the position of the label - * @param label Ext.draw.ISprite The sprite label. - * @param storeItem Ext.data.IModel The element of the store that is related to the label sprite. - * @param item Object The item related to the label sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). + * @param label Ext.draw.Sprite The sprite that draws the label. + * @param storeItem Ext.data.Model The element of the store that is related to the sprite. + * @param item Object The item related to the sprite. An item is an object containing the position of the shape used to describe the visualization and also pointing to the actual shape (circle, rectangle, path, etc). * @param i Number The index of the element to be updated (i.e. whether it is the first, second, third from the labelGroup) - * @param display Boolean The display type. May be false if the label is hidden + * @param display String The label.display type. May be false if the label is hidden * @param animate Boolean A boolean value to set or unset animations for the labels. * @param index Number The series index. */ - onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:bool, animate?:bool, index?:number ): void; + onPlaceLabel?( label?:Ext.draw.ISprite, storeItem?:Ext.data.IModel, item?:any, i?:number, display?:string, animate?:bool, index?:number ): void; /** [Method] Relays selected events from the specified Observable as if the events were fired by this * @param origin Object The Observable whose events this object is to relay. * @param events String[] Array of event names to relay. @@ -3218,11 +3677,12 @@ declare module Ext.chart.series { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -3260,6 +3720,54 @@ declare module Ext.chart { export interface IShape extends Ext.IBase { } export class Shape { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.chart.theme { @@ -3280,25 +3788,25 @@ declare module Ext.chart { } declare module Ext { export interface IClass { - /** [Config Option] (String[]) List of short aliases for class names. ... */ + /** [Config Option] (String[]) */ alias?: string[]; - /** [Config Option] (String/String[]) Defines alternate names for this class. ... */ + /** [Config Option] (String/String[]) */ alternateClassName?: any; - /** [Config Option] (Object) List of configuration options with their default values, for which automatically accessor methods are generated. ... */ + /** [Config Option] (Object) */ config?: any; - /** [Config Option] (String) The parent class that this class extends. ... */ + /** [Config Option] (String) */ extend?: string; - /** [Config Option] (Object) List of inheritable static methods for this class. ... */ + /** [Config Option] (Object) */ inheritableStatics?: any; - /** [Config Option] (String[]/Object) List of classes to mix into this class. ... */ + /** [Config Option] (String[]/Object) */ mixins?: any; - /** [Config Option] (String[]) List of classes that have to be loaded before instantiating this class. ... */ + /** [Config Option] (String[]) */ requires?: string[]; - /** [Config Option] (Boolean) When set to true, the class will be instantiated as singleton. ... */ + /** [Config Option] (Boolean) */ singleton?: bool; - /** [Config Option] (Object) List of static methods for this class. ... */ + /** [Config Option] (Object) */ statics?: any; - /** [Config Option] (String[]) List of optional classes to load together with this class. ... */ + /** [Config Option] (String[]) */ uses?: string[]; } } @@ -3314,6 +3822,12 @@ declare module Ext { * @param alternates Object The set of mappings of the form className : [values...] */ static addNameAlternateMappings( alternates?:any ): Ext.IClassManager; + /** [Method] Defines a class + * @param className Object + * @param data Object + * @param createdFn Object + */ + static create( className?:any, data?:any, createdFn?:any ): void; /** [Method] Retrieve a class by its name * @param name String */ @@ -3335,7 +3849,7 @@ declare module Ext { */ static getDisplayName( object?:any ): string; /** [Method] Get the name of the class by its reference or its instance getName is usually invoked by the shorthand Ext getClass - * @param object any + * @param object Ext.Class/Object */ static getName( object?:any ): string; /** [Method] Get the name of a class by its alias @@ -3365,8 +3879,8 @@ declare module Ext { */ static set( name?:string, value?:any ): Ext.IClassManager; /** [Method] Register the alias for a class - * @param cls any a reference to a class or a className - * @param alias any Alias to use when referring to this class + * @param cls Ext.Class/String a reference to a class or a className + * @param alias String Alias to use when referring to this class */ static setAlias( cls?:any, alias?:any ): any; static setAlias( cls?:Ext.IClass, alias?:string ): Ext.IClassManager; @@ -3380,48 +3894,42 @@ declare module Ext { } declare module Ext { export interface IComponent extends Ext.IAbstractComponent,Ext.util.IFloating { - /** [Config Option] (Boolean) true to use overflow:'auto' on the components layout element and show scroll bars automatically when necessary, false... */ + /** [Config Option] (Boolean) */ autoScroll?: bool; - /** [Config Option] (Number/String) Defines the column width inside column layout. ... */ + /** [Config Option] (Number/String) */ columnWidth?: any; - /** [Config Option] (Ext.util.Region/Ext.Element) A Region (or an element from which a Region measurement will be read) which is used to constrain the component. ... */ + /** [Config Option] (Ext.util.Region/Ext.Element) */ constrainTo?: any; - /** [Config Option] (String) The default Ext.Element#getAlignToXY anchor position value for this menu relative to its element of origin. ... */ + /** [Config Option] (Object/String) */ + constraintInsets?: any; + /** [Config Option] (String) */ defaultAlign?: string; - /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + /** [Config Option] (Boolean) */ floating?: bool; - /** [Config Option] (Boolean) When inside FormPanel, any component configured with formBind: true will be enabled/disabled depending on the validit... */ + /** [Config Option] (Boolean) */ formBind?: bool; - /** [Config Option] (String) Possible values are: * 'auto' to enable automatic horizontal scrollbar (overflow-x: 'auto'). ... */ + /** [Config Option] (String) */ overflowX?: string; - /** [Config Option] (String) Possible values are: * 'auto' to enable automatic vertical scrollbar (overflow-y: 'auto'). ... */ + /** [Config Option] (String) */ overflowY?: string; - /** [Config Option] ("north"/"south"/"east"/"west"/"center") Defines the region inside border layout. ... */ + /** [Config Option] ("north"/"south"/"east"/"west"/"center") */ region?: any; - /** [Config Option] (Boolean/Object) Specify as true to apply a Resizer to this Component after rendering. ... */ + /** [Config Option] (Boolean/Object) */ resizable?: any; - /** [Config Option] (String) A valid Ext.resizer.Resizer handles config string. ... */ + /** [Config Option] (String) */ resizeHandles?: string; - /** [Config Option] (Boolean) True to automatically call toFront when the show method is called on an already visible, floating component. ... */ + /** [Config Option] (Boolean) */ toFrontOnShow?: bool; - /** [Property] (Ext.Container) Only present for floating Components which were inserted as child items of Containers. ... */ + /** [Property] (Ext.Container) */ floatParent?: Ext.IContainer; - /** [Property] (Object) An object property which provides unified information as to which dimensions are scrollable based upon the autoScroll... */ + /** [Property] (Object) */ scrollFlags?: any; - /** [Property] (Ext.ZIndexManager) Only present for floating Components after they have been rendered. ... */ + /** [Property] (Ext.ZIndexManager) */ zIndexManager?: Ext.IZIndexManager; - /** [Property] (Ext.Container) Only present for floating Components which were inserted as child items of Containers, and which have a floating Cont... */ + /** [Property] (Ext.Container) */ zIndexParent?: Ext.IContainer; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; /** [Method] Invoked after the Component has been hidden * @param callback Function * @param scope Object @@ -3430,17 +3938,20 @@ declare module Ext { /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Template method called after a Component has been positioned - * @param x Number - * @param y Number + * @param ax Object + * @param ay Object */ - afterSetPosition?( x?:number, y?:number ): void; + afterSetPosition?( ax?:any, ay?:any ): void; /** [Method] Invoked after the Component is shown after onShow is called - * @param animateTarget String + * @param animateTarget String/Ext.Element * @param callback Function * @param scope Object */ + afterShow?( animateTarget?:any, callback?:any, scope?:any ): any; afterShow?( animateTarget?:string, callback?:any, scope?:any ): void; afterShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Occurs before componentLayout is run */ + beforeLayout?(): void; /** [Method] Invoked before the Component is shown */ beforeShow?(): void; /** [Method] Bubbles up the component container heirarchy calling the specified function with each component @@ -3458,8 +3969,9 @@ declare module Ext { */ cloneConfig?( overrides?:any ): Ext.IComponent; /** [Method] Moves this floating Component into a constrain region - * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. */ + doConstrain?( constrainTo?:any ): any; doConstrain?( constrainTo?:string ): void; doConstrain?( constrainTo?:HTMLElement ): void; doConstrain?( constrainTo?:Ext.IElement ): void; @@ -3469,18 +3981,20 @@ declare module Ext { */ findParentBy?( fn?:any ): Ext.container.IContainer; /** [Method] Find a container above this component at any level by xtype or class See also the up method - * @param xtype any The xtype string for a component, or the class of the component directly + * @param xtype String/Ext.Class The xtype string for a component, or the class of the component directly */ findParentByType?( xtype?:any ): any; findParentByType?( xtype?:string ): Ext.container.IContainer; findParentByType?( xtype?:Ext.IClass ): Ext.container.IContainer; /** [Method] Try to focus this component - * @param selectText any If applicable, true to also select the text in this component - * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param selectText Boolean If applicable, true to also select the text in this component + * @param delay Boolean/Number Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param callback Function Only needed if the delay parameter is used. A function to call upon focus. + * @param scope Function Only needed if the delay parameter is used. The scope (this reference) in which to execute the callback. */ - focus?( selectText?:any, delay?:any ): any; - focus?( selectText?:bool, delay?:bool ): Ext.IComponent; - focus?( selectText?:bool, delay?:number ): Ext.IComponent; + focus?( selectText?:any, delay?:any, callback?:any, scope?:any ): any; + focus?( selectText?:bool, delay?:bool, callback?:any, scope?:any ): Ext.IComponent; + focus?( selectText?:bool, delay?:number, callback?:any, scope?:any ): Ext.IComponent; /** [Method] Implements an upward event bubbling policy */ getBubbleTarget?(): void; /** [Method] Retrieves the top level element representing this component */ @@ -3491,14 +4005,12 @@ declare module Ext { * @param local Boolean If true the element's left and top are returned instead of page XY. */ getPosition?( local?:bool ): number[]; - /** [Method] Used by ComponentQuery and the up method to find the owning Component in the linkage hierarchy */ - getRefOwner?(): void; /** [Method] Gets the xtype for this component as registered with Ext ComponentManager */ getXType?(): string; /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param animateTarget String/Ext.Element/Ext.Component only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. + * @param callback Function A callback function to call after the Component is hidden. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to this Component. */ hide?( animateTarget?:any, callback?:any, scope?:any ): any; hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; @@ -3506,26 +4018,25 @@ declare module Ext { hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; /** [Method] The initComponent template method is an important initialization step for a Component */ initComponent?(): void; - /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event - * @param container Ext.container.IContainer Container which holds the component. - * @param pos Number Position at which the component was added. - */ - onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event */ + onAdded?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; /** [Method] Possibly animates down to a target element - * @param animateTarget String + * @param animateTarget String/Ext.Element/Ext.Component * @param callback Function * @param scope Object */ + onHide?( animateTarget?:any, callback?:any, scope?:any ): any; onHide?( animateTarget?:string, callback?:any, scope?:any ): void; onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String + * @param animateTarget String/Ext.Element * @param callback Function * @param scope Object */ + onShow?( animateTarget?:any, callback?:any, scope?:any ): any; onShow?( animateTarget?:string, callback?:any, scope?:any ): void; onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; /** [Method] Invoked after the afterShow method is complete @@ -3534,22 +4045,26 @@ declare module Ext { */ onShowComplete?( callback?:any, scope?:any ): void; /** [Method] Scrolls this Component s target element by the passed delta values optionally animating - * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. - * @param deltaY any Either the y delta, or an animate flag or config object. - * @param animate any Animate flag/config object if the delta values were passed separately. + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. */ scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): void; /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th * @param active Boolean True to activate the Component, false to deactivate it. - * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + * @param newActive Ext.Component The newly active Component which is taking over topmost zIndex position. */ setActive?( active?:bool, newActive?:Ext.IComponent ): void; /** [Method] Sets the overflow on the content element of the component * @param scroll Boolean True to allow the Component to auto scroll. */ setAutoScroll?( scroll?:bool ): Ext.IComponent; + /** [Method] This method changes the region config property for this border region + * @param region String The new region value ("north", "south", "east" or "west"). + */ + setBorderRegion?( region?:string ): string; /** [Method] This method allows you to show or hide a LoadMask on top of this component - * @param load any True to show the default LoadMask, a config object that will be passed to the LoadMask constructor, or a message String to show. False to hide the current LoadMask. + * @param load Boolean/Object/String True to show the default LoadMask, a config object that will be passed to the LoadMask constructor, or a message String to show. False to hide the current LoadMask. * @param targetEl Boolean True to mask the targetEl of this Component instead of the this.el. For example, setting this to true on a Panel will cause only the body to be masked. */ setLoading?( load?:any, targetEl?:bool ): Ext.ILoadMask; @@ -3559,43 +4074,47 @@ declare module Ext { */ setOverflowXY?( overflowX?:string, overflowY?:string ): Ext.IComponent; /** [Method] Sets the page XY position of the component - * @param x any The new x position or an array of [x,y]. - * @param y any The new y position. - * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + * @param x Number/Number[] The new x position or an array of [x,y]. + * @param y Number The new y position. + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. */ setPagePosition?( x?:any, y?:any, animate?:any ): any; setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; /** [Method] Sets the left and top of the component - * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. + * @param x Number/Number[]/Object The new left, an array of [x,y], or animation config object containing x and y properties. * @param y Number The new top. - * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. + * @param animate Boolean/Object If true, the Component is animated into its new position. You may also pass an animation configuration. */ setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the weight config property for this component + * @param weight Number The new weight value. + */ + setRegionWeight?( weight?:number ): number; /** [Method] Shows this Component rendering it first if autoRender or floating are true - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. - * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param animateTarget String/Ext.Element only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. + * @param callback Function A callback function to call after the Component is displayed. Only necessary if animation was specified. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to this Component. */ show?( animateTarget?:any, callback?:any, scope?:any ): any; show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; /** [Method] Displays component at specific xy position - * @param x any The new x position or array of [x,y]. - * @param y any The new y position - * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. + * @param x Number/Number[] The new x position or array of [x,y]. + * @param y Number The new y position + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. */ showAt?( x?:any, y?:any, animate?:any ): any; showAt?( x?:number, y?:number, animate?:any ): Ext.IComponent; showAt?( x?:number[], y?:number, animate?:any ): Ext.IComponent; /** [Method] Shows this component by the specified Component or Element - * @param component any The Ext.Component or Ext.Element to show the component by. - * @param position any Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. - * @param offsets any Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + * @param component Ext.Component/Ext.dom.Element The Ext.Component or Ext.Element to show the component by. + * @param position String Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. + * @param offsets Number[] Alignment offsets as used by Ext.util.Positionable.getAlignToXY. */ showBy?( component?:any, position?:any, offsets?:any ): any; showBy?( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; - showBy?( component?:Ext.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + showBy?( component?:Ext.dom.IElement, position?:string, offsets?:number[] ): Ext.IComponent; /** [Method] Sends this Component to the back of lower z index than any other visible windows */ toBack?(): Ext.IComponent; /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag @@ -3610,15 +4129,16 @@ declare module Ext { } declare module Ext { export interface IComponentLoader extends Ext.IElementLoader { - /** [Config Option] (Boolean/Object) True or a Ext.LoadMask configuration to enable masking during loading. ... */ + /** [Config Option] (Boolean/Object) */ loadMask?: any; - /** [Config Option] (Boolean) True to parse any inline script tags in the response. ... */ + /** [Config Option] (Boolean) */ scripts?: bool; - /** [Config Option] (Ext.Component/String) The target Ext.Component for the loader. ... */ + /** [Config Option] (Ext.Component/String) */ target?: any; /** [Method] Set a Ext Component as the target of this loader - * @param target String The component to be the target of this loader. If a string is passed it will be looked up via its id. + * @param target String/Ext.Component The component to be the target of this loader. If a string is passed it will be looked up via its id. */ + setTarget?( target?:any ): any; setTarget?( target?:string ): void; setTarget?( target?:Ext.IComponent ): void; } @@ -3627,98 +4147,286 @@ declare module Ext { export interface IComponentManager extends Ext.IAbstractManager { } export class ComponentManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Creates a new Component from the specified config object using the config object s xtype to determine the class to in * @param config Object A configuration object for the Component you wish to create. * @param defaultType String The xtype to use if the config object does not contain a xtype. (Optional if the config contains a xtype). */ static create( config?:any, defaultType?:string ): Ext.IComponent; - /** [Method] Registers a new item constructor keyed by a type key - * @param type String The mnemonic string by which the class may be looked up. - * @param cls Function The new instance class. + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. */ - static registerType( type?:string, cls?:any ): void; + static each( fn?:any, scope?:any ): void; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Registers a new item constructor keyed by a type key + * @param type Object + * @param cls Object + */ + static registerType( type?:any, cls?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IComponentMgr extends Ext.IAbstractManager { } export class ComponentMgr { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Creates a new Component from the specified config object using the config object s xtype to determine the class to in * @param config Object A configuration object for the Component you wish to create. * @param defaultType String The xtype to use if the config object does not contain a xtype. (Optional if the config contains a xtype). */ static create( config?:any, defaultType?:string ): Ext.IComponent; - /** [Method] Registers a new item constructor keyed by a type key - * @param type String The mnemonic string by which the class may be looked up. - * @param cls Function The new instance class. + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. */ - static registerType( type?:string, cls?:any ): void; + static each( fn?:any, scope?:any ): void; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Registers a new item constructor keyed by a type key + * @param type Object + * @param cls Object + */ + static registerType( type?:any, cls?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IComponentQuery extends Ext.IBase { } export class ComponentQuery { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Tests whether the passed Component matches the selector string - * @param component Ext.IComponent The Component to test + * @param component Ext.Component The Component to test * @param selector String The selector string to test against. */ static is( component?:Ext.IComponent, selector?:string ): bool; /** [Method] Returns an array of matched Components from within the passed root object * @param selector String The selector string to filter returned Components - * @param root Ext.container.IContainer The Container within which to perform the query. If omitted, all Components within the document are included in the search. This parameter may also be an array of Components to filter according to the selector. + * @param root Ext.container.Container The Container within which to perform the query. If omitted, all Components within the document are included in the search. This parameter may also be an array of Components to filter according to the selector. */ static query( selector?:string, root?:Ext.container.IContainer ): Ext.IComponent[]; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.container { - export interface IAbstractContainer extends Ext.IComponent { - /** [Config Option] (String/Number) A string component id or the numeric index of the component that should be initially activated within the container's... */ + export interface IAbstractContainer extends Ext.IComponent,Ext.IQueryable { + /** [Config Option] (String/Number) */ activeItem?: any; - /** [Config Option] (Boolean) If true the container will automatically destroy any contained component that is removed from it, else destruction mu... */ + /** [Config Option] (Boolean) */ autoDestroy?: bool; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String[]) An array of events that, when fired, should be bubbled to any parent container. ... */ + /** [Config Option] (String[]) */ bubbleEvents?: string[]; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Object/Function) This option is a means of applying default settings to all added items whether added through the items config or via ... */ + /** [Config Option] (Object/Function) */ defaults?: any; - /** [Config Option] (Boolean) True to move any component to the detachedBody when the component is removed from this container. ... */ + /** [Config Option] (Boolean) */ detachOnRemove?: bool; - /** [Config Option] (Object/Object[]) A single item, or an array of child Components to be added to this container Unless configured with a layout, a Cont... */ + /** [Config Option] (Object/Object[]) */ items?: any; - /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Ext.XTemplate/String/String[]) End Definitions An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean) If true, suspend calls to doLayout. ... */ + /** [Config Option] (Boolean) */ suspendLayout?: bool; /** [Method] Adds Component s to this Container - * @param component any Either one or more Components to add or an Array of Components to add. See items for additional information. + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. */ add?( component?:any ): Ext.IComponent[]; /** [Method] Adds Component s to this Container - * @param component any Either one or more Components to add or an Array of Components to add. See items for additional information. + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. */ add?( component?:any ): Ext.IComponent; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components - * @param layout Ext.layout.container.IContainer + * @param layout Ext.layout.container.Container */ afterLayout?( layout?:Ext.layout.container.IContainer ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified * @param fn Function The function to call * @param scope Object The scope of the function (defaults to current component) @@ -3726,30 +4434,28 @@ declare module Ext.container { */ cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; /** [Method] Retrieves the first direct child of this container which matches the passed selector or component - * @param selector any An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. */ child?( selector?:any ): any; child?( selector?:string ): any; child?( selector?:Ext.IComponent ): any; /** [Method] Determines whether the passed Component is either an immediate child of this Container or whether it is a descendant - * @param comp Ext.IComponent The Component to test. + * @param comp Ext.Component The Component to test. * @param deep Boolean Pass true to test for the Component being a descendant at any level. */ contains?( comp?:Ext.IComponent, deep?:bool ): bool; - /** [Method] Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets - * @param silent Boolean Passing true will suppress the disable event from being fired. - */ - disable?( silent?:bool ): Ext.container.IAbstractContainer; + /** [Method] Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets */ + disable?(): Ext.container.IAbstractContainer; /** [Method] Manually force this container s layout to be recalculated */ doLayout?(): Ext.container.IContainer; /** [Method] Retrieves the first descendant of this container which matches the passed selector - * @param selector any An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. */ down?( selector?:any ): any; down?( selector?:string ): any; down?( selector?:Ext.IComponent ): any; /** [Method] Examines this container s items property and gets a direct child component of this container - * @param comp any This parameter may be any of the following: a String : representing the itemId or id of the child component. a Number : representing the position of the child component within the items property For additional information see Ext.util.MixedCollection.get. + * @param comp String/Number This parameter may be any of the following: a String : representing the itemId or id of the child component. a Number : representing the position of the child component within the items property For additional information see Ext.util.MixedCollection.get. */ getComponent?( comp?:any ): any; getComponent?( comp?:string ): Ext.IComponent; @@ -3760,48 +4466,40 @@ declare module Ext.container { * @param deep Object */ getRefItems?( deep?:any ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Inserts a Component into this Container at a specified index * @param index Number The index at which the Component will be inserted into the Container's items collection - * @param component any The child Component to insert. Ext uses lazy rendering, and will only render the inserted Component should it become necessary. A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.enums.Widget. + * @param component Ext.Component/Object The child Component to insert. Ext uses lazy rendering, and will only render the inserted Component should it become necessary. A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.enums.Widget. */ insert?( index?:number, component?:any ): Ext.IComponent; /** [Method] Determines whether this Container is an ancestor of the passed Component - * @param possibleDescendant Ext.IComponent The Component to test for presence within this Container's subtree. + * @param possibleDescendant Ext.Component The Component to test for presence within this Container's subtree. */ isAncestor?( possibleDescendant?:Ext.IComponent ): void; /** [Method] Moves a Component within the Container - * @param fromIdx Number The index the Component you wish to move is currently at. + * @param fromIdx Number/Ext.Component The index/component to move. * @param toIdx Number The new index for the Component. */ + move?( fromIdx?:any, toIdx?:any ): any; move?( fromIdx?:number, toIdx?:number ): Ext.IComponent; + move?( fromIdx?:Ext.IComponent, toIdx?:number ): Ext.IComponent; /** [Method] This method is invoked after a new Component has been added - * @param component Ext.IComponent + * @param component Ext.Component * @param position Number */ onAdd?( component?:Ext.IComponent, position?:number ): void; /** [Method] This method is invoked before adding a new child Component - * @param item Ext.IComponent + * @param item Ext.Component */ onBeforeAdd?( item?:Ext.IComponent ): void; - /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need - * @param x Number The new x position. - * @param y Number The new y position. - */ - onPosition?( x?:number, y?:number ): void; + /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need */ + onPosition?(): void; /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent + * @param component Ext.Component * @param autoDestroy Boolean */ onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; - /** [Method] Allows addition of behavior to the resize operation - * @param width Object - * @param height Object - * @param oldWidth Object - * @param oldHeight Object - */ - onResize?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; + /** [Method] Allows addition of behavior to the resize operation */ + onResize?(): void; /** [Method] Retrieves all descendant components which match the passed selector * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. */ @@ -3816,8 +4514,8 @@ declare module Ext.container { */ queryById?( id?:string ): Ext.IComponent; /** [Method] Removes a component from this container - * @param component any The component reference or id to remove. - * @param autoDestroy any True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + * @param component Ext.Component/String The component reference or id to remove. + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. */ remove?( component?:any, autoDestroy?:any ): any; remove?( component?:Ext.IComponent, autoDestroy?:bool ): Ext.IComponent; @@ -3830,59 +4528,55 @@ declare module Ext.container { } declare module Ext.container { export interface IButtonGroup extends Ext.panel.IPanel { - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) The columns configuration property passed to the configured layout manager. ... */ + /** [Config Option] (Number) */ columns?: number; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + /** [Config Option] (String) */ titleAlign?: string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] private This method is invoked before adding a new child Component - * @param item Ext.IComponent + /** [Method] private + * @param component Object */ - onBeforeAdd?( item?:Ext.IComponent ): void; + onBeforeAdd?( component?:any ): void; } } declare module Ext { export interface IButtonGroup extends Ext.panel.IPanel { - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) The columns configuration property passed to the configured layout manager. ... */ + /** [Config Option] (Number) */ columns?: number; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + /** [Config Option] (String) */ titleAlign?: string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] private This method is invoked before adding a new child Component - * @param item Ext.IComponent + /** [Method] private + * @param component Object */ - onBeforeAdd?( item?:Ext.IComponent ): void; + onBeforeAdd?( component?:any ): void; } } declare module Ext.container { export interface IContainer extends Ext.container.IAbstractContainer { - /** [Config Option] (Number/Object) Defines the anchoring size of container. ... */ + /** [Config Option] (Number/Object) */ anchorSize?: any; /** [Method] Return the immediate child Component in which the passed element is located - * @param el any The element to test (or ID of element). - * @param deep any If true, returns the deepest descendant Component which contains the passed element. + * @param el Ext.Element/HTMLElement/String The element to test (or ID of element). + * @param deep Boolean If true, returns the deepest descendant Component which contains the passed element. */ getChildByElement?( el?:any, deep?:any ): any; getChildByElement?( el?:Ext.IElement, deep?:bool ): Ext.IComponent; @@ -3892,11 +4586,11 @@ declare module Ext.container { } declare module Ext { export interface IContainer extends Ext.container.IAbstractContainer { - /** [Config Option] (Number/Object) Defines the anchoring size of container. ... */ + /** [Config Option] (Number/Object) */ anchorSize?: any; /** [Method] Return the immediate child Component in which the passed element is located - * @param el any The element to test (or ID of element). - * @param deep any If true, returns the deepest descendant Component which contains the passed element. + * @param el Ext.Element/HTMLElement/String The element to test (or ID of element). + * @param deep Boolean If true, returns the deepest descendant Component which contains the passed element. */ getChildByElement?( el?:any, deep?:any ): any; getChildByElement?( el?:Ext.IElement, deep?:bool ): Ext.IComponent; @@ -3906,15 +4600,15 @@ declare module Ext { } declare module Ext.container { export interface IDockingContainer extends Ext.IBase { - /** [Config Option] (Object) This object holds the default weights applied to dockedItems that have no weight. ... */ + /** [Config Option] (Object) */ defaultDockWeights?: any; /** [Method] Adds docked item s to the container - * @param component any The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). * @param pos Number The index at which the Component will be added */ addDocked?( component?:any, pos?:number ): Ext.IComponent[]; /** [Method] Finds a docked component by id itemId or position - * @param comp any The id, itemId or position of the docked component (see getComponent for details) + * @param comp String/Number The id, itemId or position of the docked component (see getComponent for details) */ getDockedComponent?( comp?:any ): any; getDockedComponent?( comp?:string ): Ext.IComponent; @@ -3926,19 +4620,19 @@ declare module Ext.container { getDockedItems?( selector?:string, beforeBody?:bool ): Ext.IComponent[]; /** [Method] Inserts docked item s to the panel at the indicated position * @param pos Number The index at which the Component will be inserted - * @param component any The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). */ insertDocked?( pos?:number, component?:any ): void; /** [Method] Invoked after a docked item is added to the Panel - * @param component Ext.IComponent + * @param component Ext.Component */ onDockedAdd?( component?:Ext.IComponent ): void; /** [Method] Invoked after a docked item is removed from the Panel - * @param component Ext.IComponent + * @param component Ext.Component */ onDockedRemove?( component?:Ext.IComponent ): void; /** [Method] Removes the docked item from the panel - * @param item Ext.IComponent The Component to remove. + * @param item Ext.Component The Component to remove. * @param autoDestroy Boolean Destroy the component after removal. */ removeDocked?( item?:Ext.IComponent, autoDestroy?:bool ): void; @@ -3950,83 +4644,73 @@ declare module Ext.container { } declare module Ext.container { export interface IViewport extends Ext.container.IContainer { - /** [Property] (Boolean) true in this class to identify an object as an instantiated Viewport, or subclass thereof. ... */ + /** [Property] (Boolean) */ isViewport?: bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; } } declare module Ext { export interface IViewport extends Ext.container.IContainer { - /** [Property] (Boolean) true in this class to identify an object as an instantiated Viewport, or subclass thereof. ... */ + /** [Property] (Boolean) */ isViewport?: bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; } } declare module Ext.data { export interface IAbstractStore extends Ext.IBase,Ext.util.IObservable,Ext.util.ISortable { - /** [Config Option] (Boolean/Object) If data is not specified, and if autoLoad is true or an Object, this store's load method is automatically called afte... */ + /** [Config Option] (Boolean/Object) */ autoLoad?: any; - /** [Config Option] (Boolean) True to automatically sync the Store with its Proxy after every edit to one of its Records. ... */ + /** [Config Option] (Boolean) */ autoSync?: bool; - /** [Config Option] (String) Sets the updating behavior based on batch synchronization. ... */ + /** [Config Option] (String) */ batchUpdateMode?: string; - /** [Config Option] (Object[]) This may be used in place of specifying a model configuration. ... */ - fields?: Object[]; - /** [Config Option] (Boolean) If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Object[]) */ + fields?: any[]; + /** [Config Option] (Boolean) */ filterOnLoad?: bool; - /** [Config Option] (Object[]/Function[]) Array of Filters for this store. ... */ + /** [Config Option] (Object[]/Function[]) */ filters?: any; - /** [Config Option] (String) Name of the Model associated with this store. ... */ + /** [Config Option] (String) */ model?: string; - /** [Config Option] (String/Ext.data.proxy.Proxy/Object) The Proxy to use for this Store. ... */ + /** [Config Option] (String/Ext.data.proxy.Proxy/Object) */ proxy?: any; - /** [Config Option] (Boolean) True to defer any filtering operation to the server. ... */ + /** [Config Option] (Boolean) */ remoteFilter?: bool; - /** [Config Option] (Boolean) True to defer any sorting operation to the server. ... */ + /** [Config Option] (Boolean) */ remoteSort?: bool; - /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Boolean) */ sortOnLoad?: bool; - /** [Config Option] (Boolean) Configure as true to have the filters saved when a client grid saves its state. ... */ + /** [Config Option] (Boolean) */ statefulFilters?: bool; - /** [Config Option] (String) Unique identifier for this store. ... */ + /** [Config Option] (String) */ storeId?: string; - /** [Property] (String) The string type of the Proxy to create if none is specified. ... */ + /** [Property] (String) */ defaultProxyType?: string; - /** [Property] (Boolean) True if the Store has already been destroyed. ... */ + /** [Property] (Boolean) */ isDestroyed?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Store, or subclass thereof. ... */ + /** [Property] (Boolean) */ isStore?: bool; - /** [Property] (Ext.data.Model[]) Temporary cache in which removed model instances are kept until successfully synchronised with a Proxy, at which poin... */ + /** [Property] (Ext.data.Model[]) */ removed?: Ext.data.IModel[]; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -4036,8 +4720,9 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -4049,7 +4734,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ generateComparator?(): void; /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ @@ -4077,25 +4762,26 @@ declare module Ext.data { */ load?( options?:any ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -4120,11 +4806,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes automatically syncing the Store with its Proxy */ @@ -4135,13 +4822,15 @@ declare module Ext.data { resumeEvent?( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; + /** [Method] Saves all pending changes via the configured proxy */ + save?(): void; /** [Method] Sets the Store s Proxy by string config object or Proxy instance - * @param proxy any The new Proxy, which can be either a type string, a configuration object or an Ext.data.proxy.Proxy instance + * @param proxy String/Object/Ext.data.proxy.Proxy The new Proxy, which can be either a type string, a configuration object or an Ext.data.proxy.Proxy instance */ setProxy?( proxy?:any ): Ext.data.proxy.IProxy; /** [Method] Sorts the data in the Store by one or more of its properties - * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. - * @param direction any The overall direction to sort the data by. + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. */ sort?( sorters?:any, direction?:any ): any; sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; @@ -4166,32 +4855,36 @@ declare module Ext.data { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Creates a store from config object + * @param store Object/Ext.data.AbstractStore A config for the store to be created. It may contain a type field which defines the particular type of store to create. Alteratively passing an actual store to this method will just return it, no changes made. + */ + create?( store?:any ): Ext.data.IAbstractStore; } } declare module Ext.data { export interface IArrayStore extends Ext.data.IStore { /** [Method] Loads an array of data straight into the Store - * @param data any Array of data to load. Any non-model instances will be cast into model instances first. - * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. + * @param data Object + * @param append Object */ - loadData?( data?:any, append?:bool ): void; + loadData?( data?:any, append?:any ): void; } } declare module Ext.data.association { export interface IAssociation extends Ext.IBase { - /** [Config Option] (String) The string name of the model that is being associated with. ... */ + /** [Config Option] (String) */ associatedModel?: string; - /** [Config Option] (String) The name of the property in the data to read the association from. ... */ + /** [Config Option] (String) */ associationKey?: string; - /** [Config Option] (String) The string name of the model that is being associated with. ... */ + /** [Config Option] (String) */ model?: string; - /** [Config Option] (String) The string name of the model that owns the association. ... */ + /** [Config Option] (String) */ ownerModel?: string; - /** [Config Option] (String) The name of the primary key on the associated model. ... */ + /** [Config Option] (String) */ primaryKey?: string; /** [Config Option] (Ext.data.reader.Reader) */ reader?: Ext.data.reader.IReader; - /** [Property] (String) The name of the model is on the other end of the association (e.g. ... */ + /** [Property] (String) */ associatedName?: string; /** [Property] (String) */ ownerName?: string; @@ -4201,19 +4894,19 @@ declare module Ext.data.association { } declare module Ext.data { export interface IAssociation extends Ext.IBase { - /** [Config Option] (String) The string name of the model that is being associated with. ... */ + /** [Config Option] (String) */ associatedModel?: string; - /** [Config Option] (String) The name of the property in the data to read the association from. ... */ + /** [Config Option] (String) */ associationKey?: string; - /** [Config Option] (String) The string name of the model that is being associated with. ... */ + /** [Config Option] (String) */ model?: string; - /** [Config Option] (String) The string name of the model that owns the association. ... */ + /** [Config Option] (String) */ ownerModel?: string; - /** [Config Option] (String) The name of the primary key on the associated model. ... */ + /** [Config Option] (String) */ primaryKey?: string; /** [Config Option] (Ext.data.reader.Reader) */ reader?: Ext.data.reader.IReader; - /** [Property] (String) The name of the model is on the other end of the association (e.g. ... */ + /** [Property] (String) */ associatedName?: string; /** [Property] (String) */ ownerName?: string; @@ -4223,125 +4916,125 @@ declare module Ext.data { } declare module Ext.data.association { export interface IBelongsTo extends Ext.data.association.IAssociation { - /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ getterName?: string; - /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ setterName?: string; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data { export interface IBelongsToAssociation extends Ext.data.association.IAssociation { - /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ getterName?: string; - /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ setterName?: string; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data.association { export interface IHasMany extends Ext.data.association.IAssociation { - /** [Config Option] (Boolean) True to automatically load the related store from a remote source when instantiated. ... */ + /** [Config Option] (Boolean) */ autoLoad?: bool; - /** [Config Option] (String) Optionally overrides the default filter that is set up on the associated Store. ... */ + /** [Config Option] (String) */ filterProperty?: string; - /** [Config Option] (String) The name of the foreign key on the associated model that links it to the owner model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the function to create on the owner model to retrieve the child store. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Object) Optional configuration object that will be passed to the generated Store. ... */ + /** [Config Option] (Object) */ storeConfig?: any; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data { export interface IHasManyAssociation extends Ext.data.association.IAssociation { - /** [Config Option] (Boolean) True to automatically load the related store from a remote source when instantiated. ... */ + /** [Config Option] (Boolean) */ autoLoad?: bool; - /** [Config Option] (String) Optionally overrides the default filter that is set up on the associated Store. ... */ + /** [Config Option] (String) */ filterProperty?: string; - /** [Config Option] (String) The name of the foreign key on the associated model that links it to the owner model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the function to create on the owner model to retrieve the child store. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Object) Optional configuration object that will be passed to the generated Store. ... */ + /** [Config Option] (Object) */ storeConfig?: any; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data.association { export interface IHasOne extends Ext.data.association.IAssociation { - /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ getterName?: string; - /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ setterName?: string; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data { export interface IHasOneAssociation extends Ext.data.association.IAssociation { - /** [Config Option] (String) The name of the foreign key on the owner model that links it to the associated model. ... */ + /** [Config Option] (String) */ foreignKey?: string; - /** [Config Option] (String) The name of the getter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ getterName?: string; - /** [Config Option] (String) The name of the setter function that will be added to the local model's prototype. ... */ + /** [Config Option] (String) */ setterName?: string; - /** [Config Option] (String) The type configuration can be used when creating associations using a configuration object. ... */ + /** [Config Option] (String) */ type?: string; } } declare module Ext.data { export interface IBatch extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) True to immediately start processing the batch as soon as it is constructed (defaults to false) ... */ + /** [Config Option] (Boolean) */ autoStart?: bool; - /** [Config Option] (Boolean) True to pause the execution of the batch if any operation encounters an exception (defaults to false). ... */ + /** [Config Option] (Boolean) */ pauseOnException?: bool; - /** [Property] (Number) The index of the current operation being executed. ... */ + /** [Property] (Number) */ current?: number; - /** [Property] (Ext.data.Operation[]) Ordered array of operations that raised an exception during the most recent batch execution and did not successfully ... */ + /** [Property] (Ext.data.Operation[]) */ exceptions?: Ext.data.IOperation[]; - /** [Property] (Boolean) True if this batch has encountered an exception. ... */ + /** [Property] (Boolean) */ hasException?: bool; - /** [Property] (Boolean) True if this batch has been executed completely. ... */ + /** [Property] (Boolean) */ isComplete?: bool; - /** [Property] (Boolean) True if the batch is currently running. ... */ + /** [Property] (Boolean) */ isRunning?: bool; /** [Property] (Ext.data.Operation[]) */ operations?: Ext.data.IOperation[]; - /** [Property] (Number) The total number of operations in this batch. ... */ + /** [Property] (Number) */ total?: number; /** [Method] Adds a new operation to this batch at the end of the operations array * @param operation Object The Operation object */ add?( operation?:any ): Ext.data.IBatch; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -4351,8 +5044,9 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -4364,31 +5058,32 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -4409,11 +5104,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -4450,33 +5146,33 @@ declare module Ext.data { } declare module Ext.data { export interface IBufferStore extends Ext.data.IStore { - /** [Config Option] (Boolean) If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Boolean) */ filterOnLoad?: bool; - /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Boolean) */ sortOnLoad?: bool; } } declare module Ext.data { export interface IConnection extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) Whether this request should abort any pending requests. ... */ + /** [Config Option] (Boolean) */ autoAbort?: bool; - /** [Config Option] (Boolean) True if the response should be treated as binary data. ... */ + /** [Config Option] (Boolean) */ binary?: bool; - /** [Config Option] (Boolean) True to enable CORS support on the XHR object. ... */ + /** [Config Option] (Boolean) */ cors?: bool; /** [Config Option] (Object) */ defaultHeaders?: any; - /** [Config Option] (Boolean) True to add a unique cache-buster param to GET requests. ... */ + /** [Config Option] (Boolean) */ disableCaching?: bool; - /** [Config Option] (String) Change the parameter which is sent went disabling caching through a cache buster. ... */ + /** [Config Option] (String) */ disableCachingParam?: string; /** [Config Option] (Object) */ extraParams?: any; - /** [Config Option] (String) The default HTTP method to be used for requests. ... */ + /** [Config Option] (String) */ method?: string; - /** [Config Option] (Number) The timeout in milliseconds to be used for requests. ... */ + /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (Boolean) True to set withCredentials = true on the XHR object ... */ + /** [Config Option] (Boolean) */ withCredentials?: bool; /** [Method] Aborts an active request * @param request Object Defaults to the last request @@ -4485,22 +5181,22 @@ declare module Ext.data { /** [Method] Aborts all active requests */ abortAll?(): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -4510,8 +5206,9 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -4523,7 +5220,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ @@ -4533,25 +5230,26 @@ declare module Ext.data { */ isLoading?( request?:any ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -4574,11 +5272,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Sends an HTTP request to a remote server @@ -4596,21 +5295,6 @@ declare module Ext.data { * @param scope Object The scope to execute in */ setOptions?( options?:any, scope?:any ): any; - /** [Method] Template method for overriding method - * @param options Object - * @param method String - */ - setupMethod?( options?:any, method?:string ): string; - /** [Method] Template method for overriding params - * @param options Object - * @param params String - */ - setupParams?( options?:any, params?:string ): string; - /** [Method] Template method for overriding url - * @param options Object - * @param url String - */ - setupUrl?( options?:any, url?:string ): string; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -4626,11 +5310,12 @@ declare module Ext.data { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Uploads a form using a hidden iframe - * @param form String The form to upload + * @param form String/HTMLElement/Ext.Element The form to upload * @param url String The url to post to * @param params String Any extra parameters to pass * @param options Object The initial options */ + upload?( form?:any, url?:any, params?:any, options?:any ): any; upload?( form?:string, url?:string, params?:string, options?:any ): void; upload?( form?:HTMLElement, url?:string, params?:string, options?:any ): void; upload?( form?:Ext.IElement, url?:string, params?:string, options?:any ): void; @@ -4645,50 +5330,50 @@ declare module Ext.data { /** [Method] Returns all of the errors for the given field * @param fieldName String The field to get errors for */ - getByField?( fieldName?:string ): Object[]; + getByField?( fieldName?:string ): any[]; /** [Method] Returns true if there are no errors in the collection */ isValid?(): bool; } } declare module Ext.data { export interface IField extends Ext.IBase { - /** [Config Option] (Function) A function which converts the value provided by the Reader into an object that will be stored in the Model. ... */ + /** [Config Option] (Function) */ convert?: any; - /** [Config Option] (String) Serves as a default for the dateReadFormat and dateWriteFormat config options. ... */ + /** [Config Option] (String) */ dateFormat?: string; - /** [Config Option] (String) Used when converting received data into a Date when the type is specified as "date". ... */ + /** [Config Option] (String) */ dateReadFormat?: string; - /** [Config Option] (String) Used to provide a custom format when serializing dates with a Ext.data.writer.Writer. ... */ + /** [Config Option] (String) */ dateWriteFormat?: string; - /** [Config Option] (Object) The default value used when the creating an instance from a raw data object, and the property referenced by the mappi... */ + /** [Config Option] (Object) */ defaultValue?: any; - /** [Config Option] (String/Number) (Optional) A path expression for use by the Ext.data.reader.Reader implementation that is creating the Model to extra... */ + /** [Config Option] (String/Number) */ mapping?: any; - /** [Config Option] (String) The name by which the field is referenced within the Model. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Boolean) False to exclude this field from the Ext.data.Model.modified fields in a model. ... */ + /** [Config Option] (Boolean) */ persist?: bool; - /** [Config Option] (Function) A function which converts the Model's value for this Field into a form which can be used by whatever Writer is being ... */ + /** [Config Option] (Function) */ serialize?: any; - /** [Config Option] (String) Initial direction to sort ("ASC" or "DESC"). ... */ + /** [Config Option] (String) */ sortDir?: string; - /** [Config Option] (Function/String) A function which converts a Field's value to a comparable value in order to ensure correct sort ordering. ... */ + /** [Config Option] (Function/String) */ sortType?: any; - /** [Config Option] (String/Object) The data type for automatic conversion from received data to the stored value if convert has not been specified. ... */ + /** [Config Option] (String/Object) */ type?: any; - /** [Config Option] (Boolean) Use when converting received data into a INT, FLOAT, BOOL or STRING type. ... */ + /** [Config Option] (Boolean) */ useNull?: bool; } } declare module Ext.data.flash { export interface IBinaryXhr extends Ext.IBase { - /** [Property] (number) The connection's simulated readyState. ... */ + /** [Property] (number) */ readyState?: number; /** [Property] (Array) */ responseBytes?: any[]; - /** [Property] (number) Connection status code returned by flash or the server. ... */ + /** [Property] (number) */ status?: number; - /** [Property] (String) Status text (if any) returned by flash or the server. ... */ + /** [Property] (String) */ statusText?: string; /** [Method] Abort this connection */ abort?(): void; @@ -4729,12 +5414,16 @@ declare module Ext.data { } declare module Ext.data { export interface IIdGenerator extends Ext.IBase { - /** [Config Option] (String) The id by which to register a new instance. ... */ + /** [Config Option] (String) */ id?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated IdGenerator, or subclass thereof. ... */ + /** [Property] (Boolean) */ isGenerator?: bool; /** [Method] Generates and returns the next id */ generate?(): string; + /** [Method] Returns the IdGenerator given its config description + * @param config String/Object If this parameter is an IdGenerator instance, it is simply returned. If this is a string, it is first used as an id for lookup and then, if there is no match, as a type to create a new instance. This parameter can also be a config object that contains a type property (among others) that are used to create and configure the instance. + */ + get?( config?:any ): void; } } declare module Ext.data { @@ -4742,13 +5431,61 @@ declare module Ext.data { } export class JsonP { /** [Method] Abort a request - * @param request any The request to abort + * @param request Object/String The request to abort */ static abort( request?:any ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Makes a JSONP request * @param options Object An object which may contain the following properties. Note that options will take priority over any defaults that are specified in the class. url : String The URL to request. params : Object (Optional)An object containing a series of key value pairs that will be sent along with the request. timeout : Number (Optional) See timeout callbackKey : String (Optional) See callbackKey callbackName : String (Optional) The function name to use for this request. By default this name will be auto-generated: Ext.data.JsonP.callback1, Ext.data.JsonP.callback2, etc. Setting this option to "my_name" will force the function name to be Ext.data.JsonP.my_name. Use this if you want deterministic behavior, but be careful - the callbackName should be different in each JsonP request that you make. disableCaching : Boolean (Optional) See disableCaching disableCachingParam : String (Optional) See disableCachingParam success : Function (Optional) A function to execute if the request succeeds. failure : Function (Optional) A function to execute if the request fails. callback : Function (Optional) A function to execute when the request completes, whether it is a success or failure. scope : Object (Optional)The scope in which to execute the callbacks: The "this" object for the callback function. Defaults to the browser window. */ static request( options?:any ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data { @@ -4762,60 +5499,66 @@ declare module Ext.data { declare module Ext.data { export interface IModel extends Ext.IBase,Ext.util.IObservable { /** [Config Option] (Object[]) */ - associations?: Object[]; + associations?: any[]; /** [Config Option] (String/Object/String[]/Object[]) */ belongsTo?: any; - /** [Config Option] (String) The name of a property that is used for submitting this Model's unique client-side identifier to the server when mult... */ + /** [Config Option] (String) */ clientIdProperty?: string; - /** [Config Option] (String) The string type of the default Model Proxy. ... */ + /** [Config Option] (String) */ defaultProxyType?: string; - /** [Config Option] (Object[]/String[]) The fields for this model. ... */ + /** [Config Option] (Object[]/String[]) */ fields?: any; /** [Config Option] (String/Object/String[]/Object[]) */ hasMany?: any; - /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + /** [Config Option] (String/Object/Ext.data.Field) */ idProperty?: any; - /** [Config Option] (String/Object) The id generator to use for this model. ... */ + /** [Config Option] (String/Object) */ idgen?: any; - /** [Config Option] (String) The name of the property on this Persistable object that its data is saved to. ... */ + /** [Config Option] (String) */ persistenceProperty?: string; /** [Config Option] (String/Object/Ext.data.proxy.Proxy) */ proxy?: any; /** [Config Option] (Object[]) */ - validations?: Object[]; - /** [Property] (Boolean) True if this Record has been modified. ... */ + validations?: any[]; + /** [Property] (Boolean) */ dirty?: bool; - /** [Property] (Boolean) Internal flag used to track whether or not the model instance is currently being edited. ... */ + /** [Property] (Boolean) */ editing?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Model, or subclass thereof. ... */ + /** [Property] (Boolean) */ isModel?: bool; /** [Property] (Object) */ modified?: any; - /** [Property] (Boolean) True when the record does not yet exist in a server-side database (see setDirty). ... */ + /** [Property] (Boolean) */ phantom?: bool; /** [Property] (Object) */ raw?: any; - /** [Property] (Ext.data.Store) The Store to which this instance belongs. ... */ + /** [Property] (Ext.data.Store) */ store?: Ext.data.IStore; /** [Property] (Ext.data.Store[]) */ stores?: Ext.data.IStore[]; + /** [Property] (String) */ + COMMIT?: string; + /** [Property] (String) */ + EDIT?: string; + /** [Property] (String) */ + REJECT?: string; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -4842,8 +5585,9 @@ declare module Ext.data { */ destroy?( options?:any ): Ext.data.IModel; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Ends an edit @@ -4860,7 +5604,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the value of the given field * @param fieldName String The field to fetch the value for */ @@ -4890,29 +5634,30 @@ declare module Ext.data { /** [Method] Checks if the model is valid */ isValid?(): bool; /** [Method] Tells this model instance that it has been added to a store - * @param store Ext.data.IStore The store to which this model has been added. + * @param store Ext.data.Store The store to which this model has been added. */ join?( store?:Ext.data.IStore ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -4935,11 +5680,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -4953,19 +5699,20 @@ declare module Ext.data { */ save?( options?:any ): Ext.data.IModel; /** [Method] Sets the given field to the given value marks the instance as dirty - * @param fieldName any The field to set, or an object containing key/value pairs + * @param fieldName String/Object The field to set, or an object containing key/value pairs * @param newValue Object The value to set */ set?( fieldName?:any, newValue?:any ): string[]; /** [Method] Marks this Record as dirty */ setDirty?(): void; /** [Method] Sets the model instance s id field to the given id - * @param id Number The new id + * @param id Number/String The new id */ + setId?( id?:any ): any; setId?( id?:number ): void; setId?( id?:string ): void; /** [Method] Sets the Proxy to use for this model - * @param proxy any The proxy + * @param proxy String/Object/Ext.data.proxy.Proxy The proxy */ setProxy?( proxy?:any ): Ext.data.proxy.IProxy; /** [Method] Suspends firing of the named event s @@ -4983,70 +5730,95 @@ declare module Ext.data { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Tells this model instance that it has been removed from the store - * @param store Ext.data.IStore The store from which this model has been removed. + * @param store Ext.data.Store The store from which this model has been removed. */ unjoin?( store?:Ext.data.IStore ): void; /** [Method] Validates the current data against all of its configured validations */ validate?(): Ext.data.IErrors; + /** [Method] Returns an Array of Field definitions which define this Model s structure Fields are sorted upon Model class definit */ + getFields?(): Ext.data.IField[]; + /** [Method] Generates a sequential id + * @param rec Ext.data.Model The record being created. The record does not exist, it's a phantom. + */ + id?( rec?:Ext.data.IModel ): string; + /** [Method] Asynchronously loads a model instance by id + * @param id Number/String The id of the model to load + * @param config Object config object containing success, failure and callback functions, plus optional scope + */ + load?( id?:any, config?:any ): any; + load?( id?:number, config?:any ): void; + load?( id?:string, config?:any ): void; + /** [Method] Apply a new set of field and or property definitions to the existing model + * @param fields Object + * @param idProperty Object + * @param clientIdProperty Object + */ + setFields?( fields?:any, idProperty?:any, clientIdProperty?:any ): void; } } declare module Ext.data { export interface IRecord extends Ext.IBase,Ext.util.IObservable { /** [Config Option] (Object[]) */ - associations?: Object[]; + associations?: any[]; /** [Config Option] (String/Object/String[]/Object[]) */ belongsTo?: any; - /** [Config Option] (String) The name of a property that is used for submitting this Model's unique client-side identifier to the server when mult... */ + /** [Config Option] (String) */ clientIdProperty?: string; - /** [Config Option] (String) The string type of the default Model Proxy. ... */ + /** [Config Option] (String) */ defaultProxyType?: string; - /** [Config Option] (Object[]/String[]) The fields for this model. ... */ + /** [Config Option] (Object[]/String[]) */ fields?: any; /** [Config Option] (String/Object/String[]/Object[]) */ hasMany?: any; - /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + /** [Config Option] (String/Object/Ext.data.Field) */ idProperty?: any; - /** [Config Option] (String/Object) The id generator to use for this model. ... */ + /** [Config Option] (String/Object) */ idgen?: any; - /** [Config Option] (String) The name of the property on this Persistable object that its data is saved to. ... */ + /** [Config Option] (String) */ persistenceProperty?: string; /** [Config Option] (String/Object/Ext.data.proxy.Proxy) */ proxy?: any; /** [Config Option] (Object[]) */ - validations?: Object[]; - /** [Property] (Boolean) True if this Record has been modified. ... */ + validations?: any[]; + /** [Property] (Boolean) */ dirty?: bool; - /** [Property] (Boolean) Internal flag used to track whether or not the model instance is currently being edited. ... */ + /** [Property] (Boolean) */ editing?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Model, or subclass thereof. ... */ + /** [Property] (Boolean) */ isModel?: bool; /** [Property] (Object) */ modified?: any; - /** [Property] (Boolean) True when the record does not yet exist in a server-side database (see setDirty). ... */ + /** [Property] (Boolean) */ phantom?: bool; /** [Property] (Object) */ raw?: any; - /** [Property] (Ext.data.Store) The Store to which this instance belongs. ... */ + /** [Property] (Ext.data.Store) */ store?: Ext.data.IStore; /** [Property] (Ext.data.Store[]) */ stores?: Ext.data.IStore[]; + /** [Property] (String) */ + COMMIT?: string; + /** [Property] (String) */ + EDIT?: string; + /** [Property] (String) */ + REJECT?: string; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -5073,8 +5845,9 @@ declare module Ext.data { */ destroy?( options?:any ): Ext.data.IModel; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Ends an edit @@ -5091,7 +5864,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the value of the given field * @param fieldName String The field to fetch the value for */ @@ -5121,29 +5894,30 @@ declare module Ext.data { /** [Method] Checks if the model is valid */ isValid?(): bool; /** [Method] Tells this model instance that it has been added to a store - * @param store Ext.data.IStore The store to which this model has been added. + * @param store Ext.data.Store The store to which this model has been added. */ join?( store?:Ext.data.IStore ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -5166,11 +5940,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -5184,19 +5959,20 @@ declare module Ext.data { */ save?( options?:any ): Ext.data.IModel; /** [Method] Sets the given field to the given value marks the instance as dirty - * @param fieldName any The field to set, or an object containing key/value pairs + * @param fieldName String/Object The field to set, or an object containing key/value pairs * @param newValue Object The value to set */ set?( fieldName?:any, newValue?:any ): string[]; /** [Method] Marks this Record as dirty */ setDirty?(): void; /** [Method] Sets the model instance s id field to the given id - * @param id Number The new id + * @param id Number/String The new id */ + setId?( id?:any ): any; setId?( id?:number ): void; setId?( id?:string ): void; /** [Method] Sets the Proxy to use for this model - * @param proxy any The proxy + * @param proxy String/Object/Ext.data.proxy.Proxy The proxy */ setProxy?( proxy?:any ): Ext.data.proxy.IProxy; /** [Method] Suspends firing of the named event s @@ -5214,50 +5990,69 @@ declare module Ext.data { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Tells this model instance that it has been removed from the store - * @param store Ext.data.IStore The store from which this model has been removed. + * @param store Ext.data.Store The store from which this model has been removed. */ unjoin?( store?:Ext.data.IStore ): void; /** [Method] Validates the current data against all of its configured validations */ validate?(): Ext.data.IErrors; + /** [Method] Returns an Array of Field definitions which define this Model s structure Fields are sorted upon Model class definit */ + getFields?(): Ext.data.IField[]; + /** [Method] Generates a sequential id + * @param rec Ext.data.Model The record being created. The record does not exist, it's a phantom. + */ + id?( rec?:Ext.data.IModel ): string; + /** [Method] Asynchronously loads a model instance by id + * @param id Number/String The id of the model to load + * @param config Object config object containing success, failure and callback functions, plus optional scope + */ + load?( id?:any, config?:any ): any; + load?( id?:number, config?:any ): void; + load?( id?:string, config?:any ): void; + /** [Method] Apply a new set of field and or property definitions to the existing model + * @param fields Object + * @param idProperty Object + * @param clientIdProperty Object + */ + setFields?( fields?:any, idProperty?:any, clientIdProperty?:any ): void; } } declare module Ext.data { export interface INodeInterface extends Ext.IBase { - /** [Config Option] (Boolean) Set to false to deny dragging of this node. ... */ + /** [Config Option] (Boolean) */ allowDrag?: bool; - /** [Config Option] (Boolean) Set to false to deny dropping on this node. ... */ + /** [Config Option] (Boolean) */ allowDrop?: bool; - /** [Config Option] (Boolean) Set to true or false to show a checkbox alongside this node. ... */ + /** [Config Option] (Boolean) */ checked?: bool; /** [Config Option] (Ext.data.NodeInterface[]) */ children?: Ext.data.INodeInterface[]; /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Number) The number of parents this node has. ... */ + /** [Config Option] (Number) */ depth?: number; - /** [Config Option] (Boolean) Set to true to allow for expanding/collapsing of this node. ... */ + /** [Config Option] (Boolean) */ expandable?: bool; - /** [Config Option] (Boolean) True if the node is expanded. ... */ + /** [Config Option] (Boolean) */ expanded?: bool; /** [Config Option] (String) */ href?: string; - /** [Config Option] (String) Target for link. ... */ + /** [Config Option] (String) */ hrefTarget?: string; /** [Config Option] (String) */ icon?: string; /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Number) The position of the node inside its parent. ... */ + /** [Config Option] (Number) */ index?: number; /** [Config Option] (Boolean) */ isFirst?: bool; /** [Config Option] (Boolean) */ isLast?: bool; - /** [Config Option] (Boolean) Set to true to indicate that this child can have no children. ... */ + /** [Config Option] (Boolean) */ leaf?: bool; - /** [Config Option] (Boolean) True if the node has finished loading. ... */ + /** [Config Option] (Boolean) */ loaded?: bool; - /** [Config Option] (Boolean) True if the node is currently loading. ... */ + /** [Config Option] (Boolean) */ loading?: bool; /** [Config Option] (String) */ parentId?: string; @@ -5271,26 +6066,26 @@ declare module Ext.data { root?: bool; /** [Config Option] (String) */ text?: string; - /** [Property] (Ext.data.NodeInterface[]) An array of this nodes children. ... */ + /** [Property] (Ext.data.NodeInterface[]) */ childNodes?: Ext.data.INodeInterface[]; - /** [Property] (Ext.data.NodeInterface) A reference to this node's first child node. ... */ + /** [Property] (Ext.data.NodeInterface) */ firstChild?: Ext.data.INodeInterface; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Node, or subclass thereof. ... */ + /** [Property] (Boolean) */ isNode?: bool; - /** [Property] (Ext.data.NodeInterface) A reference to this node's last child node. ... */ + /** [Property] (Ext.data.NodeInterface) */ lastChild?: Ext.data.INodeInterface; - /** [Property] (Ext.data.NodeInterface) A reference to this node's next sibling node. ... */ + /** [Property] (Ext.data.NodeInterface) */ nextSibling?: Ext.data.INodeInterface; - /** [Property] (Ext.data.NodeInterface) A reference to this node's parent node. ... */ + /** [Property] (Ext.data.NodeInterface) */ parentNode?: Ext.data.INodeInterface; - /** [Property] (Ext.data.NodeInterface) A reference to this node's previous sibling node. ... */ + /** [Property] (Ext.data.NodeInterface) */ previousSibling?: Ext.data.INodeInterface; /** [Method] Inserts node s as the last child node of this node - * @param node any The node or Array of nodes to append + * @param node Ext.data.NodeInterface/Ext.data.NodeInterface[]/Object The node or Array of nodes to append + * @param suppressEvents Boolean True to suppress firering of events. + * @param commit Boolean */ - appendChild?( node?:any ): any; - appendChild?( node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; - appendChild?( node?:Ext.data.INodeInterface[] ): Ext.data.INodeInterface; + appendChild?( node?:any, suppressEvents?:bool, commit?:bool ): Ext.data.INodeInterface; /** [Method] Bubbles up the tree from this node calling the specified function with each node * @param fn Function The function to call * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Node. @@ -5316,7 +6111,7 @@ declare module Ext.data { */ collapseChildren?( recursive?:any, callback?:any, scope?:any ): void; /** [Method] Returns true if this node is an ancestor at any point of the passed node - * @param node Ext.data.INodeInterface + * @param node Ext.data.NodeInterface */ contains?( node?:Ext.data.INodeInterface ): bool; /** [Method] Creates a copy clone of this Node @@ -5378,7 +6173,7 @@ declare module Ext.data { /** [Method] Returns true if this node has one or more child nodes else false */ hasChildNodes?(): bool; /** [Method] Returns the index of a child node - * @param node Ext.data.INodeInterface + * @param node Ext.data.NodeInterface */ indexOf?( node?:Ext.data.INodeInterface ): number; /** [Method] Returns the index of a child node that matches the id @@ -5386,17 +6181,17 @@ declare module Ext.data { */ indexOfId?( id?:string ): number; /** [Method] Inserts the first node before the second node in this nodes childNodes collection - * @param node Ext.data.INodeInterface The node to insert - * @param refNode Ext.data.INodeInterface The node to insert before (if null the node is appended) + * @param node Ext.data.NodeInterface The node to insert + * @param refNode Ext.data.NodeInterface The node to insert before (if null the node is appended) */ insertBefore?( node?:Ext.data.INodeInterface, refNode?:Ext.data.INodeInterface ): Ext.data.INodeInterface; /** [Method] Inserts a node into this node * @param index Number The zero-based index to insert the node at - * @param node Ext.data.INodeInterface The node to insert + * @param node Ext.data.NodeInterface The node to insert */ insertChild?( index?:number, node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; /** [Method] Returns true if the passed node is an ancestor at any point of this node - * @param node Ext.data.INodeInterface + * @param node Ext.data.NodeInterface */ isAncestor?( node?:Ext.data.INodeInterface ): bool; /** [Method] Returns true if this node has one or more child nodes or if the expandable node attribute is explicitly specified as */ @@ -5411,7 +6206,7 @@ declare module Ext.data { isLoading?(): bool; /** [Method] Returns true if this node is the root node */ isRoot?(): bool; - /** [Method] Returns true if this node is visible */ + /** [Method] Returns true if this node is visible */ isVisible?(): bool; /** [Method] Removes this node from its parent * @param destroy Boolean True to destroy the node upon removal. @@ -5422,13 +6217,13 @@ declare module Ext.data { */ removeAll?( destroy?:bool ): Ext.data.INodeInterface; /** [Method] Removes a child node from this node - * @param node Ext.data.INodeInterface The node to remove + * @param node Ext.data.NodeInterface The node to remove * @param destroy Boolean True to destroy the node upon removal. */ removeChild?( node?:Ext.data.INodeInterface, destroy?:bool ): Ext.data.INodeInterface; /** [Method] Replaces one child node in this node with another - * @param newChild Ext.data.INodeInterface The replacement node - * @param oldChild Ext.data.INodeInterface The node to replace + * @param newChild Ext.data.NodeInterface The replacement node + * @param oldChild Ext.data.NodeInterface The node to replace */ replaceChild?( newChild?:Ext.data.INodeInterface, oldChild?:Ext.data.INodeInterface ): Ext.data.INodeInterface; /** [Method] Creates an object representation of this node including its children */ @@ -5444,21 +6239,27 @@ declare module Ext.data { * @param info Object The info to update. May contain any of the following */ updateInfo?( commit?:bool, info?:any ): void; + /** [Method] This method allows you to decorate a Model s class to implement the NodeInterface + * @param modelClass Ext.Class/Ext.data.Model The Model class or an instance of the Model class you want to decorate the prototype of. + */ + decorate?( modelClass?:any ): any; + decorate?( modelClass?:Ext.IClass ): void; + decorate?( modelClass?:Ext.data.IModel ): void; } } declare module Ext.data { export interface INodeStore extends Ext.data.IStore { - /** [Config Option] (Ext.data.Model) The Record you want to bind this Store to. ... */ + /** [Config Option] (Ext.data.Model) */ node?: Ext.data.IModel; - /** [Config Option] (Boolean) Set this to true if you want this NodeStore to represent all the descendents of the node in its flat data collection. ... */ + /** [Config Option] (Boolean) */ recursive?: bool; - /** [Config Option] (Boolean) False to not include the root node in this Stores collection. ... */ + /** [Config Option] (Boolean) */ rootVisible?: bool; /** [Config Option] (Ext.data.TreeStore) */ treeStore?: Ext.data.ITreeStore; - /** [Property] (Number) Recursion level counter. ... */ + /** [Property] (Number) */ isExpandingOrCollapsing?: number; - /** [Property] (Boolean) true in this class to identify an object as an instantiated NodeStore, or subclass thereof. ... */ + /** [Property] (Boolean) */ isNodeStore?: bool; /** [Method] NodeStores are never buffered or paged */ getTotalCount?(): number; @@ -5466,36 +6267,36 @@ declare module Ext.data { } declare module Ext.data { export interface IOperation extends Ext.IBase { - /** [Config Option] (String) The action being performed by this Operation. ... */ + /** [Config Option] (String) */ action?: string; /** [Config Option] (Ext.data.Batch) */ batch?: Ext.data.IBatch; - /** [Config Option] (Function) Function to execute when operation completed. ... */ + /** [Config Option] (Function) */ callback?: any; - /** [Config Option] (Ext.util.Filter[]) Optional array of filter objects. ... */ + /** [Config Option] (Ext.util.Filter[]) */ filters?: Ext.util.IFilter[]; - /** [Config Option] (Ext.util.Grouper[]) Optional grouping configuration. ... */ + /** [Config Option] (Ext.util.Grouper[]) */ groupers?: Ext.util.IGrouper[]; - /** [Config Option] (Number) The number of records to load. ... */ + /** [Config Option] (Number) */ limit?: number; /** [Config Option] (Object) */ params?: any; /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Ext.util.Sorter[]) Optional array of sorter objects. ... */ + /** [Config Option] (Ext.util.Sorter[]) */ sorters?: Ext.util.ISorter[]; /** [Config Option] (Number) */ start?: number; - /** [Config Option] (Boolean) True if this Operation is to be executed synchronously. ... */ + /** [Config Option] (Boolean) */ synchronous?: bool; - /** [Property] (RegExp) The RegExp used to categorize actions that require record commits. ... */ + /** [Property] (RegExp) */ actionCommitRecordsRe?: RegExp; - /** [Property] (RegExp) The RegExp used to categorize actions that skip local record synchronization. ... */ + /** [Property] (RegExp) */ actionSkipSyncRe?: RegExp; /** [Method] Checks whether this operation should cause writing to occur */ allowWrite?(): bool; /** [Method] This method is called to commit data to this instance s records given the records in the server response - * @param serverRecords Ext.data.IModel[] An array of Ext.data.Model objects returned by the server. + * @param serverRecords Ext.data.Model[] An array of Ext.data.Model objects returned by the server. */ commitRecords?( serverRecords?:Ext.data.IModel[] ): void; /** [Method] Returns the error string or object that was set using setException */ @@ -5515,7 +6316,7 @@ declare module Ext.data { /** [Method] Marks the Operation as completed */ setCompleted?(): void; /** [Method] Marks the Operation as having experienced an exception - * @param error any error string/object + * @param error String/Object error string/object */ setException?( error?:any ): void; /** [Method] Marks the Operation as started */ @@ -5526,51 +6327,73 @@ declare module Ext.data { wasSuccessful?(): bool; } } -declare module Ext.data.proxy { - export interface IAjax extends Ext.data.proxy.IServer { - /** [Config Option] (Boolean) True to request binary data from the server. ... */ - binary?: bool; - /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ - headers?: any; - /** [Property] (Object) Mapping of action name to HTTP request method. ... */ - actionMethods?: any; - /** [Method] Returns the HTTP method name for a given request - * @param request Ext.data.IRequest The request object +declare module Ext.data { + export interface IPageMap extends Ext.util.ILruCache { + /** [Method] Maintain a generation counter so that the Store can reject incoming pages destined for the previous generation + * @param initial Object */ - getMethod?( request?:Ext.data.IRequest ): string; + clear?( initial?:any ): Ext.util.IHashMap; + /** [Method] Returns the first record in this page map which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this PageMap. + */ + findBy?( fn?:any, scope?:any ): any; + /** [Method] Returns the index in the whole dataset of the first record in this page map which elicits a true return value from th + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this PageMap. + */ + findIndexBy?( fn?:any, scope?:any ): number; + /** [Method] Gets the number of items in the hash */ + getCount?(): number; + /** [Method] Remove an item from the hash */ + remove?(): bool; } } -declare module Ext.data { - export interface IAjaxProxy extends Ext.data.proxy.IServer { - /** [Config Option] (Boolean) True to request binary data from the server. ... */ +declare module Ext.data.proxy { + export interface IAjax extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) */ binary?: bool; - /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ + /** [Config Option] (Object) */ headers?: any; - /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + /** [Property] (Object) */ actionMethods?: any; /** [Method] Returns the HTTP method name for a given request - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ getMethod?( request?:Ext.data.IRequest ): string; } } declare module Ext.data { export interface IHttpProxy extends Ext.data.proxy.IServer { - /** [Config Option] (Boolean) True to request binary data from the server. ... */ + /** [Config Option] (Boolean) */ binary?: bool; - /** [Config Option] (Object) Any headers to add to the Ajax request. ... */ + /** [Config Option] (Object) */ headers?: any; - /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + /** [Property] (Object) */ actionMethods?: any; /** [Method] Returns the HTTP method name for a given request - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object + */ + getMethod?( request?:Ext.data.IRequest ): string; + } +} +declare module Ext.data { + export interface IAjaxProxy extends Ext.data.proxy.IServer { + /** [Config Option] (Boolean) */ + binary?: bool; + /** [Config Option] (Object) */ + headers?: any; + /** [Property] (Object) */ + actionMethods?: any; + /** [Method] Returns the HTTP method name for a given request + * @param request Ext.data.Request The request object */ getMethod?( request?:Ext.data.IRequest ): string; } } declare module Ext.data.proxy { export interface IClient extends Ext.data.proxy.IProxy { - /** [Property] (Boolean) true in this class to identify that requests made on this proxy are performed synchronously ... */ + /** [Property] (Boolean) */ isSynchronous?: bool; /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ clear?(): void; @@ -5578,7 +6401,7 @@ declare module Ext.data.proxy { } declare module Ext.data { export interface IClientProxy extends Ext.data.proxy.IProxy { - /** [Property] (Boolean) true in this class to identify that requests made on this proxy are performed synchronously ... */ + /** [Property] (Boolean) */ isSynchronous?: bool; /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ clear?(): void; @@ -5586,96 +6409,84 @@ declare module Ext.data { } declare module Ext.data.proxy { export interface IDirect extends Ext.data.proxy.IServer { - /** [Config Option] (Object) The same as Ext.data.proxy.Server.api, however instead of providing urls, you should provide a direct function call. ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (Function/String) Function to call when executing a request. ... */ + /** [Config Option] (Function/String) */ directFn?: any; - /** [Config Option] (Object) Extra parameters that will be included on every read request. ... */ + /** [Config Option] (Object) */ extraParams?: any; - /** [Config Option] (String/String[]) Defaults to undefined. ... */ + /** [Config Option] (String/String[]) */ paramOrder?: any; - /** [Config Option] (Boolean) Send parameters as a collection of named arguments. ... */ + /** [Config Option] (Boolean) */ paramsAsHash?: bool; - /** [Method] inherit docs Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object - */ - buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] inherit docs */ + buildUrl?(): string; /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest - * @param operation Ext.data.IOperation The Ext.data.Operation object - * @param callback Function The callback function to call when the Operation has completed - * @param scope Object The scope in which to execute the callback + * @param operation Object + * @param callback Object + * @param scope Object */ - doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit docs Template method to allow subclasses to specify how to get the response for the reader - * @param response Object The server response - */ - extractResponseData?( response?:any ): any; + doRequest?( operation?:any, callback?:any, scope?:any ): void; } } declare module Ext.data { export interface IDirectProxy extends Ext.data.proxy.IServer { - /** [Config Option] (Object) The same as Ext.data.proxy.Server.api, however instead of providing urls, you should provide a direct function call. ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (Function/String) Function to call when executing a request. ... */ + /** [Config Option] (Function/String) */ directFn?: any; - /** [Config Option] (Object) Extra parameters that will be included on every read request. ... */ + /** [Config Option] (Object) */ extraParams?: any; - /** [Config Option] (String/String[]) Defaults to undefined. ... */ + /** [Config Option] (String/String[]) */ paramOrder?: any; - /** [Config Option] (Boolean) Send parameters as a collection of named arguments. ... */ + /** [Config Option] (Boolean) */ paramsAsHash?: bool; - /** [Method] inherit docs Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object - */ - buildUrl?( request?:Ext.data.IRequest ): string; + /** [Method] inherit docs */ + buildUrl?(): string; /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest - * @param operation Ext.data.IOperation The Ext.data.Operation object - * @param callback Function The callback function to call when the Operation has completed - * @param scope Object The scope in which to execute the callback + * @param operation Object + * @param callback Object + * @param scope Object */ - doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit docs Template method to allow subclasses to specify how to get the response for the reader - * @param response Object The server response - */ - extractResponseData?( response?:any ): any; + doRequest?( operation?:any, callback?:any, scope?:any ): void; } } declare module Ext.data.proxy { export interface IJsonP extends Ext.data.proxy.IServer { - /** [Config Option] (Boolean) True to automatically append the request's params to the generated url. ... */ + /** [Config Option] (Boolean) */ autoAppendParams?: bool; - /** [Config Option] (String) See Ext.data.JsonP.callbackKey. ... */ + /** [Config Option] (String) */ callbackKey?: string; - /** [Config Option] (String) The HTTP parameter name to use when passing records to the server and the Json writer is not configured to encode rec... */ + /** [Config Option] (String) */ recordParam?: string; /** [Method] Aborts the current server request if one is currently running */ abort?(): void; /** [Method] Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ buildUrl?( request?:Ext.data.IRequest ): string; /** [Method] Encodes an array of records into a value suitable to be added to the request params as the recordParam parameter - * @param records Ext.data.IModel[] The records array + * @param records Ext.data.Model[] The records array */ encodeRecords?( records?:Ext.data.IModel[] ): any[]; } } declare module Ext.data { export interface IScriptTagProxy extends Ext.data.proxy.IServer { - /** [Config Option] (Boolean) True to automatically append the request's params to the generated url. ... */ + /** [Config Option] (Boolean) */ autoAppendParams?: bool; - /** [Config Option] (String) See Ext.data.JsonP.callbackKey. ... */ + /** [Config Option] (String) */ callbackKey?: string; - /** [Config Option] (String) The HTTP parameter name to use when passing records to the server and the Json writer is not configured to encode rec... */ + /** [Config Option] (String) */ recordParam?: string; /** [Method] Aborts the current server request if one is currently running */ abort?(): void; /** [Method] Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ buildUrl?( request?:Ext.data.IRequest ): string; /** [Method] Encodes an array of records into a value suitable to be added to the request params as the recordParam parameter - * @param records Ext.data.IModel[] The records array + * @param records Ext.data.Model[] The records array */ encodeRecords?( records?:Ext.data.IModel[] ): any[]; } @@ -5692,30 +6503,30 @@ declare module Ext.data.proxy { export interface IMemory extends Ext.data.proxy.IClient { /** [Config Option] (Object) */ data?: any; - /** [Config Option] (Boolean) Configure as true to enable this MemoryProxy to honour a read operation's start and limit options. ... */ + /** [Config Option] (Boolean) */ enablePaging?: bool; /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ clear?(): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Reads data from the configured data object - * @param operation Ext.data.IOperation The read Operation + * @param operation Ext.data.Operation The read Operation * @param callback Function The callback to call when reading has completed * @param scope Object The scope to call the callback function in */ read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -5726,30 +6537,30 @@ declare module Ext.data { export interface IMemoryProxy extends Ext.data.proxy.IClient { /** [Config Option] (Object) */ data?: any; - /** [Config Option] (Boolean) Configure as true to enable this MemoryProxy to honour a read operation's start and limit options. ... */ + /** [Config Option] (Boolean) */ enablePaging?: bool; /** [Method] Abstract function that must be implemented by each ClientProxy subclass */ clear?(): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Reads data from the configured data object - * @param operation Ext.data.IOperation The read Operation + * @param operation Ext.data.Operation The read Operation * @param callback Function The callback to call when reading has completed * @param scope Object The scope to call the callback function in */ read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Currently this is a hard coded method that simply commits any records and sets the operation to successful then call - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -5758,35 +6569,37 @@ declare module Ext.data { } declare module Ext.data.proxy { export interface IProxy extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + /** [Config Option] (Boolean) */ batchActions?: bool; - /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + /** [Config Option] (String) */ batchOrder?: string; - /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + /** [Config Option] (String/Ext.data.Model) */ model?: any; - /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + /** [Config Option] (Object/String/Ext.data.reader.Reader) */ reader?: any; - /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + /** [Config Option] (Object/String/Ext.data.writer.Writer) */ writer?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + /** [Property] (Boolean) */ isProxy?: bool; + /** [Property] (Boolean) */ + isSynchronous?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -5800,20 +6613,21 @@ declare module Ext.data.proxy { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Performs the given create operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -5825,7 +6639,7 @@ declare module Ext.data.proxy { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the model attached to this Proxy */ getModel?(): Ext.data.IModel; /** [Method] Returns the reader currently attached to this proxy instance */ @@ -5837,32 +6651,33 @@ declare module Ext.data.proxy { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -5880,11 +6695,12 @@ declare module Ext.data.proxy { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -5894,17 +6710,18 @@ declare module Ext.data.proxy { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Sets the model associated with this proxy - * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param model String/Ext.data.Model The new model. Can be either the model name string, or a reference to the model's constructor * @param setOnStore Boolean Sets the new model on the associated Store, if one is present */ + setModel?( model?:any, setOnStore?:any ): any; setModel?( model?:string, setOnStore?:bool ): void; setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; /** [Method] Sets the Proxy s Reader by string config object or Reader instance - * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + * @param reader String/Object/Ext.data.reader.Reader The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance */ setReader?( reader?:any ): Ext.data.reader.IReader; /** [Method] Sets the Proxy s Writer by string config object or Writer instance - * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + * @param writer String/Object/Ext.data.writer.Writer The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance */ setWriter?( writer?:any ): Ext.data.writer.IWriter; /** [Method] Suspends firing of the named event s @@ -5922,7 +6739,7 @@ declare module Ext.data.proxy { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -5931,35 +6748,37 @@ declare module Ext.data.proxy { } declare module Ext.data { export interface IDataProxy extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + /** [Config Option] (Boolean) */ batchActions?: bool; - /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + /** [Config Option] (String) */ batchOrder?: string; - /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + /** [Config Option] (String/Ext.data.Model) */ model?: any; - /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + /** [Config Option] (Object/String/Ext.data.reader.Reader) */ reader?: any; - /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + /** [Config Option] (Object/String/Ext.data.writer.Writer) */ writer?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + /** [Property] (Boolean) */ isProxy?: bool; + /** [Property] (Boolean) */ + isSynchronous?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -5973,20 +6792,21 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Performs the given create operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -5998,7 +6818,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the model attached to this Proxy */ getModel?(): Ext.data.IModel; /** [Method] Returns the reader currently attached to this proxy instance */ @@ -6010,32 +6830,33 @@ declare module Ext.data { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -6053,11 +6874,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -6067,17 +6889,18 @@ declare module Ext.data { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Sets the model associated with this proxy - * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param model String/Ext.data.Model The new model. Can be either the model name string, or a reference to the model's constructor * @param setOnStore Boolean Sets the new model on the associated Store, if one is present */ + setModel?( model?:any, setOnStore?:any ): any; setModel?( model?:string, setOnStore?:bool ): void; setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; /** [Method] Sets the Proxy s Reader by string config object or Reader instance - * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + * @param reader String/Object/Ext.data.reader.Reader The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance */ setReader?( reader?:any ): Ext.data.reader.IReader; /** [Method] Sets the Proxy s Writer by string config object or Writer instance - * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + * @param writer String/Object/Ext.data.writer.Writer The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance */ setWriter?( writer?:any ): Ext.data.writer.IWriter; /** [Method] Suspends firing of the named event s @@ -6095,7 +6918,7 @@ declare module Ext.data { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -6104,35 +6927,37 @@ declare module Ext.data { } declare module Ext.data { export interface IProxy extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + /** [Config Option] (Boolean) */ batchActions?: bool; - /** [Config Option] (String) Comma-separated ordering 'create', 'update' and 'destroy' actions when batching. ... */ + /** [Config Option] (String) */ batchOrder?: string; - /** [Config Option] (String/Ext.data.Model) The name of the Model to tie to this Proxy. ... */ + /** [Config Option] (String/Ext.data.Model) */ model?: any; - /** [Config Option] (Object/String/Ext.data.reader.Reader) The Ext.data.reader.Reader to use to decode the server's response or data read from client. ... */ + /** [Config Option] (Object/String/Ext.data.reader.Reader) */ reader?: any; - /** [Config Option] (Object/String/Ext.data.writer.Writer) The Ext.data.writer.Writer to use to encode any request sent to the server or saved to client. ... */ + /** [Config Option] (Object/String/Ext.data.writer.Writer) */ writer?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Proxy, or subclass thereof. ... */ + /** [Property] (Boolean) */ isProxy?: bool; + /** [Property] (Boolean) */ + isSynchronous?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -6146,20 +6971,21 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Performs the given create operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -6171,7 +6997,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the model attached to this Proxy */ getModel?(): Ext.data.IModel; /** [Method] Returns the reader currently attached to this proxy instance */ @@ -6183,32 +7009,33 @@ declare module Ext.data { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -6226,11 +7053,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -6240,17 +7068,18 @@ declare module Ext.data { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Sets the model associated with this proxy - * @param model String The new model. Can be either the model name string, or a reference to the model's constructor + * @param model String/Ext.data.Model The new model. Can be either the model name string, or a reference to the model's constructor * @param setOnStore Boolean Sets the new model on the associated Store, if one is present */ + setModel?( model?:any, setOnStore?:any ): any; setModel?( model?:string, setOnStore?:bool ): void; setModel?( model?:Ext.data.IModel, setOnStore?:bool ): void; /** [Method] Sets the Proxy s Reader by string config object or Reader instance - * @param reader any The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance + * @param reader String/Object/Ext.data.reader.Reader The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance */ setReader?( reader?:any ): Ext.data.reader.IReader; /** [Method] Sets the Proxy s Writer by string config object or Writer instance - * @param writer any The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance + * @param writer String/Object/Ext.data.writer.Writer The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance */ setWriter?( writer?:any ): Ext.data.writer.IWriter; /** [Method] Suspends firing of the named event s @@ -6268,7 +7097,7 @@ declare module Ext.data { */ un?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform + * @param operation Ext.data.Operation The Operation to perform * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) * @param scope Object Scope to execute the callback function in */ @@ -6277,230 +7106,190 @@ declare module Ext.data { } declare module Ext.data.proxy { export interface IRest extends Ext.data.proxy.IAjax { - /** [Config Option] (Boolean) True to automatically append the ID of a Model instance when performing a request based on that single instance. ... */ + /** [Config Option] (Boolean) */ appendId?: bool; - /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + /** [Config Option] (Boolean) */ batchActions?: bool; - /** [Config Option] (String) Optional data format to send to the server when making any request (e.g. ... */ + /** [Config Option] (String) */ format?: string; - /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + /** [Property] (Object) */ actionMethods?: any; /** [Method] Specialized version of buildUrl that incorporates the appendId and format options into the generated url * @param request Object */ - buildUrl?( request?:any ): string; + buildUrl?( request?:any ): void; } } declare module Ext.data { export interface IRestProxy extends Ext.data.proxy.IAjax { - /** [Config Option] (Boolean) True to automatically append the ID of a Model instance when performing a request based on that single instance. ... */ + /** [Config Option] (Boolean) */ appendId?: bool; - /** [Config Option] (Boolean) True to batch actions of a particular type when synchronizing the store. ... */ + /** [Config Option] (Boolean) */ batchActions?: bool; - /** [Config Option] (String) Optional data format to send to the server when making any request (e.g. ... */ + /** [Config Option] (String) */ format?: string; - /** [Property] (Object) Mapping of action name to HTTP request method. ... */ + /** [Property] (Object) */ actionMethods?: any; /** [Method] Specialized version of buildUrl that incorporates the appendId and format options into the generated url * @param request Object */ - buildUrl?( request?:any ): string; + buildUrl?( request?:any ): void; } } declare module Ext.data.proxy { export interface IServer extends Ext.data.proxy.IProxy { - /** [Config Option] (Object) Specific urls to call on CRUD action methods "create", "read", "update" and "destroy". ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (String) The name of the cache param added to the url when using noCache. ... */ + /** [Config Option] (String) */ cacheString?: string; - /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + /** [Config Option] (String) */ directionParam?: string; - /** [Config Option] (Object) Extra parameters that will be included on every request. ... */ + /** [Config Option] (Object) */ extraParams?: any; - /** [Config Option] (String) The name of the 'filter' parameter to send in a request. ... */ + /** [Config Option] (String) */ filterParam?: string; - /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + /** [Config Option] (String) */ groupDirectionParam?: string; - /** [Config Option] (String) The name of the 'group' parameter to send in a request. ... */ + /** [Config Option] (String) */ groupParam?: string; - /** [Config Option] (String) The name of the parameter which carries the id of the entity being operated upon. ... */ + /** [Config Option] (String) */ idParam?: string; - /** [Config Option] (String) The name of the 'limit' parameter to send in a request. ... */ + /** [Config Option] (String) */ limitParam?: string; - /** [Config Option] (Boolean) Disable caching by adding a unique parameter name to the request. ... */ + /** [Config Option] (Boolean) */ noCache?: bool; - /** [Config Option] (String) The name of the 'page' parameter to send in a request. ... */ + /** [Config Option] (String) */ pageParam?: string; - /** [Config Option] (Boolean) Enabling simpleGroupMode in conjunction with remoteGroup will only send one group property and a direction when a rem... */ + /** [Config Option] (Boolean) */ simpleGroupMode?: bool; - /** [Config Option] (Boolean) Enabling simpleSortMode in conjunction with remoteSort will only send one sort property and a direction when a remote... */ + /** [Config Option] (Boolean) */ simpleSortMode?: bool; - /** [Config Option] (String) The name of the 'sort' parameter to send in a request. ... */ + /** [Config Option] (String) */ sortParam?: string; - /** [Config Option] (String) The name of the 'start' parameter to send in a request. ... */ + /** [Config Option] (String) */ startParam?: string; - /** [Config Option] (Number) The number of milliseconds to wait for a response. ... */ + /** [Config Option] (Number) */ timeout?: number; /** [Config Option] (String) */ url?: string; /** [Method] Optional callback function which can be used to clean up after a request has been completed - * @param request Ext.data.IRequest The Request object + * @param request Ext.data.Request The Request object * @param success Boolean True if the request was successful */ afterRequest?( request?:Ext.data.IRequest, success?:bool ): void; /** [Method] Creates an Request object from Operation - * @param operation Ext.data.IOperation The operation to execute + * @param operation Ext.data.Operation The operation to execute */ buildRequest?( operation?:Ext.data.IOperation ): Ext.data.IRequest; /** [Method] Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ buildUrl?( request?:Ext.data.IRequest ): string; - /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case */ + create?(): void; + /** [Method] Performs the given destroy operation */ + destroy?(): void; /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest - * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param operation Ext.data.Operation The Ext.data.Operation object * @param callback Function The callback function to call when the Operation has completed * @param scope Object The scope in which to execute the callback */ doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Encodes the array of Ext util Filter objects into a string to be sent in the request url - * @param filters Ext.util.IFilter[] The array of Filter objects + * @param filters Ext.util.Filter[] The array of Filter objects */ encodeFilters?( filters?:Ext.util.IFilter[] ): string; /** [Method] Encodes the array of Ext util Sorter objects into a string to be sent in the request url - * @param sorters Ext.util.ISorter[] The array of Sorter objects + * @param sorters Ext.util.Sorter[] The array of Sorter objects */ encodeSorters?( sorters?:Ext.util.ISorter[] ): string; - /** [Method] Template method to allow subclasses to specify how to get the response for the reader - * @param response Object The server response - */ - extractResponseData?( response?:any ): any; - /** [Method] Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given read operation */ + read?(): void; /** [Method] Sets a value in the underlying extraParams * @param name String The key for the new value * @param value Object The value */ setExtraParam?( name?:string, value?:any ): void; - /** [Method] Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given update operation */ + update?(): void; } } declare module Ext.data { export interface IServerProxy extends Ext.data.proxy.IProxy { - /** [Config Option] (Object) Specific urls to call on CRUD action methods "create", "read", "update" and "destroy". ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (String) The name of the cache param added to the url when using noCache. ... */ + /** [Config Option] (String) */ cacheString?: string; - /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + /** [Config Option] (String) */ directionParam?: string; - /** [Config Option] (Object) Extra parameters that will be included on every request. ... */ + /** [Config Option] (Object) */ extraParams?: any; - /** [Config Option] (String) The name of the 'filter' parameter to send in a request. ... */ + /** [Config Option] (String) */ filterParam?: string; - /** [Config Option] (String) The name of the direction parameter to send in a request. ... */ + /** [Config Option] (String) */ groupDirectionParam?: string; - /** [Config Option] (String) The name of the 'group' parameter to send in a request. ... */ + /** [Config Option] (String) */ groupParam?: string; - /** [Config Option] (String) The name of the parameter which carries the id of the entity being operated upon. ... */ + /** [Config Option] (String) */ idParam?: string; - /** [Config Option] (String) The name of the 'limit' parameter to send in a request. ... */ + /** [Config Option] (String) */ limitParam?: string; - /** [Config Option] (Boolean) Disable caching by adding a unique parameter name to the request. ... */ + /** [Config Option] (Boolean) */ noCache?: bool; - /** [Config Option] (String) The name of the 'page' parameter to send in a request. ... */ + /** [Config Option] (String) */ pageParam?: string; - /** [Config Option] (Boolean) Enabling simpleGroupMode in conjunction with remoteGroup will only send one group property and a direction when a rem... */ + /** [Config Option] (Boolean) */ simpleGroupMode?: bool; - /** [Config Option] (Boolean) Enabling simpleSortMode in conjunction with remoteSort will only send one sort property and a direction when a remote... */ + /** [Config Option] (Boolean) */ simpleSortMode?: bool; - /** [Config Option] (String) The name of the 'sort' parameter to send in a request. ... */ + /** [Config Option] (String) */ sortParam?: string; - /** [Config Option] (String) The name of the 'start' parameter to send in a request. ... */ + /** [Config Option] (String) */ startParam?: string; - /** [Config Option] (Number) The number of milliseconds to wait for a response. ... */ + /** [Config Option] (Number) */ timeout?: number; /** [Config Option] (String) */ url?: string; /** [Method] Optional callback function which can be used to clean up after a request has been completed - * @param request Ext.data.IRequest The Request object + * @param request Ext.data.Request The Request object * @param success Boolean True if the request was successful */ afterRequest?( request?:Ext.data.IRequest, success?:bool ): void; /** [Method] Creates an Request object from Operation - * @param operation Ext.data.IOperation The operation to execute + * @param operation Ext.data.Operation The operation to execute */ buildRequest?( operation?:Ext.data.IOperation ): Ext.data.IRequest; /** [Method] Generates a url based on a given Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ buildUrl?( request?:Ext.data.IRequest ): string; - /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] in a ServerProxy all four CRUD operations are executed in the same manner so we delegate to doRequest in each case */ + create?(): void; + /** [Method] Performs the given destroy operation */ + destroy?(): void; /** [Method] In ServerProxy subclasses the create read update and destroy methods all pass through to doRequest - * @param operation Ext.data.IOperation The Ext.data.Operation object + * @param operation Ext.data.Operation The Ext.data.Operation object * @param callback Function The callback function to call when the Operation has completed * @param scope Object The scope in which to execute the callback */ doRequest?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; /** [Method] Encodes the array of Ext util Filter objects into a string to be sent in the request url - * @param filters Ext.util.IFilter[] The array of Filter objects + * @param filters Ext.util.Filter[] The array of Filter objects */ encodeFilters?( filters?:Ext.util.IFilter[] ): string; /** [Method] Encodes the array of Ext util Sorter objects into a string to be sent in the request url - * @param sorters Ext.util.ISorter[] The array of Sorter objects + * @param sorters Ext.util.Sorter[] The array of Sorter objects */ encodeSorters?( sorters?:Ext.util.ISorter[] ): string; - /** [Method] Template method to allow subclasses to specify how to get the response for the reader - * @param response Object The server response - */ - extractResponseData?( response?:any ): any; - /** [Method] Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given read operation */ + read?(): void; /** [Method] Sets a value in the underlying extraParams * @param name String The key for the new value * @param value Object The value */ setExtraParam?( name?:string, value?:any ): void; - /** [Method] Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in - */ - update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + /** [Method] Performs the given update operation */ + update?(): void; } } declare module Ext.data.proxy { @@ -6515,110 +7304,110 @@ declare module Ext.data.proxy { export interface IWebStorage extends Ext.data.proxy.IClient { /** [Config Option] (String) */ id?: string; - /** [Property] (Object) Cached map of records already retrieved by this Proxy. ... */ + /** [Property] (Object) */ cache?: any; /** [Method] Destroys all records stored in the proxy and removes all keys and values used to support the proxy from the storage o */ clear?(): void; - /** [Method] inherit docs Performs the given create operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + create?( operation?:any, callback?:any, scope?:any ): void; + /** [Method] inherit + * @param operation Object + * @param callback Object + * @param scope Object */ - destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit docs Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + destroy?( operation?:any, callback?:any, scope?:any ): void; + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + read?( operation?:any, callback?:any, scope?:any ): void; /** [Method] Saves the given record in the Proxy - * @param record Ext.data.IModel The model instance + * @param record Ext.data.Model The model instance * @param id String The id to save the record under (defaults to the value of the record's getId() function) */ setRecord?( record?:Ext.data.IModel, id?:string ): void; - /** [Method] inherit docs Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + update?( operation?:any, callback?:any, scope?:any ): void; } } declare module Ext.data { export interface IWebStorageProxy extends Ext.data.proxy.IClient { /** [Config Option] (String) */ id?: string; - /** [Property] (Object) Cached map of records already retrieved by this Proxy. ... */ + /** [Property] (Object) */ cache?: any; /** [Method] Destroys all records stored in the proxy and removes all keys and values used to support the proxy from the storage o */ clear?(): void; - /** [Method] inherit docs Performs the given create operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - create?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit Performs the given destroy operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + create?( operation?:any, callback?:any, scope?:any ): void; + /** [Method] inherit + * @param operation Object + * @param callback Object + * @param scope Object */ - destroy?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; - /** [Method] inherit docs Performs the given read operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + destroy?( operation?:any, callback?:any, scope?:any ): void; + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - read?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + read?( operation?:any, callback?:any, scope?:any ): void; /** [Method] Saves the given record in the Proxy - * @param record Ext.data.IModel The model instance + * @param record Ext.data.Model The model instance * @param id String The id to save the record under (defaults to the value of the record's getId() function) */ setRecord?( record?:Ext.data.IModel, id?:string ): void; - /** [Method] inherit docs Performs the given update operation - * @param operation Ext.data.IOperation The Operation to perform - * @param callback Function Callback function to be called when the Operation has completed (whether successful or not) - * @param scope Object Scope to execute the callback function in + /** [Method] inherit docs + * @param operation Object + * @param callback Object + * @param scope Object */ - update?( operation?:Ext.data.IOperation, callback?:any, scope?:any ): void; + update?( operation?:any, callback?:any, scope?:any ): void; } } declare module Ext.data.reader { export interface IArray extends Ext.data.reader.IJson { - /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + /** [Config Option] (String) */ successProperty?: string; - /** [Config Option] (String) For Array Reader, methods in the base which use these properties must not see the defaults Name of the property from... */ + /** [Config Option] (String) */ totalProperty?: string; } } declare module Ext.data { export interface IArrayReader extends Ext.data.reader.IJson { - /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + /** [Config Option] (String) */ successProperty?: string; - /** [Config Option] (String) For Array Reader, methods in the base which use these properties must not see the defaults Name of the property from... */ + /** [Config Option] (String) */ totalProperty?: string; } } declare module Ext.data.reader { export interface IJson extends Ext.data.reader.IReader { - /** [Config Option] (String) Name of the property from which to retrieve the metaData attribute. ... */ + /** [Config Option] (String) */ metaProperty?: string; - /** [Config Option] (String) The optional location within the JSON response that the record data itself can be found at. ... */ + /** [Config Option] (String) */ record?: string; - /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (Boolean) True to ensure that field names/mappings are treated as literals when reading values. ... */ + /** [Config Option] (Boolean) */ useSimpleAccessors?: bool; - /** [Property] (Object) A copy of this.rawData. ... */ + /** [Property] (Object) */ jsonData?: any; - /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it - * @param response Object The response object + /** [Method] inherit docs + * @param response Object */ getResponseData?( response?:any ): Ext.data.IResultSet; /** [Method] Reads a JSON object and returns a ResultSet @@ -6629,18 +7418,18 @@ declare module Ext.data.reader { } declare module Ext.data { export interface IJsonReader extends Ext.data.reader.IReader { - /** [Config Option] (String) Name of the property from which to retrieve the metaData attribute. ... */ + /** [Config Option] (String) */ metaProperty?: string; - /** [Config Option] (String) The optional location within the JSON response that the record data itself can be found at. ... */ + /** [Config Option] (String) */ record?: string; - /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (Boolean) True to ensure that field names/mappings are treated as literals when reading values. ... */ + /** [Config Option] (Boolean) */ useSimpleAccessors?: bool; - /** [Property] (Object) A copy of this.rawData. ... */ + /** [Property] (Object) */ jsonData?: any; - /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it - * @param response Object The response object + /** [Method] inherit docs + * @param response Object */ getResponseData?( response?:any ): Ext.data.IResultSet; /** [Method] Reads a JSON object and returns a ResultSet @@ -6651,41 +7440,41 @@ declare module Ext.data { } declare module Ext.data.reader { export interface IReader extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ + /** [Config Option] (String) */ idProperty?: string; - /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ + /** [Config Option] (Boolean) */ implicitIncludes?: bool; - /** [Config Option] (String) The name of the property which contains a response message. ... */ + /** [Config Option] (String) */ messageProperty?: string; - /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ + /** [Config Option] (Boolean) */ readRecordsOnFailure?: bool; - /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + /** [Config Option] (String) */ successProperty?: string; - /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ + /** [Config Option] (String) */ totalProperty?: string; - /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ + /** [Property] (Object) */ metaData?: any; - /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ + /** [Property] (Object) */ rawData?: any; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -6695,8 +7484,9 @@ declare module Ext.data.reader { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -6708,7 +7498,7 @@ declare module Ext.data.reader { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it * @param response Object The response object */ @@ -6718,25 +7508,26 @@ declare module Ext.data.reader { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -6763,11 +7554,158 @@ declare module Ext.data.reader { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; + removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + resumeEvent?( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + resumeEvents?(): void; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + suspendEvent?( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + suspendEvents?( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + un?( eventName?:string, fn?:any, scope?:any ): void; + } +} +declare module Ext.data { + export interface IReader extends Ext.IBase,Ext.util.IObservable { + /** [Config Option] (String) */ + idProperty?: string; + /** [Config Option] (Boolean) */ + implicitIncludes?: bool; + /** [Config Option] (String) */ + messageProperty?: string; + /** [Config Option] (Boolean) */ + readRecordsOnFailure?: bool; + /** [Config Option] (String) */ + root?: string; + /** [Config Option] (String) */ + successProperty?: string; + /** [Config Option] (String) */ + totalProperty?: string; + /** [Property] (Object) */ + metaData?: any; + /** [Property] (Object) */ + rawData?: any; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + addEvents?( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + clearListeners?(): void; + /** [Method] Removes all managed listeners for this object */ + clearManagedListeners?(): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + enableBubble?( eventNames?:any ): any; + enableBubble?( eventNames?:string ): void; + enableBubble?( eventNames?:string[] ): void; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + fireEvent?( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + fireEventArgs?( eventName?:string, args?:any[] ): bool; + /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it + * @param response Object The response object + */ + getResponseData?( response?:any ): Ext.data.IResultSet; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + hasListener?( eventName?:string ): bool; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; + mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Reads the given response object + * @param response Object The response object. This may be either an XMLHttpRequest object or a plain JS object + */ + read?( response?:any ): Ext.data.IResultSet; + /** [Method] Abstracts common functionality used by all Reader subclasses + * @param data Object The raw data object + */ + readRecords?( data?:any ): Ext.data.IResultSet; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + relayEvents?( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + removeListener?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -6794,41 +7732,41 @@ declare module Ext.data.reader { } declare module Ext.data { export interface IDataReader extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ + /** [Config Option] (String) */ idProperty?: string; - /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ + /** [Config Option] (Boolean) */ implicitIncludes?: bool; - /** [Config Option] (String) The name of the property which contains a response message. ... */ + /** [Config Option] (String) */ messageProperty?: string; - /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ + /** [Config Option] (Boolean) */ readRecordsOnFailure?: bool; - /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ + /** [Config Option] (String) */ successProperty?: string; - /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ + /** [Config Option] (String) */ totalProperty?: string; - /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ + /** [Property] (Object) */ metaData?: any; - /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ + /** [Property] (Object) */ rawData?: any; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -6838,8 +7776,9 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -6851,7 +7790,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it * @param response Object The response object */ @@ -6861,25 +7800,26 @@ declare module Ext.data { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -6906,154 +7846,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn Function If the ename parameter was an event name, this is the handler function. - * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - */ - removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; - removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; - /** [Method] Resumes firing of the named event s - * @param eventName String... Multiple event names to resume. - */ - resumeEvent?( ...eventName:any[] ): void; - /** [Method] Resumes firing events see suspendEvents */ - resumeEvents?(): void; - /** [Method] Suspends firing of the named event s - * @param eventName String... Multiple event names to suspend. - */ - suspendEvent?( ...eventName:any[] ): void; - /** [Method] Suspends the firing of all events - * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. - */ - suspendEvents?( queueSuspended?:bool ): void; - /** [Method] Shorthand for removeListener - * @param eventName String The type of event the handler was associated with. - * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. - * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. - */ - un?( eventName?:string, fn?:any, scope?:any ): void; - } -} -declare module Ext.data { - export interface IReader extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) Name of the property within a row object that contains a record identifier value. ... */ - idProperty?: string; - /** [Config Option] (Boolean) True to automatically parse models nested within other models in a response object. ... */ - implicitIncludes?: bool; - /** [Config Option] (String) The name of the property which contains a response message. ... */ - messageProperty?: string; - /** [Config Option] (Boolean) True to extract the records from a data packet even if the successProperty returns false. ... */ - readRecordsOnFailure?: bool; - /** [Config Option] (String) The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configu... */ - root?: string; - /** [Config Option] (String) Name of the property from which to retrieve the success attribute, the value of which indicates whether a given reque... */ - successProperty?: string; - /** [Config Option] (String) Name of the property from which to retrieve the total number of records in the dataset. ... */ - totalProperty?: string; - /** [Property] (Object) The raw meta data that was most recently read, if any. ... */ - metaData?: any; - /** [Property] (Object) The raw data object that was last passed to readRecords. ... */ - rawData?: any; - /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); - */ - addEvents?( eventNames?:any ): void; - /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. - * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. - * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. - * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: - */ - addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. - */ - addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; - addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; - addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] Removes all listeners for this object including the managed listeners */ - clearListeners?(): void; - /** [Method] Removes all managed listeners for this object */ - clearManagedListeners?(): void; - /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. - */ - enableBubble?( eventNames?:string ): void; - enableBubble?( eventNames?:string[] ): void; - /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList - * @param eventName String The name of the event to fire. - * @param args Object... Variable number of parameters are passed to handlers. - */ - fireEvent?( eventName:string, ...args:any[] ): bool; - /** [Method] Fires the specified event with the passed parameter list - * @param eventName String The name of the event to fire. - * @param args Object[] An array of parameters which are passed to handlers. - */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; - /** [Method] Takes a raw response object as passed to the read method and returns the useful data segment from it - * @param response Object The response object - */ - getResponseData?( response?:any ): Ext.data.IResultSet; - /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles - * @param eventName String The name of the event to check for - */ - hasListener?( eventName?:string ): bool; - /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. - */ - mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; - mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; - mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn Function If the ename parameter was an event name, this is the handler function. - * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - */ - mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; - mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; - /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. - * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. - * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. - * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: - */ - on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] Reads the given response object - * @param response Object The response object. This may be either an XMLHttpRequest object or a plain JS object - */ - read?( response?:any ): Ext.data.IResultSet; - /** [Method] Abstracts common functionality used by all Reader subclasses - * @param data Object The raw data object - */ - readRecords?( data?:any ): Ext.data.IResultSet; - /** [Method] Relays selected events from the specified Observable as if the events were fired by this - * @param origin Object The Observable whose events this object is to relay. - * @param events String[] Array of event names to relay. - * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. - */ - relayEvents?( origin?:any, events?:string[], prefix?:string ): any; - /** [Method] Removes an event handler - * @param eventName String The type of event the handler was associated with. - * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. - * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. - */ - removeListener?( eventName?:string, fn?:any, scope?:any ): void; - /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -7080,18 +7878,18 @@ declare module Ext.data { } declare module Ext.data.reader { export interface IXml extends Ext.data.reader.IReader { - /** [Config Option] (String) A namespace prefix that will be prepended to the field name when reading a field from an XML node. ... */ + /** [Config Option] (String) */ namespace?: string; /** [Config Option] (String) */ record?: string; - /** [Property] (Object) Copy of rawData. ... */ + /** [Property] (Object) */ xmlData?: any; /** [Method] Normalizes the data object * @param data Object The raw data object */ getData?( data?:any ): any; - /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it - * @param response Object The response object + /** [Method] inherit docs + * @param response Object */ getResponseData?( response?:any ): Ext.data.IResultSet; /** [Method] Parses an XML document and returns a ResultSet containing the model instances @@ -7102,18 +7900,18 @@ declare module Ext.data.reader { } declare module Ext.data { export interface IXmlReader extends Ext.data.reader.IReader { - /** [Config Option] (String) A namespace prefix that will be prepended to the field name when reading a field from an XML node. ... */ + /** [Config Option] (String) */ namespace?: string; /** [Config Option] (String) */ record?: string; - /** [Property] (Object) Copy of rawData. ... */ + /** [Property] (Object) */ xmlData?: any; /** [Method] Normalizes the data object * @param data Object The raw data object */ getData?( data?:any ): any; - /** [Method] inherit docs Takes a raw response object as passed to the read method and returns the useful data segment from it - * @param response Object The response object + /** [Method] inherit docs + * @param response Object */ getResponseData?( response?:any ): Ext.data.IResultSet; /** [Method] Parses an XML document and returns a ResultSet containing the model instances @@ -7124,11 +7922,11 @@ declare module Ext.data { } declare module Ext.data { export interface IRequest extends Ext.IBase { - /** [Config Option] (String) The name of the action this Request represents. ... */ + /** [Config Option] (String) */ action?: string; - /** [Config Option] (String) The HTTP method to use on this Request. ... */ + /** [Config Option] (String) */ method?: string; - /** [Config Option] (Object) HTTP request params. ... */ + /** [Config Option] (Object) */ params?: any; /** [Config Option] (String) */ url?: string; @@ -7136,25 +7934,25 @@ declare module Ext.data { } declare module Ext.data { export interface IResultSet extends Ext.IBase { - /** [Config Option] (Number) The number of records in this ResultSet. ... */ + /** [Config Option] (Number) */ count?: number; - /** [Config Option] (Boolean) True if the records have already been loaded. ... */ + /** [Config Option] (Boolean) */ loaded?: bool; /** [Config Option] (Ext.data.Model[]) */ records?: Ext.data.IModel[]; - /** [Config Option] (Boolean) True if the ResultSet loaded successfully, false if any errors were encountered. ... */ + /** [Config Option] (Boolean) */ success?: bool; - /** [Config Option] (Number) The total number of records reported by the data source. ... */ + /** [Config Option] (Number) */ total?: number; - /** [Property] (Number) Copy of this.total. ... */ + /** [Property] (Number) */ totalRecords?: number; } } declare module Ext.data { export interface ISequentialIdGenerator extends Ext.data.IIdGenerator { - /** [Config Option] (String) The string to place in front of the sequential number for each generated id. ... */ + /** [Config Option] (String) */ prefix?: string; - /** [Config Option] (Number) The number at which to start generating sequential id's. ... */ + /** [Config Option] (Number) */ seed?: number; /** [Method] Generates and returns the next id */ generate?(): string; @@ -7188,63 +7986,111 @@ declare module Ext.data { * @param s Object The value being converted */ static asUCText( s?:any ): string; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Default sort that does nothing * @param s Object The value being converted */ static none( s?:any ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data { export interface IStore extends Ext.data.IAbstractStore { - /** [Config Option] (Boolean) When a Store is used by only one DataView, and should only exist for the lifetime of that view, then configure the au... */ + /** [Config Option] (Boolean) */ autoDestroy?: bool; - /** [Config Option] (Boolean) Allows the Store to prefetch and cache in a page cache, pages of Records, and to then satisfy loading requirements fr... */ + /** [Config Option] (Boolean) */ buffered?: bool; - /** [Config Option] (Boolean) True to empty the store when loading another page via loadPage, nextPage or previousPage. ... */ + /** [Config Option] (Boolean) */ clearOnPageLoad?: bool; - /** [Config Option] (Boolean) true to clear anything in the removed record collection when the store loads. ... */ + /** [Config Option] (Boolean) */ clearRemovedOnLoad?: bool; - /** [Config Option] (Object[]/Ext.data.Model[]) Array of Model instances or data objects to load locally. ... */ + /** [Config Option] (Object[]/Ext.data.Model[]) */ data?: any; - /** [Config Option] (String) The direction in which sorting should be applied when grouping. ... */ + /** [Config Option] (String) */ groupDir?: string; - /** [Config Option] (String) The field by which to group data in the store. ... */ + /** [Config Option] (String) */ groupField?: string; /** [Config Option] (Ext.util.MixedCollection) */ groupers?: Ext.util.IMixedCollection; - /** [Config Option] (Number) When buffered, the number of extra rows to keep cached on the leading side of scrolling buffer as scrolling proceeds. ... */ + /** [Config Option] (Number) */ leadingBufferZone?: number; - /** [Config Option] (Number) The number of records considered to form a 'page'. ... */ + /** [Config Option] (Number) */ pageSize?: number; - /** [Config Option] (String/Ext.data.proxy.Proxy/Object) The Proxy to use for this Store. ... */ + /** [Config Option] (String/Ext.data.proxy.Proxy/Object) */ proxy?: any; - /** [Config Option] (Number) Valid only when used with a buffered Store. ... */ + /** [Config Option] (Number) */ purgePageCount?: number; - /** [Config Option] (Boolean) true if the grouping should be performed on the server side, false if it is local only. ... */ + /** [Config Option] (Boolean) */ remoteFilter?: bool; - /** [Config Option] (Boolean) true if the grouping should apply on the server side, false if it is local only. ... */ + /** [Config Option] (Boolean) */ remoteGroup?: bool; - /** [Config Option] (Boolean) true if the sorting should be performed on the server side, false if it is local only. ... */ + /** [Config Option] (Boolean) */ remoteSort?: bool; - /** [Config Option] (Boolean) For local filtering only, causes sort to be called whenever filter is called, causing the sorters to be reapplied aft... */ + /** [Config Option] (Boolean) */ sortOnFilter?: bool; - /** [Config Option] (Number) When buffered, the number of extra records to keep cached on the trailing side of scrolling buffer as scrolling proce... */ + /** [Config Option] (Number) */ trailingBufferZone?: number; - /** [Property] (Number) The page that the Store has most recently loaded (see loadPage) ... */ + /** [Property] (Number) */ currentPage?: number; - /** [Property] (Ext.util.MixedCollection) A pristine (unfiltered) collection of the records in this store. ... */ + /** [Property] (Ext.util.MixedCollection) */ snapshot?: Ext.util.IMixedCollection; /** [Method] Adds Model instance to the Store - * @param model any An array of Model instances or Model configuration objects, or variable number of Model instance or config arguments. + * @param model Ext.data.Model[]/Ext.data.Model.../Object[]/Object... An array of Model instances or Model configuration objects, or variable number of Model instance or config arguments. */ add?( model?:any ): Ext.data.IModel[]; /** [Method] Adds a new Filter to this Store s filter set and by default applys the updated filter set to the Store s unfiltered - * @param filters any The set of filters to add to the current filter set. + * @param filters Object[]/Ext.util.Filter[] The set of filters to add to the current filter set. * @param applyFilters Boolean Pass as false to add the filter but not apply the updated filter set. */ addFilter?( filters?:any, applyFilters?:bool ): void; /** [Method] Local sort only Inserts the passed Record into the Store at the index where it should go based on the current sort - * @param record Ext.data.IRecord + * @param record Ext.data.Record */ addSorted?( record?:Ext.data.IRecord ): void; /** [Method] Runs the aggregate function for all the records in the store @@ -7270,7 +8116,7 @@ declare module Ext.data { * @param allowNull Boolean Pass true to allow null, undefined or empty string values * @param bypassFilter Boolean Pass true to collect from all records, even ones which are filtered. */ - collect?( dataIndex?:string, allowNull?:bool, bypassFilter?:bool ): Object[]; + collect?( dataIndex?:string, allowNull?:bool, bypassFilter?:bool ): any[]; /** [Method] Commits all Records with outstanding changes */ commitChanges?(): void; /** [Method] Gets the count of items in the store @@ -7283,7 +8129,7 @@ declare module Ext.data { */ each?( fn?:any, scope?:any ): void; /** [Method] Filters the loaded set of records by a given set of filters - * @param filters any The set of filters to apply to the data. These are stored internally on the store, but the filtering itself is done on the Store's MixedCollection. See MixedCollection's filter method for filter syntax. Alternatively, pass in a property string. If no parameters are passed, the Store's existing filter set is applied. + * @param filters Object[]/Ext.util.Filter[]/String The set of filters to apply to the data. These are stored internally on the store, but the filtering itself is done on the Store's MixedCollection. See MixedCollection's filter method for filter syntax. Alternatively, pass in a property string. If no parameters are passed, the Store's existing filter set is applied. * @param value String value to filter by (only if using a property string as the first argument) */ filter?( filters?:any, value?:string ): void; @@ -7293,12 +8139,12 @@ declare module Ext.data { */ filterBy?( fn?:any, scope?:any ): void; /** [Method] Finds the index of the first matching Record in this store by a specific field value - * @param fieldName any The name of the Record field to test. - * @param value any Either a string that the field value should begin with, or a RegExp to test against the field. - * @param startIndex any The index to start searching at - * @param anyMatch any True to match any part of the string, not just the beginning - * @param caseSensitive any True for case sensitive comparison - * @param exactMatch any True to force exact match (^ and $ characters added to the regex). + * @param fieldName String The name of the Record field to test. + * @param value String/RegExp Either a string that the field value should begin with, or a RegExp to test against the field. + * @param startIndex Number The index to start searching at + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison + * @param exactMatch Boolean True to force exact match (^ and $ characters added to the regex). */ find?( fieldName?:any, value?:any, startIndex?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; find?( fieldName?:string, value?:string, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): number; @@ -7316,12 +8162,12 @@ declare module Ext.data { */ findExact?( fieldName?:string, value?:any, startIndex?:number ): number; /** [Method] Finds the first matching Record in this store by a specific field value - * @param fieldName any The name of the Record field to test. - * @param value any Either a string that the field value should begin with, or a RegExp to test against the field. - * @param startIndex any The index to start searching at - * @param anyMatch any True to match any part of the string, not just the beginning - * @param caseSensitive any True for case sensitive comparison - * @param exactMatch any True to force exact match (^ and $ characters added to the regex). + * @param fieldName String The name of the Record field to test. + * @param value String/RegExp Either a string that the field value should begin with, or a RegExp to test against the field. + * @param startIndex Number The index to start searching at + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison + * @param exactMatch Boolean True to force exact match (^ and $ characters added to the regex). */ findRecord?( fieldName?:any, value?:any, startIndex?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; findRecord?( fieldName?:string, value?:string, startIndex?:number, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.data.IModel; @@ -7345,14 +8191,14 @@ declare module Ext.data { /** [Method] Gets the number of records in store */ getCount?(): number; /** [Method] Returns the string to group on for a given model instance - * @param instance Ext.data.IModel The model instance + * @param instance Ext.data.Model The model instance */ getGroupString?( instance?:Ext.data.IModel ): string; /** [Method] Returns an array containing the result of applying grouping to the records in this store * @param groupName String Pass in an optional groupName argument to access a specific group as defined by getGroupString. */ getGroups?( groupName?:string ): any; - /** [Method] inherit docs Returns all Model instances that are either currently a phantom e g */ + /** [Method] inherit docs */ getNewRecords?(): Ext.data.IModel[]; /** [Method] Determines the page from a record index * @param index Number The record index @@ -7366,15 +8212,23 @@ declare module Ext.data { getRange?( start?:number, end?:number, options?:any ): Ext.data.IModel[]; /** [Method] Returns the total number of Model instances that the Proxy indicates exist */ getTotalCount?(): number; - /** [Method] inherit docs Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy */ + /** [Method] inherit docs */ getUpdatedRecords?(): Ext.data.IModel[]; /** [Method] Groups data inside the store - * @param groupers any Either a string name of one of the fields in this Store's configured Model, or an Array of grouper configurations. + * @param groupers String/Object[] Either a string name of one of the fields in this Store's configured Model, or an Array of grouper configurations. * @param direction String The overall direction to group the data by. */ group?( groupers?:any, direction?:string ): void; + /** [Method] Guarantee a specific range this will load the store with a range that must be the pageSize or smaller and take car + * @param start Object + * @param end Object + * @param callback Object + * @param scope Object + * @param options Object + */ + guaranteeRange?( start?:any, end?:any, callback?:any, scope?:any, options?:any ): void; /** [Method] Get the index of the record within the store - * @param record Ext.data.IModel The Ext.data.Model object to find. + * @param record Ext.data.Model The Ext.data.Model object to find. */ indexOf?( record?:Ext.data.IModel ): number; /** [Method] Get the index within the store of the Record with the passed id @@ -7382,12 +8236,12 @@ declare module Ext.data { */ indexOfId?( id?:string ): number; /** [Method] Get the index within the entire dataset - * @param record Ext.data.IModel The Ext.data.Model object to find. + * @param record Ext.data.Model The Ext.data.Model object to find. */ indexOfTotal?( record?:Ext.data.IModel ): number; /** [Method] Inserts Model instances into the Store at the given index and fires the add event * @param index Number The start index at which to insert the passed Records. - * @param records Ext.data.IModel[] An Array of Ext.data.Model objects to add to the store. + * @param records Ext.data.Model[] An Array of Ext.data.Model objects to add to the store. */ insert?( index?:number, records?:Ext.data.IModel[] ): Ext.data.IModel[]; /** [Method] Returns true if this store is currently filtered */ @@ -7403,11 +8257,11 @@ declare module Ext.data { */ last?( grouped?:bool ): void; /** [Method] Loads data into the Store via the configured proxy - * @param options any config object, passed into the Ext.data.Operation object before loading. Additionally addRecords: true can be specified to add these records to the existing records, default is to remove the Store's existing records first. + * @param options Object/Function config object, passed into the Ext.data.Operation object before loading. Additionally addRecords: true can be specified to add these records to the existing records, default is to remove the Store's existing records first. */ load?( options?:any ): void; /** [Method] Loads an array of data straight into the Store - * @param data any Array of data to load. Any non-model instances will be cast into model instances first. + * @param data Ext.data.Model[]/Object[] Array of data to load. Any non-model instances will be cast into model instances first. * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. */ loadData?( data?:any, append?:bool ): void; @@ -7420,9 +8274,9 @@ declare module Ext.data { * @param data Object[] The full JSON object you'd like to load into the Data store. * @param append Boolean true to add the records to the existing records in the store, false to remove the old ones first. */ - loadRawData?( data?:Object[], append?:bool ): void; + loadRawData?( data?:any[], append?:bool ): void; /** [Method] Loads an array of model instances into the store fires the datachanged event - * @param records Ext.data.IModel[] The array of records to load + * @param records Ext.data.Model[] The array of records to load * @param options Object */ loadRecords?( records?:Ext.data.IModel[], options?:any ): void; @@ -7459,11 +8313,11 @@ declare module Ext.data { */ previousPage?( options?:any ): void; /** [Method] Query all the cached records in this Store by name value pair - * @param property any The property to create the filter function for - * @param value any The string/regex to compare the property value to - * @param anyMatch any true if we don't care if the filter value is not the full value. - * @param caseSensitive any true to create a case-sensitive regex. - * @param exactMatch any true to force exact match (^ and $ characters added to the regex). Ignored if anyMatch is true. + * @param property String The property to create the filter function for + * @param value String/RegExp The string/regex to compare the property value to + * @param anyMatch Boolean true if we don't care if the filter value is not the full value. + * @param caseSensitive Boolean true to create a case-sensitive regex. + * @param exactMatch Boolean true to force exact match (^ and $ characters added to the regex). Ignored if anyMatch is true. */ query?( property?:any, value?:any, anyMatch?:any, caseSensitive?:any, exactMatch?:any ): any; query?( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool, exactMatch?:bool ): Ext.util.IMixedCollection; @@ -7476,12 +8330,13 @@ declare module Ext.data { /** [Method] Rejects outstanding changes on all modified records and re insert any records that were removed locally */ rejectChanges?(): void; /** [Method] Reloads the store using the last options passed to the load method - * @param options Object A config object which contains options which may override the options passed to the previous load call. + * @param options Object */ reload?( options?:any ): void; /** [Method] Removes the specified record s from the Store firing the remove event for each instance that is removed - * @param records Ext.data.IModel Model instance or array of instances to remove or an array of indices from which to remove records. + * @param records Ext.data.Model/Ext.data.Model[]/Number/Number[] Model instance or array of instances to remove or an array of indices from which to remove records. */ + remove?( records?:any ): any; remove?( records?:Ext.data.IModel ): void; remove?( records?:Ext.data.IModel[] ): void; remove?( records?:number ): void; @@ -7500,13 +8355,8 @@ declare module Ext.data { * @param applyFilters Boolean Pass as false to remove the filter but not apply the updated filter set. If null is passed, all anonymous Filters (Filters with no id property) will be removed. */ removeFilter?( toRemove?:any, applyFilters?:bool ): void; - /** [Method] because prefetchData is stored by index this invalidates all of the prefetchedData Sorts the data in the Store by on - * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. - * @param direction any The overall direction to sort the data by. - */ - sort?( sorters?:any, direction?:any ): any; - sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; - sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] because prefetchData is stored by index this invalidates all of the prefetchedData */ + sort?(): Ext.util.ISorter[]; /** [Method] Sums the value of field for each record in store and returns the result * @param field String A field in each record * @param grouped Boolean True to perform the operation for each group in the store. The value returned will be an object literal with the key being the group name and the sum for that group being the value. The grouped parameter is only honored if the store has a groupField. @@ -7514,101 +8364,1476 @@ declare module Ext.data { sum?( field?:string, grouped?:bool ): number; } } -declare module Ext.data.store { - export interface IPageMap extends Ext.util.ILruCache { - /** [Method] Returns the first record in this page map which elicits a true return value from the passed selection function +declare module Ext.data { + export interface IStoreManager extends Ext.util.IMixedCollection { + } + export class StoreManager { + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function * @param fn Function The selection function to execute for each item. - * @param scope Object The scope (this reference) in which the function is executed. Defaults to this PageMap. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ - findBy?( fn?:any, scope?:any ): any; - } -} -declare module Ext.data { - export interface IStoreManager extends Ext.util.IMixedCollection { - } - export class StoreManager { - /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj - * @param item Object The item for which to find the key. + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. */ - static getKey( item?:any ): any; + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] getKey implementation for MixedCollection + * @param o Object + */ + static getKey( o?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; /** [Method] Gets a registered Store by id - * @param store any The id of the Store, or a Store instance, or a store configuration + * @param store String/Object The id of the Store, or a Store instance, or a store configuration */ static lookup( store?:any ): Ext.data.IStore; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Registers one or more Stores with the StoreManager - * @param stores Ext.data.IStore Any number of Store instances + * @param stores Ext.data.Store... Any number of Store instances */ static register( stores:Ext.data.IStore ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Unregisters one or more Stores with the StoreManager - * @param stores any Any number of Store instances or ID-s + * @param stores String/Object... Any number of Store instances or ID-s */ static unregister( stores?:any ): void; - } -} -declare module Ext { - export interface IStoreManager extends Ext.util.IMixedCollection { - } - export class StoreManager { - /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj - * @param item Object The item for which to find the key. + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key */ - static getKey( item?:any ): any; - /** [Method] Gets a registered Store by id - * @param store any The id of the Store, or a Store instance, or a store configuration + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object */ - static lookup( store?:any ): Ext.data.IStore; - /** [Method] Registers one or more Stores with the StoreManager - * @param stores Ext.data.IStore Any number of Store instances + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object */ - static register( stores:Ext.data.IStore ): void; - /** [Method] Unregisters one or more Stores with the StoreManager - * @param stores any Any number of Store instances or ID-s + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name */ - static unregister( stores?:any ): void; + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IStoreMgr extends Ext.util.IMixedCollection { } export class StoreMgr { - /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj - * @param item Object The item for which to find the key. + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. */ - static getKey( item?:any ): any; + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] getKey implementation for MixedCollection + * @param o Object + */ + static getKey( o?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; /** [Method] Gets a registered Store by id - * @param store any The id of the Store, or a Store instance, or a store configuration + * @param store String/Object The id of the Store, or a Store instance, or a store configuration */ static lookup( store?:any ): Ext.data.IStore; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Registers one or more Stores with the StoreManager - * @param stores Ext.data.IStore Any number of Store instances + * @param stores Ext.data.Store... Any number of Store instances */ static register( stores:Ext.data.IStore ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Unregisters one or more Stores with the StoreManager - * @param stores any Any number of Store instances or ID-s + * @param stores String/Object... Any number of Store instances or ID-s */ static unregister( stores?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data { export interface IStoreMgr extends Ext.util.IMixedCollection { } export class StoreMgr { - /** [Method] getKey implementation for MixedCollection A function which will be called passing a newly added object when the obj - * @param item Object The item for which to find the key. + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. */ - static getKey( item?:any ): any; + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] getKey implementation for MixedCollection + * @param o Object + */ + static getKey( o?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; /** [Method] Gets a registered Store by id - * @param store any The id of the Store, or a Store instance, or a store configuration + * @param store String/Object The id of the Store, or a Store instance, or a store configuration */ static lookup( store?:any ): Ext.data.IStore; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Registers one or more Stores with the StoreManager - * @param stores Ext.data.IStore Any number of Store instances + * @param stores Ext.data.Store... Any number of Store instances */ static register( stores:Ext.data.IStore ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Unregisters one or more Stores with the StoreManager - * @param stores any Any number of Store instances or ID-s + * @param stores String/Object... Any number of Store instances or ID-s */ static unregister( stores?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; + } +} +declare module Ext { + export interface IStoreManager extends Ext.util.IMixedCollection { + } + export class StoreManager { + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] getKey implementation for MixedCollection + * @param o Object + */ + static getKey( o?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; + /** [Method] Gets a registered Store by id + * @param store String/Object The id of the Store, or a Store instance, or a store configuration + */ + static lookup( store?:any ): Ext.data.IStore; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Registers one or more Stores with the StoreManager + * @param stores Ext.data.Store... Any number of Store instances + */ + static register( stores:Ext.data.IStore ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Unregisters one or more Stores with the StoreManager + * @param stores String/Object... Any number of Store instances or ID-s + */ + static unregister( stores?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data { @@ -7616,22 +9841,22 @@ declare module Ext.data { /** [Property] (Ext.data.NodeInterface) */ root?: Ext.data.INodeInterface; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -7641,8 +9866,9 @@ declare module Ext.data { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -7654,7 +9880,7 @@ declare module Ext.data { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Gets a node in this tree by its id * @param id String */ @@ -7666,25 +9892,26 @@ declare module Ext.data { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -7703,11 +9930,12 @@ declare module Ext.data { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Removes the root node from this tree */ @@ -7719,7 +9947,7 @@ declare module Ext.data { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Sets the root node for this tree - * @param node Ext.data.INodeInterface + * @param node Ext.data.NodeInterface */ setRootNode?( node?:Ext.data.INodeInterface ): Ext.data.INodeInterface; /** [Method] Suspends firing of the named event s @@ -7744,23 +9972,23 @@ declare module Ext.data { } declare module Ext.data { export interface ITreeStore extends Ext.data.IAbstractStore { - /** [Config Option] (Boolean) Remove previously existing child nodes before loading. ... */ + /** [Config Option] (Boolean) */ clearOnLoad?: bool; - /** [Config Option] (Boolean) If true, when a node is reloaded, any records in the removed record collection that were previously descendants of th... */ + /** [Config Option] (Boolean) */ clearRemovedOnLoad?: bool; - /** [Config Option] (String) The default root id. ... */ + /** [Config Option] (String) */ defaultRootId?: string; - /** [Config Option] (String) The root property to specify on the reader if one is not explicitly defined. ... */ + /** [Config Option] (String) */ defaultRootProperty?: string; - /** [Config Option] (String) The default root text (if not specified)/ ... */ + /** [Config Option] (String) */ defaultRootText?: string; - /** [Config Option] (Boolean) Set to true to automatically prepend a leaf sorter. ... */ + /** [Config Option] (Boolean) */ folderSort?: bool; - /** [Config Option] (String) The name of the parameter sent to the server which contains the identifier of the node. ... */ + /** [Config Option] (String) */ nodeParam?: string; - /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) The root node for this store. ... */ + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) */ root?: any; - /** [Method] inherit docs Returns all Model instances that are either currently a phantom e g */ + /** [Method] inherit docs */ getNewRecords?(): Ext.data.IModel[]; /** [Method] Returns the record node by id * @param id Object @@ -7768,20 +9996,20 @@ declare module Ext.data { getNodeById?( id?:any ): Ext.data.INodeInterface; /** [Method] Returns the root node for this tree */ getRootNode?(): Ext.data.INodeInterface; - /** [Method] inherit docs Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy */ + /** [Method] inherit docs */ getUpdatedRecords?(): Ext.data.IModel[]; /** [Method] Loads the Store using its configured proxy * @param options Object config object. This is passed into the Operation object that is created and then sent to the proxy's Ext.data.proxy.Proxy.read function. The options can also contain a node, which indicates which node is to be loaded. If not specified, it will default to the root node. */ load?( options?:any ): void; - /** [Method] inherit docs Removes all records from the store */ + /** [Method] inherit docs */ removeAll?(): void; - /** [Method] inherit docs Sets the Store s Proxy by string config object or Proxy instance - * @param proxy any The new Proxy, which can be either a type string, a configuration object or an Ext.data.proxy.Proxy instance + /** [Method] inherit docs + * @param proxy Object */ setProxy?( proxy?:any ): Ext.data.proxy.IProxy; /** [Method] Sets the root node for this store - * @param root any + * @param root Ext.data.Model/Ext.data.NodeInterface/Object */ setRootNode?( root?:any ): Ext.data.INodeInterface; } @@ -7790,15 +10018,63 @@ declare module Ext.data { export interface ITypes extends Ext.IBase { } export class Types { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data { export interface IUuidGenerator extends Ext.data.IIdGenerator { - /** [Config Option] (Number) The Version of UUID. ... */ + /** [Config Option] (Number) */ version?: number; - /** [Property] (Number/Object) When created, this value is a 48-bit number. ... */ + /** [Property] (Number/Object) */ salt?: any; - /** [Property] (Number/Object) When created, this value is a 60-bit number. ... */ + /** [Property] (Number/Object) */ timestamp?: any; /** [Method] Reconfigures this generator given new config properties * @param config Object @@ -7807,9 +10083,24 @@ declare module Ext.data { } } declare module Ext.data { - export interface Ivalidations extends Ext.IBase { + export interface IValidations extends Ext.IBase { } - export class validations { + export class Validations { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Validates that an email string is in the correct format * @param config Object Config object * @param email String The email address @@ -7825,11 +10116,19 @@ declare module Ext.data { * @param value String The value to validate */ static format( config?:any, value?:string ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Validates that the given value is present in the configured list * @param config Object Config object * @param value String The value to validate */ static inclusion( config?:any, value?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Returns true if the given value is between the configured min and max values * @param config Object Config object * @param value String The value to validate @@ -7840,15 +10139,40 @@ declare module Ext.data { * @param value Object The value to validate */ static presence( config?:any, value?:any ): bool; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.data.writer { export interface IJson extends Ext.data.writer.IWriter { - /** [Config Option] (Boolean) Configure with false to ensure that records are always wrapped in an array, even if there is only one record being sent. ... */ + /** [Config Option] (Boolean) */ allowSingle?: bool; - /** [Config Option] (Boolean) Configure true to send record data (all record fields if writeAllFields is true) as a JSON encoded HTTP parameter nam... */ + /** [Config Option] (Boolean) */ encode?: bool; - /** [Config Option] (Boolean) By default, when dot-delimited field mappings are used (e.g. ... */ + /** [Config Option] (Boolean) */ expandData?: bool; /** [Config Option] (String) */ root?: string; @@ -7860,11 +10184,11 @@ declare module Ext.data.writer { } declare module Ext.data { export interface IJsonWriter extends Ext.data.writer.IWriter { - /** [Config Option] (Boolean) Configure with false to ensure that records are always wrapped in an array, even if there is only one record being sent. ... */ + /** [Config Option] (Boolean) */ allowSingle?: bool; - /** [Config Option] (Boolean) Configure true to send record data (all record fields if writeAllFields is true) as a JSON encoded HTTP parameter nam... */ + /** [Config Option] (Boolean) */ encode?: bool; - /** [Config Option] (Boolean) By default, when dot-delimited field mappings are used (e.g. ... */ + /** [Config Option] (Boolean) */ expandData?: bool; /** [Config Option] (String) */ root?: string; @@ -7878,19 +10202,19 @@ declare module Ext.data.writer { export interface IWriter extends Ext.IBase { /** [Config Option] (String) */ dateFormat?: string; - /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + /** [Config Option] (String) */ nameProperty?: string; - /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + /** [Config Option] (Boolean) */ writeAllFields?: bool; - /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + /** [Config Option] (Boolean) */ writeRecordId?: bool; /** [Method] Formats the data for each record before sending it to the server - * @param record Ext.data.IModel The record that we are writing to the server. - * @param operation Ext.data.IOperation An operation object. + * @param record Ext.data.Model The record that we are writing to the server. + * @param operation Ext.data.Operation An operation object. */ getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; /** [Method] Prepares a Proxy s Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ write?( request?:Ext.data.IRequest ): Ext.data.IRequest; } @@ -7899,19 +10223,19 @@ declare module Ext.data { export interface IDataWriter extends Ext.IBase { /** [Config Option] (String) */ dateFormat?: string; - /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + /** [Config Option] (String) */ nameProperty?: string; - /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + /** [Config Option] (Boolean) */ writeAllFields?: bool; - /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + /** [Config Option] (Boolean) */ writeRecordId?: bool; /** [Method] Formats the data for each record before sending it to the server - * @param record Ext.data.IModel The record that we are writing to the server. - * @param operation Ext.data.IOperation An operation object. + * @param record Ext.data.Model The record that we are writing to the server. + * @param operation Ext.data.Operation An operation object. */ getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; /** [Method] Prepares a Proxy s Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ write?( request?:Ext.data.IRequest ): Ext.data.IRequest; } @@ -7920,44 +10244,44 @@ declare module Ext.data { export interface IWriter extends Ext.IBase { /** [Config Option] (String) */ dateFormat?: string; - /** [Config Option] (String) This property is used to read the key for each value that will be sent to the server. ... */ + /** [Config Option] (String) */ nameProperty?: string; - /** [Config Option] (Boolean) True to write all fields from the record to the server. ... */ + /** [Config Option] (Boolean) */ writeAllFields?: bool; - /** [Config Option] (Boolean) By default, each record's id is always included in the output for non-phantom records since in most cases the id will... */ + /** [Config Option] (Boolean) */ writeRecordId?: bool; /** [Method] Formats the data for each record before sending it to the server - * @param record Ext.data.IModel The record that we are writing to the server. - * @param operation Ext.data.IOperation An operation object. + * @param record Ext.data.Model The record that we are writing to the server. + * @param operation Ext.data.Operation An operation object. */ getRecordData?( record?:Ext.data.IModel, operation?:Ext.data.IOperation ): any; /** [Method] Prepares a Proxy s Ext data Request object - * @param request Ext.data.IRequest The request object + * @param request Ext.data.Request The request object */ write?( request?:Ext.data.IRequest ): Ext.data.IRequest; } } declare module Ext.data.writer { export interface IXml extends Ext.data.writer.IWriter { - /** [Config Option] (String) The root to be used if documentRoot is empty and a root is required to form a valid XML document. ... */ + /** [Config Option] (String) */ defaultDocumentRoot?: string; - /** [Config Option] (String) The name of the root element of the document. ... */ + /** [Config Option] (String) */ documentRoot?: string; - /** [Config Option] (String) A header to use in the XML document (such as setting the encoding or version). ... */ + /** [Config Option] (String) */ header?: string; - /** [Config Option] (String) The name of the node to use for each record. ... */ + /** [Config Option] (String) */ record?: string; } } declare module Ext.data { export interface IXmlWriter extends Ext.data.writer.IWriter { - /** [Config Option] (String) The root to be used if documentRoot is empty and a root is required to form a valid XML document. ... */ + /** [Config Option] (String) */ defaultDocumentRoot?: string; - /** [Config Option] (String) The name of the root element of the document. ... */ + /** [Config Option] (String) */ documentRoot?: string; - /** [Config Option] (String) A header to use in the XML document (such as setting the encoding or version). ... */ + /** [Config Option] (String) */ header?: string; - /** [Config Option] (String) The name of the node to use for each record. ... */ + /** [Config Option] (String) */ record?: string; } } @@ -8106,7 +10430,7 @@ declare module Ext { } declare module Ext.dd { export interface IDD extends Ext.dd.IDragDrop { - /** [Property] (Boolean) When set to true, the utility automatically tries to scroll the browser window when a drag and drop element is dragge... */ + /** [Property] (Boolean) */ scroll?: bool; /** [Method] Sets the element to the location of the mousedown or click event maintaining the cursor location relative to the loc * @param el HTMLElement the element to move @@ -8150,22 +10474,24 @@ declare module Ext.dd { } declare module Ext.dd { export interface IDDProxy extends Ext.dd.IDD { - /** [Property] (Boolean) By default the frame is positioned exactly where the drag element is, so we use the cursor offset provided by Ext.dd.DD. ... */ + /** [Property] (Boolean) */ centerFrame?: bool; - /** [Property] (Boolean) By default we resize the drag frame to be the same size as the element we want to drag (this is to get the frame effe... */ + /** [Property] (Boolean) */ resizeFrame?: bool; + /** [Property] (String) */ + dragElId?: string; /** [Method] Sets up config options specific to this class */ applyConfig?(): void; - /** [Method] overrides Ext dd DragDrop Event that fires prior to the onMouseDown event + /** [Method] overrides Ext dd DragDrop * @param e Object */ b4MouseDown?( e?:any ): void; /** [Method] Creates the proxy element if it does not yet exist */ createFrame?(): void; /** [Method] overrides Ext dd DragDrop By default we try to move the element to the last location of the frame - * @param e Event the mouseup event + * @param e Object */ - endDrag?( e?:Event ): void; + endDrag?( e?:any ): void; /** [Method] Initialization for the drag frame element */ initFrame?(): void; /** [Method] toString method */ @@ -8234,39 +10560,39 @@ declare module Ext.dd { } declare module Ext.dd { export interface IDragDrop extends Ext.IBase { - /** [Property] (Boolean) The available property is false until the linked dom element is accessible. ... */ + /** [Property] (Boolean) */ available?: bool; /** [Property] (Object) */ config?: any; - /** [Property] (Object) Provides default constraint padding to "constrainTo" elements. ... */ + /** [Property] (Object) */ defaultPadding?: any; - /** [Property] (Object) The group defines a logical collection of DragDrop objects that are related. ... */ + /** [Property] (Object) */ groups?: any; - /** [Property] (Boolean) By default, drags can only be initiated if the mousedown occurs in the region the linked element is. ... */ + /** [Property] (Boolean) */ hasOuterHandles?: bool; - /** [Property] (String) The id of the element associated with this object. ... */ + /** [Property] (String) */ id?: string; - /** [Property] (Boolean) Set to false to enable a DragDrop object to fire drag events while dragging over its own Element. ... */ + /** [Property] (Boolean) */ ignoreSelf?: bool; /** [Property] (String[]) */ invalidHandleClasses?: string[]; - /** [Property] (Object) An object who's property names identify the IDs of elements to be considered invalid as drag handles. ... */ + /** [Property] (Object) */ invalidHandleIds?: any; - /** [Property] (Object) An object who's property names identify HTML tags to be considered invalid as drag handles. ... */ + /** [Property] (Object) */ invalidHandleTypes?: any; - /** [Property] (Boolean) By default, all instances can be a drop target. ... */ + /** [Property] (Boolean) */ isTarget?: bool; - /** [Property] (Boolean) Maintain offsets when we resetconstraints. ... */ + /** [Property] (Boolean) */ maintainOffset?: bool; - /** [Property] (Boolean) When set to true, other DD objects in cooperating DDGroups do not receive notification events when this DD object is ... */ + /** [Property] (Boolean) */ moveOnly?: bool; - /** [Property] (Number[]) The padding configured for this drag and drop object for calculating the drop zone intersection with this object. ... */ + /** [Property] (Number[]) */ padding?: number[]; - /** [Property] (Boolean) By default the drag and drop instance will only respond to the primary button click (left button for a right-handed m... */ + /** [Property] (Boolean) */ primaryButtonOnly?: bool; - /** [Property] (Number[]) Array of pixel locations the element will snap to if we specified a horizontal graduation/interval. ... */ + /** [Property] (Number[]) */ xTicks?: number[]; - /** [Property] (Number[]) Array of pixel locations the element will snap to if we specified a vertical graduation/interval. ... */ + /** [Property] (Number[]) */ yTicks?: number[]; /** [Method] Lets you specify a css class of elements that will not initiate a drag * @param cssClass String the class of the elements you wish to ignore @@ -8291,13 +10617,16 @@ declare module Ext.dd { /** [Method] Clears any tick interval defined for this instance */ clearTicks?(): void; /** [Method] Initializes the drag drop object s constraints to restrict movement to a certain element - * @param constrainTo String The element or element ID to constrain to. - * @param pad any Pad provides a way to specify "padding" of the constraints, and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or an object containing the sides to pad. For example: {right:10, bottom:10} + * @param constrainTo String/HTMLElement/Ext.Element The element or element ID to constrain to. + * @param pad Object/Number Pad provides a way to specify "padding" of the constraints, and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or an object containing the sides to pad. For example: {right:10, bottom:10} * @param inContent Boolean Constrain the draggable in the content box of the element (inside padding and borders) */ + constrainTo?( constrainTo?:any, pad?:any, inContent?:any ): any; constrainTo?( constrainTo?:string, pad?:any, inContent?:bool ): void; constrainTo?( constrainTo?:HTMLElement, pad?:any, inContent?:bool ): void; constrainTo?( constrainTo?:Ext.IElement, pad?:any, inContent?:bool ): void; + /** [Method] Destroy this DragDrop instance */ + destroy?(): void; /** [Method] Called when we are done dragging the object * @param e Event the mouseup event */ @@ -8334,26 +10663,30 @@ declare module Ext.dd { onDrag?( e?:Event ): void; /** [Method] Abstract method called when this item is dropped on another DragDrop obj * @param e Event the mouseup event - * @param id String In POINT mode, the element id this was dropped on. In INTERSECT mode, an array of dd items this was dropped on. + * @param id String/Ext.dd.DragDrop[] In POINT mode, the element id this was dropped on. In INTERSECT mode, an array of dd items this was dropped on. */ + onDragDrop?( e?:any, id?:any ): any; onDragDrop?( e?:Event, id?:string ): void; onDragDrop?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; /** [Method] Abstract method called when this element fist begins hovering over another DragDrop obj * @param e Event the mousemove event - * @param id String In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of one or more dragdrop items being hovered over. + * @param id String/Ext.dd.DragDrop[] In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of one or more dragdrop items being hovered over. */ + onDragEnter?( e?:any, id?:any ): any; onDragEnter?( e?:Event, id?:string ): void; onDragEnter?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; /** [Method] Abstract method called when we are no longer hovering over an element * @param e Event the mousemove event - * @param id String In POINT mode, the element id this was hovering over. In INTERSECT mode, an array of dd items that the mouse is no longer over. + * @param id String/Ext.dd.DragDrop[] In POINT mode, the element id this was hovering over. In INTERSECT mode, an array of dd items that the mouse is no longer over. */ + onDragOut?( e?:any, id?:any ): any; onDragOut?( e?:Event, id?:string ): void; onDragOut?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; /** [Method] Abstract method called when this element is hovering over another DragDrop obj * @param e Event the mousemove event - * @param id String In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of dd items being hovered over. + * @param id String/Ext.dd.DragDrop[] In POINT mode, the element id this is hovering over. In INTERSECT mode, an array of dd items being hovered over. */ + onDragOver?( e?:any, id?:any ): any; onDragOver?( e?:Event, id?:string ): void; onDragOver?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; /** [Method] Abstract method called when this item is dropped on an area with no drop target @@ -8491,8 +10824,23 @@ declare module Ext.dd { export interface IDragDropManager extends Ext.IBase { } export class DragDropManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event - * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + * @param dds Ext.dd.DragDrop[] The array of drag and drop objects targeted */ static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; /** [Method] Returns the style property for the DOM element i e document getElById id style @@ -8503,15 +10851,27 @@ declare module Ext.dd { * @param id String the id of the DragDrop object */ static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns the actual DOM element + * @param id String the id of the elment to get + */ + static getElement( id?:string ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo - * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + * @param oDD Ext.dd.DragDrop the drag and drop object to get the location for. */ static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to - * @param p_oDD Ext.dd.IDragDrop the obj to get related data for + * @param p_oDD Ext.dd.DragDrop the obj to get related data for * @param bTargetsOnly Boolean if true, only return targetable objs */ static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Utility function to determine if a given element has been registered as a drag drop item * @param id String the element id to check */ @@ -8521,8 +10881,8 @@ declare module Ext.dd { */ static isHandle( id?:string ): bool; /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj - * @param oDD Ext.dd.IDragDrop the drag obj - * @param oTargetDD Ext.dd.IDragDrop the target + * @param oDD Ext.dd.DragDrop the drag obj + * @param oTargetDD Ext.dd.DragDrop the target */ static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; /** [Method] Is drag and drop locked */ @@ -8538,7 +10898,7 @@ declare module Ext.dd { */ static refreshCache( groups?:any ): void; /** [Method] Each DragDrop instance must be registered with the DragDropManager - * @param oDD Ext.dd.IDragDrop the DragDrop object to register + * @param oDD Ext.dd.DragDrop the DragDrop object to register * @param sGroup String the name of the group this element belongs to */ static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; @@ -8552,6 +10912,8 @@ declare module Ext.dd { * @param y Number the Y position of the original mousedown */ static startDrag( x?:number, y?:number ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Utility to stop event propagation and event default if these features are turned on * @param e Event the event as returned by this.getEvent() */ @@ -8562,91 +10924,52 @@ declare module Ext.dd { * @param el HTMLElement the element to check */ static verifyEl( el?:HTMLElement ): bool; - } -} -declare module Ext.dd { - export interface IDDM extends Ext.IBase { - } - export class DDM { - /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event - * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + /** [Method] Add methods properties to the prototype of this class + * @param members Object */ - static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; - /** [Method] Returns the style property for the DOM element i e document getElById id style - * @param id String the id of the elment to get + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object */ - static getCss( id?:string ): any; - /** [Method] Returns the DragDrop instance for a given id - * @param id String the id of the DragDrop object + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name */ - static getDDById( id?:string ): Ext.dd.IDragDrop; - /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo - * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. */ - static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; - /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to - * @param p_oDD Ext.dd.IDragDrop the obj to get related data for - * @param bTargetsOnly Boolean if true, only return targetable objs - */ - static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; - /** [Method] Utility function to determine if a given element has been registered as a drag drop item - * @param id String the element id to check - */ - static isDragDrop( id?:string ): bool; - /** [Method] Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop ob - * @param id String the element id to check - */ - static isHandle( id?:string ): bool; - /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj - * @param oDD Ext.dd.IDragDrop the drag obj - * @param oTargetDD Ext.dd.IDragDrop the target - */ - static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; - /** [Method] Is drag and drop locked */ - static isLocked(): bool; - /** [Method] My goal is to be able to transparently determine if an object is typeof DragDrop and the exact subclass of DragDrop - * @param the Object object to evaluate - */ - static isTypeOfDD( the?:any ): bool; - /** [Method] Lock all drag and drop functionality */ - static lock(): void; - /** [Method] Refreshes the cache of the top left and bottom right points of the drag and drop objects in the specified group s - * @param groups Object an associative array of groups to refresh - */ - static refreshCache( groups?:any ): void; - /** [Method] Each DragDrop instance must be registered with the DragDropManager - * @param oDD Ext.dd.IDragDrop the DragDrop object to register - * @param sGroup String the name of the group this element belongs to - */ - static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; - /** [Method] Each DragDrop handle element must be registered - * @param sDDId String the DragDrop id this element is a handle for - * @param sHandleId String the id of the element that is the drag handle - */ - static regHandle( sDDId?:string, sHandleId?:string ): void; - /** [Method] Fired when either the drag pixel threshold or the mousedown hold time threshold has been met - * @param x Number the X position of the original mousedown - * @param y Number the Y position of the original mousedown - */ - static startDrag( x?:number, y?:number ): void; - /** [Method] Utility to stop event propagation and event default if these features are turned on - * @param e Event the event as returned by this.getEvent() - */ - static stopEvent( e?:Event ): void; - /** [Method] Unlock all drag and drop functionality */ - static unlock(): void; - /** [Method] This checks to make sure an element exists and is in the DOM - * @param el HTMLElement the element to check - */ - static verifyEl( el?:HTMLElement ): bool; + static override( members?:any ): Ext.IBase; } } declare module Ext.dd { export interface IDragDropMgr extends Ext.IBase { } export class DragDropMgr { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event - * @param dds Ext.dd.IDragDrop[] The array of drag and drop objects targeted + * @param dds Ext.dd.DragDrop[] The array of drag and drop objects targeted */ static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; /** [Method] Returns the style property for the DOM element i e document getElById id style @@ -8657,15 +10980,27 @@ declare module Ext.dd { * @param id String the id of the DragDrop object */ static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns the actual DOM element + * @param id String the id of the elment to get + */ + static getElement( id?:string ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo - * @param oDD Ext.dd.IDragDrop the drag and drop object to get the location for. + * @param oDD Ext.dd.DragDrop the drag and drop object to get the location for. */ static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to - * @param p_oDD Ext.dd.IDragDrop the obj to get related data for + * @param p_oDD Ext.dd.DragDrop the obj to get related data for * @param bTargetsOnly Boolean if true, only return targetable objs */ static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Utility function to determine if a given element has been registered as a drag drop item * @param id String the element id to check */ @@ -8675,8 +11010,8 @@ declare module Ext.dd { */ static isHandle( id?:string ): bool; /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj - * @param oDD Ext.dd.IDragDrop the drag obj - * @param oTargetDD Ext.dd.IDragDrop the target + * @param oDD Ext.dd.DragDrop the drag obj + * @param oTargetDD Ext.dd.DragDrop the target */ static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; /** [Method] Is drag and drop locked */ @@ -8692,7 +11027,7 @@ declare module Ext.dd { */ static refreshCache( groups?:any ): void; /** [Method] Each DragDrop instance must be registered with the DragDropManager - * @param oDD Ext.dd.IDragDrop the DragDrop object to register + * @param oDD Ext.dd.DragDrop the DragDrop object to register * @param sGroup String the name of the group this element belongs to */ static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; @@ -8706,6 +11041,8 @@ declare module Ext.dd { * @param y Number the Y position of the original mousedown */ static startDrag( x?:number, y?:number ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Utility to stop event propagation and event default if these features are turned on * @param e Event the event as returned by this.getEvent() */ @@ -8716,40 +11053,194 @@ declare module Ext.dd { * @param el HTMLElement the element to check */ static verifyEl( el?:HTMLElement ): bool; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; + } +} +declare module Ext.dd { + export interface IDDM extends Ext.IBase { + } + export class DDM { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Helper function for getting the best match from the list of drag and drop objects returned by the drag and drop event + * @param dds Ext.dd.DragDrop[] The array of drag and drop objects targeted + */ + static getBestMatch( dds?:Ext.dd.IDragDrop[] ): Ext.dd.IDragDrop; + /** [Method] Returns the style property for the DOM element i e document getElById id style + * @param id String the id of the elment to get + */ + static getCss( id?:string ): any; + /** [Method] Returns the DragDrop instance for a given id + * @param id String the id of the DragDrop object + */ + static getDDById( id?:string ): Ext.dd.IDragDrop; + /** [Method] Returns the actual DOM element + * @param id String the id of the elment to get + */ + static getElement( id?:string ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Returns a Region object containing the drag and drop element s position and size including the padding configured fo + * @param oDD Ext.dd.DragDrop the drag and drop object to get the location for. + */ + static getLocation( oDD?:Ext.dd.IDragDrop ): Ext.util.IRegion; + /** [Method] Returns the drag and drop instances that are in all groups the passed in instance belongs to + * @param p_oDD Ext.dd.DragDrop the obj to get related data for + * @param bTargetsOnly Boolean if true, only return targetable objs + */ + static getRelated( p_oDD?:Ext.dd.IDragDrop, bTargetsOnly?:bool ): Ext.dd.IDragDrop[]; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Utility function to determine if a given element has been registered as a drag drop item + * @param id String the element id to check + */ + static isDragDrop( id?:string ): bool; + /** [Method] Utility function to determine if a given element has been registered as a drag drop handle for the given Drag Drop ob + * @param id String the element id to check + */ + static isHandle( id?:string ): bool; + /** [Method] Returns true if the specified dd target is a legal target for the specifice drag obj + * @param oDD Ext.dd.DragDrop the drag obj + * @param oTargetDD Ext.dd.DragDrop the target + */ + static isLegalTarget( oDD?:Ext.dd.IDragDrop, oTargetDD?:Ext.dd.IDragDrop ): bool; + /** [Method] Is drag and drop locked */ + static isLocked(): bool; + /** [Method] My goal is to be able to transparently determine if an object is typeof DragDrop and the exact subclass of DragDrop + * @param the Object object to evaluate + */ + static isTypeOfDD( the?:any ): bool; + /** [Method] Lock all drag and drop functionality */ + static lock(): void; + /** [Method] Refreshes the cache of the top left and bottom right points of the drag and drop objects in the specified group s + * @param groups Object an associative array of groups to refresh + */ + static refreshCache( groups?:any ): void; + /** [Method] Each DragDrop instance must be registered with the DragDropManager + * @param oDD Ext.dd.DragDrop the DragDrop object to register + * @param sGroup String the name of the group this element belongs to + */ + static regDragDrop( oDD?:Ext.dd.IDragDrop, sGroup?:string ): void; + /** [Method] Each DragDrop handle element must be registered + * @param sDDId String the DragDrop id this element is a handle for + * @param sHandleId String the id of the element that is the drag handle + */ + static regHandle( sDDId?:string, sHandleId?:string ): void; + /** [Method] Fired when either the drag pixel threshold or the mousedown hold time threshold has been met + * @param x Number the X position of the original mousedown + * @param y Number the Y position of the original mousedown + */ + static startDrag( x?:number, y?:number ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Utility to stop event propagation and event default if these features are turned on + * @param e Event the event as returned by this.getEvent() + */ + static stopEvent( e?:Event ): void; + /** [Method] Unlock all drag and drop functionality */ + static unlock(): void; + /** [Method] This checks to make sure an element exists and is in the DOM + * @param el HTMLElement the element to check + */ + static verifyEl( el?:HTMLElement ): bool; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.dd { export interface IDragSource extends Ext.dd.IDDProxy { - /** [Config Option] (Boolean) If true, animates the proxy element back to the position of the handle element used to trigger the drag. ... */ + /** [Config Option] (Boolean) */ animRepair?: bool; - /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + /** [Config Option] (String) */ ddGroup?: string; - /** [Config Option] (String) The CSS class returned to the drag source when drop is allowed. ... */ + /** [Config Option] (String) */ dropAllowed?: string; - /** [Config Option] (String) The CSS class returned to the drag source when drop is not allowed. ... */ + /** [Config Option] (String) */ dropNotAllowed?: string; - /** [Config Option] (String) The color to use when visually highlighting the drag source in the afterRepair method after a failed drop (defaults t... */ + /** [Config Option] (String) */ repairHighlightColor?: string; + /** [Property] (Object) */ + dragData?: any; /** [Method] An empty function by default but provided so that you can perform a custom action after a valid drag drop has occurr - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dropped element */ afterDragDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; /** [Method] An empty function by default but provided so that you can perform a custom action when the dragged item enters the d - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ afterDragEnter?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; /** [Method] An empty function by default but provided so that you can perform a custom action after the dragged item is dragged - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ afterDragOut?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): void; /** [Method] An empty function by default but provided so that you can perform a custom action while the dragged item is over the - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ @@ -8765,42 +11256,40 @@ declare module Ext.dd { * @param id String The id of the dropped element */ afterValidDrop?( target?:any, e?:Event, id?:string ): void; - /** [Method] Sets the element to the location of the mousedown or click event maintaining the cursor location relative to the loc - * @param el HTMLElement the element to move - * @param iPageX Number the X coordinate of the mousedown or drag event - * @param iPageY Number the Y coordinate of the mousedown or drag event - */ - alignElWithMouse?( el?:HTMLElement, iPageX?:number, iPageY?:number ): void; + /** [Method] Sets the element to the location of the mousedown or click event maintaining the cursor location relative to the loc */ + alignElWithMouse?(): void; /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item is dropped - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ beforeDragDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item enters the - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ beforeDragEnter?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; /** [Method] An empty function by default but provided so that you can perform a custom action before the dragged item is dragged - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ beforeDragOut?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; /** [Method] An empty function by default but provided so that you can perform a custom action while the dragged item is over the - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ beforeDragOver?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; /** [Method] An empty function by default but provided so that you can perform a custom action after an invalid drop has occurred - * @param target Ext.dd.IDragDrop The drop target + * @param target Ext.dd.DragDrop The drop target * @param e Event The event object * @param id String The id of the dragged element */ beforeInvalidDrop?( target?:Ext.dd.IDragDrop, e?:Event, id?:string ): bool; + /** [Method] Destroy this DragDrop instance */ + destroy?(): void; /** [Method] Returns the data object associated with this drag source * @param e Object */ @@ -8823,43 +11312,43 @@ declare module Ext.dd { } declare module Ext.dd { export interface IDragTracker extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean/Number) Specify true to defer trigger start by 1000 ms. ... */ + /** [Config Option] (Boolean/Number) */ autoStart?: any; - /** [Config Option] (Ext.util.Region/Ext.Element) A Region (Or an element from which a Region measurement will be read) which is used to constrain the result of the ge... */ + /** [Config Option] (Ext.util.Region/Ext.Element) */ constrainTo?: any; - /** [Config Option] (String) A DomQuery selector which identifies child elements within the DragTracker's encapsulating Element which are the trac... */ + /** [Config Option] (String) */ delegate?: string; - /** [Config Option] (String) A CSS class to add to the DragTracker's target element when the element (or, if the delegate option is used, when a d... */ + /** [Config Option] (String) */ overCls?: string; - /** [Config Option] (Boolean) Specify false to enable default actions on onMouseDown events. ... */ + /** [Config Option] (Boolean) */ preventDefault?: bool; - /** [Config Option] (Boolean) Specify true to stop the mousedown event from bubbling to outer listeners from the target element (or its delegates). ... */ + /** [Config Option] (Boolean) */ stopEvent?: bool; - /** [Config Option] (Number) Number of pixels the drag target must be moved before dragging is considered to have started. ... */ + /** [Config Option] (Number) */ tolerance?: number; - /** [Config Option] (Boolean) Set to true to fire mouseover and mouseout events when the mouse enters or leaves the target element. ... */ + /** [Config Option] (Boolean) */ trackOver?: bool; - /** [Property] (Boolean) Indicates whether the user is currently dragging this tracker. ... */ + /** [Property] (Boolean) */ active?: bool; - /** [Property] (HTMLElement) The element being dragged. ... */ + /** [Property] (HTMLElement) */ dragTarget?: HTMLElement; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -8869,8 +11358,9 @@ declare module Ext.dd { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -8882,7 +11372,7 @@ declare module Ext.dd { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the drag target */ getDragTarget?(): Ext.IElement; /** [Method] Returns the X Y offset of the current mouse position from the mousedown point @@ -8894,49 +11384,51 @@ declare module Ext.dd { */ hasListener?( eventName?:string ): bool; /** [Method] Initializes the DragTracker on a given element - * @param el Ext.IElement The element + * @param el Ext.Element/HTMLElement The element */ + initEl?( el?:any ): any; initEl?( el?:Ext.IElement ): void; initEl?( el?:HTMLElement ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ on?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ onBeforeStart?( e?:Ext.IEventObject ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ onDrag?( e?:Ext.IEventObject ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ onEnd?( e?:Ext.IEventObject ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Ext.EventObject The event object */ onStart?( e?:Ext.IEventObject ): void; /** [Method] Relays selected events from the specified Observable as if the events were fired by this @@ -8952,11 +11444,12 @@ declare module Ext.dd { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -8983,12 +11476,12 @@ declare module Ext.dd { } declare module Ext.dd { export interface IDragZone extends Ext.dd.IDragSource { - /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + /** [Config Option] (Object/Boolean) */ containerScroll?: any; - /** [Config Option] (String/HTMLElement/Ext.dom.Element) An element to register with the ScrollManager if containerScroll is set. ... */ + /** [Config Option] (String/HTMLElement/Ext.dom.Element) */ scrollEl?: any; - /** [Property] (Object) This property contains the data representing the dragged object. ... */ - dragData?: any; + /** [Method] Destroy this DragDrop instance */ + destroy?(): void; /** [Method] Called when a mousedown occurs in this container * @param e Event The mouse down event */ @@ -9006,36 +11499,38 @@ declare module Ext.dd { } declare module Ext.dd { export interface IDropTarget extends Ext.dd.IDDTarget { - /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + /** [Config Option] (String) */ ddGroup?: string; - /** [Config Option] (String) The CSS class returned to the drag source when drop is allowed. ... */ + /** [Config Option] (String) */ dropAllowed?: string; - /** [Config Option] (String) The CSS class returned to the drag source when drop is not allowed. ... */ + /** [Config Option] (String) */ dropNotAllowed?: string; - /** [Config Option] (String) The CSS class applied to the drop target element while the drag source is over it. ... */ + /** [Config Option] (String) */ overClass?: string; - /** [Property] (Boolean) private By default, all instances can be a drop target. ... */ + /** [Property] (Boolean) */ isTarget?: bool; + /** [Method] Destroy this DragDrop instance */ + destroy?(): void; /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the dragged item has been dropped on it - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param source Ext.dd.DragSource The drag source that was dragged over this drop target * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the source is now over the target - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param source Ext.dd.DragSource The drag source that was dragged over this drop target * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyEnter?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; /** [Method] The function a Ext dd DragSource calls once to notify this drop target that the source has been dragged out of the ta - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param source Ext.dd.DragSource The drag source that was dragged over this drop target * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; /** [Method] The function a Ext dd DragSource calls continuously while it is being dragged over the target - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param source Ext.dd.DragSource The drag source that was dragged over this drop target * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ @@ -9049,65 +11544,65 @@ declare module Ext.dd { */ getTargetFromEvent?( e?:Event ): any; /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the dragged item has been dropped on it - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source is now over the zone - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyEnter?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source has been dragged out of the zone - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target + * @param source Ext.dd.DragSource The drag source that was dragged over this drop target * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag zone */ notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; /** [Method] The function a Ext dd DragSource calls continuously while it is being dragged over the drop zone - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ notifyOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped on it but not on any of its registered - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ onContainerDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; /** [Method] Called while the DropZone determines that a Ext dd DragSource is being dragged over it but not over any of its regis - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; /** [Method] Called when the DropZone determines that a Ext dd DragSource has entered a drop node that has either been registered * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ onNodeEnter?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dragged out of the drop node without dropping * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone + * @param source Ext.dd.DragSource The drag source that was dragged over this drop zone * @param e Event The event * @param data Object An object containing arbitrary data supplied by the drag source */ @@ -9118,10 +11613,23 @@ declare module Ext.dd { export interface IRegistry extends Ext.IBase { } export class Registry { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Returns the handle registered for a DOM Node by id - * @param id any The DOM node or id to look up + * @param id String/HTMLElement The DOM node or id to look up */ static getHandle( id?:any ): any; static getHandle( id?:string ): any; @@ -9130,8 +11638,12 @@ declare module Ext.dd { * @param e Event The event */ static getHandleFromEvent( e?:Event ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Returns a custom data object that is registered for a DOM node by id - * @param id any The DOM node or id to look up + * @param id String/HTMLElement The DOM node or id to look up */ static getTarget( id?:any ): any; static getTarget( id?:string ): any; @@ -9140,54 +11652,133 @@ declare module Ext.dd { * @param e Event The event */ static getTargetFromEvent( e?:Event ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Registers a drag drop element - * @param element String The id or DOM node to register + * @param element String/HTMLElement The id or DOM node to register * @param data Object An custom data object that will be passed between the elements that are involved in drag drop operations. You can populate this object with any arbitrary properties that your own code knows how to interpret, plus there are some specific properties known to the Registry that should be populated in the data object (if applicable): */ + static register( element?:any, data?:any ): any; static register( element?:string, data?:any ): void; static register( element?:HTMLElement, data?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Unregister a drag drop element - * @param element String The id or DOM node to unregister + * @param element String/HTMLElement The id or DOM node to unregister */ + static unregister( element?:any ): any; static unregister( element?:string ): void; static unregister( element?:HTMLElement ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.dd { export interface IScrollManager extends Ext.IBase { } export class ScrollManager { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Manually trigger a cache refresh */ static refreshCache(): void; /** [Method] Registers new overflow element s to auto scroll - * @param el String The id of or the element to be scrolled or an array of either + * @param el String/HTMLElement/Ext.Element/String[]/HTMLElement[]/Ext.Element[] The id of or the element to be scrolled or an array of either */ + static register( el?:any ): any; static register( el?:string ): void; static register( el?:HTMLElement ): void; static register( el?:Ext.IElement ): void; static register( el?:string[] ): void; static register( el?:HTMLElement[] ): void; static register( el?:Ext.IElement[] ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Unregisters overflow element s so they are no longer scrolled - * @param el String The id of or the element to be removed or an array of either + * @param el String/HTMLElement/Ext.Element/String[]/HTMLElement[]/Ext.Element[] The id of or the element to be removed or an array of either */ + static unregister( el?:any ): any; static unregister( el?:string ): void; static unregister( el?:HTMLElement ): void; static unregister( el?:Ext.IElement ): void; static unregister( el?:string[] ): void; static unregister( el?:HTMLElement[] ): void; static unregister( el?:Ext.IElement[] ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.dd { export interface IStatusProxy extends Ext.IComponent { - /** [Config Option] (String) The CSS class to apply to the status element when drop is allowed. ... */ + /** [Config Option] (String) */ dropAllowed?: string; - /** [Config Option] (String) The CSS class to apply to the status element when drop is not allowed. ... */ + /** [Config Option] (String) */ dropNotAllowed?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; /** [Method] Returns the ghost element */ getGhost?(): Ext.IElement; @@ -9210,8 +11801,9 @@ declare module Ext.dd { /** [Method] Force the Layer to sync its shadow and shim positions to the element */ sync?(): void; /** [Method] Updates the contents of the ghost element - * @param html String The html that will replace the current innerHTML of the ghost element, or a DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first). + * @param html String/HTMLElement The html that will replace the current innerHTML of the ghost element, or a DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first). */ + update?( html?:any ): any; update?( html?:string ): void; update?( html?:HTMLElement ): void; } @@ -9244,40 +11836,54 @@ declare module Ext.direct { export interface IManager extends Ext.IBase,Ext.util.IObservable { } export class Manager { - /** [Method] */ - constructor(); /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds an Ext Direct Provider and creates the proxy or stub methods to execute server side methods - * @param provider any Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. + * @param provider Ext.direct.Provider/Object... Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. */ static addProvider( provider?:any ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ static clearManagedListeners(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -9289,43 +11895,53 @@ declare module Ext.direct { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; - /** [Method] Retrieves a provider by the id specified when the provider is added - * @param id String The id of the provider, or the provider instance. + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. */ + static getInitialConfig( name?:string ): any; + /** [Method] Retrieves a provider by the id specified when the provider is added + * @param id String/Ext.direct.Provider The id of the provider, or the provider instance. + */ + static getProvider( id?:any ): any; static getProvider( id?:string ): void; static getProvider( id?:Ext.direct.IProvider ): void; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ static hasListener( eventName?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Parses a direct function - * @param fn any The direct function + * @param fn String/Function The direct function */ static parseMethod( fn?:any ): any; static parseMethod( fn?:string ): any; @@ -9342,15 +11958,16 @@ declare module Ext.direct { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Removes the provider - * @param provider any The provider instance or the id of the provider. + * @param provider String/Ext.direct.Provider The provider instance or the id of the provider. */ static removeProvider( provider?:any ): any; static removeProvider( provider?:string ): Ext.direct.IProvider; @@ -9361,6 +11978,8 @@ declare module Ext.direct { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -9375,46 +11994,83 @@ declare module Ext.direct { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IDirect extends Ext.IBase,Ext.util.IObservable { } export class Direct { - /** [Method] */ - constructor(); /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds an Ext Direct Provider and creates the proxy or stub methods to execute server side methods - * @param provider any Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. + * @param provider Ext.direct.Provider/Object... Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Direct how to create client-side stub methods. */ static addProvider( provider?:any ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ static clearManagedListeners(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -9426,43 +12082,53 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; - /** [Method] Retrieves a provider by the id specified when the provider is added - * @param id String The id of the provider, or the provider instance. + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. */ + static getInitialConfig( name?:string ): any; + /** [Method] Retrieves a provider by the id specified when the provider is added + * @param id String/Ext.direct.Provider The id of the provider, or the provider instance. + */ + static getProvider( id?:any ): any; static getProvider( id?:string ): void; static getProvider( id?:Ext.direct.IProvider ): void; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ static hasListener( eventName?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Parses a direct function - * @param fn any The direct function + * @param fn String/Function The direct function */ static parseMethod( fn?:any ): any; static parseMethod( fn?:string ): any; @@ -9479,15 +12145,16 @@ declare module Ext { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Removes the provider - * @param provider any The provider instance or the id of the provider. + * @param provider String/Ext.direct.Provider The provider instance or the id of the provider. */ static removeProvider( provider?:any ): any; static removeProvider( provider?:string ): Ext.direct.IProvider; @@ -9498,6 +12165,8 @@ declare module Ext { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -9512,15 +12181,38 @@ declare module Ext { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.direct { export interface IPollingProvider extends Ext.direct.IJsonProvider { /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (Number) How often to poll the server-side in milliseconds. ... */ + /** [Config Option] (Number) */ interval?: number; - /** [Config Option] (String/Function) The url which the PollingProvider should contact with each request. ... */ + /** [Config Option] (String/Function) */ url?: any; /** [Method] Connect to the server side and begin the polling process */ connect?(): void; @@ -9532,27 +12224,27 @@ declare module Ext.direct { } declare module Ext.direct { export interface IProvider extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) The unique id of the provider (defaults to an auto-assigned id). ... */ + /** [Config Option] (String) */ id?: string; - /** [Config Option] (String[]) List of Provider events that should be relayed by Ext.direct.Manager. ... */ + /** [Config Option] (String[]) */ relayedEvents?: string[]; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -9566,8 +12258,9 @@ declare module Ext.direct { /** [Method] Abstract method for subclasses to implement */ disconnect?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -9579,7 +12272,7 @@ declare module Ext.direct { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ @@ -9587,25 +12280,26 @@ declare module Ext.direct { /** [Method] Returns whether or not the server side is currently connected */ isConnected?(): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -9624,11 +12318,12 @@ declare module Ext.direct { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -9669,21 +12364,21 @@ declare module Ext.direct { } declare module Ext.direct { export interface IRemotingProvider extends Ext.direct.IJsonProvider { - /** [Config Option] (Object) Object literal defining the server side actions and methods. ... */ + /** [Config Option] (Object) */ actions?: any; - /** [Config Option] (Boolean) In versions prior to 4.2, using dotted Action names was not really meaningful, because it generated flat namespace ob... */ + /** [Config Option] (Boolean) */ disableNestedActions?: bool; - /** [Config Option] (Number/Boolean) true or false to enable or disable combining of method calls. ... */ + /** [Config Option] (Number/Boolean) */ enableBuffer?: any; - /** [Config Option] (String) Specify which param will hold the arguments for the method. ... */ + /** [Config Option] (String) */ enableUrlEncode?: string; - /** [Config Option] (Number) Number of times to re-attempt delivery on failure of a call. ... */ + /** [Config Option] (Number) */ maxRetries?: number; - /** [Config Option] (String/Object) Namespace for the Remoting Provider (defaults to Ext.global). ... */ + /** [Config Option] (String/Object) */ namespace?: any; /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (String) Required. ... */ + /** [Config Option] (String) */ url?: string; /** [Method] Abstract method for subclasses to implement */ connect?(): void; @@ -9701,32 +12396,40 @@ declare module Ext.direct { } declare module Ext.dom { export interface IAbstractElement extends Ext.IBase { - /** [Property] (String) The default unit to append to CSS values where a unit isn't provided. ... */ + /** [Property] (String) */ defaultUnit?: string; /** [Property] (HTMLElement) */ dom?: HTMLElement; /** [Property] (String) */ id?: string; + /** [Property] (Number) */ + ASCLASS?: number; + /** [Property] (Number) */ + DISPLAY?: number; + /** [Property] (Number) */ + OFFSETS?: number; + /** [Property] (Number) */ + VISIBILITY?: number; /** [Method] Adds one or more CSS classes to the element - * @param className any The CSS classes to add separated by space, or an array of classes + * @param className String/String[] The CSS classes to add separated by space, or an array of classes */ addCls?( className?:any ): any; addCls?( className?:string ): Ext.dom.IElement; addCls?( className?:string[] ): Ext.dom.IElement; /** [Method] Appends the passed element s to this element Defined in override Ext dom AbstractElement_insertion - * @param el any The id or element to insert or a DomHelper config The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.dom.AbstractElement/Object The id or element to insert or a DomHelper config The id of the node, a DOM Node or an existing Element. * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement */ appendChild?( el?:any, returnDom?:bool ): Ext.dom.IAbstractElement; /** [Method] Appends this element to the passed element Defined in override Ext dom AbstractElement_insertion - * @param el any The new parent element. The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.dom.AbstractElement The new parent element. The id of the node, a DOM Node or an existing Element. */ appendTo?( el?:any ): any; appendTo?( el?:string ): Ext.dom.IAbstractElement; appendTo?( el?:HTMLElement ): Ext.dom.IAbstractElement; appendTo?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; /** [Method] More flexible version of setStyle for setting style properties - * @param styles any A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or a function which returns such a specification. + * @param styles String/Object/Function A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or a function which returns such a specification. */ applyStyles?( styles?:any ): Ext.dom.IElement; /** [Method] Selects a single direct child based on the passed CSS selector the selector should not contain an id @@ -9740,7 +12443,7 @@ declare module Ext.dom { */ child?( selector?:string, returnDom?:bool ): Ext.dom.IElement; /** [Method] Returns true if this element is an ancestor of the passed element - * @param el any The element to check + * @param el HTMLElement/String The element to check */ contains?( el?:any ): any; contains?( el?:HTMLElement ): bool; @@ -9764,9 +12467,9 @@ declare module Ext.dom { */ down?( selector?:string, returnDom?:bool ): Ext.dom.IElement; /** [Method] Looks at this node and then at parent nodes for a match of the passed simple selector e g - * @param selector any The simple selector to test - * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) - * @param returnEl any True to return a Ext.Element object instead of DOM node + * @param selector String The simple selector to test + * @param limit Number/String/HTMLElement/Ext.Element The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnEl Boolean True to return a Ext.Element object instead of DOM node */ findParent?( selector?:any, limit?:any, returnEl?:any ): any; findParent?( selector?:string, limit?:number, returnEl?:bool ): HTMLElement; @@ -9774,9 +12477,9 @@ declare module Ext.dom { findParent?( selector?:string, limit?:HTMLElement, returnEl?:bool ): HTMLElement; findParent?( selector?:string, limit?:Ext.IElement, returnEl?:bool ): HTMLElement; /** [Method] Looks at parent nodes for a match of the passed simple selector e g - * @param selector any The simple selector to test - * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) - * @param returnEl any True to return a Ext.Element object instead of DOM node + * @param selector String The simple selector to test + * @param limit Number/String/HTMLElement/Ext.Element The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnEl Boolean True to return a Ext.Element object instead of DOM node */ findParentNode?( selector?:any, limit?:any, returnEl?:any ): any; findParentNode?( selector?:string, limit?:number, returnEl?:bool ): HTMLElement; @@ -9828,8 +12531,8 @@ declare module Ext.dom { */ getSize?( contentSize?:bool ): any; /** [Method] Returns a named style property based on computed currentStyle primary and inline style if primary is not available - * @param property any The style property (or multiple property names in an array) whose value is returned. - * @param inline any if true only inline styles will be returned. + * @param property String/String[] The style property (or multiple property names in an array) whose value is returned. + * @param inline Boolean if true only inline styles will be returned. */ getStyle?( property?:any, inline?:any ): any; getStyle?( property?:string, inline?:bool ): any; @@ -9853,25 +12556,25 @@ declare module Ext.dom { */ hasCls?( className?:string ): bool; /** [Method] Hide this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ hide?( animate?:any ): Ext.dom.IElement; /** [Method] Inserts this element after the passed element in the DOM Defined in override Ext dom AbstractElement_insertion - * @param el any The element to insert after. The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.dom.AbstractElement The element to insert after. The id of the node, a DOM Node or an existing Element. */ insertAfter?( el?:any ): any; insertAfter?( el?:string ): Ext.dom.IAbstractElement; insertAfter?( el?:HTMLElement ): Ext.dom.IAbstractElement; insertAfter?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; /** [Method] Inserts this element before the passed element in the DOM Defined in override Ext dom AbstractElement_insertion - * @param el any The element before which this element will be inserted. The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.dom.AbstractElement The element before which this element will be inserted. The id of the node, a DOM Node or an existing Element. */ insertBefore?( el?:any ): any; insertBefore?( el?:string ): Ext.dom.IAbstractElement; insertBefore?( el?:HTMLElement ): Ext.dom.IAbstractElement; insertBefore?( el?:Ext.dom.IAbstractElement ): Ext.dom.IAbstractElement; /** [Method] Inserts or creates an element or DomHelper config as the first child of this element Defined in override Ext dom - * @param el any The id or element to insert or a DomHelper config to create and insert + * @param el String/HTMLElement/Ext.dom.AbstractElement/Object The id or element to insert or a DomHelper config to create and insert */ insertFirst?( el?:any ): Ext.dom.IAbstractElement; /** [Method] Inserts an html fragment into this element Defined in override Ext dom AbstractElement_insertion @@ -9887,7 +12590,7 @@ declare module Ext.dom { */ insertHtml?( where?:string, html?:string, returnEl?:bool ): Ext.dom.IAbstractElement; /** [Method] Inserts or creates the passed element or DomHelper config as a sibling of this element Defined in override Ext d - * @param el any The id, element to insert or a DomHelper config to create and insert or an array of any of those. + * @param el String/HTMLElement/Ext.dom.AbstractElement/Object/Array The id, element to insert or a DomHelper config to create and insert or an array of any of those. * @param where String 'before' or 'after' * @param returnDom Boolean True to return the raw DOM element instead of Ext.dom.AbstractElement */ @@ -9955,7 +12658,7 @@ declare module Ext.dom { */ query?( selector?:string ): HTMLElement[]; /** [Method] Adds one or more CSS classes to this element and removes the same class es from all siblings - * @param className any The CSS class to add, or an array of classes + * @param className String/String[] The CSS class to add, or an array of classes */ radioCls?( className?:any ): any; radioCls?( className?:string ): Ext.dom.IElement; @@ -9963,7 +12666,7 @@ declare module Ext.dom { /** [Method] Removes this element s dom reference */ remove?(): void; /** [Method] Removes one or more CSS classes from the element - * @param className any The CSS classes to remove separated by space, or an array of classes + * @param className String/String[] The CSS classes to remove separated by space, or an array of classes */ removeCls?( className?:any ): any; removeCls?( className?:string ): Ext.dom.IElement; @@ -9971,7 +12674,7 @@ declare module Ext.dom { /** [Method] Forces the browser to repaint this element Defined in override Ext dom AbstractElement_style */ repaint?(): Ext.dom.IElement; /** [Method] Replaces the passed element with this element Defined in override Ext dom AbstractElement_insertion - * @param el any The element to replace. The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.dom.AbstractElement The element to replace. The id of the node, a DOM Node or an existing Element. */ replace?( el?:any ): any; replace?( el?:string ): Ext.dom.IAbstractElement; @@ -9983,7 +12686,7 @@ declare module Ext.dom { */ replaceCls?( oldClassName?:string, newClassName?:string ): Ext.dom.IElement; /** [Method] Replaces this element with the passed element Defined in override Ext dom AbstractElement_insertion - * @param el any The new element (id of the node, a DOM Node or an existing Element) or a DomHelper config of an element to create + * @param el String/HTMLElement/Ext.dom.AbstractElement/Object The new element (id of the node, a DOM Node or an existing Element) or a DomHelper config of an element to create */ replaceWith?( el?:any ): Ext.dom.IAbstractElement; /** [Method] Creates a Ext CompositeElement for child nodes based on the passed CSS selector the selector should not contain an id @@ -10005,14 +12708,14 @@ declare module Ext.dom { */ setHTML?( html?:string ): Ext.IElement; /** [Method] Set the height of this Element - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + * @param height Number/String The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. */ setHeight?( height?:any ): any; setHeight?( height?:number ): Ext.dom.IElement; setHeight?( height?:string ): Ext.dom.IElement; /** [Method] Set the size of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + * @param width Number/String The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. + * @param height Number/String The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. */ setSize?( width?:any, height?:any ): any; setSize?( width?:number, height?:number ): Ext.dom.IElement; @@ -10020,7 +12723,7 @@ declare module Ext.dom { setSize?( width?:number, height?:string ): Ext.dom.IElement; setSize?( width?:string, height?:string ): Ext.dom.IElement; /** [Method] Wrapper for setting style properties also takes single object parameter of multiple styles - * @param property any The style property to be set, or an object of multiple styles. + * @param property String/Object The style property to be set, or an object of multiple styles. * @param value String The value to apply to the given property, or null if an object was passed. */ setStyle?( property?:any, value?:string ): Ext.dom.IElement; @@ -10030,17 +12733,17 @@ declare module Ext.dom { setVisibilityMode?( mode?:any ): Ext.dom.IAbstractElement; /** [Method] Sets the visibility of the element see details * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; /** [Method] Set the width of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + * @param width Number/String The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. */ setWidth?( width?:any ): any; setWidth?( width?:number ): Ext.dom.IElement; setWidth?( width?:string ): Ext.dom.IElement; /** [Method] Show this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ show?( animate?:any ): Ext.dom.IElement; /** [Method] Toggles the specified CSS class on this element removes it if it already exists otherwise adds it @@ -10050,9 +12753,9 @@ declare module Ext.dom { /** [Method] Removes a previously applied mask */ unmask?(): void; /** [Method] Walks up the DOM looking for a parent node that matches the passed simple selector e g - * @param selector any The simple selector to test - * @param limit any The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) - * @param returnDom any True to return the DOM node instead of Ext.dom.Element + * @param selector String The simple selector to test + * @param limit Number/String/HTMLElement/Ext.Element The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement) + * @param returnDom Boolean True to return the DOM node instead of Ext.dom.Element */ up?( selector?:any, limit?:any, returnDom?:any ): any; up?( selector?:string, limit?:number, returnDom?:bool ): Ext.IElement; @@ -10075,31 +12778,85 @@ declare module Ext.dom { * @param selector String A DomQuery selector to select a descendant node within the created element to use as the wrapping element. */ wrap?( config?:any, returnDom?:bool, selector?:string ): Ext.dom.IAbstractElement; + /** [Method] Gets the singleton flyweight element with the passed node as the active element + * @param dom String/HTMLElement The dom node or id + * @param named String Allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_global") + */ + fly?( dom?:any, named?:any ): any; + fly?( dom?:string, named?:string ): Ext.dom.element.IFly; + fly?( dom?:HTMLElement, named?:string ): Ext.dom.element.IFly; + /** [Method] Returns the top Element that is located at the passed coordinates Defined in override Ext dom AbstractElement_static + * @param x Number The x coordinate + * @param y Number The y coordinate + */ + fromPoint?( x?:number, y?:number ): string; + /** [Method] Retrieves Ext dom Element objects + * @param el String/HTMLElement/Ext.Element The id of the node, a DOM Node or an existing Element. + */ + get?( el?:any ): any; + get?( el?:string ): Ext.dom.IElement; + get?( el?:HTMLElement ): Ext.dom.IElement; + get?( el?:Ext.IElement ): Ext.dom.IElement; + /** [Method] Retrieves the document height Defined in override Ext dom AbstractElement_static */ + getDocumentHeight?(): number; + /** [Method] Retrieves the document width Defined in override Ext dom AbstractElement_static */ + getDocumentWidth?(): number; + /** [Method] Retrieves the current orientation of the window */ + getOrientation?(): string; + /** [Method] Retrieves the viewport height of the window */ + getViewportHeight?(): number; + /** [Method] Retrieves the viewport width of the window */ + getViewportWidth?(): number; + /** [Method] Returns an array of unique class names based upon the input strings or string arrays + * @param clsList1 Mixed A string of class names, or an array of class names. + * @param clsList2 Mixed A string of class names, or an array of class names. + */ + mergeClsList?( clsList1?:any, clsList2?:any ): any[]; + /** [Method] Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax + * @param prop String The property to normalize + */ + normalize?( prop?:string ): string; + /** [Method] Parses a number or string representing margin sizes into an object + * @param box Number/String The encoded margins + */ + parseBox?( box?:any ): any; + parseBox?( box?:number ): any; + parseBox?( box?:string ): any; + /** [Method] Converts a CSS string into an object with a property for each style + * @param styles String A CSS string + */ + parseStyles?( styles?:string ): any; + /** [Method] Parses a number or string representing margin sizes into an object + * @param box Number/String/Object The encoded margins, or an object with top, right, bottom, and left properties + * @param units String The type of units to add + */ + unitizeBox?( box?:any, units?:string ): string; } } declare module Ext.dom { export interface IAbstractHelper extends Ext.IBase { /** [Method] Creates new DOM element s and appends them to el - * @param el any The context element - * @param o any The DOM object spec (and children) or raw HTML blob - * @param returnElement any true to return a Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element */ append?( el?:any, o?:any, returnElement?:any ): any; append?( el?:string, o?:any, returnElement?:bool ): HTMLElement; append?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; append?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and appends them to el - * @param el String The context element - * @param o any The DOM object spec (and children) or raw HTML blob + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob * @param returnElement Boolean true to return a Ext.Element */ append?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; append?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; append?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; /** [Method] Applies a style specification to an element - * @param el String The element to apply styles to - * @param styles any A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or a function which returns such a specification. + * @param el String/HTMLElement The element to apply styles to + * @param styles String/Object/Function A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or a function which returns such a specification. */ + applyStyles?( el?:any, styles?:any ): any; applyStyles?( el?:string, styles?:any ): void; applyStyles?( el?:HTMLElement, styles?:any ): void; /** [Method] Converts the styles from the given object to text @@ -10113,16 +12870,16 @@ declare module Ext.dom { */ generateStyles?( styles?:any, buffer?:string[] ): string[]; /** [Method] Creates new DOM element s and inserts them after el - * @param el any The context element - * @param o any The DOM object spec (and children) - * @param returnElement any true to return a Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element */ insertAfter?( el?:any, o?:any, returnElement?:any ): any; insertAfter?( el?:string, o?:any, returnElement?:bool ): HTMLElement; insertAfter?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; insertAfter?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and inserts them after el - * @param el String The context element + * @param el String/HTMLElement/Ext.Element The context element * @param o Object The DOM object spec (and children) * @param returnElement Boolean true to return a Ext.Element */ @@ -10130,43 +12887,43 @@ declare module Ext.dom { insertAfter?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; insertAfter?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; /** [Method] Creates new DOM element s and inserts them before el - * @param el any The context element - * @param o any The DOM object spec (and children) or raw HTML blob - * @param returnElement any true to return a Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element */ insertBefore?( el?:any, o?:any, returnElement?:any ): any; insertBefore?( el?:string, o?:any, returnElement?:bool ): HTMLElement; insertBefore?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; insertBefore?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and inserts them before el - * @param el String The context element - * @param o any The DOM object spec (and children) or raw HTML blob + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob * @param returnElement Boolean true to return a Ext.Element */ insertBefore?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; insertBefore?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; insertBefore?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; /** [Method] Creates new DOM element s and inserts them as the first child of el - * @param el any The context element - * @param o any The DOM object spec (and children) or raw HTML blob - * @param returnElement any true to return a Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element */ insertFirst?( el?:any, o?:any, returnElement?:any ): any; insertFirst?( el?:string, o?:any, returnElement?:bool ): HTMLElement; insertFirst?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; insertFirst?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and inserts them as the first child of el - * @param el String The context element - * @param o any The DOM object spec (and children) or raw HTML blob + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob * @param returnElement Boolean true to return a Ext.Element */ insertFirst?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; insertFirst?( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; insertFirst?( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; /** [Method] Inserts an HTML fragment into the DOM - * @param where any Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. For example take the following HTML: <div>Contents</div> Using different where values inserts element to the following places: beforeBegin: <HERE><div>Contents</div> afterBegin: <div><HERE>Contents</div> beforeEnd: <div>Contents<HERE></div> afterEnd: <div>Contents</div><HERE> - * @param el any The context element - * @param html any The HTML fragment + * @param where String Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. For example take the following HTML: <div>Contents</div> Using different where values inserts element to the following places: beforeBegin: <HERE><div>Contents</div> afterBegin: <div><HERE>Contents</div> beforeEnd: <div>Contents<HERE></div> afterEnd: <div>Contents</div><HERE> + * @param el HTMLElement/TextNode The context element + * @param html String The HTML fragment */ insertHtml?( where?:any, el?:any, html?:any ): any; insertHtml?( where?:string, el?:HTMLElement, html?:string ): HTMLElement; @@ -10176,17 +12933,17 @@ declare module Ext.dom { */ markup?( spec?:any ): string; /** [Method] Creates new DOM element s and overwrites the contents of el with them - * @param el any The context element - * @param o any The DOM object spec (and children) or raw HTML blob - * @param returnElement any true to return a Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element */ overwrite?( el?:any, o?:any, returnElement?:any ): any; overwrite?( el?:string, o?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and overwrites the contents of el with them - * @param el String The context element - * @param o any The DOM object spec (and children) or raw HTML blob + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob * @param returnElement Boolean true to return a Ext.Element */ overwrite?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; @@ -10197,23 +12954,23 @@ declare module Ext.dom { declare module Ext.dom { export interface IAbstractQuery extends Ext.IBase { /** [Method] Returns true if the passed element s match the passed simple selector e g - * @param el any An element id, element or array of elements - * @param selector any The simple selector to test + * @param el String/HTMLElement/Array An element id, element or array of elements + * @param selector String The simple selector to test */ is?( el?:any, selector?:any ): any; is?( el?:string, selector?:string ): bool; is?( el?:HTMLElement, selector?:string ): bool; is?( el?:any[], selector?:string ): bool; /** [Method] Selects a group of elements - * @param selector any The selector/xpath query (can be a comma separated list of selectors) - * @param root any The start of the query (defaults to document). + * @param selector String The selector/xpath query (can be a comma separated list of selectors) + * @param root HTMLElement/String The start of the query (defaults to document). */ select?( selector?:any, root?:any ): any; select?( selector?:string, root?:HTMLElement ): HTMLElement[]; select?( selector?:string, root?:string ): HTMLElement[]; /** [Method] Selects a single element - * @param selector any The selector/xpath query - * @param root any The start of the query (defaults to document). + * @param selector String The selector/xpath query + * @param root HTMLElement/String The start of the query (defaults to document). */ selectNode?( selector?:any, root?:any ): any; selectNode?( selector?:string, root?:HTMLElement ): HTMLElement; @@ -10230,12 +12987,12 @@ declare module Ext { } declare module Ext.dom { export interface ICompositeElementLite extends Ext.IBase { - /** [Property] (HTMLElement[]) The Array of DOM elements which this CompositeElement encapsulates. ... */ + /** [Property] (HTMLElement[]) */ elements?: HTMLElement[]; - /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + /** [Property] (Boolean) */ isComposite?: bool; /** [Method] Adds elements to this Composite object - * @param els any Either an Array of DOM elements to add, or another Composite object who's elements should be added. + * @param els HTMLElement[]/Ext.dom.CompositeElement Either an Array of DOM elements to add, or another Composite object who's elements should be added. */ add?( els?:any ): any; add?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; @@ -10245,7 +13002,7 @@ declare module Ext.dom { */ clear?( removeDom?:bool ): void; /** [Method] Returns true if this composite contains the passed element - * @param el any The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. */ contains?( el?:any ): any; contains?( el?:string ): bool; @@ -10258,13 +13015,13 @@ declare module Ext.dom { */ each?( fn?:any, scope?:any ): Ext.dom.ICompositeElement; /** [Method] Clears this Composite and adds the elements passed - * @param els any Either an array of DOM elements, or another Composite from which to fill this Composite. + * @param els HTMLElement[]/Ext.dom.CompositeElement Either an array of DOM elements, or another Composite from which to fill this Composite. */ fill?( els?:any ): any; fill?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; fill?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; /** [Method] Filters this composite to only elements that match the passed selector - * @param selector any A string CSS selector or a comparison function. The comparison function will be called with the following arguments: + * @param selector String/Function A string CSS selector or a comparison function. The comparison function will be called with the following arguments: */ filter?( selector?:any ): any; filter?( selector?:string ): Ext.dom.ICompositeElement; @@ -10273,7 +13030,7 @@ declare module Ext.dom { /** [Method] Returns the number of elements in this Composite */ getCount?(): number; /** [Method] Find the index of the passed element within the composite collection - * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. */ indexOf?( el?:any ): any; indexOf?( el?:string ): number; @@ -10287,8 +13044,8 @@ declare module Ext.dom { /** [Method] Returns the last Element */ last?(): Ext.dom.IElement; /** [Method] Removes the specified element s - * @param el any The id of an element, the Element itself, the index of the element in this composite or an array of any of those. - * @param removeDom any True to also remove the element from the document. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param removeDom Boolean True to also remove the element from the document. */ removeElement?( el?:any, removeDom?:any ): any; removeElement?( el?:string, removeDom?:bool ): Ext.dom.ICompositeElement; @@ -10296,9 +13053,9 @@ declare module Ext.dom { removeElement?( el?:Ext.IElement, removeDom?:bool ): Ext.dom.ICompositeElement; removeElement?( el?:number, removeDom?:bool ): Ext.dom.ICompositeElement; /** [Method] Replaces the specified element with the passed element - * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. - * @param replacement any The id of an element or the Element itself. - * @param domReplace any True to remove and replace the element in the document too. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement String/Ext.Element The id of an element or the Element itself. + * @param domReplace Boolean True to remove and replace the element in the document too. */ replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; @@ -10318,12 +13075,12 @@ declare module Ext.dom { } declare module Ext { export interface ICompositeElementLite extends Ext.IBase { - /** [Property] (HTMLElement[]) The Array of DOM elements which this CompositeElement encapsulates. ... */ + /** [Property] (HTMLElement[]) */ elements?: HTMLElement[]; - /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + /** [Property] (Boolean) */ isComposite?: bool; /** [Method] Adds elements to this Composite object - * @param els any Either an Array of DOM elements to add, or another Composite object who's elements should be added. + * @param els HTMLElement[]/Ext.dom.CompositeElement Either an Array of DOM elements to add, or another Composite object who's elements should be added. */ add?( els?:any ): any; add?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; @@ -10333,7 +13090,7 @@ declare module Ext { */ clear?( removeDom?:bool ): void; /** [Method] Returns true if this composite contains the passed element - * @param el any The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. */ contains?( el?:any ): any; contains?( el?:string ): bool; @@ -10346,13 +13103,13 @@ declare module Ext { */ each?( fn?:any, scope?:any ): Ext.dom.ICompositeElement; /** [Method] Clears this Composite and adds the elements passed - * @param els any Either an array of DOM elements, or another Composite from which to fill this Composite. + * @param els HTMLElement[]/Ext.dom.CompositeElement Either an array of DOM elements, or another Composite from which to fill this Composite. */ fill?( els?:any ): any; fill?( els?:HTMLElement[] ): Ext.dom.ICompositeElement; fill?( els?:Ext.dom.ICompositeElement ): Ext.dom.ICompositeElement; /** [Method] Filters this composite to only elements that match the passed selector - * @param selector any A string CSS selector or a comparison function. The comparison function will be called with the following arguments: + * @param selector String/Function A string CSS selector or a comparison function. The comparison function will be called with the following arguments: */ filter?( selector?:any ): any; filter?( selector?:string ): Ext.dom.ICompositeElement; @@ -10361,7 +13118,7 @@ declare module Ext { /** [Method] Returns the number of elements in this Composite */ getCount?(): number; /** [Method] Find the index of the passed element within the composite collection - * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. */ indexOf?( el?:any ): any; indexOf?( el?:string ): number; @@ -10375,8 +13132,8 @@ declare module Ext { /** [Method] Returns the last Element */ last?(): Ext.dom.IElement; /** [Method] Removes the specified element s - * @param el any The id of an element, the Element itself, the index of the element in this composite or an array of any of those. - * @param removeDom any True to also remove the element from the document. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param removeDom Boolean True to also remove the element from the document. */ removeElement?( el?:any, removeDom?:any ): any; removeElement?( el?:string, removeDom?:bool ): Ext.dom.ICompositeElement; @@ -10384,9 +13141,9 @@ declare module Ext { removeElement?( el?:Ext.IElement, removeDom?:bool ): Ext.dom.ICompositeElement; removeElement?( el?:number, removeDom?:bool ): Ext.dom.ICompositeElement; /** [Method] Replaces the specified element with the passed element - * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. - * @param replacement any The id of an element or the Element itself. - * @param domReplace any True to remove and replace the element in the document too. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement String/Ext.Element The id of an element or the Element itself. + * @param domReplace Boolean True to remove and replace the element in the document too. */ replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.dom.ICompositeElement; @@ -10406,21 +13163,21 @@ declare module Ext { } declare module Ext.dom.element { export interface IFly extends Ext.dom.IElement { - /** [Property] (Boolean) This is true to identify Element flyweights ... */ + /** [Property] (Boolean) */ isFly?: bool; } } declare module Ext.dom.abstractelement { export interface IFly extends Ext.dom.IElement { - /** [Property] (Boolean) This is true to identify Element flyweights ... */ + /** [Property] (Boolean) */ isFly?: bool; } } declare module Ext.dom { export interface IElement extends Ext.dom.IAbstractElement { - /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + /** [Property] (Boolean) */ autoBoxAdjust?: bool; - /** [Property] (String) The element's default display mode. ... */ + /** [Property] (String) */ originalDisplay?: string; /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe * @param className String The class to add @@ -10441,7 +13198,7 @@ declare module Ext.dom { */ addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; /** [Method] Convenience method for constructing a KeyMap - * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param key String/Number/Number[]/Object Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: * @param fn Function The function to call * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. */ @@ -10470,8 +13227,9 @@ declare module Ext.dom { /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ cacheScrollValues?(): any; /** [Method] Centers the Element in either the viewport or another Element - * @param centerIn String element in which to center the element. + * @param centerIn String/HTMLElement/Ext.dom.Element element in which to center the element. */ + center?( centerIn?:any ): any; center?( centerIn?:string ): void; center?( centerIn?:HTMLElement ): void; center?( centerIn?:Ext.dom.IElement ): void; @@ -10490,9 +13248,9 @@ declare module Ext.dom { /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ clip?(): Ext.dom.IElement; /** [Method] Creates a proxy element of this element - * @param config any The class name of the proxy element or a DomHelper config object - * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. - * @param matchBox any True to align and size the proxy to this element now. + * @param config String/Object The class name of the proxy element or a DomHelper config object + * @param renderTo String/HTMLElement The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox Boolean True to align and size the proxy to this element now. */ createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; @@ -10504,25 +13262,23 @@ declare module Ext.dom { */ enableDisplayMode?( display?:string ): Ext.dom.IElement; /** [Method] Fade an element in from transparent to opaque - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeIn?( options?:any ): Ext.IElement; /** [Method] Fade an element out from opaque to transparent - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeOut?( options?:any ): Ext.IElement; /** [Method] Tries to focus the element * @param defer Number Milliseconds to defer the focus */ focus?( defer?:number ): Ext.dom.IElement; - /** [Method] Alias for isFocusable - * @param asFocusEl Object - */ - focusable?( asFocusEl?:any ): bool; + /** [Method] Alias for isFocusable */ + focusable?(): bool; /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element * @param color String The hex color value for the border. * @param count Number The number of ripples to display. - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node @@ -10530,6 +13286,12 @@ declare module Ext.dom { * @param name String The attribute name */ getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Gets the bottom Y coordinate of the element element Y position element height Defined in override Ext dom Elemen + * @param local Boolean True to get the local css position instead of page coordinate + */ + getBottom?( local?:bool ): number; + /** [Method] Calculates the x y to center this element on the screen Defined in override Ext dom Element_position */ + getCenterXY?(): number[]; /** [Method] Return the CSS color for the specified CSS attribute * @param attr String The css attribute * @param defaultValue String The default value to use when a valid color isn't found @@ -10544,6 +13306,10 @@ declare module Ext.dom { * @param sides String */ getFrameWidth?( sides?:string ): number; + /** [Method] Gets the left X coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinate + */ + getLeft?( local?:bool ): number; /** [Method] Gets this element s ElementLoader */ getLoader?(): Ext.IElementLoader; /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ @@ -10552,10 +13318,18 @@ declare module Ext.dom { getLocalXY?(): any[]; /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ getLocalY?(): number; + /** [Method] Returns an object defining the area of this Element which can be passed to Ext util Positionable setBox to set anothe + * @param asRegion Boolean If true an Ext.util.Region will be returned + */ + getPageBox?( asRegion?:bool ): any; /** [Method] Gets an object with all CSS positioning properties * @param autoPx Boolean true to return pixel values for "auto" styles. */ getPositioning?( autoPx?:bool ): any; + /** [Method] Gets the right X coordinate of the element element X position element width Defined in override Ext dom Element_ + * @param local Boolean True to get the local css position instead of page coordinates + */ + getRight?( local?:bool ): number; /** [Method] Returns the current scroll position of the element */ getScroll?(): any; /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ @@ -10570,6 +13344,10 @@ declare module Ext.dom { * @param max Number The maximum value to return. */ getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets the top Y coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinates + */ + getTop?( local?:bool ): number; /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ getX?(): number; /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ @@ -10577,17 +13355,17 @@ declare module Ext.dom { /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ getY?(): number; /** [Method] Slides the element while fading it out of view - * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ ghost?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Hide this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ hide?( animate?:any ): Ext.dom.IElement; /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ highlight?( color?:string, options?:any ): Ext.dom.IElement; /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element @@ -10646,6 +13424,12 @@ declare module Ext.dom { * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. */ monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + moveTo?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ needsTabIndex?(): void; /** [Method] Appends an event handler to this element @@ -10655,6 +13439,10 @@ declare module Ext.dom { * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); */ on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Creates a pause before any subsequent queued effects begin + * @param seconds Number The length of time to pause (in seconds) + */ + pause?( seconds?:number ): Ext.IElement; /** [Method] Initializes positioning on this element * @param pos String Positioning to use "relative", "absolute" or "fixed" * @param zIndex Number The zIndex to apply @@ -10663,7 +13451,7 @@ declare module Ext.dom { */ position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; /** [Method] Fades the element out while slowly expanding it in all directions - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ puff?( options?:any ): Ext.dom.IElement; /** [Method] Recursively removes all previous added listeners from this element and its children */ @@ -10681,50 +13469,102 @@ declare module Ext.dom { * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. */ removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of an element s dimensions from a starting height width to an ending height width + * @param width Number The new width (pass undefined to keep the original width) + * @param height Number The new height (pass undefined to keep the original height) + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + scale?( width?:number, height?:number, options?:any ): Ext.IElement; /** [Method] Scrolls this element the specified direction * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") * @param distance Number How far to scroll the element in pixels - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scroll?( direction?:string, distance?:number, animate?:any ): bool; /** [Method] Scrolls this element by the passed delta values optionally animating - * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. - * @param deltaY any Either the y delta, or an animate flag or config object. - * @param animate any Animate flag/config object if the delta values were passed separately. + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. */ scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; /** [Method] Scrolls this element into view within the passed container - * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. - * @param hscroll any False to disable horizontal scroll. - * @param animate any true for the default animation or a standard Element animation config object + * @param container String/HTMLElement/Ext.Element The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll Boolean False to disable horizontal scroll. + * @param animate Boolean/Object true for the default animation or a standard Element + * @param highlight Boolean true to highlight the element when it is in view. animation config object */ - scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; - scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:any, hscroll?:any, animate?:any, highlight?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; /** [Method] Scrolls this element the specified scroll point * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. * @param value Number The new scroll value - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ selectable?(): Ext.IElement; + /** [Method] Sets the element s CSS bottom style + * @param bottom Number/String Number of pixels or CSS string value to set as the bottom CSS property value + */ + setBottom?( bottom?:any ): any; + setBottom?( bottom?:number ): Ext.dom.IElement; + setBottom?( bottom?:string ): Ext.dom.IElement; + /** [Method] Sets the element s position and size in one shot + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param width Number/String The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels) A String used to set the CSS width style. Animation may not be used. + * @param height Number/String The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels) A String used to set the CSS height style. Animation may not be used. + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + setBounds?( x?:any, y?:any, width?:any, height?:any, animate?:any ): any; + setBounds?( x?:number, y?:number, width?:number, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:number, height?:string, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:string, animate?:any ): Ext.dom.IElement; /** [Method] Sets the CSS display property - * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + * @param value Boolean/String Boolean value to display the element using its default display, or a string to set the display directly. */ setDisplayed?( value?:any ): any; setDisplayed?( value?:bool ): Ext.dom.IElement; setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left position directly using CSS style instead of setX + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + */ + setLeft?( left?:any ): any; + setLeft?( left?:number ): Ext.dom.IElement; + setLeft?( left?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left and top positions directly using CSS style Defined in override Ext dom Element_position + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setLeftTop?( left?:any, top?:any ): any; + setLeftTop?( left?:number, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:number, top?:string ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:string ): Ext.dom.IElement; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position + * @param y Number Y value for new position + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + setLocation?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set the opacity of the element Defined in override Ext dom Element_style * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc - * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + * @param animate Boolean/Object a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) */ setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set positioning with an object returned by getPositioning * @param posCfg Object */ setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the element s CSS right style + * @param right Number/String Number of pixels or CSS string value to set as the right CSS property value + */ + setRight?( right?:any ): any; + setRight?( right?:number ): Ext.dom.IElement; + setRight?( right?:string ): Ext.dom.IElement; /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll * @param left Number The left scroll position */ @@ -10733,38 +13573,48 @@ declare module Ext.dom { * @param top Number The top scroll position */ setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the element s top position directly using CSS style instead of setY + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setTop?( top?:any ): any; + setTop?( top?:number ): Ext.dom.IElement; + setTop?( top?:string ): Ext.dom.IElement; /** [Method] Sets the visibility of the element see details * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of any combination of an element s dimensions xy position and or opacity + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + shift?( options?:any ): Ext.IElement; /** [Method] Show this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ show?( animate?:any ): Ext.dom.IElement; /** [Method] Slides the element into view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Slides the element out of view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Stops the specified event s from bubbling and optionally prevents the default action - * @param eventName any an event / array of events to stop from bubbling - * @param preventDefault any true to prevent the default action too + * @param eventName String/String[] an event / array of events to stop from bubbling + * @param preventDefault Boolean true to prevent the default action too */ swallowEvent?( eventName?:any, preventDefault?:any ): any; swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ switchOff?( options?:any ): Ext.dom.IElement; /** [Method] Toggles the element s visibility or display depending on visibility mode - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ toggle?( animate?:any ): Ext.dom.IElement; /** [Method] Removes an event handler from this element @@ -10789,9 +13639,9 @@ declare module Ext.dom { } declare module Ext { export interface IElement extends Ext.dom.IAbstractElement { - /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + /** [Property] (Boolean) */ autoBoxAdjust?: bool; - /** [Property] (String) The element's default display mode. ... */ + /** [Property] (String) */ originalDisplay?: string; /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe * @param className String The class to add @@ -10812,7 +13662,7 @@ declare module Ext { */ addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; /** [Method] Convenience method for constructing a KeyMap - * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param key String/Number/Number[]/Object Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: * @param fn Function The function to call * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. */ @@ -10841,8 +13691,9 @@ declare module Ext { /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ cacheScrollValues?(): any; /** [Method] Centers the Element in either the viewport or another Element - * @param centerIn String element in which to center the element. + * @param centerIn String/HTMLElement/Ext.dom.Element element in which to center the element. */ + center?( centerIn?:any ): any; center?( centerIn?:string ): void; center?( centerIn?:HTMLElement ): void; center?( centerIn?:Ext.dom.IElement ): void; @@ -10861,9 +13712,9 @@ declare module Ext { /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ clip?(): Ext.dom.IElement; /** [Method] Creates a proxy element of this element - * @param config any The class name of the proxy element or a DomHelper config object - * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. - * @param matchBox any True to align and size the proxy to this element now. + * @param config String/Object The class name of the proxy element or a DomHelper config object + * @param renderTo String/HTMLElement The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox Boolean True to align and size the proxy to this element now. */ createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; @@ -10875,25 +13726,23 @@ declare module Ext { */ enableDisplayMode?( display?:string ): Ext.dom.IElement; /** [Method] Fade an element in from transparent to opaque - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeIn?( options?:any ): Ext.IElement; /** [Method] Fade an element out from opaque to transparent - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeOut?( options?:any ): Ext.IElement; /** [Method] Tries to focus the element * @param defer Number Milliseconds to defer the focus */ focus?( defer?:number ): Ext.dom.IElement; - /** [Method] Alias for isFocusable - * @param asFocusEl Object - */ - focusable?( asFocusEl?:any ): bool; + /** [Method] Alias for isFocusable */ + focusable?(): bool; /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element * @param color String The hex color value for the border. * @param count Number The number of ripples to display. - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node @@ -10901,6 +13750,12 @@ declare module Ext { * @param name String The attribute name */ getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Gets the bottom Y coordinate of the element element Y position element height Defined in override Ext dom Elemen + * @param local Boolean True to get the local css position instead of page coordinate + */ + getBottom?( local?:bool ): number; + /** [Method] Calculates the x y to center this element on the screen Defined in override Ext dom Element_position */ + getCenterXY?(): number[]; /** [Method] Return the CSS color for the specified CSS attribute * @param attr String The css attribute * @param defaultValue String The default value to use when a valid color isn't found @@ -10915,6 +13770,10 @@ declare module Ext { * @param sides String */ getFrameWidth?( sides?:string ): number; + /** [Method] Gets the left X coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinate + */ + getLeft?( local?:bool ): number; /** [Method] Gets this element s ElementLoader */ getLoader?(): Ext.IElementLoader; /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ @@ -10923,10 +13782,18 @@ declare module Ext { getLocalXY?(): any[]; /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ getLocalY?(): number; + /** [Method] Returns an object defining the area of this Element which can be passed to Ext util Positionable setBox to set anothe + * @param asRegion Boolean If true an Ext.util.Region will be returned + */ + getPageBox?( asRegion?:bool ): any; /** [Method] Gets an object with all CSS positioning properties * @param autoPx Boolean true to return pixel values for "auto" styles. */ getPositioning?( autoPx?:bool ): any; + /** [Method] Gets the right X coordinate of the element element X position element width Defined in override Ext dom Element_ + * @param local Boolean True to get the local css position instead of page coordinates + */ + getRight?( local?:bool ): number; /** [Method] Returns the current scroll position of the element */ getScroll?(): any; /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ @@ -10941,6 +13808,10 @@ declare module Ext { * @param max Number The maximum value to return. */ getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets the top Y coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinates + */ + getTop?( local?:bool ): number; /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ getX?(): number; /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ @@ -10948,17 +13819,17 @@ declare module Ext { /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ getY?(): number; /** [Method] Slides the element while fading it out of view - * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ ghost?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Hide this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ hide?( animate?:any ): Ext.dom.IElement; /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ highlight?( color?:string, options?:any ): Ext.dom.IElement; /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element @@ -11017,6 +13888,12 @@ declare module Ext { * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. */ monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + moveTo?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ needsTabIndex?(): void; /** [Method] Appends an event handler to this element @@ -11026,6 +13903,10 @@ declare module Ext { * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); */ on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Creates a pause before any subsequent queued effects begin + * @param seconds Number The length of time to pause (in seconds) + */ + pause?( seconds?:number ): Ext.IElement; /** [Method] Initializes positioning on this element * @param pos String Positioning to use "relative", "absolute" or "fixed" * @param zIndex Number The zIndex to apply @@ -11034,7 +13915,7 @@ declare module Ext { */ position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; /** [Method] Fades the element out while slowly expanding it in all directions - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ puff?( options?:any ): Ext.dom.IElement; /** [Method] Recursively removes all previous added listeners from this element and its children */ @@ -11052,50 +13933,102 @@ declare module Ext { * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. */ removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of an element s dimensions from a starting height width to an ending height width + * @param width Number The new width (pass undefined to keep the original width) + * @param height Number The new height (pass undefined to keep the original height) + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + scale?( width?:number, height?:number, options?:any ): Ext.IElement; /** [Method] Scrolls this element the specified direction * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") * @param distance Number How far to scroll the element in pixels - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scroll?( direction?:string, distance?:number, animate?:any ): bool; /** [Method] Scrolls this element by the passed delta values optionally animating - * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. - * @param deltaY any Either the y delta, or an animate flag or config object. - * @param animate any Animate flag/config object if the delta values were passed separately. + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. */ scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; /** [Method] Scrolls this element into view within the passed container - * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. - * @param hscroll any False to disable horizontal scroll. - * @param animate any true for the default animation or a standard Element animation config object + * @param container String/HTMLElement/Ext.Element The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll Boolean False to disable horizontal scroll. + * @param animate Boolean/Object true for the default animation or a standard Element + * @param highlight Boolean true to highlight the element when it is in view. animation config object */ - scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; - scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:any, hscroll?:any, animate?:any, highlight?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; /** [Method] Scrolls this element the specified scroll point * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. * @param value Number The new scroll value - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ selectable?(): Ext.IElement; + /** [Method] Sets the element s CSS bottom style + * @param bottom Number/String Number of pixels or CSS string value to set as the bottom CSS property value + */ + setBottom?( bottom?:any ): any; + setBottom?( bottom?:number ): Ext.dom.IElement; + setBottom?( bottom?:string ): Ext.dom.IElement; + /** [Method] Sets the element s position and size in one shot + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param width Number/String The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels) A String used to set the CSS width style. Animation may not be used. + * @param height Number/String The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels) A String used to set the CSS height style. Animation may not be used. + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + setBounds?( x?:any, y?:any, width?:any, height?:any, animate?:any ): any; + setBounds?( x?:number, y?:number, width?:number, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:number, height?:string, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:string, animate?:any ): Ext.dom.IElement; /** [Method] Sets the CSS display property - * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + * @param value Boolean/String Boolean value to display the element using its default display, or a string to set the display directly. */ setDisplayed?( value?:any ): any; setDisplayed?( value?:bool ): Ext.dom.IElement; setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left position directly using CSS style instead of setX + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + */ + setLeft?( left?:any ): any; + setLeft?( left?:number ): Ext.dom.IElement; + setLeft?( left?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left and top positions directly using CSS style Defined in override Ext dom Element_position + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setLeftTop?( left?:any, top?:any ): any; + setLeftTop?( left?:number, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:number, top?:string ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:string ): Ext.dom.IElement; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position + * @param y Number Y value for new position + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + setLocation?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set the opacity of the element Defined in override Ext dom Element_style * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc - * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + * @param animate Boolean/Object a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) */ setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set positioning with an object returned by getPositioning * @param posCfg Object */ setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the element s CSS right style + * @param right Number/String Number of pixels or CSS string value to set as the right CSS property value + */ + setRight?( right?:any ): any; + setRight?( right?:number ): Ext.dom.IElement; + setRight?( right?:string ): Ext.dom.IElement; /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll * @param left Number The left scroll position */ @@ -11104,38 +14037,48 @@ declare module Ext { * @param top Number The top scroll position */ setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the element s top position directly using CSS style instead of setY + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setTop?( top?:any ): any; + setTop?( top?:number ): Ext.dom.IElement; + setTop?( top?:string ): Ext.dom.IElement; /** [Method] Sets the visibility of the element see details * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of any combination of an element s dimensions xy position and or opacity + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + shift?( options?:any ): Ext.IElement; /** [Method] Show this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ show?( animate?:any ): Ext.dom.IElement; /** [Method] Slides the element into view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Slides the element out of view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Stops the specified event s from bubbling and optionally prevents the default action - * @param eventName any an event / array of events to stop from bubbling - * @param preventDefault any true to prevent the default action too + * @param eventName String/String[] an event / array of events to stop from bubbling + * @param preventDefault Boolean true to prevent the default action too */ swallowEvent?( eventName?:any, preventDefault?:any ): any; swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ switchOff?( options?:any ): Ext.dom.IElement; /** [Method] Toggles the element s visibility or display depending on visibility mode - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ toggle?( animate?:any ): Ext.dom.IElement; /** [Method] Removes an event handler from this element @@ -11160,9 +14103,9 @@ declare module Ext { } declare module Ext.core { export interface IElement extends Ext.dom.IAbstractElement { - /** [Property] (Boolean) True to automatically adjust width and height settings for box-model issues. ... */ + /** [Property] (Boolean) */ autoBoxAdjust?: bool; - /** [Property] (String) The element's default display mode. ... */ + /** [Property] (String) */ originalDisplay?: string; /** [Method] Sets up event handlers to add and remove a css class when the mouse is down and then up on this element a click effe * @param className String The class to add @@ -11183,7 +14126,7 @@ declare module Ext.core { */ addClsOnOver?( className?:string, testFn?:any, scope?:any ): Ext.dom.IElement; /** [Method] Convenience method for constructing a KeyMap - * @param key any Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: + * @param key String/Number/Number[]/Object Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options: * @param fn Function The function to call * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to this Element. */ @@ -11212,8 +14155,9 @@ declare module Ext.core { /** [Method] When an element is moved around in the DOM or is hidden using display none it loses layout and therefore all scrol */ cacheScrollValues?(): any; /** [Method] Centers the Element in either the viewport or another Element - * @param centerIn String element in which to center the element. + * @param centerIn String/HTMLElement/Ext.dom.Element element in which to center the element. */ + center?( centerIn?:any ): any; center?( centerIn?:string ): void; center?( centerIn?:HTMLElement ): void; center?( centerIn?:Ext.dom.IElement ): void; @@ -11232,9 +14176,9 @@ declare module Ext.core { /** [Method] Store the current overflow setting and clip overflow on the element use unclip to remove Defined in override Ext d */ clip?(): Ext.dom.IElement; /** [Method] Creates a proxy element of this element - * @param config any The class name of the proxy element or a DomHelper config object - * @param renderTo any The element or element id to render the proxy to. Defaults to: document.body. - * @param matchBox any True to align and size the proxy to this element now. + * @param config String/Object The class name of the proxy element or a DomHelper config object + * @param renderTo String/HTMLElement The element or element id to render the proxy to. Defaults to: document.body. + * @param matchBox Boolean True to align and size the proxy to this element now. */ createProxy?( config?:any, renderTo?:any, matchBox?:any ): any; createProxy?( config?:any, renderTo?:string, matchBox?:bool ): Ext.dom.IElement; @@ -11246,25 +14190,23 @@ declare module Ext.core { */ enableDisplayMode?( display?:string ): Ext.dom.IElement; /** [Method] Fade an element in from transparent to opaque - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeIn?( options?:any ): Ext.IElement; /** [Method] Fade an element out from opaque to transparent - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ fadeOut?( options?:any ): Ext.IElement; /** [Method] Tries to focus the element * @param defer Number Milliseconds to defer the focus */ focus?( defer?:number ): Ext.dom.IElement; - /** [Method] Alias for isFocusable - * @param asFocusEl Object - */ - focusable?( asFocusEl?:any ): bool; + /** [Method] Alias for isFocusable */ + focusable?(): bool; /** [Method] Shows a ripple of exploding attenuating borders to draw attention to an Element * @param color String The hex color value for the border. * @param count Number The number of ripples to display. - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ frame?( color?:string, count?:number, options?:any ): Ext.dom.IElement; /** [Method] Returns the value of a namespaced attribute from the element s underlying DOM node @@ -11272,6 +14214,12 @@ declare module Ext.core { * @param name String The attribute name */ getAttributeNS?( namespace?:string, name?:string ): string; + /** [Method] Gets the bottom Y coordinate of the element element Y position element height Defined in override Ext dom Elemen + * @param local Boolean True to get the local css position instead of page coordinate + */ + getBottom?( local?:bool ): number; + /** [Method] Calculates the x y to center this element on the screen Defined in override Ext dom Element_position */ + getCenterXY?(): number[]; /** [Method] Return the CSS color for the specified CSS attribute * @param attr String The css attribute * @param defaultValue String The default value to use when a valid color isn't found @@ -11286,6 +14234,10 @@ declare module Ext.core { * @param sides String */ getFrameWidth?( sides?:string ): number; + /** [Method] Gets the left X coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinate + */ + getLeft?( local?:bool ): number; /** [Method] Gets this element s ElementLoader */ getLoader?(): Ext.IElementLoader; /** [Method] Gets the local CSS X position for the element Defined in override Ext dom Element_position */ @@ -11294,10 +14246,18 @@ declare module Ext.core { getLocalXY?(): any[]; /** [Method] Gets the local CSS Y position for the element Defined in override Ext dom Element_position */ getLocalY?(): number; + /** [Method] Returns an object defining the area of this Element which can be passed to Ext util Positionable setBox to set anothe + * @param asRegion Boolean If true an Ext.util.Region will be returned + */ + getPageBox?( asRegion?:bool ): any; /** [Method] Gets an object with all CSS positioning properties * @param autoPx Boolean true to return pixel values for "auto" styles. */ getPositioning?( autoPx?:bool ): any; + /** [Method] Gets the right X coordinate of the element element X position element width Defined in override Ext dom Element_ + * @param local Boolean True to get the local css position instead of page coordinates + */ + getRight?( local?:bool ): number; /** [Method] Returns the current scroll position of the element */ getScroll?(): any; /** [Method] Gets the left scroll position Defined in override Ext dom Element_scroll */ @@ -11312,6 +14272,10 @@ declare module Ext.core { * @param max Number The maximum value to return. */ getTextWidth?( text?:string, min?:number, max?:number ): number; + /** [Method] Gets the top Y coordinate Defined in override Ext dom Element_position + * @param local Boolean True to get the local css position instead of page coordinates + */ + getTop?( local?:bool ): number; /** [Method] Gets element X position in page coordinates Defined in override Ext dom Element_position */ getX?(): number; /** [Method] Gets element X and Y positions in page coordinates Defined in override Ext dom Element_position */ @@ -11319,17 +14283,17 @@ declare module Ext.core { /** [Method] Gets element Y position in page coordinates Defined in override Ext dom Element_position */ getY?(): number; /** [Method] Slides the element while fading it out of view - * @param anchor String One of the valid Fx anchor positions (defaults to bottom: 'b') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to bottom: 'b') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ ghost?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Hide this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ hide?( animate?:any ): Ext.dom.IElement; /** [Method] Highlights the Element by setting a color applies to the background color by default but can be changed using the * @param color String The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c') - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ highlight?( color?:string, options?:any ): Ext.dom.IElement; /** [Method] Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element @@ -11388,6 +14352,12 @@ declare module Ext.core { * @param scope Object The scope (this reference) in which the handler function executes. Defaults to this Element. */ monitorMouseLeave?( delay?:number, handler?:any, scope?:any ): any; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + moveTo?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Returns true if this element needs an explicit tabIndex to make it focusable */ needsTabIndex?(): void; /** [Method] Appends an event handler to this element @@ -11397,6 +14367,10 @@ declare module Ext.core { * @param options Object An object containing handler configuration properties. This may contain any of the following properties: scope Object : The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element. delegate String: A simple selector to filter the target or look for a descendant of the target. See below for additional details. stopEvent Boolean: True to stop the event. That is stop propagation, and prevent the default action. preventDefault Boolean: True to prevent the default action stopPropagation Boolean: True to prevent event propagation normalized Boolean: False to pass a browser event to the handler function instead of an Ext.EventObject target Ext.dom.Element: Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node. delay Number: The number of milliseconds to delay the invocation of the handler after the event fires. single Boolean: True to add a handler to handle just the next firing of the event, and then remove itself. buffer Number: Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. Combining Options Using the options argument, it is possible to combine different types of listeners: A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. Code: el.on('click', this.onClick, this, { single: true, delay: 100, stopEvent : true, forumId: 4 }); Attaching multiple handlers in 1 call The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers. Code: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this }); delegate This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example: // using this markup: <div id='elId'> <p id='p1'>paragraph one</p> <p id='p2' class='clickable'>paragraph two</p> <p id='p3'>paragraph three</p> </div> // utilize event delegation to registering just one handler on the container element: el = Ext.get('elId'); el.on( 'click', function(e,t) { // handle click console.info(t.id); // 'p2' }, this, { // filter the target element to be a descendant with the class 'clickable' delegate: '.clickable' } ); */ on?( eventName?:string, fn?:any, scope?:any, options?:any ): Ext.dom.IElement; + /** [Method] Creates a pause before any subsequent queued effects begin + * @param seconds Number The length of time to pause (in seconds) + */ + pause?( seconds?:number ): Ext.IElement; /** [Method] Initializes positioning on this element * @param pos String Positioning to use "relative", "absolute" or "fixed" * @param zIndex Number The zIndex to apply @@ -11405,7 +14379,7 @@ declare module Ext.core { */ position?( pos?:string, zIndex?:number, x?:number, y?:number ): void; /** [Method] Fades the element out while slowly expanding it in all directions - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ puff?( options?:any ): Ext.dom.IElement; /** [Method] Recursively removes all previous added listeners from this element and its children */ @@ -11423,50 +14397,102 @@ declare module Ext.core { * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. */ removeListener?( eventName?:string, fn?:any, scope?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of an element s dimensions from a starting height width to an ending height width + * @param width Number The new width (pass undefined to keep the original width) + * @param height Number The new height (pass undefined to keep the original height) + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + scale?( width?:number, height?:number, options?:any ): Ext.IElement; /** [Method] Scrolls this element the specified direction * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") * @param distance Number How far to scroll the element in pixels - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scroll?( direction?:string, distance?:number, animate?:any ): bool; /** [Method] Scrolls this element by the passed delta values optionally animating - * @param deltaX any Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. - * @param deltaY any Either the y delta, or an animate flag or config object. - * @param animate any Animate flag/config object if the delta values were passed separately. + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. */ scrollBy?( deltaX?:any, deltaY?:any, animate?:any ): Ext.IElement; /** [Method] Scrolls this element into view within the passed container - * @param container any The container element to scroll. Should be a string (id), dom node, or Ext.Element. - * @param hscroll any False to disable horizontal scroll. - * @param animate any true for the default animation or a standard Element animation config object + * @param container String/HTMLElement/Ext.Element The container element to scroll. Should be a string (id), dom node, or Ext.Element. + * @param hscroll Boolean False to disable horizontal scroll. + * @param animate Boolean/Object true for the default animation or a standard Element + * @param highlight Boolean true to highlight the element when it is in view. animation config object */ - scrollIntoView?( container?:any, hscroll?:any, animate?:any ): any; - scrollIntoView?( container?:string, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; - scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any ): Ext.dom.IElement; + scrollIntoView?( container?:any, hscroll?:any, animate?:any, highlight?:any ): any; + scrollIntoView?( container?:string, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:HTMLElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; + scrollIntoView?( container?:Ext.IElement, hscroll?:bool, animate?:any, highlight?:bool ): Ext.dom.IElement; /** [Method] Scrolls this element the specified scroll point * @param side String Either "left" for scrollLeft values or "top" for scrollTop values. * @param value Number The new scroll value - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ scrollTo?( side?:string, value?:number, animate?:any ): Ext.IElement; /** [Method] Enable text selection for this element normalized across browsers Defined in override Ext dom Element_style */ selectable?(): Ext.IElement; + /** [Method] Sets the element s CSS bottom style + * @param bottom Number/String Number of pixels or CSS string value to set as the bottom CSS property value + */ + setBottom?( bottom?:any ): any; + setBottom?( bottom?:number ): Ext.dom.IElement; + setBottom?( bottom?:string ): Ext.dom.IElement; + /** [Method] Sets the element s position and size in one shot + * @param x Number X value for new position (coordinates are page-based) + * @param y Number Y value for new position (coordinates are page-based) + * @param width Number/String The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels) A String used to set the CSS width style. Animation may not be used. + * @param height Number/String The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels) A String used to set the CSS height style. Animation may not be used. + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + setBounds?( x?:any, y?:any, width?:any, height?:any, animate?:any ): any; + setBounds?( x?:number, y?:number, width?:number, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:number, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:number, height?:string, animate?:any ): Ext.dom.IElement; + setBounds?( x?:number, y?:number, width?:string, height?:string, animate?:any ): Ext.dom.IElement; /** [Method] Sets the CSS display property - * @param value any Boolean value to display the element using its default display, or a string to set the display directly. + * @param value Boolean/String Boolean value to display the element using its default display, or a string to set the display directly. */ setDisplayed?( value?:any ): any; setDisplayed?( value?:bool ): Ext.dom.IElement; setDisplayed?( value?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left position directly using CSS style instead of setX + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + */ + setLeft?( left?:any ): any; + setLeft?( left?:number ): Ext.dom.IElement; + setLeft?( left?:string ): Ext.dom.IElement; + /** [Method] Sets the element s left and top positions directly using CSS style Defined in override Ext dom Element_position + * @param left Number/String Number of pixels or CSS string value to set as the left CSS property value + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setLeftTop?( left?:any, top?:any ): any; + setLeftTop?( left?:number, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:number ): Ext.dom.IElement; + setLeftTop?( left?:number, top?:string ): Ext.dom.IElement; + setLeftTop?( left?:string, top?:string ): Ext.dom.IElement; + /** [Method] Sets the position of the element in page coordinates + * @param x Number X value for new position + * @param y Number Y value for new position + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object + */ + setLocation?( x?:number, y?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set the opacity of the element Defined in override Ext dom Element_style * @param opacity Number The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc - * @param animate any a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) + * @param animate Boolean/Object a standard Element animation config object or true for the default animation ({duration: 350, easing: 'easeIn'}) */ setOpacity?( opacity?:number, animate?:any ): Ext.dom.IElement; /** [Method] Set positioning with an object returned by getPositioning * @param posCfg Object */ setPositioning?( posCfg?:any ): Ext.dom.IElement; + /** [Method] Sets the element s CSS right style + * @param right Number/String Number of pixels or CSS string value to set as the right CSS property value + */ + setRight?( right?:any ): any; + setRight?( right?:number ): Ext.dom.IElement; + setRight?( right?:string ): Ext.dom.IElement; /** [Method] Sets the left scroll position Defined in override Ext dom Element_scroll * @param left Number The left scroll position */ @@ -11475,38 +14501,48 @@ declare module Ext.core { * @param top Number The top scroll position */ setScrollTop?( top?:number ): Ext.dom.IElement; + /** [Method] Sets the element s top position directly using CSS style instead of setY + * @param top Number/String Number of pixels or CSS string value to set as the top CSS property value + */ + setTop?( top?:any ): any; + setTop?( top?:number ): Ext.dom.IElement; + setTop?( top?:string ): Ext.dom.IElement; /** [Method] Sets the visibility of the element see details * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; + /** [Method] Animates the transition of any combination of an element s dimensions xy position and or opacity + * @param options Object Object literal with any of the Ext.fx.Anim config options + */ + shift?( options?:any ): Ext.IElement; /** [Method] Show this element Uses display mode to determine whether to use display or visibility - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ show?( animate?:any ): Ext.dom.IElement; /** [Method] Slides the element into view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideIn?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Slides the element out of view - * @param anchor String One of the valid Fx anchor positions (defaults to top: 't') - * @param options Object Object literal with any of the Fx config options + * @param anchor String One of the valid Ext.fx.Anim anchor positions (defaults to top: 't') + * @param options Object Object literal with any of the Ext.fx.Anim config options */ slideOut?( anchor?:string, options?:any ): Ext.dom.IElement; /** [Method] Stops the specified event s from bubbling and optionally prevents the default action - * @param eventName any an event / array of events to stop from bubbling - * @param preventDefault any true to prevent the default action too + * @param eventName String/String[] an event / array of events to stop from bubbling + * @param preventDefault Boolean true to prevent the default action too */ swallowEvent?( eventName?:any, preventDefault?:any ): any; swallowEvent?( eventName?:string, preventDefault?:bool ): Ext.dom.IElement; swallowEvent?( eventName?:string[], preventDefault?:bool ): Ext.dom.IElement; /** [Method] Blinks the element as if it was clicked and then collapses on its center similar to switching off a television - * @param options Object Object literal with any of the Fx config options + * @param options Object Object literal with any of the Ext.fx.Anim config options */ switchOff?( options?:any ): Ext.dom.IElement; /** [Method] Toggles the element s visibility or display depending on visibility mode - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ toggle?( animate?:any ): Ext.dom.IElement; /** [Method] Removes an event handler from this element @@ -11531,10 +14567,10 @@ declare module Ext.core { } declare module Ext.dom { export interface IHelper extends Ext.dom.IAbstractHelper { - /** [Property] (Boolean) True to force the use of DOM instead of html fragments. ... */ + /** [Property] (Boolean) */ useDom?: bool; /** [Method] Creates new DOM element s without inserting them to the document - * @param o any The DOM object spec (and children) or raw HTML blob + * @param o Object/String The DOM object spec (and children) or raw HTML blob */ createDom?( o?:any ): HTMLElement; /** [Method] Alias for markup @@ -11546,17 +14582,17 @@ declare module Ext.dom { */ createTemplate?( o?:any ): Ext.ITemplate; /** [Method] Creates new DOM element s and overwrites the contents of el with them - * @param el any The context element - * @param o any The DOM object spec (and children) or raw HTML blob - * @param returnElement any true to return an Ext.Element + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element */ overwrite?( el?:any, o?:any, returnElement?:any ): any; overwrite?( el?:string, o?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; /** [Method] Creates new DOM element s and overwrites the contents of el with them - * @param el String The context element - * @param o any The DOM object spec (and children) or raw HTML blob + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob * @param returnElement Boolean true to return an Ext.Element */ overwrite?( el?:string, o?:any, returnElement?:bool ): Ext.IElement; @@ -11565,55 +14601,86 @@ declare module Ext.dom { } } declare module Ext.dom { - export interface ILayer extends Ext.dom.IElement { + export interface ILayer extends Ext.IElement { /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Boolean) False to disable constrain to viewport. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Object) DomHelper object config to create element with. ... */ + /** [Config Option] (Object) */ dh?: any; - /** [Config Option] (String) A String which specifies how this Layer will be hidden. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (String/Boolean) True to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow.mode. ... */ + /** [Config Option] (String/Boolean) */ shadow?: any; - /** [Config Option] (Number) Number of pixels to offset the shadow ... */ + /** [Config Option] (Number) */ shadowOffset?: number; - /** [Config Option] (Boolean) False to disable the iframe shim in browsers which need one. ... */ + /** [Config Option] (Boolean) */ shim?: bool; - /** [Config Option] (Boolean) Defaults to use css offsets to hide the Layer. ... */ + /** [Config Option] (Boolean) */ useDisplay?: bool; /** [Config Option] (String) */ visibilityCls?: string; - /** [Config Option] (Number) Starting z-index. ... */ + /** [Config Option] (Number) */ zindex?: number; /** [Method] Removes this element s dom reference */ remove?(): void; - /** [Method] overridden Element method Set the height of this Element - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + /** [Method] overridden Element method + * @param x Object + * @param y Object + * @param width Object + * @param height Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object */ - setHeight?( height?:any ): any; - setHeight?( height?:number ): Ext.dom.IElement; - setHeight?( height?:string ): Ext.dom.IElement; - /** [Method] overridden Element method Set the size of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + setBounds?( x?:any, y?:any, width?:any, height?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param h Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object */ - setSize?( width?:any, height?:any ): any; - setSize?( width?:number, height?:number ): Ext.dom.IElement; - setSize?( width?:string, height?:number ): Ext.dom.IElement; - setSize?( width?:number, height?:string ): Ext.dom.IElement; - setSize?( width?:string, height?:string ): Ext.dom.IElement; - /** [Method] overridden Element method Sets the visibility of the element see details - * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + setHeight?( h?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param left Object */ - setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; - /** [Method] overridden Element method Set the width of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + setLeft?( left?:any ): Ext.dom.IElement; + /** [Method] Sets the element s left and top positions directly using CSS style Defined in override Ext dom Element_position + * @param left Object + * @param top Object */ - setWidth?( width?:any ): any; - setWidth?( width?:number ): Ext.dom.IElement; - setWidth?( width?:string ): Ext.dom.IElement; + setLeftTop?( left?:any, top?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param w Object + * @param h Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setSize?( w?:any, h?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] Sets the element s top position directly using CSS style instead of setY + * @param top Object + */ + setTop?( top?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param visible Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setVisible?( visible?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param w Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setWidth?( w?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; /** [Method] Sets the z index of this layer and adjusts any shadow and shim z indexes * @param zindex Number The new z-index to set */ @@ -11621,55 +14688,86 @@ declare module Ext.dom { } } declare module Ext { - export interface ILayer extends Ext.dom.IElement { + export interface ILayer extends Ext.IElement { /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Boolean) False to disable constrain to viewport. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Object) DomHelper object config to create element with. ... */ + /** [Config Option] (Object) */ dh?: any; - /** [Config Option] (String) A String which specifies how this Layer will be hidden. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (String/Boolean) True to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow.mode. ... */ + /** [Config Option] (String/Boolean) */ shadow?: any; - /** [Config Option] (Number) Number of pixels to offset the shadow ... */ + /** [Config Option] (Number) */ shadowOffset?: number; - /** [Config Option] (Boolean) False to disable the iframe shim in browsers which need one. ... */ + /** [Config Option] (Boolean) */ shim?: bool; - /** [Config Option] (Boolean) Defaults to use css offsets to hide the Layer. ... */ + /** [Config Option] (Boolean) */ useDisplay?: bool; /** [Config Option] (String) */ visibilityCls?: string; - /** [Config Option] (Number) Starting z-index. ... */ + /** [Config Option] (Number) */ zindex?: number; /** [Method] Removes this element s dom reference */ remove?(): void; - /** [Method] overridden Element method Set the height of this Element - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels.) A String used to set the CSS height style. Animation may not be used. + /** [Method] overridden Element method + * @param x Object + * @param y Object + * @param width Object + * @param height Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object */ - setHeight?( height?:any ): any; - setHeight?( height?:number ): Ext.dom.IElement; - setHeight?( height?:string ): Ext.dom.IElement; - /** [Method] overridden Element method Set the size of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. A size object in the format {width: widthValue, height: heightValue}. - * @param height any The new height. This may be one of: A Number specifying the new height in this Element's defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. + setBounds?( x?:any, y?:any, width?:any, height?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param h Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object */ - setSize?( width?:any, height?:any ): any; - setSize?( width?:number, height?:number ): Ext.dom.IElement; - setSize?( width?:string, height?:number ): Ext.dom.IElement; - setSize?( width?:number, height?:string ): Ext.dom.IElement; - setSize?( width?:string, height?:string ): Ext.dom.IElement; - /** [Method] overridden Element method Sets the visibility of the element see details - * @param visible Boolean Whether the element is visible - * @param animate any True for the default animation, or a standard Element animation config object + setHeight?( h?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param left Object */ - setVisible?( visible?:bool, animate?:any ): Ext.dom.IElement; - /** [Method] overridden Element method Set the width of this Element - * @param width any The new width. This may be one of: A Number specifying the new width in this Element's defaultUnits (by default, pixels). A String used to set the CSS width style. Animation may not be used. + setLeft?( left?:any ): Ext.dom.IElement; + /** [Method] Sets the element s left and top positions directly using CSS style Defined in override Ext dom Element_position + * @param left Object + * @param top Object */ - setWidth?( width?:any ): any; - setWidth?( width?:number ): Ext.dom.IElement; - setWidth?( width?:string ): Ext.dom.IElement; + setLeftTop?( left?:any, top?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param w Object + * @param h Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setSize?( w?:any, h?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] Sets the element s top position directly using CSS style instead of setY + * @param top Object + */ + setTop?( top?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param visible Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setVisible?( visible?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; + /** [Method] overridden Element method + * @param w Object + * @param animate Object + * @param duration Object + * @param callback Object + * @param easing Object + */ + setWidth?( w?:any, animate?:any, duration?:any, callback?:any, easing?:any ): Ext.dom.IElement; /** [Method] Sets the z index of this layer and adjusts any shadow and shim z indexes * @param zindex Number The new z-index to set */ @@ -11692,16 +14790,16 @@ declare module Ext.dom { */ static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; /** [Method] Returns true if the passed element s match the passed simple selector e g - * @param el any An element id, element or array of elements - * @param selector any The simple selector to test + * @param el String/HTMLElement/HTMLElement[] An element id, element or array of elements + * @param selector String The simple selector to test */ static is( el?:any, selector?:any ): any; static is( el?:string, selector?:string ): bool; static is( el?:HTMLElement, selector?:string ): bool; static is( el?:HTMLElement[], selector?:string ): bool; /** [Method] Selects an array of DOM nodes using JavaScript only implementation - * @param selector any The selector/xpath query (can be a comma separated list of selectors) - * @param root any The start of the query. + * @param selector String The selector/xpath query (can be a comma separated list of selectors) + * @param root HTMLElement/String The start of the query. */ static jsSelect( selector?:any, root?:any ): any; static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; @@ -11748,16 +14846,16 @@ declare module Ext { */ static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; /** [Method] Returns true if the passed element s match the passed simple selector e g - * @param el any An element id, element or array of elements - * @param selector any The simple selector to test + * @param el String/HTMLElement/HTMLElement[] An element id, element or array of elements + * @param selector String The simple selector to test */ static is( el?:any, selector?:any ): any; static is( el?:string, selector?:string ): bool; static is( el?:HTMLElement, selector?:string ): bool; static is( el?:HTMLElement[], selector?:string ): bool; /** [Method] Selects an array of DOM nodes using JavaScript only implementation - * @param selector any The selector/xpath query (can be a comma separated list of selectors) - * @param root any The start of the query. + * @param selector String The selector/xpath query (can be a comma separated list of selectors) + * @param root HTMLElement/String The start of the query. */ static jsSelect( selector?:any, root?:any ): any; static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; @@ -11804,16 +14902,16 @@ declare module Ext.core { */ static filter( el?:HTMLElement[], selector?:string, nonMatches?:bool ): HTMLElement[]; /** [Method] Returns true if the passed element s match the passed simple selector e g - * @param el any An element id, element or array of elements - * @param selector any The simple selector to test + * @param el String/HTMLElement/HTMLElement[] An element id, element or array of elements + * @param selector String The simple selector to test */ static is( el?:any, selector?:any ): any; static is( el?:string, selector?:string ): bool; static is( el?:HTMLElement, selector?:string ): bool; static is( el?:HTMLElement[], selector?:string ): bool; /** [Method] Selects an array of DOM nodes using JavaScript only implementation - * @param selector any The selector/xpath query (can be a comma separated list of selectors) - * @param root any The start of the query. + * @param selector String The selector/xpath query (can be a comma separated list of selectors) + * @param root HTMLElement/String The start of the query. */ static jsSelect( selector?:any, root?:any ): any; static jsSelect( selector?:string, root?:HTMLElement ): HTMLElement[]; @@ -11848,17 +14946,365 @@ declare module Ext { export interface IDomHelper extends Ext.dom.IHelper { } export class DomHelper { + /** [Method] Creates new DOM element s and appends them to el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static append( el?:any, o?:any, returnElement?:any ): any; + static append( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static append( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static append( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and appends them to el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static append( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static append( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static append( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies a style specification to an element + * @param el String/HTMLElement The element to apply styles to + * @param styles String/Object/Function A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or a function which returns such a specification. + */ + static applyStyles( el?:any, styles?:any ): any; + static applyStyles( el?:string, styles?:any ): void; + static applyStyles( el?:HTMLElement, styles?:any ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Creates new DOM element s without inserting them to the document + * @param o Object/String The DOM object spec (and children) or raw HTML blob + */ + static createDom( o?:any ): HTMLElement; + /** [Method] Alias for markup + * @param spec Object The DOM object spec (and children) + */ + static createHtml( spec?:any ): string; + /** [Method] Creates a new Ext Template from the DOM object spec + * @param o Object The DOM object spec (and children) + */ + static createTemplate( o?:any ): Ext.ITemplate; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + static generateStyles( styles?:any, buffer?:string[] ): string; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + static generateStyles( styles?:any, buffer?:string[] ): string[]; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Creates new DOM element s and inserts them after el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element + */ + static insertAfter( el?:any, o?:any, returnElement?:any ): any; + static insertAfter( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertAfter( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertAfter( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them after el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element + */ + static insertAfter( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertAfter( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertAfter( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertBefore( el?:any, o?:any, returnElement?:any ): any; + static insertBefore( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertBefore( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertBefore( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertBefore( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertBefore( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertBefore( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertFirst( el?:any, o?:any, returnElement?:any ): any; + static insertFirst( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertFirst( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertFirst( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertFirst( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertFirst( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertFirst( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Inserts an HTML fragment into the DOM + * @param where String Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. For example take the following HTML: <div>Contents</div> Using different where values inserts element to the following places: beforeBegin: <HERE><div>Contents</div> afterBegin: <div><HERE>Contents</div> beforeEnd: <div>Contents<HERE></div> afterEnd: <div>Contents</div><HERE> + * @param el HTMLElement/TextNode The context element + * @param html String The HTML fragment + */ + static insertHtml( where?:any, el?:any, html?:any ): any; + static insertHtml( where?:string, el?:HTMLElement, html?:string ): HTMLElement; + static insertHtml( where?:string, el?:any, html?:string ): HTMLElement; + /** [Method] Returns the markup for the passed Element s config + * @param spec Object The DOM object spec (and children) + */ + static markup( spec?:any ): string; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element + */ + static overwrite( el?:any, o?:any, returnElement?:any ): any; + static overwrite( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static overwrite( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static overwrite( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element + */ + static overwrite( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static overwrite( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static overwrite( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.core { export interface IDomHelper extends Ext.dom.IHelper { } export class DomHelper { + /** [Method] Creates new DOM element s and appends them to el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static append( el?:any, o?:any, returnElement?:any ): any; + static append( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static append( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static append( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and appends them to el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static append( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static append( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static append( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Applies a style specification to an element + * @param el String/HTMLElement The element to apply styles to + * @param styles String/Object/Function A style specification string e.g. 'width:100px', or object in the form {width:'100px'}, or a function which returns such a specification. + */ + static applyStyles( el?:any, styles?:any ): any; + static applyStyles( el?:string, styles?:any ): void; + static applyStyles( el?:HTMLElement, styles?:any ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Creates new DOM element s without inserting them to the document + * @param o Object/String The DOM object spec (and children) or raw HTML blob + */ + static createDom( o?:any ): HTMLElement; + /** [Method] Alias for markup + * @param spec Object The DOM object spec (and children) + */ + static createHtml( spec?:any ): string; + /** [Method] Creates a new Ext Template from the DOM object spec + * @param o Object The DOM object spec (and children) + */ + static createTemplate( o?:any ): Ext.ITemplate; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + static generateStyles( styles?:any, buffer?:string[] ): string; + /** [Method] Converts the styles from the given object to text + * @param styles Object The object describing the styles. + * @param buffer String[] The output buffer. + */ + static generateStyles( styles?:any, buffer?:string[] ): string[]; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Creates new DOM element s and inserts them after el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element + */ + static insertAfter( el?:any, o?:any, returnElement?:any ): any; + static insertAfter( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertAfter( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertAfter( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them after el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object The DOM object spec (and children) + * @param returnElement Boolean true to return a Ext.Element + */ + static insertAfter( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertAfter( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertAfter( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertBefore( el?:any, o?:any, returnElement?:any ): any; + static insertBefore( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertBefore( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertBefore( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them before el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertBefore( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertBefore( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertBefore( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertFirst( el?:any, o?:any, returnElement?:any ): any; + static insertFirst( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static insertFirst( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static insertFirst( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and inserts them as the first child of el + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return a Ext.Element + */ + static insertFirst( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static insertFirst( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static insertFirst( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Inserts an HTML fragment into the DOM + * @param where String Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd. For example take the following HTML: <div>Contents</div> Using different where values inserts element to the following places: beforeBegin: <HERE><div>Contents</div> afterBegin: <div><HERE>Contents</div> beforeEnd: <div>Contents<HERE></div> afterEnd: <div>Contents</div><HERE> + * @param el HTMLElement/TextNode The context element + * @param html String The HTML fragment + */ + static insertHtml( where?:any, el?:any, html?:any ): any; + static insertHtml( where?:string, el?:HTMLElement, html?:string ): HTMLElement; + static insertHtml( where?:string, el?:any, html?:string ): HTMLElement; + /** [Method] Returns the markup for the passed Element s config + * @param spec Object The DOM object spec (and children) + */ + static markup( spec?:any ): string; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element + */ + static overwrite( el?:any, o?:any, returnElement?:any ): any; + static overwrite( el?:string, o?:any, returnElement?:bool ): HTMLElement; + static overwrite( el?:HTMLElement, o?:any, returnElement?:bool ): HTMLElement; + static overwrite( el?:Ext.IElement, o?:any, returnElement?:bool ): HTMLElement; + /** [Method] Creates new DOM element s and overwrites the contents of el with them + * @param el String/HTMLElement/Ext.Element The context element + * @param o Object/String The DOM object spec (and children) or raw HTML blob + * @param returnElement Boolean true to return an Ext.Element + */ + static overwrite( el?:string, o?:any, returnElement?:bool ): Ext.IElement; + static overwrite( el?:HTMLElement, o?:any, returnElement?:bool ): Ext.IElement; + static overwrite( el?:Ext.IElement, o?:any, returnElement?:bool ): Ext.IElement; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.draw { export interface IColor extends Ext.IBase { - /** [Config Option] (Number) The default factor to compute the lighter or darker color. ... */ + /** [Config Option] (Number) */ lightnessFactor?: number; /** [Method] Get the blue component of the color in the range 0 255 */ getBlue?(): number; @@ -11882,25 +15328,41 @@ declare module Ext.draw { getRed?(): number; /** [Method] Return the color in the hex format i e */ toString?(): string; + /** [Method] Create a new color based on the specified HSL values + * @param h Number Hue component (0..359) + * @param s Number Saturation component (0..1) + * @param l Number Lightness component (0..1) + */ + fromHSL?( h?:number, s?:number, l?:number ): any; + /** [Method] Parse the string and create a new color + * @param str String Color in string. + */ + fromString?( str?:string ): any; + /** [Method] Convert a color to hexadecimal format + * @param color String/String[] The color value (i.e 'rgb(255, 255, 255)', 'color: #ffffff'). Can also be an Array, in this case the function handles the first member. + */ + toHex?( color?:any ): any; + toHex?( color?:string ): string; + toHex?( color?:string[] ): string; } } declare module Ext.draw { export interface IComponent extends Ext.IComponent { - /** [Config Option] (Boolean) Turn on autoSize support which will set the bounding div's size to the natural size of the contents. ... */ + /** [Config Option] (Boolean) */ autoSize?: bool; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String[]) Defines the priority order for which Surface implementation to use. ... */ + /** [Config Option] (String[]) */ enginePriority?: string[]; - /** [Config Option] (Object[]) (optional) Define a set of gradients that can be used as fill property in sprites. ... */ - gradients?: Object[]; + /** [Config Option] (Object[]) */ + gradients?: any[]; /** [Config Option] (Ext.draw.Sprite[]) */ items?: Ext.draw.ISprite[]; - /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrap?: any; - /** [Config Option] (Boolean) Turn on view box support which will scale and position items in the draw component to fit to the component while main... */ + /** [Config Option] (Boolean) */ viewBox?: bool; /** [Property] (Ext.draw.Surface) */ surface?: Ext.draw.ISurface; @@ -11908,11 +15370,11 @@ declare module Ext.draw { } declare module Ext.draw { export interface ICompositeSprite extends Ext.util.IMixedCollection,Ext.util.IAnimate { - /** [Method] Inherit docs from MixedCollection Adds an item to the collection - * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. - * @param obj Object The item to add. + /** [Method] Inherit docs from MixedCollection + * @param key Object + * @param o Object */ - add?( key?:any, obj?:any ): any; + add?( key?:any, o?:any ): any; /** [Method] Adds class to all sprites * @param cls String CSS class name */ @@ -11929,20 +15391,24 @@ declare module Ext.draw { getActiveAnimation?(): bool; /** [Method] Returns the group bounding box */ getBBox?(): any; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): bool; /** [Method] Hides all sprites * @param redraw Boolean Flag to immediately draw the change. */ hide?( redraw?:bool ): Ext.draw.ICompositeSprite; /** [Method] Inserts an item at the specified index in the collection - * @param index Number The index to insert the item at. - * @param key any The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. - * @param o any If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + * @param index Object + * @param key Object + * @param o Object */ - insert?( index?:number, key?:any, o?:any ): any; + insert?( index?:any, key?:any, o?:any ): any; /** [Method] Force redraw of all sprites */ redraw?(): void; - /** [Method] Inherit docs from MixedCollection Remove an item from the collection - * @param o Object The item to remove. + /** [Method] Inherit docs from MixedCollection + * @param o Object */ remove?( o?:any ): any; /** [Method] Removes class from all sprites @@ -11966,6 +15432,8 @@ declare module Ext.draw { show?( redraw?:bool ): Ext.draw.ICompositeSprite; /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ stopAnimation?(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopFx?(): Ext.IElement; /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ syncFx?(): any; } @@ -11974,6 +15442,29 @@ declare module Ext.draw { export interface IDraw extends Ext.IBase { } export class Draw { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] snapEndsByDate is a utility method to deduce an appropriate tick configuration for the data set of given feature * @param from Date The minimum value in the data * @param to Date The maximum value in the data @@ -11988,33 +15479,105 @@ declare module Ext.draw { * @param lockEnds Boolean If true, the 'from' and 'to' parameters will be used as fixed end values and will not be adjusted */ static snapEndsByDateAndStep( from?:any, to?:any, step?:any[], lockEnds?:bool ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.draw.engine { export interface IImageExporter extends Ext.IBase { } export class ImageExporter { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Exports the surface to an image - * @param surface Ext.draw.ISurface The surface to export + * @param surface Ext.draw.Surface The surface to export * @param config Object The following config options are supported: */ static generate( surface?:Ext.draw.ISurface, config?:any ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.draw.engine { export interface ISvg extends Ext.draw.ISurface { /** [Method] Adds one or more CSS classes to the element - * @param sprite Object The sprite to add the class to. - * @param className String The CSS class to add, or an array of classes + * @param sprite Object + * @param className Object */ - addCls?( sprite?:any, className?:string ): void; - addCls?( sprite?:any, className?:string[] ): void; + addCls?( sprite?:any, className?:any ): void; /** [Method] Adds a gradient definition to the Surface - * @param gradient Object A gradient config. + * @param gradient Object */ addGradient?( gradient?:any ): void; /** [Method] Insert or move a given sprite s element to the correct place in the DOM list for its zIndex - * @param sprite Ext.draw.ISprite + * @param sprite Ext.draw.Sprite */ applyZIndex?( sprite?:Ext.draw.ISprite ): void; /** [Method] Destroys the surface */ @@ -12022,47 +15585,93 @@ declare module Ext.draw.engine { /** [Method] Get the region for the surface s canvas area */ getRegion?(): Ext.util.IRegion; /** [Method] Checks if the specified CSS class exists on this element s DOM node - * @param sprite Ext.draw.ISprite The sprite to look into. + * @param sprite Ext.draw.Sprite The sprite to look into. * @param className String The CSS class to check for */ hasCls?( sprite?:Ext.draw.ISprite, className?:string ): bool; /** [Method] Removes one or more CSS classes from the element - * @param sprite Object The sprite to remove the class from. - * @param className String The CSS class to remove, or an array of classes + * @param sprite Object + * @param className Object */ - removeCls?( sprite?:any, className?:string ): void; - removeCls?( sprite?:any, className?:string[] ): void; + removeCls?( sprite?:any, className?:any ): void; /** [Method] Sets the size of the surface - * @param w Number The new width of the canvas. - * @param h Number The new height of the canvas. + * @param width Object + * @param height Object */ - setSize?( w?:number, h?:number ): void; + setSize?( width?:any, height?:any ): void; /** [Method] Changes the text in the sprite element - * @param sprite Object The Sprite to change the text. - * @param text String The new text to be set. + * @param sprite Object + * @param textString Object */ - setText?( sprite?:any, text?:string ): void; + setText?( sprite?:any, textString?:any ): void; } } declare module Ext.draw.engine { export interface ISvgExporter extends Ext.IBase { } export class SvgExporter { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Exports the passed surface to a SVG string representation - * @param surface Ext.draw.ISurface The surface to export + * @param surface Ext.draw.Surface The surface to export * @param config Object Any configuration for the export. Currently this is unused but may provide more options in the future */ static generate( surface?:Ext.draw.ISurface, config?:any ): string; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.draw.engine { export interface IVml extends Ext.draw.ISurface { /** [Method] Adds one or more CSS classes to the element - * @param sprite Object The sprite to add the class to. - * @param className String The CSS class to add, or an array of classes + * @param sprite Object + * @param className Object */ - addCls?( sprite?:any, className?:string ): void; - addCls?( sprite?:any, className?:string[] ): void; + addCls?( sprite?:any, className?:any ): void; /** [Method] Adds a definition to this Surface for a linear gradient * @param gradient Object */ @@ -12070,21 +15679,20 @@ declare module Ext.draw.engine { /** [Method] Destroys the surface */ destroy?(): void; /** [Method] Removes one or more CSS classes from the element - * @param sprite Object The sprite to remove the class from. - * @param className String The CSS class to remove, or an array of classes + * @param sprite Object + * @param className Object */ - removeCls?( sprite?:any, className?:string ): void; - removeCls?( sprite?:any, className?:string[] ): void; + removeCls?( sprite?:any, className?:any ): void; /** [Method] Sets the size of the surface - * @param w Number The new width of the canvas. - * @param h Number The new height of the canvas. + * @param width Object + * @param height Object */ - setSize?( w?:number, h?:number ): void; + setSize?( width?:any, height?:any ): void; /** [Method] Changes the text in the sprite element - * @param sprite Object The Sprite to change the text. - * @param text String The new text to be set. + * @param sprite Object + * @param text Object */ - setText?( sprite?:any, text?:string ): void; + setText?( sprite?:any, text?:any ): void; } } declare module Ext.draw { @@ -12092,22 +15700,22 @@ declare module Ext.draw { } } declare module Ext.draw { - export interface ISprite extends Ext.IBase,Ext.util.IAnimate,Ext.util.IObservable { + export interface ISprite extends Ext.IBase,Ext.util.IObservable,Ext.util.IAnimate { /** [Config Option] (Boolean) */ draggable?: bool; /** [Config Option] (String) */ fill?: string; - /** [Config Option] (String) Used with text type sprites. ... */ + /** [Config Option] (String) */ font?: string; - /** [Config Option] (String/String[]) The group that this sprite belongs to, or an array of groups. ... */ + /** [Config Option] (String/String[]) */ group?: any; /** [Config Option] (Number) */ height?: number; - /** [Config Option] (Number) The opacity of the sprite. ... */ + /** [Config Option] (Number) */ opacity?: number; /** [Config Option] (String) */ path?: string; - /** [Config Option] (Number) The radius of the circle sprite. ... */ + /** [Config Option] (Number) */ radius?: number; /** [Config Option] (Number) */ radiusX?: number; @@ -12117,11 +15725,11 @@ declare module Ext.draw { src?: string; /** [Config Option] (String) */ stroke?: string; - /** [Config Option] (Number) The width of the stroke. ... */ + /** [Config Option] (Number) */ strokewidth?: number; /** [Config Option] (String) */ text?: string; - /** [Config Option] (String) The type of the sprite. ... */ + /** [Config Option] (String) */ type?: string; /** [Config Option] (Number) */ width?: number; @@ -12129,33 +15737,33 @@ declare module Ext.draw { x?: number; /** [Config Option] (Number) */ y?: number; - /** [Property] (Ext.dd.DragSource) If this Sprite is configured draggable, this property will contain an instance of Ext.dd.DragSource which handles dra... */ + /** [Property] (Ext.dd.DragSource) */ dd?: Ext.dd.IDragSource; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Sprite, or subclass thereof. ... */ + /** [Property] (Boolean) */ isSprite?: bool; /** [Method] Adds one or more CSS classes to the element - * @param className any The CSS class to add, or an array of classes + * @param className String/String[] The CSS class to add, or an array of classes */ addCls?( className?:any ): any; addCls?( className?:string ): Ext.draw.ISprite; addCls?( className?:string[] ): Ext.draw.ISprite; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -12171,8 +15779,9 @@ declare module Ext.draw { /** [Method] Removes the sprite and clears all listeners */ destroy?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -12184,13 +15793,17 @@ declare module Ext.draw { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ getActiveAnimation?(): Ext.fx.IAnim; /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ getActiveAnimation?(): bool; /** [Method] Retrieves the bounding box of the sprite */ getBBox?(): any; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ @@ -12200,25 +15813,26 @@ declare module Ext.draw { */ hide?( redraw?:bool ): Ext.draw.ISprite; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -12235,7 +15849,7 @@ declare module Ext.draw { /** [Method] Removes the sprite */ remove?(): bool; /** [Method] Removes one or more CSS classes from the element - * @param className any The CSS class to remove, or an array of classes. Note this method is severly limited in VML. + * @param className String/String[] The CSS class to remove, or an array of classes. Note this method is severly limited in VML. */ removeCls?( className?:any ): any; removeCls?( className?:string ): Ext.draw.ISprite; @@ -12247,11 +15861,12 @@ declare module Ext.draw { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -12268,7 +15883,7 @@ declare module Ext.draw { */ setAttributes?( attrs?:any, redraw?:bool ): Ext.draw.ISprite; /** [Method] Wrapper for setting style properties also takes single object parameter of multiple styles - * @param property any The style property to be set, or an object of multiple styles. + * @param property String/Object The style property to be set, or an object of multiple styles. * @param value String The value to apply to the given property, or null if an object was passed. */ setStyle?( property?:any, value?:string ): Ext.draw.ISprite; @@ -12278,6 +15893,8 @@ declare module Ext.draw { show?( redraw?:bool ): Ext.draw.ISprite; /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ stopAnimation?(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopFx?(): Ext.IElement; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -12300,22 +15917,16 @@ declare module Ext.draw { export interface ISpriteDD extends Ext.dd.IDragSource { /** [Method] Creates the proxy element if it does not yet exist */ createFrame?(): void; - /** [Method] Returns a reference to the actual element to drag */ - getDragEl?(): HTMLElement; + /** [Method] Returns a reference to the actual element to drag + * @param e Object + */ + getDragEl?( e?:any ): HTMLElement; /** [Method] Abstract method called during the onMouseMove event while dragging an object - * @param e Event the mousemove event + * @param e Object */ - onDrag?( e?:Event ): void; - /** [Method] Sets the drag element to the location of the mousedown or click event maintaining the cursor location relative to th - * @param iPageX Number the X coordinate of the mousedown or drag event - * @param iPageY Number the Y coordinate of the mousedown or drag event - */ - setDragElPos?( iPageX?:number, iPageY?:number ): void; - /** [Method] TODO nico Cumulative translations in VML are handled differently than in SVG - * @param x Number X click location - * @param y Number Y click location - */ - startDrag?( x?:number, y?:number ): void; + onDrag?( e?:any ): void; + /** [Method] Sets the drag element to the location of the mousedown or click event maintaining the cursor location relative to th */ + setDragElPos?(): void; } } declare module Ext.draw { @@ -12327,24 +15938,25 @@ declare module Ext.draw { /** [Config Option] (Number) */ width?: number; /** [Method] Adds a Sprite to the surface - * @param args any One or more Sprite objects or configs. + * @param args Ext.draw.Sprite[]/Ext.draw.Sprite... One or more Sprite objects or configs. */ add?( args?:any ): any; add?( args?:Ext.draw.ISprite[] ): Ext.draw.ISprite[]; add?( args:Ext.draw.ISprite ): Ext.draw.ISprite[]; /** [Method] Adds a Sprite to the surface - * @param args Ext.draw.ISprite[] One or more Sprite objects or configs. + * @param args Ext.draw.Sprite[]/Ext.draw.Sprite... One or more Sprite objects or configs. */ add?( args?:Ext.draw.ISprite[] ): Ext.draw.ISprite; add?( args:Ext.draw.ISprite ): Ext.draw.ISprite; /** [Method] Adds one or more CSS classes to the element * @param sprite Object The sprite to add the class to. - * @param className String The CSS class to add, or an array of classes + * @param className String/String[] The CSS class to add, or an array of classes */ + addCls?( sprite?:any, className?:any ): any; addCls?( sprite?:any, className?:string ): void; addCls?( sprite?:any, className?:string[] ): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Adds a gradient definition to the Surface @@ -12352,18 +15964,18 @@ declare module Ext.draw { */ addGradient?( gradient?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -12375,8 +15987,9 @@ declare module Ext.draw { /** [Method] Destroys the surface */ destroy?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -12388,7 +16001,7 @@ declare module Ext.draw { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns a new group or an existent group associated with the current surface * @param id String The unique identifier of the group. */ @@ -12400,25 +16013,26 @@ declare module Ext.draw { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -12431,7 +16045,7 @@ declare module Ext.draw { */ relayEvents?( origin?:any, events?:string[], prefix?:string ): any; /** [Method] Removes a given sprite from the surface optionally destroying the sprite in the process - * @param sprite Ext.draw.ISprite + * @param sprite Ext.draw.Sprite * @param destroySprite Boolean */ remove?( sprite?:Ext.draw.ISprite, destroySprite?:bool ): void; @@ -12441,8 +16055,9 @@ declare module Ext.draw { removeAll?( destroySprites?:bool ): void; /** [Method] Removes one or more CSS classes from the element * @param sprite Object The sprite to remove the class from. - * @param className String The CSS class to remove, or an array of classes + * @param className String/String[] The CSS class to remove, or an array of classes */ + removeCls?( sprite?:any, className?:any ): any; removeCls?( sprite?:any, className?:string ): void; removeCls?( sprite?:any, className?:string[] ): void; /** [Method] Removes an event handler @@ -12452,11 +16067,12 @@ declare module Ext.draw { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -12494,21 +16110,31 @@ declare module Ext.draw { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Creates and returns a new concrete Surface instance appropriate for the current environment + * @param config Object Initial configuration for the Surface instance + * @param enginePriority String[] order of implementations to use; the first one that is available in the current environment will be used. Defaults to ['Svg', 'Vml']. + */ + create?( config?:any, enginePriority?:string[] ): any; + /** [Method] Exports a surface in a different format + * @param surface Ext.draw.Surface The surface to export. + * @param config Object The configuration to be passed to the exporter. See the export method for the appropriate exporter for the relevant configuration options + */ + save?( surface?:Ext.draw.ISurface, config?:any ): any; } } declare module Ext.draw { export interface IText extends Ext.draw.IComponent { - /** [Config Option] (Boolean) Turn on autoSize support which will set the bounding div's size to the natural size of the contents. ... */ + /** [Config Option] (Boolean) */ autoSize?: bool; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) The angle by which to initially rotate the text clockwise. ... */ + /** [Config Option] (Number) */ degrees?: number; - /** [Config Option] (String) A CSS selector string which matches a style rule in the document stylesheet from which the text's font properties are... */ + /** [Config Option] (String) */ styleSelector?: string; - /** [Config Option] (String) The text to display (html tags are not accepted) ... */ + /** [Config Option] (String) */ text?: string; - /** [Config Option] (Boolean) Turn on view box support which will scale and position items in the draw component to fit to the component while main... */ + /** [Config Option] (Boolean) */ viewBox?: bool; /** [Method] The initComponent template method is an important initialization step for a Component */ initComponent?(): void; @@ -12524,50 +16150,51 @@ declare module Ext.draw { } declare module Ext { export interface IEditor extends Ext.container.IContainer { - /** [Config Option] (String) The position to align to (see Ext.util.Positionable.alignTo for more details). ... */ + /** [Config Option] (String) */ alignment?: string; - /** [Config Option] (Boolean) True to complete the editing process if in edit mode when the field is blurred. ... */ + /** [Config Option] (Boolean) */ allowBlur?: bool; - /** [Config Option] (Boolean/Object) True for the editor to automatically adopt the size of the underlying field. ... */ + /** [Config Option] (Boolean/Object) */ autoSize?: any; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to cancel the edit when the escape key is pressed. ... */ + /** [Config Option] (Boolean) */ cancelOnEsc?: bool; - /** [Config Option] (Boolean) True to complete the edit when the enter key is pressed. ... */ + /** [Config Option] (Boolean) */ completeOnEnter?: bool; - /** [Config Option] (Boolean) True to constrain the editor to the viewport ... */ + /** [Config Option] (Boolean) */ constrain?: bool; /** [Config Option] (Ext.form.field.Field) */ field?: Ext.form.field.IField; - /** [Config Option] (Boolean) Do not participate in the ZIndexManager's focus switching operations. ... */ + /** [Config Option] (Boolean) */ focusOnToFront?: bool; - /** [Config Option] (Boolean) private overrides true to hide the component. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (Boolean) False to keep the bound element visible while the editor is displayed ... */ + /** [Config Option] (Boolean) */ hideEl?: bool; - /** [Config Option] (Boolean) True to skip the edit completion process (no save, no events fired) if the user completes an edit and the value has n... */ + /** [Config Option] (Boolean) */ ignoreNoChange?: bool; - /** [Config Option] (Ext.enums.Layout/Object) End Definitions Important: In order for child items to be correctly sized and positioned, typically a layout manager... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Number[]) The offsets to use when aligning (see Ext.util.Positionable.alignTo for more details. ... */ + /** [Config Option] (Number[]) */ offsets?: number[]; - /** [Config Option] (String/HTMLElement/Ext.Element) An element to render to. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ parentEl?: any; - /** [Config Option] (Boolean) True to automatically revert the field value and cancel the edit when the user completes an edit and the field valida... */ + /** [Config Option] (Boolean) */ revertInvalid?: bool; - /** [Config Option] (Boolean/String) "sides" for sides/bottom only, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + /** [Config Option] (Boolean/String) */ shadow?: any; - /** [Config Option] (Boolean) Handle the keydown/keypress events so they don't propagate ... */ + /** [Config Option] (Boolean) */ swallowKeys?: bool; - /** [Config Option] (Boolean) True to update the innerHTML of the bound element when the update completes ... */ + /** [Config Option] (Boolean) */ updateEl?: bool; - /** [Config Option] (Object) The data value of the underlying field ... */ + /** [Config Option] (Object) */ value?: any; - /** [Method] private Allows addition of behavior after rendering is complete */ - afterRender?(): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; + /** [Method] private + * @param ct Object + * @param position Object + */ + afterRender?( ct?:any, position?:any ): void; /** [Method] Cancels the editing process and hides the editor without persisting any changes * @param remainVisible Boolean Override the default behavior and keep the editor visible after cancel */ @@ -12578,23 +16205,10 @@ declare module Ext { completeEdit?( remainVisible?:bool ): void; /** [Method] Gets the data value of the editor */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] private Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; - /** [Method] private Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] private */ + onHide?(): void; + /** [Method] private */ + onShow?(): void; /** [Method] Realigns the editor to the bound field based on the current alignment config value * @param autoSize Boolean True to size the field to the dimensions of the bound element. */ @@ -12604,9 +16218,10 @@ declare module Ext { */ setValue?( value?:any ): void; /** [Method] Starts the editing process and shows the editor - * @param el String The element to edit + * @param el String/HTMLElement/Ext.Element The element to edit * @param value String A value to initialize the editor with. If a value is not provided, it defaults to the innerHTML of el. */ + startEdit?( el?:any, value?:any ): any; startEdit?( el?:string, value?:string ): void; startEdit?( el?:HTMLElement, value?:string ): void; startEdit?( el?:Ext.IElement, value?:string ): void; @@ -12616,51 +16231,51 @@ declare module Ext { export interface IElementLoader extends Ext.IBase,Ext.util.IObservable { /** [Config Option] (Object) */ ajaxOptions?: any; - /** [Config Option] (Boolean/Object) True to have the loader make a request as soon as it is created. ... */ + /** [Config Option] (Boolean/Object) */ autoLoad?: any; - /** [Config Option] (Object) Params that will be attached to every request. ... */ + /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (Function) A function to be called when a load request finishes. ... */ + /** [Config Option] (Function) */ callback?: any; - /** [Config Option] (Function) A function to be called when a load request fails. ... */ + /** [Config Option] (Function) */ failure?: any; - /** [Config Option] (Boolean/String) True or a string to show when the element is loading. ... */ + /** [Config Option] (Boolean/String) */ loadMask?: any; - /** [Config Option] (Object) Any params to be attached to the Ajax request. ... */ + /** [Config Option] (Object) */ params?: any; - /** [Config Option] (Function) A custom function to render the content to the element. ... */ + /** [Config Option] (Function) */ renderer?: any; /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) True to parse any inline script tags in the response. ... */ + /** [Config Option] (Boolean) */ scripts?: bool; - /** [Config Option] (Function) A function to be called when a load request is successful. ... */ + /** [Config Option] (Function) */ success?: any; - /** [Config Option] (HTMLElement/Ext.Element/String) The target element for the loader. ... */ + /** [Config Option] (HTMLElement/Ext.Element/String) */ target?: any; /** [Config Option] (String) */ url?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated ElementLoader, or subclass thereof. ... */ + /** [Property] (Boolean) */ isLoader?: bool; /** [Method] Aborts the active load request */ abort?(): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -12672,8 +16287,9 @@ declare module Ext { /** [Method] Destroys the loader */ destroy?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -12685,7 +16301,7 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the target of this loader */ getTarget?(): Ext.IComponent; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -12699,25 +16315,26 @@ declare module Ext { */ load?( options?:any ): void; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -12736,11 +16353,12 @@ declare module Ext { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -12750,8 +16368,9 @@ declare module Ext { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Sets an Ext Element as the target of this loader - * @param target String The element or its ID. + * @param target String/HTMLElement/Ext.Element The element or its ID. */ + setTarget?( target?:any ): any; setTarget?( target?:string ): void; setTarget?( target?:HTMLElement ): void; setTarget?( target?:Ext.IElement ): void; @@ -12780,282 +16399,294 @@ declare module Ext { } declare module Ext.enums { export interface IFeature { - /** [Property] (String) Alias for Ext.grid.feature.AbstractSummary. ... */ + /** [Property] (String) */ abstractsummary?: string; - /** [Property] (String) Alias for Ext.grid.feature.Feature. ... */ + /** [Property] (String) */ feature?: string; - /** [Property] (String) Alias for Ext.grid.feature.Grouping. ... */ + /** [Property] (String) */ grouping?: string; - /** [Property] (String) Alias for Ext.grid.feature.GroupingSummary. ... */ + /** [Property] (String) */ groupingsummary?: string; - /** [Property] (String) Alias for Ext.grid.feature.RowBody. ... */ + /** [Property] (String) */ rowbody?: string; - /** [Property] (String) Alias for Ext.grid.feature.Summary. ... */ + /** [Property] (String) */ summary?: string; } } declare module Ext.enums { export interface ILayout { - /** [Property] (String) Alias for Ext.layout.container.Absolute. ... */ + /** [Property] (String) */ absolute?: string; - /** [Property] (String) Alias for Ext.layout.container.Accordion. ... */ + /** [Property] (String) */ accordion?: string; - /** [Property] (String) Alias for Ext.layout.container.Anchor. ... */ + /** [Property] (String) */ anchor?: string; - /** [Property] (String) Alias for Ext.layout.container.Auto. ... */ + /** [Property] (String) */ auto?: string; - /** [Property] (String) Alias for Ext.layout.component.Auto. ... */ + /** [Property] (String) */ autocomponent?: string; - /** [Property] (String) Alias for Ext.layout.container.Auto. ... */ + /** [Property] (String) */ autocontainer?: string; - /** [Property] (String) Alias for Ext.layout.container.Border. ... */ + /** [Property] (String) */ border?: string; - /** [Property] (String) Alias for Ext.layout.container.Box. ... */ + /** [Property] (String) */ box?: string; - /** [Property] (String) Alias for Ext.layout.container.Card. ... */ + /** [Property] (String) */ card?: string; - /** [Property] (String) Alias for Ext.layout.container.CheckboxGroup. ... */ + /** [Property] (String) */ checkboxgroup?: string; - /** [Property] (String) Alias for Ext.layout.container.Column. ... */ + /** [Property] (String) */ column?: string; - /** [Property] (String) Alias for Ext.layout.container.Container. ... */ + /** [Property] (String) */ container?: string; - /** [Property] (String) Alias for Ext.layout.container.Fit. ... */ + /** [Property] (String) */ fit?: string; - /** [Property] (String) Alias for Ext.layout.container.Form. ... */ + /** [Property] (String) */ form?: string; - /** [Property] (String) Alias for Ext.layout.container.HBox. ... */ + /** [Property] (String) */ hbox?: string; - /** [Property] (String) Alias for Ext.layout.container.Table. ... */ + /** [Property] (String) */ table?: string; - /** [Property] (String) Alias for Ext.layout.container.VBox. ... */ + /** [Property] (String) */ vbox?: string; } } declare module Ext.enums { export interface IPlugin { - /** [Property] (String) Alias for Ext.grid.plugin.BufferedRenderer. ... */ + /** [Property] (String) */ bufferedrenderer?: string; - /** [Property] (String) Alias for Ext.grid.plugin.CellEditing. ... */ + /** [Property] (String) */ cellediting?: string; - /** [Property] (String) Alias for Ext.grid.plugin.HeaderResizer. ... */ + /** [Property] (String) */ gridheaderresizer?: string; - /** [Property] (String) Alias for Ext.grid.plugin.DragDrop. ... */ + /** [Property] (String) */ gridviewdragdrop?: string; - /** [Property] (String) Alias for Ext.grid.plugin.RowEditing. ... */ + /** [Property] (String) */ rowediting?: string; - /** [Property] (String) Alias for Ext.grid.plugin.RowExpander. ... */ + /** [Property] (String) */ rowexpander?: string; - /** [Property] (String) Alias for Ext.tree.plugin.TreeViewDragDrop. ... */ + /** [Property] (String) */ treeviewdragdrop?: string; } } declare module Ext.enums { export interface IWidget { - /** [Property] (String) Alias for Ext.grid.column.Action. ... */ + /** [Property] (String) */ actioncolumn?: string; - /** [Property] (String) Alias for Ext.grid.column.Boolean. ... */ + /** [Property] (String) */ booleancolumn?: string; - /** [Property] (String) Alias for Ext.view.BoundList. ... */ + /** [Property] (String) */ boundlist?: string; - /** [Property] (String) Alias for Ext.Component. ... */ + /** [Property] (String) */ box?: string; - /** [Property] (String) Alias for Ext.button.Button. ... */ + /** [Property] (String) */ button?: string; - /** [Property] (String) Alias for Ext.container.ButtonGroup. ... */ + /** [Property] (String) */ buttongroup?: string; - /** [Property] (String) Alias for Ext.chart.Chart. ... */ + /** [Property] (String) */ chart?: string; - /** [Property] (String) Alias for Ext.form.field.Checkbox. ... */ + /** [Property] (String) */ checkbox?: string; - /** [Property] (String) Alias for Ext.form.field.Checkbox. ... */ + /** [Property] (String) */ checkboxfield?: string; - /** [Property] (String) Alias for Ext.form.CheckboxGroup. ... */ + /** [Property] (String) */ checkboxgroup?: string; - /** [Property] (String) Alias for Ext.grid.column.CheckColumn. ... */ + /** [Property] (String) */ checkcolumn?: string; - /** [Property] (String) Alias for Ext.menu.ColorPicker. ... */ + /** [Property] (String) */ colormenu?: string; - /** [Property] (String) Alias for Ext.picker.Color. ... */ + /** [Property] (String) */ colorpicker?: string; - /** [Property] (String) Alias for Ext.form.field.ComboBox. ... */ + /** [Property] (String) */ combo?: string; - /** [Property] (String) Alias for Ext.form.field.ComboBox. ... */ + /** [Property] (String) */ combobox?: string; - /** [Property] (String) Alias for Ext.Component. ... */ + /** [Property] (String) */ component?: string; - /** [Property] (String) Alias for Ext.container.Container. ... */ + /** [Property] (String) */ container?: string; - /** [Property] (String) Alias for Ext.button.Cycle. ... */ + /** [Property] (String) */ cycle?: string; - /** [Property] (String) Alias for Ext.view.View. ... */ + /** [Property] (String) */ dataview?: string; - /** [Property] (String) Alias for Ext.grid.column.Date. ... */ + /** [Property] (String) */ datecolumn?: string; - /** [Property] (String) Alias for Ext.form.field.Date. ... */ + /** [Property] (String) */ datefield?: string; - /** [Property] (String) Alias for Ext.menu.DatePicker. ... */ + /** [Property] (String) */ datemenu?: string; - /** [Property] (String) Alias for Ext.picker.Date. ... */ + /** [Property] (String) */ datepicker?: string; - /** [Property] (String) Alias for Ext.form.field.Display. ... */ + /** [Property] (String) */ displayfield?: string; - /** [Property] (String) Alias for Ext.draw.Component. ... */ + /** [Property] (String) */ draw?: string; - /** [Property] (String) Alias for Ext.Editor. ... */ + /** [Property] (String) */ editor?: string; - /** [Property] (String) Alias for Ext.form.field.Base. ... */ + /** [Property] (String) */ field?: string; - /** [Property] (String) Alias for Ext.form.FieldContainer. ... */ + /** [Property] (String) */ fieldcontainer?: string; - /** [Property] (String) Alias for Ext.form.FieldSet. ... */ + /** [Property] (String) */ fieldset?: string; - /** [Property] (String) Alias for Ext.form.field.FileButton. ... */ + /** [Property] (String) */ filebutton?: string; - /** [Property] (String) Alias for Ext.form.field.File. ... */ + /** [Property] (String) */ filefield?: string; - /** [Property] (String) Alias for Ext.form.field.File. ... */ + /** [Property] (String) */ fileuploadfield?: string; - /** [Property] (String) Alias for Ext.flash.Component. ... */ + /** [Property] (String) */ flash?: string; - /** [Property] (String) Alias for Ext.form.Panel. ... */ + /** [Property] (String) */ form?: string; - /** [Property] (String) Alias for Ext.grid.Panel. ... */ + /** [Property] (String) */ grid?: string; - /** [Property] (String) Alias for Ext.grid.column.Column. ... */ + /** [Property] (String) */ gridcolumn?: string; - /** [Property] (String) Alias for Ext.grid.Panel. ... */ + /** [Property] (String) */ gridpanel?: string; - /** [Property] (String) Alias for Ext.grid.View. ... */ + /** [Property] (String) */ gridview?: string; - /** [Property] (String) Alias for Ext.panel.Header. ... */ + /** [Property] (String) */ header?: string; - /** [Property] (String) Alias for Ext.grid.header.Container. ... */ + /** [Property] (String) */ headercontainer?: string; - /** [Property] (String) Alias for Ext.form.field.Hidden. ... */ + /** [Property] (String) */ hidden?: string; - /** [Property] (String) Alias for Ext.form.field.Hidden. ... */ + /** [Property] (String) */ hiddenfield?: string; - /** [Property] (String) Alias for Ext.form.field.HtmlEditor. ... */ + /** [Property] (String) */ htmleditor?: string; - /** [Property] (String) Alias for Ext.Img. ... */ + /** [Property] (String) */ image?: string; - /** [Property] (String) Alias for Ext.Img. ... */ + /** [Property] (String) */ imagecomponent?: string; - /** [Property] (String) Alias for Ext.data.JsonPStore. ... */ + /** [Property] (String) */ jsonpstore?: string; - /** [Property] (String) Alias for Ext.form.Label. ... */ + /** [Property] (String) */ label?: string; - /** [Property] (String) Alias for Ext.LoadMask. ... */ + /** [Property] (String) */ loadmask?: string; - /** [Property] (String) Alias for Ext.menu.Menu. ... */ + /** [Property] (String) */ menu?: string; - /** [Property] (String) Alias for Ext.menu.CheckItem. ... */ + /** [Property] (String) */ menucheckitem?: string; - /** [Property] (String) Alias for Ext.menu.Item. ... */ + /** [Property] (String) */ menuitem?: string; - /** [Property] (String) Alias for Ext.menu.Separator. ... */ + /** [Property] (String) */ menuseparator?: string; - /** [Property] (String) Alias for Ext.window.MessageBox. ... */ + /** [Property] (String) */ messagebox?: string; - /** [Property] (String) Alias for Ext.slider.Multi. ... */ + /** [Property] (String) */ multislider?: string; - /** [Property] (String) Alias for Ext.grid.column.Number. ... */ + /** [Property] (String) */ numbercolumn?: string; - /** [Property] (String) Alias for Ext.form.field.Number. ... */ + /** [Property] (String) */ numberfield?: string; - /** [Property] (String) Alias for Ext.toolbar.Paging. ... */ + /** [Property] (String) */ pagingtoolbar?: string; - /** [Property] (String) Alias for Ext.panel.Panel. ... */ + /** [Property] (String) */ panel?: string; - /** [Property] (String) Alias for Ext.form.field.Picker. ... */ + /** [Property] (String) */ pickerfield?: string; - /** [Property] (String) Alias for Ext.ProgressBar. ... */ + /** [Property] (String) */ progressbar?: string; - /** [Property] (String) Alias for Ext.grid.property.Grid. ... */ + /** [Property] (String) */ propertygrid?: string; - /** [Property] (String) Alias for Ext.tip.QuickTip. ... */ + /** [Property] (String) */ quicktip?: string; - /** [Property] (String) Alias for Ext.form.field.Radio. ... */ + /** [Property] (String) */ radio?: string; - /** [Property] (String) Alias for Ext.form.field.Radio. ... */ + /** [Property] (String) */ radiofield?: string; - /** [Property] (String) Alias for Ext.form.RadioGroup. ... */ + /** [Property] (String) */ radiogroup?: string; - /** [Property] (String) Alias for Ext.grid.RowNumberer. ... */ + /** [Property] (String) */ rownumberer?: string; - /** [Property] (String) Alias for Ext.slider.Single. ... */ + /** [Property] (String) */ slider?: string; - /** [Property] (String) Alias for Ext.slider.Single. ... */ + /** [Property] (String) */ sliderfield?: string; - /** [Property] (String) Alias for Ext.slider.Tip. ... */ + /** [Property] (String) */ slidertip?: string; - /** [Property] (String) Alias for Ext.form.field.Spinner. ... */ + /** [Property] (String) */ spinnerfield?: string; - /** [Property] (String) Alias for Ext.button.Split. ... */ + /** [Property] (String) */ splitbutton?: string; - /** [Property] (String) Alias for Ext.resizer.Splitter. ... */ + /** [Property] (String) */ splitter?: string; - /** [Property] (String) Alias for Ext.tab.Tab. ... */ + /** [Property] (String) */ tab?: string; - /** [Property] (String) Alias for Ext.tab.Bar. ... */ + /** [Property] (String) */ tabbar?: string; - /** [Property] (String) Alias for Ext.panel.Table. ... */ + /** [Property] (String) */ tablepanel?: string; - /** [Property] (String) Alias for Ext.view.Table. ... */ + /** [Property] (String) */ tableview?: string; - /** [Property] (String) Alias for Ext.tab.Panel. ... */ + /** [Property] (String) */ tabpanel?: string; - /** [Property] (String) Alias for Ext.toolbar.Fill. ... */ + /** [Property] (String) */ tbfill?: string; - /** [Property] (String) Alias for Ext.toolbar.Item. ... */ + /** [Property] (String) */ tbitem?: string; - /** [Property] (String) Alias for Ext.toolbar.Separator. ... */ + /** [Property] (String) */ tbseparator?: string; - /** [Property] (String) Alias for Ext.toolbar.Spacer. ... */ + /** [Property] (String) */ tbspacer?: string; - /** [Property] (String) Alias for Ext.toolbar.TextItem. ... */ + /** [Property] (String) */ tbtext?: string; - /** [Property] (String) Alias for Ext.grid.column.Template. ... */ + /** [Property] (String) */ templatecolumn?: string; - /** [Property] (String) Alias for Ext.draw.Text. ... */ + /** [Property] (String) */ text?: string; - /** [Property] (String) Alias for Ext.form.field.TextArea. ... */ + /** [Property] (String) */ textarea?: string; - /** [Property] (String) Alias for Ext.form.field.TextArea. ... */ + /** [Property] (String) */ textareafield?: string; - /** [Property] (String) Alias for Ext.form.field.Text. ... */ + /** [Property] (String) */ textfield?: string; - /** [Property] (String) Alias for Ext.form.field.Time. ... */ + /** [Property] (String) */ timefield?: string; - /** [Property] (String) Alias for Ext.picker.Time. ... */ + /** [Property] (String) */ timepicker?: string; - /** [Property] (String) Alias for Ext.tip.Tip. ... */ + /** [Property] (String) */ tip?: string; - /** [Property] (String) Alias for Ext.panel.Tool. ... */ + /** [Property] (String) */ tool?: string; - /** [Property] (String) Alias for Ext.toolbar.Toolbar. ... */ + /** [Property] (String) */ toolbar?: string; - /** [Property] (String) Alias for Ext.tip.ToolTip. ... */ + /** [Property] (String) */ tooltip?: string; - /** [Property] (String) Alias for Ext.tree.Panel. ... */ + /** [Property] (String) */ treepanel?: string; - /** [Property] (String) Alias for Ext.tree.View. ... */ + /** [Property] (String) */ treeview?: string; - /** [Property] (String) Alias for Ext.form.field.Trigger. ... */ + /** [Property] (String) */ trigger?: string; - /** [Property] (String) Alias for Ext.form.field.Trigger. ... */ + /** [Property] (String) */ triggerfield?: string; - /** [Property] (String) Alias for Ext.container.Viewport. ... */ + /** [Property] (String) */ viewport?: string; - /** [Property] (String) Alias for Ext.window.Window. ... */ + /** [Property] (String) */ window?: string; } } declare module Ext { export interface IError { + /** [Property] (Boolean) */ + ignore?: bool; + /** [Property] (Boolean) */ + notify?: bool; /** [Method] Provides a custom string representation of the error object */ toString?(): string; + /** [Method] Globally handle any Ext errors that may be raised optionally providing custom logic to handle different errors indiv + * @param err Ext.Error The Ext.Error object being raised. It will contain any attributes that were originally raised with it, plus properties about the method and class from which the error originated (if raised from a class that uses the Ext 4 class system). + */ + handle?( err?:Ext.IError ): void; + /** [Method] Raise an error that can include additional data and supports automatic console logging if available + * @param err String/Object The error message string, or an object containing the attribute "msg" that will be used as the error message. Any other data included in the object will also be logged to the browser console, if available. + */ + raise?( err?:any ): void; } } declare module Ext { @@ -13063,18 +16694,23 @@ declare module Ext { } export class EventManager { /** [Method] Appends an event handler to an element - * @param el String The html element or id to assign the event handler to. + * @param el String/Ext.Element/HTMLElement/Window The html element or id to assign the event handler to. * @param eventName String The name of the event to listen for. - * @param handler Function The handler function the event invokes. + * @param handler Function/String The handler function the event invokes. A String parameter is assumed to be method name in scope object, or Element object if no scope is provided. * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to the Element. * @param options Object An object containing handler configuration properties. This may contain any of the following properties (See Ext.Element.addListener for examples of how to use these options.): */ + static addListener( el?:any, eventName?:any, handler?:any, scope?:any, options?:any ): any; static addListener( el?:string, eventName?:string, handler?:any, scope?:any, options?:any ): void; static addListener( el?:Ext.IElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; static addListener( el?:HTMLElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; static addListener( el?:Window, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static addListener( el?:string, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static addListener( el?:Ext.IElement, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static addListener( el?:HTMLElement, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static addListener( el?:Window, eventName?:string, handler?:string, scope?:any, options?:any ): void; /** [Method] Get the id of the element - * @param element any The element to get the id for. + * @param element HTMLElement/Ext.Element The element to get the id for. */ static getId( element?:any ): any; static getId( element?:HTMLElement ): string; @@ -13102,16 +16738,21 @@ declare module Ext { */ static getTarget( event?:any ): HTMLElement; /** [Method] Appends an event handler to an element - * @param el String The html element or id to assign the event handler to. + * @param el String/Ext.Element/HTMLElement/Window The html element or id to assign the event handler to. * @param eventName String The name of the event to listen for. - * @param handler Function The handler function the event invokes. + * @param handler Function/String The handler function the event invokes. A String parameter is assumed to be method name in scope object, or Element object if no scope is provided. * @param scope Object The scope (this reference) in which the handler function is executed. Defaults to the Element. * @param options Object An object containing handler configuration properties. This may contain any of the following properties (See Ext.Element.addListener for examples of how to use these options.): */ + static on( el?:any, eventName?:any, handler?:any, scope?:any, options?:any ): any; static on( el?:string, eventName?:string, handler?:any, scope?:any, options?:any ): void; static on( el?:Ext.IElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; static on( el?:HTMLElement, eventName?:string, handler?:any, scope?:any, options?:any ): void; static on( el?:Window, eventName?:string, handler?:any, scope?:any, options?:any ): void; + static on( el?:string, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static on( el?:Ext.IElement, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static on( el?:HTMLElement, eventName?:string, handler?:string, scope?:any, options?:any ): void; + static on( el?:Window, eventName?:string, handler?:string, scope?:any, options?:any ): void; /** [Method] Adds a listener to be notified when the document is ready before onload and before images are loaded * @param fn Function The method the event invokes. * @param scope Object The scope (this reference) in which the handler function executes. Defaults to the browser window. @@ -13137,26 +16778,29 @@ declare module Ext { */ static preventDefault( event?:Event ): void; /** [Method] Recursively removes all previous added listeners from an element and its children - * @param el String The id or html element from which to remove all event handlers. + * @param el String/Ext.Element/HTMLElement/Window The id or html element from which to remove all event handlers. * @param eventName String The name of the event. */ + static purgeElement( el?:any, eventName?:any ): any; static purgeElement( el?:string, eventName?:string ): void; static purgeElement( el?:Ext.IElement, eventName?:string ): void; static purgeElement( el?:HTMLElement, eventName?:string ): void; static purgeElement( el?:Window, eventName?:string ): void; /** [Method] Removes all event handers from an element - * @param el String The id or html element from which to remove all event handlers. + * @param el String/Ext.Element/HTMLElement/Window The id or html element from which to remove all event handlers. */ + static removeAll( el?:any ): any; static removeAll( el?:string ): void; static removeAll( el?:Ext.IElement ): void; static removeAll( el?:HTMLElement ): void; static removeAll( el?:Window ): void; /** [Method] Removes an event handler from an element - * @param el String The id or html element from which to remove the listener. + * @param el String/Ext.Element/HTMLElement/Window The id or html element from which to remove the listener. * @param eventName String The name of the event. * @param fn Function The handler function to remove. This must be a reference to the function passed into the addListener call. * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. */ + static removeListener( el?:any, eventName?:any, fn?:any, scope?:any ): any; static removeListener( el?:string, eventName?:string, fn?:any, scope?:any ): void; static removeListener( el?:Ext.IElement, eventName?:string, fn?:any, scope?:any ): void; static removeListener( el?:HTMLElement, eventName?:string, fn?:any, scope?:any ): void; @@ -13180,11 +16824,12 @@ declare module Ext { */ static stopPropagation( event?:Event ): void; /** [Method] Removes an event handler from an element - * @param el String The id or html element from which to remove the listener. + * @param el String/Ext.Element/HTMLElement/Window The id or html element from which to remove the listener. * @param eventName String The name of the event. * @param fn Function The handler function to remove. This must be a reference to the function passed into the addListener call. * @param scope Object If a scope (this reference) was specified when the listener was added, then this must refer to the same object. */ + static un( el?:any, eventName?:any, fn?:any, scope?:any ): any; static un( el?:string, eventName?:string, fn?:any, scope?:any ): void; static un( el?:Ext.IElement, eventName?:string, fn?:any, scope?:any ): void; static un( el?:HTMLElement, eventName?:string, fn?:any, scope?:any ): void; @@ -13192,7 +16837,7 @@ declare module Ext { } } declare module Ext { - export interface IEventObject extends Ext.IBase { + export interface IEventObject { } export class EventObject { /** [Method] Correctly scales a given wheel delta @@ -13203,20 +16848,24 @@ declare module Ext { static getCharCode(): number; /** [Method] Returns a normalized keyCode for the event */ static getKey(): number; + /** [Method] Gets the x coordinate of the event */ + static getPageX(): number; + /** [Method] Gets the y coordinate of the event */ + static getPageY(): number; /** [Method] Returns a point object that consists of the object coordinates */ static getPoint(): Ext.util.IPoint; /** [Method] Gets the related target - * @param selector any A simple selector to filter the target or look for an ancestor of the target - * @param maxDepth any The max depth to search as a number or element (defaults to 10 || document.body) - * @param returnEl any True to return a Ext.Element object instead of DOM node + * @param selector String A simple selector to filter the target or look for an ancestor of the target + * @param maxDepth Number/HTMLElement The max depth to search as a number or element (defaults to 10 || document.body) + * @param returnEl Boolean True to return a Ext.Element object instead of DOM node */ static getRelatedTarget( selector?:any, maxDepth?:any, returnEl?:any ): any; static getRelatedTarget( selector?:string, maxDepth?:number, returnEl?:bool ): HTMLElement; static getRelatedTarget( selector?:string, maxDepth?:HTMLElement, returnEl?:bool ): HTMLElement; /** [Method] Gets the target for the event - * @param selector any A simple selector to filter the target or look for an ancestor of the target - * @param maxDepth any The max depth to search as a number or element (defaults to 10 || document.body) - * @param returnEl any True to return a Ext.Element object instead of DOM node + * @param selector String A simple selector to filter the target or look for an ancestor of the target + * @param maxDepth Number/HTMLElement The max depth to search as a number or element (defaults to 10 || document.body) + * @param returnEl Boolean True to return a Ext.Element object instead of DOM node */ static getTarget( selector?:any, maxDepth?:any, returnEl?:any ): any; static getTarget( selector?:string, maxDepth?:number, returnEl?:bool ): HTMLElement; @@ -13234,8 +16883,9 @@ declare module Ext { /** [Method] Returns true if the control meta shift or alt key was pressed during this event */ static hasModifier(): bool; /** [Method] Injects a DOM event using the data in this object and optionally a new target - * @param target Ext.IElement If specified, the target for the event. This is likely to be used when relaying a DOM event. If not specified, getTarget is used to determine the target. + * @param target Ext.Element/HTMLElement If specified, the target for the event. This is likely to be used when relaying a DOM event. If not specified, getTarget is used to determine the target. */ + static injectEvent( target?:any ): any; static injectEvent( target?:Ext.IElement ): void; static injectEvent( target?:HTMLElement ): void; /** [Method] Checks if the key pressed was a navigation key */ @@ -13249,9 +16899,9 @@ declare module Ext { /** [Method] Cancels bubbling of the event */ static stopPropagation(): void; /** [Method] Returns true if the target of this event is a child of el - * @param el any The id, DOM element or Ext.Element to check - * @param related any true to test if the related target is within el instead of the target - * @param allowEl any true to also check if the passed element is the target or related target + * @param el String/HTMLElement/Ext.Element The id, DOM element or Ext.Element to check + * @param related Boolean true to test if the related target is within el instead of the target + * @param allowEl Boolean true to also check if the passed element is the target or related target */ static within( el?:any, related?:any, allowEl?:any ): any; static within( el?:string, related?:bool, allowEl?:bool ): bool; @@ -13261,30 +16911,32 @@ declare module Ext { } declare module Ext.flash { export interface IComponent extends Ext.IComponent { - /** [Config Option] (String) The background color of the SWF movie. ... */ + /** [Config Option] (String) */ backgroundColor?: string; - /** [Config Option] (Boolean) True to prompt the user to install flash if not installed. ... */ + /** [Config Option] (Boolean) */ expressInstall?: bool; /** [Config Option] (Object) */ flashAttributes?: any; - /** [Config Option] (Object) A set of key value pairs to be passed to the flash object as parameters. ... */ + /** [Config Option] (Object) */ flashParams?: any; /** [Config Option] (Object) */ flashVars?: any; - /** [Config Option] (String) Indicates the version the flash content was published for. ... */ + /** [Config Option] (String) */ flashVersion?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) Have to create a placeholder div with the swfId, which SWFObject will replace with the object/embed element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String/Number) The height of the embedded SWF movie inside the component. ... */ + /** [Config Option] (String/Number) */ swfHeight?: any; - /** [Config Option] (String/Number) The width of the embedded SWF movie inside the component. ... */ + /** [Config Option] (String/Number) */ swfWidth?: any; /** [Config Option] (String) */ url?: string; - /** [Config Option] (String) The wmode of the flash object. ... */ + /** [Config Option] (String) */ wmode?: string; - /** [Property] (Ext.Element) A reference to the object or embed element into which the SWF file is loaded. ... */ + /** [Property] (Ext.Element) */ swf?: Ext.IElement; + /** [Property] (String) */ + EXPRESS_INSTALL_URL?: string; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Invoked before the Component is destroyed */ @@ -13297,30 +16949,32 @@ declare module Ext.flash { } declare module Ext { export interface IFlashComponent extends Ext.IComponent { - /** [Config Option] (String) The background color of the SWF movie. ... */ + /** [Config Option] (String) */ backgroundColor?: string; - /** [Config Option] (Boolean) True to prompt the user to install flash if not installed. ... */ + /** [Config Option] (Boolean) */ expressInstall?: bool; /** [Config Option] (Object) */ flashAttributes?: any; - /** [Config Option] (Object) A set of key value pairs to be passed to the flash object as parameters. ... */ + /** [Config Option] (Object) */ flashParams?: any; /** [Config Option] (Object) */ flashVars?: any; - /** [Config Option] (String) Indicates the version the flash content was published for. ... */ + /** [Config Option] (String) */ flashVersion?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) Have to create a placeholder div with the swfId, which SWFObject will replace with the object/embed element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String/Number) The height of the embedded SWF movie inside the component. ... */ + /** [Config Option] (String/Number) */ swfHeight?: any; - /** [Config Option] (String/Number) The width of the embedded SWF movie inside the component. ... */ + /** [Config Option] (String/Number) */ swfWidth?: any; /** [Config Option] (String) */ url?: string; - /** [Config Option] (String) The wmode of the flash object. ... */ + /** [Config Option] (String) */ wmode?: string; - /** [Property] (Ext.Element) A reference to the object or embed element into which the SWF file is loaded. ... */ + /** [Property] (Ext.Element) */ swf?: Ext.IElement; + /** [Property] (String) */ + EXPRESS_INSTALL_URL?: string; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Invoked before the Component is destroyed */ @@ -13335,36 +16989,48 @@ declare module Ext { export interface IFocusManager extends Ext.IBase,Ext.util.IObservable { } export class FocusManager { - /** [Method] - * @param config Object - */ - constructor( config?:any ); /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds the specified xtype to the whitelist - * @param xtype String Adds the xtype(s) to the whitelist. + * @param xtype String/String[] Adds the xtype(s) to the whitelist. */ + static addXTypeToWhitelist( xtype?:any ): any; static addXTypeToWhitelist( xtype?:string ): void; static addXTypeToWhitelist( xtype?:string[] ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ @@ -13372,12 +17038,13 @@ declare module Ext { /** [Method] Disables the FocusManager by turning of all automatic focus management and keyboard navigation */ static disable(): void; /** [Method] Enables the FocusManager by turning on all automatic focus management and keyboard navigation - * @param options any Either true/false to turn on the focus frame, or an object with the following options: + * @param options Boolean/Object Either true/false to turn on the focus frame, or an object with the following options: */ static enable( options?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -13389,31 +17056,40 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ static hasListener( eventName?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -13432,16 +17108,18 @@ declare module Ext { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Removes the specified xtype from the whitelist - * @param xtype String Removes the xtype(s) from the whitelist. + * @param xtype String/String[] Removes the xtype(s) from the whitelist. */ + static removeXTypeFromWhitelist( xtype?:any ): any; static removeXTypeFromWhitelist( xtype?:string ): void; static removeXTypeFromWhitelist( xtype?:string[] ): void; /** [Method] Resumes firing of the named event s @@ -13450,6 +17128,8 @@ declare module Ext { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -13464,42 +17144,77 @@ declare module Ext { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IFocusMgr extends Ext.IBase,Ext.util.IObservable { } export class FocusMgr { - /** [Method] - * @param config Object - */ - constructor( config?:any ); /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds the specified xtype to the whitelist - * @param xtype String Adds the xtype(s) to the whitelist. + * @param xtype String/String[] Adds the xtype(s) to the whitelist. */ + static addXTypeToWhitelist( xtype?:any ): any; static addXTypeToWhitelist( xtype?:string ): void; static addXTypeToWhitelist( xtype?:string[] ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ @@ -13507,12 +17222,13 @@ declare module Ext { /** [Method] Disables the FocusManager by turning of all automatic focus management and keyboard navigation */ static disable(): void; /** [Method] Enables the FocusManager by turning on all automatic focus management and keyboard navigation - * @param options any Either true/false to turn on the focus frame, or an object with the following options: + * @param options Boolean/Object Either true/false to turn on the focus frame, or an object with the following options: */ static enable( options?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -13524,31 +17240,40 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ static hasListener( eventName?:string ): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -13567,16 +17292,18 @@ declare module Ext { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Removes the specified xtype from the whitelist - * @param xtype String Removes the xtype(s) from the whitelist. + * @param xtype String/String[] Removes the xtype(s) from the whitelist. */ + static removeXTypeFromWhitelist( xtype?:any ): any; static removeXTypeFromWhitelist( xtype?:string ): void; static removeXTypeFromWhitelist( xtype?:string[] ): void; /** [Method] Resumes firing of the named event s @@ -13585,6 +17312,8 @@ declare module Ext { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -13599,151 +17328,190 @@ declare module Ext { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.form.action { export interface IAction extends Ext.IBase { - /** [Config Option] (Function) The function to call when a failure packet was received, or when an error ocurred in the Ajax communication. ... */ + /** [Config Option] (Function) */ failure?: any; - /** [Config Option] (Ext.form.Basic) The BasicForm instance that is invoking this Action. ... */ + /** [Config Option] (Ext.form.Basic) */ form?: Ext.form.IBasic; - /** [Config Option] (Object) Extra headers to be sent in the AJAX request for submit and load actions. ... */ + /** [Config Option] (Object) */ headers?: any; - /** [Config Option] (String) The HTTP method to use to access the requested URL. ... */ + /** [Config Option] (String) */ method?: string; - /** [Config Option] (Object/String) Extra parameter values to pass. ... */ + /** [Config Option] (Object/String) */ params?: any; - /** [Config Option] (Boolean) When set to true, causes the Form to be reset on Action success. ... */ + /** [Config Option] (Boolean) */ reset?: bool; - /** [Config Option] (Object) The scope in which to call the configured success and failure callback functions (the this reference for the callback... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) If set to true, the emptyText value will be sent with the form when it is submitted. ... */ + /** [Config Option] (Boolean) */ submitEmptyText?: bool; - /** [Config Option] (Function) The function to call when a valid success return packet is received. ... */ + /** [Config Option] (Function) */ success?: any; - /** [Config Option] (Number) The number of seconds to wait for a server response before failing with the failureType as CONNECT_FAILURE. ... */ + /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (String) The URL that the Action is to invoke. ... */ + /** [Config Option] (String) */ url?: string; /** [Config Option] (String) */ waitMsg?: string; /** [Config Option] (String) */ waitTitle?: string; - /** [Property] (String) The type of failure detected will be one of these: CLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ... */ + /** [Property] (String) */ failureType?: string; /** [Property] (Object) */ response?: any; /** [Property] (Object) */ result?: any; - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; + /** [Property] (String) */ + CLIENT_INVALID?: string; + /** [Property] (String) */ + CONNECT_FAILURE?: string; + /** [Property] (String) */ + LOAD_FAILURE?: string; + /** [Property] (String) */ + SERVER_INVALID?: string; /** [Method] Invokes this action using the current configuration */ run?(): void; } } declare module Ext.form { export interface IAction extends Ext.IBase { - /** [Config Option] (Function) The function to call when a failure packet was received, or when an error ocurred in the Ajax communication. ... */ + /** [Config Option] (Function) */ failure?: any; - /** [Config Option] (Ext.form.Basic) The BasicForm instance that is invoking this Action. ... */ + /** [Config Option] (Ext.form.Basic) */ form?: Ext.form.IBasic; - /** [Config Option] (Object) Extra headers to be sent in the AJAX request for submit and load actions. ... */ + /** [Config Option] (Object) */ headers?: any; - /** [Config Option] (String) The HTTP method to use to access the requested URL. ... */ + /** [Config Option] (String) */ method?: string; - /** [Config Option] (Object/String) Extra parameter values to pass. ... */ + /** [Config Option] (Object/String) */ params?: any; - /** [Config Option] (Boolean) When set to true, causes the Form to be reset on Action success. ... */ + /** [Config Option] (Boolean) */ reset?: bool; - /** [Config Option] (Object) The scope in which to call the configured success and failure callback functions (the this reference for the callback... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) If set to true, the emptyText value will be sent with the form when it is submitted. ... */ + /** [Config Option] (Boolean) */ submitEmptyText?: bool; - /** [Config Option] (Function) The function to call when a valid success return packet is received. ... */ + /** [Config Option] (Function) */ success?: any; - /** [Config Option] (Number) The number of seconds to wait for a server response before failing with the failureType as CONNECT_FAILURE. ... */ + /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (String) The URL that the Action is to invoke. ... */ + /** [Config Option] (String) */ url?: string; /** [Config Option] (String) */ waitMsg?: string; /** [Config Option] (String) */ waitTitle?: string; - /** [Property] (String) The type of failure detected will be one of these: CLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ... */ + /** [Property] (String) */ failureType?: string; /** [Property] (Object) */ response?: any; /** [Property] (Object) */ result?: any; - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; + /** [Property] (String) */ + CLIENT_INVALID?: string; + /** [Property] (String) */ + CONNECT_FAILURE?: string; + /** [Property] (String) */ + LOAD_FAILURE?: string; + /** [Property] (String) */ + SERVER_INVALID?: string; /** [Method] Invokes this action using the current configuration */ run?(): void; } } declare module Ext.form.action { export interface IDirectLoad extends Ext.form.action.ILoad { - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; } } declare module Ext.form.action { export interface IDirectSubmit extends Ext.form.action.ISubmit { - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; } } declare module Ext.form.action { export interface ILoad extends Ext.form.action.IAction { - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; } } declare module Ext.form.action { export interface IStandardSubmit extends Ext.form.action.ISubmit { - /** [Config Option] (String) Optional target attribute to be used for the form when submitting. ... */ + /** [Config Option] (String) */ target?: string; } } declare module Ext.form.action { export interface ISubmit extends Ext.form.action.IAction { - /** [Config Option] (Boolean) Determines whether a Form's fields are validated in a final call to isValid prior to submission. ... */ + /** [Config Option] (Boolean) */ clientValidation?: bool; - /** [Property] (String) The type of action this Action instance performs. ... */ + /** [Property] (String) */ type?: string; - /** [Method] inherit docs Invokes this action using the current configuration */ + /** [Method] inherit docs */ run?(): void; } } declare module Ext.form { export interface IBasic extends Ext.util.IObservable { - /** [Config Option] (Object) If specified, load and submit actions will be handled with DirectLoad and DirectSubmit. ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (Object) Parameters to pass with all requests. ... */ + /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + /** [Config Option] (Object/Ext.data.reader.Reader) */ errorReader?: any; - /** [Config Option] (Boolean) If set to true, the field values are sent as JSON in the request body. ... */ + /** [Config Option] (Boolean) */ jsonSubmit?: bool; /** [Config Option] (String) */ method?: string; - /** [Config Option] (String/String[]) A list of params to be executed server side. ... */ + /** [Config Option] (String/String[]) */ paramOrder?: any; - /** [Config Option] (Boolean) Only used for the api load configuration. ... */ + /** [Config Option] (Boolean) */ paramsAsHash?: bool; - /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + /** [Config Option] (Object/Ext.data.reader.Reader) */ reader?: any; - /** [Config Option] (Boolean) If set to true, a standard HTML form submit is used instead of a XHR (Ajax) style form submission. ... */ + /** [Config Option] (Boolean) */ standardSubmit?: bool; - /** [Config Option] (Number) Timeout for form actions in seconds. ... */ + /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (Boolean) If set to true, reset() resets to the last loaded or setValues() data instead of when the form was first created. ... */ + /** [Config Option] (Boolean) */ trackResetOnLoad?: bool; /** [Config Option] (String) */ url?: string; - /** [Config Option] (String/HTMLElement/Ext.Element) By default wait messages are displayed with Ext.MessageBox.wait. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ waitMsgTarget?: any; - /** [Config Option] (String) The default title to show for the waiting message box ... */ + /** [Config Option] (String) */ waitTitle?: string; /** [Property] (Ext.container.Container) */ owner?: Ext.container.IContainer; @@ -13764,8 +17532,8 @@ declare module Ext.form { /** [Method] Destroys this object */ destroy?(): void; /** [Method] Performs a predefined action an implementation of Ext form action Action to perform application specific processing - * @param action any The name of the predefined action type, or instance of Ext.form.action.Action to perform. - * @param options any The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): + * @param action String/Ext.form.action.Action The name of the predefined action type, or instance of Ext.form.action.Action to perform. + * @param options Object The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): */ doAction?( action?:any, options?:any ): any; doAction?( action?:string, options?:any ): Ext.form.IBasic; @@ -13802,11 +17570,11 @@ declare module Ext.form { */ load?( options?:any ): Ext.form.IBasic; /** [Method] Loads an Ext data Model into this form by calling setValues with the record data - * @param record Ext.data.IModel The record to load + * @param record Ext.data.Model The record to load */ loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; /** [Method] Mark fields in this form invalid in bulk - * @param errors any Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. + * @param errors Object/Object[]/Ext.data.Errors Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. */ markInvalid?( errors?:any ): Ext.form.IBasic; /** [Method] Resets all fields in this form @@ -13814,7 +17582,7 @@ declare module Ext.form { */ reset?( resetRecord?:bool ): Ext.form.IBasic; /** [Method] Set values for fields in this form in bulk - * @param values any Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } + * @param values Object/Object[] Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } */ setValues?( values?:any ): Ext.form.IBasic; /** [Method] Shortcut to do a submit action @@ -13822,40 +17590,40 @@ declare module Ext.form { */ submit?( options?:any ): Ext.form.IBasic; /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block - * @param record Ext.data.IModel The record to edit + * @param record Ext.data.Model The record to edit */ updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; } } declare module Ext.form { export interface IBasicForm extends Ext.util.IObservable { - /** [Config Option] (Object) If specified, load and submit actions will be handled with DirectLoad and DirectSubmit. ... */ + /** [Config Option] (Object) */ api?: any; - /** [Config Option] (Object) Parameters to pass with all requests. ... */ + /** [Config Option] (Object) */ baseParams?: any; - /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + /** [Config Option] (Object/Ext.data.reader.Reader) */ errorReader?: any; - /** [Config Option] (Boolean) If set to true, the field values are sent as JSON in the request body. ... */ + /** [Config Option] (Boolean) */ jsonSubmit?: bool; /** [Config Option] (String) */ method?: string; - /** [Config Option] (String/String[]) A list of params to be executed server side. ... */ + /** [Config Option] (String/String[]) */ paramOrder?: any; - /** [Config Option] (Boolean) Only used for the api load configuration. ... */ + /** [Config Option] (Boolean) */ paramsAsHash?: bool; - /** [Config Option] (Object/Ext.data.reader.Reader) An Ext.data.reader.Reader (e.g. ... */ + /** [Config Option] (Object/Ext.data.reader.Reader) */ reader?: any; - /** [Config Option] (Boolean) If set to true, a standard HTML form submit is used instead of a XHR (Ajax) style form submission. ... */ + /** [Config Option] (Boolean) */ standardSubmit?: bool; - /** [Config Option] (Number) Timeout for form actions in seconds. ... */ + /** [Config Option] (Number) */ timeout?: number; - /** [Config Option] (Boolean) If set to true, reset() resets to the last loaded or setValues() data instead of when the form was first created. ... */ + /** [Config Option] (Boolean) */ trackResetOnLoad?: bool; /** [Config Option] (String) */ url?: string; - /** [Config Option] (String/HTMLElement/Ext.Element) By default wait messages are displayed with Ext.MessageBox.wait. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ waitMsgTarget?: any; - /** [Config Option] (String) The default title to show for the waiting message box ... */ + /** [Config Option] (String) */ waitTitle?: string; /** [Property] (Ext.container.Container) */ owner?: Ext.container.IContainer; @@ -13876,8 +17644,8 @@ declare module Ext.form { /** [Method] Destroys this object */ destroy?(): void; /** [Method] Performs a predefined action an implementation of Ext form action Action to perform application specific processing - * @param action any The name of the predefined action type, or instance of Ext.form.action.Action to perform. - * @param options any The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): + * @param action String/Ext.form.action.Action The name of the predefined action type, or instance of Ext.form.action.Action to perform. + * @param options Object The options to pass to the Ext.form.action.Action that will get created, if the action argument is a String. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): */ doAction?( action?:any, options?:any ): any; doAction?( action?:string, options?:any ): Ext.form.IBasic; @@ -13914,11 +17682,11 @@ declare module Ext.form { */ load?( options?:any ): Ext.form.IBasic; /** [Method] Loads an Ext data Model into this form by calling setValues with the record data - * @param record Ext.data.IModel The record to load + * @param record Ext.data.Model The record to load */ loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; /** [Method] Mark fields in this form invalid in bulk - * @param errors any Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. + * @param errors Object/Object[]/Ext.data.Errors Either an array in the form [{id:'fieldId', msg:'The message'}, ...], an object hash of {id: msg, id2: msg2}, or a Ext.data.Errors object. */ markInvalid?( errors?:any ): Ext.form.IBasic; /** [Method] Resets all fields in this form @@ -13926,7 +17694,7 @@ declare module Ext.form { */ reset?( resetRecord?:bool ): Ext.form.IBasic; /** [Method] Set values for fields in this form in bulk - * @param values any Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } + * @param values Object/Object[] Either an array in the form: [{id:'clientName', value:'Fred. Olsen Lines'}, {id:'portOfLoading', value:'FXT'}, {id:'portOfDischarge', value:'OSL'} ] or an object hash of the form: { clientName: 'Fred. Olsen Lines', portOfLoading: 'FXT', portOfDischarge: 'OSL' } */ setValues?( values?:any ): Ext.form.IBasic; /** [Method] Shortcut to do a submit action @@ -13934,30 +17702,28 @@ declare module Ext.form { */ submit?( options?:any ): Ext.form.IBasic; /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block - * @param record Ext.data.IModel The record to edit + * @param record Ext.data.Model The record to edit */ updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; } } declare module Ext.form { export interface ICheckboxGroup extends Ext.form.IFieldContainer,Ext.form.field.IField { - /** [Config Option] (Boolean) False to validate that at least one item in the group is checked. ... */ + /** [Config Option] (Boolean) */ allowBlank?: bool; - /** [Config Option] (String) Error text to display if the allowBlank validation fails ... */ + /** [Config Option] (String) */ blankText?: string; - /** [Config Option] (String/Number/Number[]) Specifies the number of columns to use when displaying grouped checkbox/radio controls using automatic layout. ... */ + /** [Config Option] (String/Number/Number[]) */ columns?: any; - /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (String) private The default xtype of child Components to create in this Container when a child item is specified as a raw co... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; /** [Config Option] (Ext.form.field.Checkbox[]/Object[]) */ items?: any; - /** [Config Option] (Ext.enums.Layout/Object) private Important: In order for child items to be correctly sized and positioned, typically a layout manager must be... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean) True to distribute contained controls across columns, completely filling each column top to bottom before starting on... */ + /** [Config Option] (Boolean) */ vertical?: bool; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code @@ -13985,17 +17751,15 @@ declare module Ext.form { getSubmitData?(): any; /** [Method] Returns an object containing the values of all checked checkboxes within the group */ getValue?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes this Field mixin on the current instance */ initField?(): void; /** [Method] Initializes the field s value based on the initial config */ initValue?(): void; - /** [Method] private override Returns true if the value of this Field has been changed from its originalValue */ + /** [Method] private override */ isDirty?(): bool; - /** [Method] private override the group value is a complex object compare using object serialization Returns whether two field - * @param value1 Object The first value to compare - * @param value2 Object The second value to compare + /** [Method] private override the group value is a complex object compare using object serialization + * @param value1 Object + * @param value2 Object */ isEqual?( value1?:any, value2?:any ): bool; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ @@ -14003,8 +17767,9 @@ declare module Ext.form { /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ isValid?(): bool; /** [Method] Associate one or more error messages with this field - * @param errors String The error message(s) for the field. + * @param errors String/String[] The error message(s) for the field. */ + markInvalid?( errors?:any ): any; markInvalid?( errors?:string ): void; markInvalid?( errors?:string[] ): void; /** [Method] When a checkbox is added to the group monitor it for changes @@ -14012,9 +17777,9 @@ declare module Ext.form { */ onAdd?( field?:any ): void; /** [Method] Called when a Ext form Labelable instance is removed from the container s subtree - * @param labelable Ext.form.ILabelable The instance that was removed + * @param item Object */ - onRemove?( labelable?:Ext.form.ILabelable ): void; + onRemove?( item?:any ): void; /** [Method] Resets the checked state of all checkboxes in the group to their originally loaded values and clears any validation m */ reset?(): void; /** [Method] Resets the field s originalValue property so it matches the current value */ @@ -14035,47 +17800,397 @@ declare module Ext.form { export interface ICheckboxManager extends Ext.util.IMixedCollection { } export class CheckboxManager { + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] A function which will be called passing a newly added object when the object is added without a separate id + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.form.field { export interface IBase extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ + /** [Config Option] (Number) */ checkChangeBuffer?: number; - /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ + /** [Config Option] (String[]) */ checkChangeEvents?: string[]; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ + /** [Config Option] (String) */ dirtyCls?: string; - /** [Config Option] (String) The default CSS class for the field input ... */ + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ + /** [Config Option] (String) */ fieldStyle?: string; - /** [Config Option] (String) The CSS class to use when the field receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ inputAttrTpl?: any; - /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ + /** [Config Option] (String) */ inputId?: string; - /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (String) The name of the field. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ + /** [Config Option] (String) */ readOnlyCls?: string; - /** [Config Option] (Number) The tabIndex for this field. ... */ + /** [Config Option] (Number) */ tabIndex?: number; - /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ + /** [Config Option] (Boolean) */ validateOnBlur?: bool; - /** [Property] (Ext.Element) The input Element for this Field. ... */ + /** [Property] (Ext.Element) */ inputEl?: Ext.IElement; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code @@ -14119,7 +18234,7 @@ declare module Ext.form.field { getSubTplData?(): any; /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ getSubTplMarkup?(): void; - /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ + /** [Method] private override to use getSubmitValue as a convenience */ getSubmitData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; @@ -14129,9 +18244,9 @@ declare module Ext.form.field { hasActiveError?(): bool; /** [Method] Checks if the field has a visible label */ hasVisibleLabel?(): bool; - /** [Method] private The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] private Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Initializes this Field mixin on the current instance */ initField?(): void; @@ -14153,19 +18268,17 @@ declare module Ext.form.field { /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ isValid?(): bool; /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag - * @param errors String The validation message(s) to display. + * @param errors String/String[] The validation message(s) to display. */ + markInvalid?( errors?:any ): any; markInvalid?( errors?:string ): void; markInvalid?( errors?:string[] ): void; - /** [Method] private Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] private */ + onRender?(): void; /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance * @param value Object The unprocessed string value */ @@ -14195,204 +18308,7 @@ declare module Ext.form.field { */ setFieldLabel?( label?:string ): void; /** [Method] Set the CSS style of the field input element - * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. - */ - setFieldStyle?( style?:any ): void; - /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation - * @param value Object The value to set - */ - setRawValue?( value?:any ): any; - /** [Method] Sets the read only state of this field - * @param readOnly Boolean Whether the field should be read only. - */ - setReadOnly?( readOnly?:bool ): void; - /** [Method] Sets a data value into the field and runs the change detection and validation - * @param value Object The value to set - */ - setValue?( value?:any ): any; - /** [Method] Allows for any necessary modifications before the original value is set - * @param value Object The initial value - */ - transformOriginalValue?( value?:any ): any; - /** [Method] Transform the raw value before it is set - * @param value Object The value - */ - transformRawValue?( value?:any ): any; - /** [Method] Returns the trimmed label by slicing off the label separator character */ - trimLabelSeparator?(): string; - /** [Method] Clears the active error message s */ - unsetActiveError?(): void; - /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ - validate?(): bool; - /** [Method] Uses getErrors to build an array of validation errors - * @param value Object The value to validate - */ - validateValue?( value?:any ): bool; - /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. - */ - valueToRaw?( value?:any ): any; - } -} -declare module Ext.form { - export interface IBaseField extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ - baseCls?: string; - /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ - checkChangeBuffer?: number; - /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ - checkChangeEvents?: string[]; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ - componentLayout?: any; - /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ - dirtyCls?: string; - /** [Config Option] (String) The default CSS class for the field input ... */ - fieldCls?: string; - /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ - fieldStyle?: string; - /** [Config Option] (String) The CSS class to use when the field receives focus ... */ - focusCls?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ - inputAttrTpl?: any; - /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ - inputId?: string; - /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ - inputType?: string; - /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ - invalidText?: string; - /** [Config Option] (String) The name of the field. ... */ - name?: string; - /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ - readOnly?: bool; - /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ - readOnlyCls?: string; - /** [Config Option] (Number) The tabIndex for this field. ... */ - tabIndex?: number; - /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ - validateOnBlur?: bool; - /** [Property] (Ext.Element) The input Element for this Field. ... */ - inputEl?: Ext.IElement; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ - maskOnDisable?: bool; - /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e - * @param fn Object A function containing the transaction code - */ - batchChanges?( fn?:any ): void; - /** [Method] Template method before a field is reset */ - beforeReset?(): void; - /** [Method] Checks whether the value of the field has changed since the last time it was checked */ - checkChange?(): void; - /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ - checkDirty?(): void; - /** [Method] Clear any invalid styles messages for this field */ - clearInvalid?(): void; - /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ - doComponentLayout?(): Ext.container.IContainer; - /** [Method] Only relevant if the instance s isFileUpload method returns true */ - extractFileInput?(): HTMLElement; - /** [Method] Gets the active error message for this component if any */ - getActiveError?(): string; - /** [Method] Gets an Array of any active error messages currently applied to the field */ - getActiveErrors?(): string[]; - /** [Method] Runs this field s validators and returns an array of error messages for any validation failures - * @param value Object The value to get errors for (defaults to the current field value) - */ - getErrors?( value?:any ): string[]; - /** [Method] Returns the label for the field */ - getFieldLabel?(): string; - /** [Method] Returns the input id for this field */ - getInputId?(): void; - /** [Method] Gets the width of the label if visible */ - getLabelWidth?(): number; - /** [Method] Generates the arguments for the field decorations rendering template */ - getLabelableRenderData?(): any; - /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ - getModelData?(): any; - /** [Method] Returns the name attribute of the field */ - getName?(): string; - /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ - getRawValue?(): string; - /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ - getSubTplData?(): any; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; - /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ - getSubmitData?(): any; - /** [Method] Returns the value that would be included in a standard form submit for this field */ - getSubmitValue?(): string; - /** [Method] Returns the current data value of the field */ - getValue?(): any; - /** [Method] Tells whether the field currently has an active error message */ - hasActiveError?(): bool; - /** [Method] Checks if the field has a visible label */ - hasVisibleLabel?(): bool; - /** [Method] private The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] private Initialize any events on this component */ - initEvents?(): void; - /** [Method] Initializes this Field mixin on the current instance */ - initField?(): void; - /** [Method] Performs initialization of this mixin */ - initLabelable?(): void; - /** [Method] Initialized the renderData to be used when rendering the renderTpl */ - initRenderData?(): any; - /** [Method] Initializes the field s value based on the initial config */ - initValue?(): void; - /** [Method] Returns true if the value of this Field has been changed from its originalValue */ - isDirty?(): bool; - /** [Method] Returns whether two field values are logically equal - * @param value1 Object The first value to compare - * @param value2 Object The second value to compare - */ - isEqual?( value1?:any, value2?:any ): bool; - /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ - isFileUpload?(): bool; - /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ - isValid?(): bool; - /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag - * @param errors String The validation message(s) to display. - */ - markInvalid?( errors?:string ): void; - markInvalid?( errors?:string[] ): void; - /** [Method] private Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ - onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance - * @param value Object The unprocessed string value - */ - processRawValue?( value?:any ): any; - /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type - * @param rawValue Object - */ - rawToValue?( rawValue?:any ): any; - /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): void; - /** [Method] Resets the field s originalValue property so it matches the current value */ - resetOriginalValue?(): void; - /** [Method] Sets the active error message to the given string - * @param msg String The error message - */ - setActiveError?( msg?:string ): void; - /** [Method] Set the active error message to an Array of error messages - * @param errors String[] The error messages - */ - setActiveErrors?( errors?:string[] ): void; - /** [Method] Applies a set of default configuration values to this Labelable instance - * @param defaults Object The defaults to apply to the object. - */ - setFieldDefaults?( defaults?:any ): void; - /** [Method] Set the label of this field - * @param label String The new label. The labelSeparator will be automatically appended to the label string. - */ - setFieldLabel?( label?:string ): void; - /** [Method] Set the CSS style of the field input element - * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + * @param style String/Object/Function The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. */ setFieldStyle?( style?:any ): void; /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation @@ -14433,43 +18349,43 @@ declare module Ext.form { } declare module Ext.form { export interface IField extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) Defines a timeout in milliseconds for buffering checkChangeEvents that fire in rapid succession. ... */ + /** [Config Option] (Number) */ checkChangeBuffer?: number; - /** [Config Option] (String[]) A list of event names that will be listened for on the field's input element, which will cause the field's value to b... */ + /** [Config Option] (String[]) */ checkChangeEvents?: string[]; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The CSS class to use when the field value is dirty. ... */ + /** [Config Option] (String) */ dirtyCls?: string; - /** [Config Option] (String) The default CSS class for the field input ... */ + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (String) Optional CSS style(s) to be applied to the field input element. ... */ + /** [Config Option] (String) */ fieldStyle?: string; - /** [Config Option] (String) The CSS class to use when the field receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the input element (as attributes). ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ inputAttrTpl?: any; - /** [Config Option] (String) The id that will be given to the generated input DOM element. ... */ + /** [Config Option] (String) */ inputId?: string; - /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Config Option] (String) The error text to use when marking a field invalid and no message is provided ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (String) The name of the field. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Boolean) true to mark the field as readOnly in HTML. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Config Option] (String) The CSS class applied to the component's main element when it is readOnly. ... */ + /** [Config Option] (String) */ readOnlyCls?: string; - /** [Config Option] (Number) The tabIndex for this field. ... */ + /** [Config Option] (Number) */ tabIndex?: number; - /** [Config Option] (Boolean) Whether the field should validate when it loses focus. ... */ + /** [Config Option] (Boolean) */ validateOnBlur?: bool; - /** [Property] (Ext.Element) The input Element for this Field. ... */ + /** [Property] (Ext.Element) */ inputEl?: Ext.IElement; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code @@ -14513,7 +18429,7 @@ declare module Ext.form { getSubTplData?(): any; /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ getSubTplMarkup?(): void; - /** [Method] private override to use getSubmitValue as a convenience Returns the parameter s that would be included in a stand */ + /** [Method] private override to use getSubmitValue as a convenience */ getSubmitData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; @@ -14523,9 +18439,9 @@ declare module Ext.form { hasActiveError?(): bool; /** [Method] Checks if the field has a visible label */ hasVisibleLabel?(): bool; - /** [Method] private The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] private Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Initializes this Field mixin on the current instance */ initField?(): void; @@ -14547,19 +18463,17 @@ declare module Ext.form { /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ isValid?(): bool; /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag - * @param errors String The validation message(s) to display. + * @param errors String/String[] The validation message(s) to display. */ + markInvalid?( errors?:any ): any; markInvalid?( errors?:string ): void; markInvalid?( errors?:string[] ): void; - /** [Method] private Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] private */ + onRender?(): void; /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance * @param value Object The unprocessed string value */ @@ -14589,7 +18503,202 @@ declare module Ext.form { */ setFieldLabel?( label?:string ): void; /** [Method] Set the CSS style of the field input element - * @param style any The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + * @param style String/Object/Function The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. + */ + setFieldStyle?( style?:any ): void; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object The value to set + */ + setRawValue?( value?:any ): any; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean Whether the field should be read only. + */ + setReadOnly?( readOnly?:bool ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + /** [Method] Allows for any necessary modifications before the original value is set + * @param value Object The initial value + */ + transformOriginalValue?( value?:any ): any; + /** [Method] Transform the raw value before it is set + * @param value Object The value + */ + transformRawValue?( value?:any ): any; + /** [Method] Returns the trimmed label by slicing off the label separator character */ + trimLabelSeparator?(): string; + /** [Method] Clears the active error message s */ + unsetActiveError?(): void; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + /** [Method] Uses getErrors to build an array of validation errors + * @param value Object The value to validate + */ + validateValue?( value?:any ): bool; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object The mixed-type value to convert to the raw representation. + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IBaseField extends Ext.IComponent,Ext.form.ILabelable,Ext.form.field.IField { + /** [Config Option] (String) */ + baseCls?: string; + /** [Config Option] (Number) */ + checkChangeBuffer?: number; + /** [Config Option] (String[]) */ + checkChangeEvents?: string[]; + /** [Config Option] (String/Object) */ + componentLayout?: any; + /** [Config Option] (String) */ + dirtyCls?: string; + /** [Config Option] (String) */ + fieldCls?: string; + /** [Config Option] (String) */ + fieldStyle?: string; + /** [Config Option] (String) */ + focusCls?: string; + /** [Config Option] (String/Array/Ext.XTemplate) */ + inputAttrTpl?: any; + /** [Config Option] (String) */ + inputId?: string; + /** [Config Option] (String) */ + inputType?: string; + /** [Config Option] (String) */ + invalidText?: string; + /** [Config Option] (String) */ + name?: string; + /** [Config Option] (Boolean) */ + readOnly?: bool; + /** [Config Option] (String) */ + readOnlyCls?: string; + /** [Config Option] (Number) */ + tabIndex?: number; + /** [Config Option] (Boolean) */ + validateOnBlur?: bool; + /** [Property] (Ext.Element) */ + inputEl?: Ext.IElement; + /** [Property] (Boolean) */ + maskOnDisable?: bool; + /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e + * @param fn Object A function containing the transaction code + */ + batchChanges?( fn?:any ): void; + /** [Method] Template method before a field is reset */ + beforeReset?(): void; + /** [Method] Checks whether the value of the field has changed since the last time it was checked */ + checkChange?(): void; + /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ + checkDirty?(): void; + /** [Method] Clear any invalid styles messages for this field */ + clearInvalid?(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + doComponentLayout?(): Ext.container.IContainer; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the active error message for this component if any */ + getActiveError?(): string; + /** [Method] Gets an Array of any active error messages currently applied to the field */ + getActiveErrors?(): string[]; + /** [Method] Runs this field s validators and returns an array of error messages for any validation failures + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the label for the field */ + getFieldLabel?(): string; + /** [Method] Returns the input id for this field */ + getInputId?(): void; + /** [Method] Gets the width of the label if visible */ + getLabelWidth?(): number; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Returns the value s that should be saved to the Ext data Model instance for this field when Ext form Basic updateRe */ + getModelData?(): any; + /** [Method] Returns the name attribute of the field */ + getName?(): string; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ + getSubTplMarkup?(): void; + /** [Method] private override to use getSubmitValue as a convenience */ + getSubmitData?(): any; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] Tells whether the field currently has an active error message */ + hasActiveError?(): bool; + /** [Method] Checks if the field has a visible label */ + hasVisibleLabel?(): bool; + /** [Method] private */ + initComponent?(): void; + /** [Method] private */ + initEvents?(): void; + /** [Method] Initializes this Field mixin on the current instance */ + initField?(): void; + /** [Method] Performs initialization of this mixin */ + initLabelable?(): void; + /** [Method] Initialized the renderData to be used when rendering the renderTpl */ + initRenderData?(): any; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether two field values are logically equal + * @param value1 Object The first value to compare + * @param value2 Object The second value to compare + */ + isEqual?( value1?:any, value2?:any ): bool; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag + * @param errors String/String[] The validation message(s) to display. + */ + markInvalid?( errors?:any ): any; + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; + /** [Method] private */ + onDisable?(): void; + /** [Method] private */ + onEnable?(): void; + /** [Method] private */ + onRender?(): void; + /** [Method] Performs any necessary manipulation of a raw field value to prepare it for conversion and or validation for instance + * @param value Object The unprocessed string value + */ + processRawValue?( value?:any ): any; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value */ + resetOriginalValue?(): void; + /** [Method] Sets the active error message to the given string + * @param msg String The error message + */ + setActiveError?( msg?:string ): void; + /** [Method] Set the active error message to an Array of error messages + * @param errors String[] The error messages + */ + setActiveErrors?( errors?:string[] ): void; + /** [Method] Applies a set of default configuration values to this Labelable instance + * @param defaults Object The defaults to apply to the object. + */ + setFieldDefaults?( defaults?:any ): void; + /** [Method] Set the label of this field + * @param label String The new label. The labelSeparator will be automatically appended to the label string. + */ + setFieldLabel?( label?:string ): void; + /** [Method] Set the CSS style of the field input element + * @param style String/Object/Function The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles. */ setFieldStyle?( style?:any ): void; /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation @@ -14630,51 +18739,49 @@ declare module Ext.form { } declare module Ext.form.field { export interface ICheckbox extends Ext.form.field.IBase { - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterBoxLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterBoxLabelTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeBoxLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeBoxLabelTpl?: any; - /** [Config Option] (String) An optional text label that will appear next to the checkbox. ... */ + /** [Config Option] (String) */ boxLabel?: string; - /** [Config Option] (String) The position relative to the checkbox where the boxLabel should appear. ... */ + /** [Config Option] (String) */ boxLabelAlign?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the box label element (as attribut... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ boxLabelAttrTpl?: any; - /** [Config Option] (String) The CSS class to be applied to the boxLabel element ... */ + /** [Config Option] (String) */ boxLabelCls?: string; - /** [Config Option] (String[]) private overrides A list of event names that will be listened for on the field's input element, which will cause the... */ + /** [Config Option] (String[]) */ checkChangeEvents?: string[]; - /** [Config Option] (Boolean) true if the checkbox should render initially checked ... */ + /** [Config Option] (Boolean) */ checked?: bool; - /** [Config Option] (String) The CSS class(es) added to the component's main element when it is in the checked state. ... */ + /** [Config Option] (String) */ checkedCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to fieldBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (String) The default CSS class for the checkbox ... */ + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (String) The CSS class to use when the checkbox receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (Function) A function called when the checked value changes (can be used instead of handling the change event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Config Option] (String) The value that should go into the generated input element's value attribute and should be used as the parameter value... */ + /** [Config Option] (String) */ inputValue?: string; - /** [Config Option] (Object) An object to use as the scope ('this' reference) of the handler function. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) If configured, this will be submitted as the checkbox's value during form submit if the checkbox is unchecked. ... */ + /** [Config Option] (String) */ uncheckedValue?: string; - /** [Property] (Ext.Element) A reference to the label element created for the boxLabel. ... */ + /** [Property] (Ext.Element) */ boxLabelEl?: Ext.IElement; - /** [Property] (Object) The original value of the field as configured in the checked configuration, or as loaded by the last form load operat... */ + /** [Property] (Object) */ originalValue?: any; - /** [Method] inherit docs Invoked before the Component is destroyed */ + /** [Method] inherit docs */ beforeDestroy?(): void; /** [Method] Returns the checked state of the checkbox */ getRawValue?(): bool; @@ -14684,90 +18791,90 @@ declare module Ext.form.field { getSubmitValue?(): string; /** [Method] Returns the checked state of the checkbox */ getValue?(): bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Initializes the field s value based on the initial config */ initValue?(): void; - /** [Method] Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] Resets the field s originalValue property so it matches the current value */ - resetOriginalValue?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value + * @param fromBoxInGroup Object + */ + resetOriginalValue?( fromBoxInGroup?:any ): void; /** [Method] Sets the boxLabel for this checkbox * @param boxLabel String The new label */ setBoxLabel?( boxLabel?:string ): void; /** [Method] Sets the checked state of the checkbox - * @param value any The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + * @param value Boolean/String/Number The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. */ setRawValue?( value?:any ): any; setRawValue?( value?:bool ): bool; setRawValue?( value?:string ): bool; setRawValue?( value?:number ): bool; /** [Method] Sets the read only state of this field - * @param readOnly Boolean Whether the field should be read only. + * @param readOnly Object */ - setReadOnly?( readOnly?:bool ): void; + setReadOnly?( readOnly?:any ): void; /** [Method] Sets the checked state of the checkbox and invokes change detection - * @param checked any The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + * @param checked Boolean/String The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. */ setValue?( checked?:any ): any; setValue?( checked?:bool ): Ext.form.field.ICheckbox; setValue?( checked?:string ): Ext.form.field.ICheckbox; - /** [Method] private Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + /** [Method] private + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form { export interface ICheckbox extends Ext.form.field.IBase { - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterBoxLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the box label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterBoxLabelTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeBoxLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the box label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeBoxLabelTpl?: any; - /** [Config Option] (String) An optional text label that will appear next to the checkbox. ... */ + /** [Config Option] (String) */ boxLabel?: string; - /** [Config Option] (String) The position relative to the checkbox where the boxLabel should appear. ... */ + /** [Config Option] (String) */ boxLabelAlign?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the box label element (as attribut... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ boxLabelAttrTpl?: any; - /** [Config Option] (String) The CSS class to be applied to the boxLabel element ... */ + /** [Config Option] (String) */ boxLabelCls?: string; - /** [Config Option] (String[]) private overrides A list of event names that will be listened for on the field's input element, which will cause the... */ + /** [Config Option] (String[]) */ checkChangeEvents?: string[]; - /** [Config Option] (Boolean) true if the checkbox should render initially checked ... */ + /** [Config Option] (Boolean) */ checked?: bool; - /** [Config Option] (String) The CSS class(es) added to the component's main element when it is in the checked state. ... */ + /** [Config Option] (String) */ checkedCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to fieldBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (String) The default CSS class for the checkbox ... */ + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (String) The CSS class to use when the checkbox receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (Function) A function called when the checked value changes (can be used instead of handling the change event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Config Option] (String) The value that should go into the generated input element's value attribute and should be used as the parameter value... */ + /** [Config Option] (String) */ inputValue?: string; - /** [Config Option] (Object) An object to use as the scope ('this' reference) of the handler function. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) If configured, this will be submitted as the checkbox's value during form submit if the checkbox is unchecked. ... */ + /** [Config Option] (String) */ uncheckedValue?: string; - /** [Property] (Ext.Element) A reference to the label element created for the boxLabel. ... */ + /** [Property] (Ext.Element) */ boxLabelEl?: Ext.IElement; - /** [Property] (Object) The original value of the field as configured in the checked configuration, or as loaded by the last form load operat... */ + /** [Property] (Object) */ originalValue?: any; - /** [Method] inherit docs Invoked before the Component is destroyed */ + /** [Method] inherit docs */ beforeDestroy?(): void; /** [Method] Returns the checked state of the checkbox */ getRawValue?(): bool; @@ -14777,120 +18884,133 @@ declare module Ext.form { getSubmitValue?(): string; /** [Method] Returns the checked state of the checkbox */ getValue?(): bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Initializes the field s value based on the initial config */ initValue?(): void; - /** [Method] Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] Resets the field s originalValue property so it matches the current value */ - resetOriginalValue?(): void; + /** [Method] Resets the field s originalValue property so it matches the current value + * @param fromBoxInGroup Object + */ + resetOriginalValue?( fromBoxInGroup?:any ): void; /** [Method] Sets the boxLabel for this checkbox * @param boxLabel String The new label */ setBoxLabel?( boxLabel?:string ): void; /** [Method] Sets the checked state of the checkbox - * @param value any The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + * @param value Boolean/String/Number The following values will check the checkbox: true, 'true', '1', 1, or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. */ setRawValue?( value?:any ): any; setRawValue?( value?:bool ): bool; setRawValue?( value?:string ): bool; setRawValue?( value?:number ): bool; /** [Method] Sets the read only state of this field - * @param readOnly Boolean Whether the field should be read only. + * @param readOnly Object */ - setReadOnly?( readOnly?:bool ): void; + setReadOnly?( readOnly?:any ): void; /** [Method] Sets the checked state of the checkbox and invokes change detection - * @param checked any The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. + * @param checked Boolean/String The following values will check the checkbox: true, 'true', '1', or 'on', as well as a String that matches the inputValue. Any other value will uncheck the checkbox. */ setValue?( checked?:any ): any; setValue?( checked?:bool ): Ext.form.field.ICheckbox; setValue?( checked?:string ): Ext.form.field.ICheckbox; - /** [Method] private Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + /** [Method] private + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form.field { export interface IComboBox extends Ext.form.field.IPicker,Ext.util.IBindable { - /** [Config Option] (String) The text query to send to the server to return all records for the list with no filtering ... */ + /** [Config Option] (String) */ allQuery?: string; - /** [Config Option] (Boolean) true to automatically highlight the first result gathered by the data store in the dropdown list when it is opened. ... */ + /** [Config Option] (Boolean) */ + anyMatch?: bool; + /** [Config Option] (Boolean) */ autoSelect?: bool; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (Boolean) */ + caseSensitive?: bool; + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Object) Set of options that will be used as defaults for the user-configured listConfig object. ... */ + /** [Config Option] (Object) */ defaultListConfig?: any; - /** [Config Option] (String) The character(s) used to separate the display values of multiple selected items when multiSelect = true. ... */ + /** [Config Option] (String) */ delimiter?: string; - /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (Boolean) When queryMode is 'local' only Set to true to have the ComboBox use the typed value as a RegExp source to filter the... */ + /** [Config Option] (Boolean) */ enableRegEx?: bool; - /** [Config Option] (Ext.XTemplate) The content of the field body is defined by this config option. ... */ + /** [Config Option] (Ext.XTemplate) */ fieldSubTpl?: Ext.IXTemplate; - /** [Config Option] (Boolean) true to restrict the selected value to one of the values in the list, false to allow the user to set arbitrary text i... */ + /** [Config Option] (Boolean) */ forceSelection?: bool; - /** [Config Option] (Boolean) false to not allow the component to resize itself when its data changes (and its grow property is true) ... */ + /** [Config Option] (Boolean) */ growToLongestValue?: bool; - /** [Config Option] (String) The name of an underlying hidden field which will be synchronized with the underlying value of the combo. ... */ + /** [Config Option] (String) */ hiddenName?: string; - /** [Config Option] (Object) An optional set of configuration properties that will be passed to the Ext.view.BoundList's constructor. ... */ + /** [Config Option] (Object) */ listConfig?: any; - /** [Config Option] (Number) The minimum number of characters the user must type before autocomplete and typeAhead activate. ... */ + /** [Config Option] (Number) */ minChars?: number; - /** [Config Option] (Boolean) If set to true, allows the combo field to hold more than one value at a time, and allows selecting multiple items fro... */ + /** [Config Option] (Boolean) */ multiSelect?: bool; - /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed in the footer of the dropdown list and the filter queries will e... */ + /** [Config Option] (Number) */ pageSize?: number; - /** [Config Option] (Boolean) When true, this prevents the combo from re-querying (either locally or remotely) when the current query is the same a... */ + /** [Config Option] (Boolean) */ queryCaching?: bool; - /** [Config Option] (Number) The length of time in milliseconds to delay between the start of typing and sending the query to filter the dropdown ... */ + /** [Config Option] (Number) */ queryDelay?: number; - /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + /** [Config Option] (String) */ queryMode?: string; - /** [Config Option] (String) Name of the parameter used by the Store to pass the typed string when the ComboBox is configured with queryMode: 'rem... */ + /** [Config Option] (String) */ queryParam?: string; - /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + /** [Config Option] (Boolean) */ selectOnTab?: bool; - /** [Config Option] (Ext.data.Store/String/Array) The data source to which this combo is bound. ... */ + /** [Config Option] (Ext.data.Store/String/Array) */ store?: any; - /** [Config Option] (String/HTMLElement/Ext.Element) The id, DOM node or Ext.Element of an existing HTML <select> element to convert into a ComboBox. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ transform?: any; - /** [Config Option] (String) The action to execute when the trigger is clicked. ... */ + /** [Config Option] (String) */ triggerAction?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (Boolean) true to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay) if ... */ + /** [Config Option] (Boolean) */ typeAhead?: bool; - /** [Config Option] (Number) The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true ... */ + /** [Config Option] (Number) */ typeAheadDelay?: number; - /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ valueField?: string; - /** [Config Option] (String) When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be d... */ + /** [Config Option] (String) */ valueNotFoundText?: string; - /** [Property] (String) The value of the match string used to filter the store. ... */ + /** [Property] (String) */ lastQuery?: string; + /** [Method] A method called when the filtering caused by the doQuery call is complete and the store has been either filtered loca + * @param queryPlan Object An object containing details about the query was executed. + */ + afterQuery?( queryPlan?:any ): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Aligns the picker to the input element */ alignPicker?(): void; - /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object + /** [Method] Template method to do any pre blur processing */ + beforeBlur?(): void; + /** [Method] A method which may modify aspects of how the store is to be filtered if queryMode is local of loaded if queryMod + * @param queryPlan Object An object containing details about the query to be executed. */ - beforeBlur?( e?:Ext.IEventObject ): void; + beforeQuery?( queryPlan?:any ): void; /** [Method] Template method before a field is reset */ beforeReset?(): void; /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Ext.data.AbstractStore/String The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. */ + bindStore?( store?:any ): any; bindStore?( store?:Ext.data.IAbstractStore ): void; bindStore?( store?:string ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Clears any value currently set in the ComboBox */ @@ -14898,7 +19018,7 @@ declare module Ext.form.field { /** [Method] Creates and returns the component to be used as this field s picker */ createPicker?(): void; /** [Method] Executes a query to filter the dropdown list - * @param queryString String The SQL query to execute + * @param queryString String The string to use to filter available items by matching against the configured valueField. * @param forceAll Boolean true to force the query to execute even if there are currently fewer characters in the field than the minimum specified by the minChars config option. It also clears any filter previously saved in the current store. * @param rawQuery Boolean Pass as true if the raw typed value is being used as the query string. This causes the resulting store load to leave the raw value undisturbed. */ @@ -14918,132 +19038,135 @@ declare module Ext.form.field { findRecordByValue?( value?:any ): Ext.data.IModel; /** [Method] Returns the store associated with this ComboBox */ getStore?(): Ext.data.IStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; - /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our - * @param container Ext.container.IContainer Container which holds the component. - * @param pos Number Position at which the component was added. - */ - onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our */ + onAdded?(): void; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object + * @param initial Object */ - onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; + onBindStore?( store?:any, initial?:any ): void; /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ onTriggerClick?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object */ - onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + onUnbindStore?( store?:any ): void; /** [Method] Selects an item by a Model or by a key value * @param r Object */ select?( r?:any ): void; /** [Method] Sets the specified value s into the field - * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + * @param value String/String[] The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. */ setValue?( value?:any ): any; setValue?( value?:string ): any; setValue?( value?:string[] ): any; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.form { export interface IComboBox extends Ext.form.field.IPicker,Ext.util.IBindable { - /** [Config Option] (String) The text query to send to the server to return all records for the list with no filtering ... */ + /** [Config Option] (String) */ allQuery?: string; - /** [Config Option] (Boolean) true to automatically highlight the first result gathered by the data store in the dropdown list when it is opened. ... */ + /** [Config Option] (Boolean) */ + anyMatch?: bool; + /** [Config Option] (Boolean) */ autoSelect?: bool; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (Boolean) */ + caseSensitive?: bool; + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Object) Set of options that will be used as defaults for the user-configured listConfig object. ... */ + /** [Config Option] (Object) */ defaultListConfig?: any; - /** [Config Option] (String) The character(s) used to separate the display values of multiple selected items when multiSelect = true. ... */ + /** [Config Option] (String) */ delimiter?: string; - /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (Boolean) When queryMode is 'local' only Set to true to have the ComboBox use the typed value as a RegExp source to filter the... */ + /** [Config Option] (Boolean) */ enableRegEx?: bool; - /** [Config Option] (Ext.XTemplate) The content of the field body is defined by this config option. ... */ + /** [Config Option] (Ext.XTemplate) */ fieldSubTpl?: Ext.IXTemplate; - /** [Config Option] (Boolean) true to restrict the selected value to one of the values in the list, false to allow the user to set arbitrary text i... */ + /** [Config Option] (Boolean) */ forceSelection?: bool; - /** [Config Option] (Boolean) false to not allow the component to resize itself when its data changes (and its grow property is true) ... */ + /** [Config Option] (Boolean) */ growToLongestValue?: bool; - /** [Config Option] (String) The name of an underlying hidden field which will be synchronized with the underlying value of the combo. ... */ + /** [Config Option] (String) */ hiddenName?: string; - /** [Config Option] (Object) An optional set of configuration properties that will be passed to the Ext.view.BoundList's constructor. ... */ + /** [Config Option] (Object) */ listConfig?: any; - /** [Config Option] (Number) The minimum number of characters the user must type before autocomplete and typeAhead activate. ... */ + /** [Config Option] (Number) */ minChars?: number; - /** [Config Option] (Boolean) If set to true, allows the combo field to hold more than one value at a time, and allows selecting multiple items fro... */ + /** [Config Option] (Boolean) */ multiSelect?: bool; - /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed in the footer of the dropdown list and the filter queries will e... */ + /** [Config Option] (Number) */ pageSize?: number; - /** [Config Option] (Boolean) When true, this prevents the combo from re-querying (either locally or remotely) when the current query is the same a... */ + /** [Config Option] (Boolean) */ queryCaching?: bool; - /** [Config Option] (Number) The length of time in milliseconds to delay between the start of typing and sending the query to filter the dropdown ... */ + /** [Config Option] (Number) */ queryDelay?: number; - /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + /** [Config Option] (String) */ queryMode?: string; - /** [Config Option] (String) Name of the parameter used by the Store to pass the typed string when the ComboBox is configured with queryMode: 'rem... */ + /** [Config Option] (String) */ queryParam?: string; - /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + /** [Config Option] (Boolean) */ selectOnTab?: bool; - /** [Config Option] (Ext.data.Store/String/Array) The data source to which this combo is bound. ... */ + /** [Config Option] (Ext.data.Store/String/Array) */ store?: any; - /** [Config Option] (String/HTMLElement/Ext.Element) The id, DOM node or Ext.Element of an existing HTML <select> element to convert into a ComboBox. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ transform?: any; - /** [Config Option] (String) The action to execute when the trigger is clicked. ... */ + /** [Config Option] (String) */ triggerAction?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (Boolean) true to populate and autoselect the remainder of the text being typed after a configurable delay (typeAheadDelay) if ... */ + /** [Config Option] (Boolean) */ typeAhead?: bool; - /** [Config Option] (Number) The length of time in milliseconds to wait until the typeahead text is displayed if typeAhead = true ... */ + /** [Config Option] (Number) */ typeAheadDelay?: number; - /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ valueField?: string; - /** [Config Option] (String) When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be d... */ + /** [Config Option] (String) */ valueNotFoundText?: string; - /** [Property] (String) The value of the match string used to filter the store. ... */ + /** [Property] (String) */ lastQuery?: string; + /** [Method] A method called when the filtering caused by the doQuery call is complete and the store has been either filtered loca + * @param queryPlan Object An object containing details about the query was executed. + */ + afterQuery?( queryPlan?:any ): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Aligns the picker to the input element */ alignPicker?(): void; - /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object + /** [Method] Template method to do any pre blur processing */ + beforeBlur?(): void; + /** [Method] A method which may modify aspects of how the store is to be filtered if queryMode is local of loaded if queryMod + * @param queryPlan Object An object containing details about the query to be executed. */ - beforeBlur?( e?:Ext.IEventObject ): void; + beforeQuery?( queryPlan?:any ): void; /** [Method] Template method before a field is reset */ beforeReset?(): void; /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Ext.data.AbstractStore/String The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. */ + bindStore?( store?:any ): any; bindStore?( store?:Ext.data.IAbstractStore ): void; bindStore?( store?:string ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Clears any value currently set in the ComboBox */ @@ -15051,7 +19174,7 @@ declare module Ext.form { /** [Method] Creates and returns the component to be used as this field s picker */ createPicker?(): void; /** [Method] Executes a query to filter the dropdown list - * @param queryString String The SQL query to execute + * @param queryString String The string to use to filter available items by matching against the configured valueField. * @param forceAll Boolean true to force the query to execute even if there are currently fewer characters in the field than the minimum specified by the minChars config option. It also clears any filter previously saved in the current store. * @param rawQuery Boolean Pass as true if the raw typed value is being used as the query string. This causes the resulting store load to leave the raw value undisturbed. */ @@ -15071,102 +19194,92 @@ declare module Ext.form { findRecordByValue?( value?:any ): Ext.data.IModel; /** [Method] Returns the store associated with this ComboBox */ getStore?(): Ext.data.IStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; - /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our - * @param container Ext.container.IContainer Container which holds the component. - * @param pos Number Position at which the component was added. - */ - onAdded?( container?:Ext.container.IContainer, pos?:number ): void; + /** [Method] The picker the dropdown must have its zIndex managed by the same ZIndexManager which is providing the zIndex of our */ + onAdded?(): void; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object + * @param initial Object */ - onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; + onBindStore?( store?:any, initial?:any ): void; /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ onTriggerClick?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object */ - onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + onUnbindStore?( store?:any ): void; /** [Method] Selects an item by a Model or by a key value * @param r Object */ select?( r?:any ): void; /** [Method] Sets the specified value s into the field - * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. + * @param value String/String[] The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. */ setValue?( value?:any ): any; setValue?( value?:string ): any; setValue?( value?:string[] ): any; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.form.field { export interface IDate extends Ext.form.field.IPicker { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ + /** [Config Option] (String) */ altFormats?: string; - /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ + /** [Config Option] (String[]) */ disabledDates?: string[]; - /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + /** [Config Option] (String) */ disabledDatesText?: string; - /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ + /** [Config Option] (Number[]) */ disabledDays?: number[]; - /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + /** [Config Option] (String) */ disabledDaysText?: string; - /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + /** [Config Option] (Boolean) */ matchFieldWidth?: bool; - /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date/String) The maximum allowed date. ... */ + /** [Config Option] (Date/String) */ maxValue?: any; - /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Date/String) The minimum allowed date. ... */ + /** [Config Option] (Date/String) */ minValue?: any; - /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ + /** [Config Option] (Boolean) */ showToday?: bool; - /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + /** [Config Option] (Number) */ startDay?: number; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + /** [Config Option] (String) */ submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ + /** [Config Option] (Boolean) */ useStrict?: bool; - /** [Method] private Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] private */ + beforeBlur?(): void; /** [Method] Creates and returns the component to be used as this field s picker */ createPicker?(): void; /** [Method] Runs all of Date s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) */ getErrors?( value?:any ): string[]; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] */ initComponent?(): void; /** [Method] Initializes the field s value based on the initial config */ initValue?(): void; @@ -15193,146 +19306,61 @@ declare module Ext.form.field { */ setMinValue?( value?:any ): void; /** [Method] Sets the value of the date field - * @param date any The date or valid date string + * @param date String/Date The date or valid date string */ setValue?( date?:any ): any; setValue?( date?:string ): Ext.form.field.IDate; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. - */ - valueToRaw?( value?:any ): any; - } -} -declare module Ext.form { - export interface IDate extends Ext.form.field.IPicker { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ - altFormats?: string; - /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ - disabledDates?: string[]; - /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ - disabledDatesText?: string; - /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ - disabledDays?: number[]; - /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ - disabledDaysText?: string; - /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ - format?: string; - /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ - invalidText?: string; - /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ - matchFieldWidth?: bool; - /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ - maxText?: string; - /** [Config Option] (Date/String) The maximum allowed date. ... */ - maxValue?: any; - /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ - minText?: string; - /** [Config Option] (Date/String) The minimum allowed date. ... */ - minValue?: any; - /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ - showToday?: bool; - /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ - startDay?: number; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ - submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ - triggerCls?: string; - /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ - useStrict?: bool; - /** [Method] private Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; - /** [Method] Creates and returns the component to be used as this field s picker */ - createPicker?(): void; - /** [Method] Runs all of Date s validations and returns an array of any errors - * @param value Object The value to get errors for (defaults to the current field value) - */ - getErrors?( value?:any ): string[]; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Initializes the field s value based on the initial config */ - initValue?(): void; - /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type - * @param rawValue Object - */ - rawToValue?( rawValue?:any ): any; - /** [Method] Attempts to parse a given string value using a given date format. ... */ - safeParse?: any; - /** [Method] Replaces any existing disabled dates with new values and refreshes the Date picker - * @param disabledDates String[] An array of date strings (see the disabledDates config for details on supported values) used to disable a pattern of dates. - */ - setDisabledDates?( disabledDates?:string[] ): void; - /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the Date picker - * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. - */ - setDisabledDays?( disabledDays?:number[] ): void; - /** [Method] Replaces any existing maxValue with the new value and refreshes the Date picker - * @param value Date The maximum date that can be selected - */ - setMaxValue?( value?:any ): void; - /** [Method] Replaces any existing minValue with the new value and refreshes the Date picker - * @param value Date The minimum date that can be selected - */ - setMinValue?( value?:any ): void; - /** [Method] Sets the value of the date field - * @param date any The date or valid date string - */ - setValue?( date?:any ): any; - setValue?( date?:string ): Ext.form.field.IDate; - /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form { export interface IDateField extends Ext.form.field.IPicker { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. ... */ + /** [Config Option] (String) */ altFormats?: string; - /** [Config Option] (String[]) An array of "dates" to disable, as strings. ... */ + /** [Config Option] (String[]) */ disabledDates?: string[]; - /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + /** [Config Option] (String) */ disabledDatesText?: string; - /** [Config Option] (Number[]) An array of days to disable, 0 based. ... */ + /** [Config Option] (Number[]) */ disabledDays?: number[]; - /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + /** [Config Option] (String) */ disabledDaysText?: string; - /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (String) The error text to display when the date in the field is invalid. ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + /** [Config Option] (Boolean) */ matchFieldWidth?: bool; - /** [Config Option] (String) The error text to display when the date in the cell is after maxValue. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date/String) The maximum allowed date. ... */ + /** [Config Option] (Date/String) */ maxValue?: any; - /** [Config Option] (String) The error text to display when the date in the cell is before minValue. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Date/String) The minimum allowed date. ... */ + /** [Config Option] (Date/String) */ minValue?: any; - /** [Config Option] (Boolean) false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spa... */ + /** [Config Option] (Boolean) */ showToday?: bool; - /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + /** [Config Option] (Number) */ startDay?: number; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + /** [Config Option] (String) */ submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (Boolean) True to enforce strict date parsing to prevent the default Javascript "date rollover". ... */ + /** [Config Option] (Boolean) */ useStrict?: bool; - /** [Method] private Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] private */ + beforeBlur?(): void; /** [Method] Creates and returns the component to be used as this field s picker */ createPicker?(): void; /** [Method] Runs all of Date s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) */ getErrors?( value?:any ): string[]; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] */ initComponent?(): void; /** [Method] Initializes the field s value based on the initial config */ initValue?(): void; @@ -15359,70 +19387,123 @@ declare module Ext.form { */ setMinValue?( value?:any ): void; /** [Method] Sets the value of the date field - * @param date any The date or valid date string + * @param date String/Date The date or valid date string */ setValue?( date?:any ): any; setValue?( date?:string ): Ext.form.field.IDate; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface IDate extends Ext.form.field.IPicker { + /** [Config Option] (String) */ + altFormats?: string; + /** [Config Option] (String[]) */ + disabledDates?: string[]; + /** [Config Option] (String) */ + disabledDatesText?: string; + /** [Config Option] (Number[]) */ + disabledDays?: number[]; + /** [Config Option] (String) */ + disabledDaysText?: string; + /** [Config Option] (String) */ + format?: string; + /** [Config Option] (String) */ + invalidText?: string; + /** [Config Option] (Boolean) */ + matchFieldWidth?: bool; + /** [Config Option] (String) */ + maxText?: string; + /** [Config Option] (Date/String) */ + maxValue?: any; + /** [Config Option] (String) */ + minText?: string; + /** [Config Option] (Date/String) */ + minValue?: any; + /** [Config Option] (Boolean) */ + showToday?: bool; + /** [Config Option] (Number) */ + startDay?: number; + /** [Config Option] (String) */ + submitFormat?: string; + /** [Config Option] (String) */ + triggerCls?: string; + /** [Config Option] (Boolean) */ + useStrict?: bool; + /** [Method] private */ + beforeBlur?(): void; + /** [Method] Creates and returns the component to be used as this field s picker */ + createPicker?(): void; + /** [Method] Runs all of Date s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] */ + initComponent?(): void; + /** [Method] Initializes the field s value based on the initial config */ + initValue?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Attempts to parse a given string value using a given date format. ... */ + safeParse?: any; + /** [Method] Replaces any existing disabled dates with new values and refreshes the Date picker + * @param disabledDates String[] An array of date strings (see the disabledDates config for details on supported values) used to disable a pattern of dates. + */ + setDisabledDates?( disabledDates?:string[] ): void; + /** [Method] Replaces any existing disabled days by index 0 6 with new values and refreshes the Date picker + * @param disabledDays Number[] An array of disabled day indexes. See the disabledDays config for details on supported values. + */ + setDisabledDays?( disabledDays?:number[] ): void; + /** [Method] Replaces any existing maxValue with the new value and refreshes the Date picker + * @param value Date The maximum date that can be selected + */ + setMaxValue?( value?:any ): void; + /** [Method] Replaces any existing minValue with the new value and refreshes the Date picker + * @param value Date The minimum date that can be selected + */ + setMinValue?( value?:any ): void; + /** [Method] Sets the value of the date field + * @param date String/Date The date or valid date string + */ + setValue?( date?:any ): any; + setValue?( date?:string ): Ext.form.field.IDate; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form.field { export interface IDisplay extends Ext.form.field.IBase { - /** [Config Option] (String) The default CSS class for the field. ... */ + /** [Config Option] (String) */ + fieldBodyCls?: string; + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ + /** [Config Option] (Boolean) */ htmlEncode?: bool; - /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ + /** [Config Option] (Function) */ renderer?: any; - /** [Config Option] (Object) The scope to execute the renderer function. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + /** [Config Option] (Boolean) */ submitValue?: bool; /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ getRawValue?(): string; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Returns true if the value of this Field has been changed from its originalValue */ isDirty?(): bool; /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ isValid?(): bool; /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation - * @param value Object The value to set - */ - setRawValue?( value?:any ): any; - /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ - validate?(): bool; - } -} -declare module Ext.form { - export interface IDisplay extends Ext.form.field.IBase { - /** [Config Option] (String) The default CSS class for the field. ... */ - fieldCls?: string; - /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ - htmlEncode?: bool; - /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ - renderer?: any; - /** [Config Option] (Object) The scope to execute the renderer function. ... */ - scope?: any; - /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ - submitValue?: bool; - /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ - getRawValue?(): string; - /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ - getSubTplData?(): any; - /** [Method] Initialize any events on this component */ - initEvents?(): void; - /** [Method] Returns true if the value of this Field has been changed from its originalValue */ - isDirty?(): bool; - /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ - isValid?(): bool; - /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation - * @param value Object The value to set + * @param value Object */ setRawValue?( value?:any ): any; /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ @@ -15431,28 +19512,62 @@ declare module Ext.form { } declare module Ext.form { export interface IDisplayField extends Ext.form.field.IBase { - /** [Config Option] (String) The default CSS class for the field. ... */ + /** [Config Option] (String) */ + fieldBodyCls?: string; + /** [Config Option] (String) */ fieldCls?: string; - /** [Config Option] (Boolean) True to escape HTML in text when rendering it. ... */ + /** [Config Option] (Boolean) */ htmlEncode?: bool; - /** [Config Option] (Function) A function to transform the raw value for display in the field. ... */ + /** [Config Option] (Function) */ renderer?: any; - /** [Config Option] (Object) The scope to execute the renderer function. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + /** [Config Option] (Boolean) */ submitValue?: bool; /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ getRawValue?(): string; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Returns true if the value of this Field has been changed from its originalValue */ isDirty?(): bool; /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ isValid?(): bool; /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation - * @param value Object The value to set + * @param value Object + */ + setRawValue?( value?:any ): any; + /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ + validate?(): bool; + } +} +declare module Ext.form { + export interface IDisplay extends Ext.form.field.IBase { + /** [Config Option] (String) */ + fieldBodyCls?: string; + /** [Config Option] (String) */ + fieldCls?: string; + /** [Config Option] (Boolean) */ + htmlEncode?: bool; + /** [Config Option] (Function) */ + renderer?: any; + /** [Config Option] (Object) */ + scope?: any; + /** [Config Option] (Boolean) */ + submitValue?: bool; + /** [Method] Returns the raw value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] private */ + initEvents?(): void; + /** [Method] Returns true if the value of this Field has been changed from its originalValue */ + isDirty?(): bool; + /** [Method] Returns whether or not the field value is currently valid by validating the processed raw value of the field */ + isValid?(): bool; + /** [Method] Sets the field s raw value directly bypassing value conversion change detection and validation + * @param value Object */ setRawValue?( value?:any ): any; /** [Method] Returns whether or not the field value is currently valid by validating the field s current value and fires the vali */ @@ -15461,32 +19576,32 @@ declare module Ext.form { } declare module Ext.form.field { export interface IField extends Ext.IBase { - /** [Config Option] (Boolean) True to disable the field. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (String) The name of the field. ... */ + /** [Config Option] (String) */ name?: string; - /** [Config Option] (Boolean) Setting this to false will prevent the field from being submitted even when it is not disabled. ... */ + /** [Config Option] (Boolean) */ submitValue?: bool; - /** [Config Option] (Boolean) Specifies whether this field should be validated immediately whenever a change in its value is detected. ... */ + /** [Config Option] (Boolean) */ validateOnChange?: bool; /** [Config Option] (Object) */ value?: any; - /** [Property] (Boolean) Flag denoting that this component is a Field. ... */ + /** [Property] (Boolean) */ isFormField?: bool; - /** [Property] (Object) The original value of the field as configured in the value configuration, or as loaded by the last form load operatio... */ + /** [Property] (Object) */ originalValue?: any; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code */ - batchChanges?( fn?:any ): any; + batchChanges?( fn?:any ): void; /** [Method] Template method before a field is reset */ - beforeReset?(): any; + beforeReset?(): void; /** [Method] Checks whether the value of the field has changed since the last time it was checked */ - checkChange?(): any; + checkChange?(): void; /** [Method] Checks the isDirty state of the field and if it has changed since the last time it was checked fires the dirtychange */ - checkDirty?(): any; + checkDirty?(): void; /** [Method] Clear any invalid styles messages for this field */ - clearInvalid?(): any; + clearInvalid?(): void; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): any; /** [Method] Runs this field s validators and returns an array of error messages for any validation failures @@ -15502,9 +19617,9 @@ declare module Ext.form.field { /** [Method] Returns the current data value of the field */ getValue?(): any; /** [Method] Initializes this Field mixin on the current instance */ - initField?(): any; + initField?(): void; /** [Method] Initializes the field s value based on the initial config */ - initValue?(): any; + initValue?(): void; /** [Method] Returns true if the value of this Field has been changed from its originalValue */ isDirty?(): any; /** [Method] Returns whether two field values are logically equal @@ -15517,15 +19632,15 @@ declare module Ext.form.field { /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ isValid?(): any; /** [Method] Associate one or more error messages with this field - * @param errors any The error message(s) for the field. + * @param errors String/String[] The error message(s) for the field. */ markInvalid?( errors?:any ): any; - markInvalid?( errors?:string ): any; - markInvalid?( errors?:string[] ): any; + markInvalid?( errors?:string ): void; + markInvalid?( errors?:string[] ): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): any; + reset?(): void; /** [Method] Resets the field s originalValue property so it matches the current value */ - resetOriginalValue?(): any; + resetOriginalValue?(): void; /** [Method] Sets a data value into the field and runs the change detection and validation * @param value Object The value to set */ @@ -15542,23 +19657,21 @@ declare module Ext.form.field { export interface IFile extends Ext.form.field.ITrigger { /** [Config Option] (Object) */ buttonConfig?: any; - /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + /** [Config Option] (Number) */ buttonMargin?: number; - /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + /** [Config Option] (Boolean) */ buttonOnly?: bool; - /** [Config Option] (String) The button text to display on the upload button. ... */ + /** [Config Option] (String) */ buttonText?: string; - /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + /** [Config Option] (Boolean) */ clearOnSubmit?: bool; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + /** [Property] (Ext.button.Button) */ button?: Ext.button.IButton; - /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + /** [Property] (Ext.Element) */ fileInputEl?: Ext.IElement; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): HTMLElement; @@ -15566,76 +19679,14 @@ declare module Ext.form.field { getTriggerMarkup?(): void; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ isFileUpload?(): bool; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): void; - /** [Method] Overridden to do nothing */ - setValue?(): void; - } -} -declare module Ext.form { - export interface IFile extends Ext.form.field.ITrigger { - /** [Config Option] (Object) */ - buttonConfig?: any; - /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ - buttonMargin?: number; - /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ - buttonOnly?: bool; - /** [Config Option] (String) The button text to display on the upload button. ... */ - buttonText?: string; - /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ - clearOnSubmit?: bool; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ - componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ - readOnly?: bool; - /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ - button?: Ext.button.IButton; - /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ - fileInputEl?: Ext.IElement; - /** [Method] Only relevant if the instance s isFileUpload method returns true */ - extractFileInput?(): HTMLElement; - /** [Method] Gets the markup to be inserted into the subTplMarkup */ - getTriggerMarkup?(): void; - /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ - isFileUpload?(): bool; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ - onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] private */ + onRender?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ reset?(): void; /** [Method] Overridden to do nothing */ @@ -15646,23 +19697,21 @@ declare module Ext.form { export interface IFileUploadField extends Ext.form.field.ITrigger { /** [Config Option] (Object) */ buttonConfig?: any; - /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + /** [Config Option] (Number) */ buttonMargin?: number; - /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + /** [Config Option] (Boolean) */ buttonOnly?: bool; - /** [Config Option] (String) The button text to display on the upload button. ... */ + /** [Config Option] (String) */ buttonText?: string; - /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + /** [Config Option] (Boolean) */ clearOnSubmit?: bool; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + /** [Property] (Ext.button.Button) */ button?: Ext.button.IButton; - /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + /** [Property] (Ext.Element) */ fileInputEl?: Ext.IElement; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): HTMLElement; @@ -15670,24 +19719,14 @@ declare module Ext.form { getTriggerMarkup?(): void; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ isFileUpload?(): bool; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] private */ + onRender?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ reset?(): void; /** [Method] Overridden to do nothing */ @@ -15698,23 +19737,21 @@ declare module Ext.ux.form { export interface IFileUploadField extends Ext.form.field.ITrigger { /** [Config Option] (Object) */ buttonConfig?: any; - /** [Config Option] (Number) The number of pixels of space reserved between the button and the text field. ... */ + /** [Config Option] (Number) */ buttonMargin?: number; - /** [Config Option] (Boolean) True to display the file upload field as a button with no visible text field. ... */ + /** [Config Option] (Boolean) */ buttonOnly?: bool; - /** [Config Option] (String) The button text to display on the upload button. ... */ + /** [Config Option] (String) */ buttonText?: string; - /** [Config Option] (Boolean) True to clear the selected file value when the form this field belongs to is submitted to the server. ... */ + /** [Config Option] (Boolean) */ clearOnSubmit?: bool; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (Boolean) Unlike with other form fields, the readOnly config defaults to true in File field. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Property] (Ext.button.Button) A reference to the trigger Button component created for this upload field. ... */ + /** [Property] (Ext.button.Button) */ button?: Ext.button.IButton; - /** [Property] (Ext.Element) A reference to the invisible file input element created for this upload field. ... */ + /** [Property] (Ext.Element) */ fileInputEl?: Ext.IElement; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): HTMLElement; @@ -15722,24 +19759,54 @@ declare module Ext.ux.form { getTriggerMarkup?(): void; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ isFileUpload?(): bool; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] private */ + onRender?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Overridden to do nothing */ + setValue?(): void; + } +} +declare module Ext.form { + export interface IFile extends Ext.form.field.ITrigger { + /** [Config Option] (Object) */ + buttonConfig?: any; + /** [Config Option] (Number) */ + buttonMargin?: number; + /** [Config Option] (Boolean) */ + buttonOnly?: bool; + /** [Config Option] (String) */ + buttonText?: string; + /** [Config Option] (Boolean) */ + clearOnSubmit?: bool; + /** [Config Option] (String/Object) */ + componentLayout?: any; + /** [Config Option] (Boolean) */ + readOnly?: bool; + /** [Property] (Ext.button.Button) */ + button?: Ext.button.IButton; + /** [Property] (Ext.Element) */ + fileInputEl?: Ext.IElement; + /** [Method] Only relevant if the instance s isFileUpload method returns true */ + extractFileInput?(): HTMLElement; + /** [Method] Gets the markup to be inserted into the subTplMarkup */ + getTriggerMarkup?(): void; + /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ + isFileUpload?(): bool; + /** [Method] private */ + onDisable?(): void; + /** [Method] private */ + onEnable?(): void; + /** [Method] private */ + onRender?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ reset?(): void; /** [Method] Overridden to do nothing */ @@ -15748,17 +19815,17 @@ declare module Ext.ux.form { } declare module Ext.form.field { export interface IFileButton extends Ext.button.IButton { - /** [Config Option] (String) A CSS class string to apply to the button's main element. ... */ + /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Boolean) True to prevent the default action when the clickEvent is processed. ... */ + /** [Config Option] (Boolean) */ preventDefault?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ getTemplateArgs?(): any; - /** [Method] Allows addition of behavior to the disable operation */ + /** [Method] See comments in onFocus */ onDisable?(): void; /** [Method] Allows addition of behavior to the enable operation */ onEnable?(): void; @@ -15766,148 +19833,104 @@ declare module Ext.form.field { } declare module Ext.form.field { export interface IHidden extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + /** [Config Option] (Boolean) */ + hidden?: bool; + /** [Config Option] (Boolean) */ hideLabel?: bool; - /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; /** [Method] Clear any invalid styles messages for this field */ clearInvalid?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] These are all private overrides Initialize any events on this component */ + /** [Method] These are all private overrides */ initEvents?(): void; - /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag - * @param errors String The validation message(s) to display. - */ - markInvalid?( errors?:string ): void; - markInvalid?( errors?:string[] ): void; - /** [Method] Sets the height of the component - * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. - */ - setHeight?( height?:number ): Ext.IComponent; - /** [Method] Sets the page XY position of the component - * @param x any The new x position or an array of [x,y]. - * @param y any The new y position. - * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. - */ - setPagePosition?( x?:any, y?:any, animate?:any ): any; - setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; - setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; - /** [Method] Sets the left and top of the component - * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. - * @param y Number The new top. - * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. - */ - setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; - /** [Method] Sets the width and height of this Component - * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. - * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. - */ - setSize?( width?:any, height?:any ): any; - setSize?( width?:any, height?:number ): Ext.IComponent; - setSize?( width?:any, height?:string ): Ext.IComponent; - /** [Method] Sets the width of the component - * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. - */ - setWidth?( width?:number ): Ext.IComponent; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag */ + markInvalid?(): void; + /** [Method] Sets the height of the component */ + setHeight?(): Ext.IComponent; + /** [Method] Sets the page XY position of the component */ + setPagePosition?(): Ext.IComponent; + /** [Method] Sets the left and top of the component */ + setPosition?(): Ext.IComponent; + /** [Method] Sets the width and height of this Component */ + setSize?(): Ext.IComponent; + /** [Method] Sets the width of the component */ + setWidth?(): Ext.IComponent; } } declare module Ext.form { export interface IHidden extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + /** [Config Option] (Boolean) */ + hidden?: bool; + /** [Config Option] (Boolean) */ hideLabel?: bool; - /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; /** [Method] Clear any invalid styles messages for this field */ clearInvalid?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] These are all private overrides Initialize any events on this component */ + /** [Method] These are all private overrides */ initEvents?(): void; - /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag - * @param errors String The validation message(s) to display. - */ - markInvalid?( errors?:string ): void; - markInvalid?( errors?:string[] ): void; - /** [Method] Sets the height of the component - * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. - */ - setHeight?( height?:number ): Ext.IComponent; - /** [Method] Sets the page XY position of the component - * @param x any The new x position or an array of [x,y]. - * @param y any The new y position. - * @param animate any True to animate the Component into its new position. You may also pass an animation configuration. - */ - setPagePosition?( x?:any, y?:any, animate?:any ): any; - setPagePosition?( x?:number, y?:number, animate?:any ): Ext.IComponent; - setPagePosition?( x?:number[], y?:number, animate?:any ): Ext.IComponent; - /** [Method] Sets the left and top of the component - * @param x any The new left, an array of [x,y], or animation config object containing x and y properties. - * @param y Number The new top. - * @param animate any If true, the Component is animated into its new position. You may also pass an animation configuration. - */ - setPosition?( x?:any, y?:number, animate?:any ): Ext.IComponent; - /** [Method] Sets the width and height of this Component - * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. - * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. - */ - setSize?( width?:any, height?:any ): any; - setSize?( width?:any, height?:number ): Ext.IComponent; - setSize?( width?:any, height?:string ): Ext.IComponent; - /** [Method] Sets the width of the component - * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. - */ - setWidth?( width?:number ): Ext.IComponent; + /** [Method] Display one or more error messages associated with this field using msgTarget to determine how to display the messag */ + markInvalid?(): void; + /** [Method] Sets the height of the component */ + setHeight?(): Ext.IComponent; + /** [Method] Sets the page XY position of the component */ + setPagePosition?(): Ext.IComponent; + /** [Method] Sets the left and top of the component */ + setPosition?(): Ext.IComponent; + /** [Method] Sets the width and height of this Component */ + setSize?(): Ext.IComponent; + /** [Method] Sets the width of the component */ + setWidth?(): Ext.IComponent; } } declare module Ext.form.field { export interface IHtmlEditor extends Ext.form.IFieldContainer,Ext.form.field.IField { - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the iframe element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterIFrameTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the textarea element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterTextAreaTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the iframe element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeIFrameTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the textarea element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeTextAreaTpl?: any; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The default text for the create link prompt ... */ + /** [Config Option] (String) */ createLinkText?: string; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default value for the create link prompt ... */ + /** [Config Option] (String) */ defaultLinkValue?: string; - /** [Config Option] (String) A default value to be put into the editor to resolve focus issues. ... */ + /** [Config Option] (String) */ defaultValue?: string; - /** [Config Option] (Boolean) Enable the left, center, right alignment buttons ... */ + /** [Config Option] (Boolean) */ enableAlignments?: bool; - /** [Config Option] (Boolean) Enable the fore/highlight color buttons ... */ + /** [Config Option] (Boolean) */ enableColors?: bool; - /** [Config Option] (Boolean) Enable font selection. ... */ + /** [Config Option] (Boolean) */ enableFont?: bool; - /** [Config Option] (Boolean) Enable the increase/decrease font size buttons ... */ + /** [Config Option] (Boolean) */ enableFontSize?: bool; - /** [Config Option] (Boolean) Enable the bold, italic and underline buttons ... */ + /** [Config Option] (Boolean) */ enableFormat?: bool; - /** [Config Option] (Boolean) Enable the create link button. ... */ + /** [Config Option] (Boolean) */ enableLinks?: bool; - /** [Config Option] (Boolean) Enable the bullet and numbered list buttons. ... */ + /** [Config Option] (Boolean) */ enableLists?: bool; - /** [Config Option] (Boolean) Enable the switch to source edit button. ... */ + /** [Config Option] (Boolean) */ enableSourceEdit?: bool; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (String[]) An array of available font families ... */ + /** [Config Option] (String[]) */ fontFamilies?: string[]; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the iframe element (as attributes). ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ iframeAttrTpl?: any; - /** [Property] (Object) Object collection of toolbar tooltips for the buttons in the editor. ... */ + /** [Property] (Object) */ buttonTips?: any; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code */ @@ -15924,25 +19947,20 @@ declare module Ext.form.field { cleanHtml?( html?:string ): string; /** [Method] Clear any invalid styles messages for this field */ clearInvalid?(): void; - /** [Method] Called when the editor creates its toolbar - * @param editor Ext.form.field.IHtmlEditor - */ - createToolbar?( editor?:Ext.form.field.IHtmlEditor ): void; /** [Method] Executes a Midas editor command directly on the editor document * @param cmd String The Midas command - * @param value String The value to pass to the command + * @param value String/Boolean The value to pass to the command */ + execCmd?( cmd?:any, value?:any ): any; execCmd?( cmd?:string, value?:string ): void; execCmd?( cmd?:string, value?:bool ): void; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): HTMLElement; /** [Method] Try to focus this component - * @param selectText any If applicable, true to also select the text in this component - * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param selectText Object + * @param delay Object */ - focus?( selectText?:any, delay?:any ): any; - focus?( selectText?:bool, delay?:bool ): Ext.IComponent; - focus?( selectText?:bool, delay?:number ): Ext.IComponent; + focus?( selectText?:any, delay?:any ): Ext.IComponent; /** [Method] Called when the editor initializes the iframe with HTML contents */ getDocMarkup?(): void; /** [Method] Runs this field s validators and returns an array of error messages for any validation failures @@ -15959,8 +19977,6 @@ declare module Ext.form.field { getToolbar?(): Ext.toolbar.IToolbar; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes this Field mixin on the current instance */ initField?(): void; /** [Method] Initializes the field s value based on the initial config */ @@ -15972,8 +19988,8 @@ declare module Ext.form.field { /** [Method] Returns true if the value of this Field has been changed from its originalValue */ isDirty?(): bool; /** [Method] Returns whether two field values are logically equal - * @param value1 Object The first value to compare - * @param value2 Object The second value to compare + * @param value1 Object + * @param value2 Object */ isEqual?( value1?:any, value2?:any ): bool; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ @@ -15981,16 +19997,18 @@ declare module Ext.form.field { /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ isValid?(): bool; /** [Method] Associate one or more error messages with this field - * @param errors String The error message(s) for the field. + * @param errors String/String[] The error message(s) for the field. */ + markInvalid?( errors?:any ): any; markInvalid?( errors?:string ): void; markInvalid?( errors?:string[] ): void; /** [Method] Pushes the value of the textarea into the iframe editor */ pushValue?(): void; /** [Method] Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates * @param cmd String The Midas command - * @param value String The value to pass to the command + * @param value String/Boolean The value to pass to the command */ + relayCmd?( cmd?:any, value?:any ): any; relayCmd?( cmd?:string, value?:string ): void; relayCmd?( cmd?:string, value?:bool ): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ @@ -16002,7 +20020,7 @@ declare module Ext.form.field { */ setReadOnly?( readOnly?:bool ): void; /** [Method] Sets a data value into the field and runs the change detection and validation - * @param value Object The value to set + * @param value Object */ setValue?( value?:any ): any; /** [Method] Syncs the contents of the editor iframe with the textarea */ @@ -16021,52 +20039,48 @@ declare module Ext.form.field { } declare module Ext.form { export interface IHtmlEditor extends Ext.form.IFieldContainer,Ext.form.field.IField { - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the iframe element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterIFrameTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the textarea element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterTextAreaTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the iframe element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeIFrameTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the textarea element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeTextAreaTpl?: any; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The default text for the create link prompt ... */ + /** [Config Option] (String) */ createLinkText?: string; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default value for the create link prompt ... */ + /** [Config Option] (String) */ defaultLinkValue?: string; - /** [Config Option] (String) A default value to be put into the editor to resolve focus issues. ... */ + /** [Config Option] (String) */ defaultValue?: string; - /** [Config Option] (Boolean) Enable the left, center, right alignment buttons ... */ + /** [Config Option] (Boolean) */ enableAlignments?: bool; - /** [Config Option] (Boolean) Enable the fore/highlight color buttons ... */ + /** [Config Option] (Boolean) */ enableColors?: bool; - /** [Config Option] (Boolean) Enable font selection. ... */ + /** [Config Option] (Boolean) */ enableFont?: bool; - /** [Config Option] (Boolean) Enable the increase/decrease font size buttons ... */ + /** [Config Option] (Boolean) */ enableFontSize?: bool; - /** [Config Option] (Boolean) Enable the bold, italic and underline buttons ... */ + /** [Config Option] (Boolean) */ enableFormat?: bool; - /** [Config Option] (Boolean) Enable the create link button. ... */ + /** [Config Option] (Boolean) */ enableLinks?: bool; - /** [Config Option] (Boolean) Enable the bullet and numbered list buttons. ... */ + /** [Config Option] (Boolean) */ enableLists?: bool; - /** [Config Option] (Boolean) Enable the switch to source edit button. ... */ + /** [Config Option] (Boolean) */ enableSourceEdit?: bool; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ - fieldBodyCls?: string; - /** [Config Option] (String[]) An array of available font families ... */ + /** [Config Option] (String[]) */ fontFamilies?: string[]; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the iframe element (as attributes). ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ iframeAttrTpl?: any; - /** [Property] (Object) Object collection of toolbar tooltips for the buttons in the editor. ... */ + /** [Property] (Object) */ buttonTips?: any; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; /** [Method] A utility for grouping a set of modifications which may trigger value changes into a single transaction to prevent e * @param fn Object A function containing the transaction code */ @@ -16083,25 +20097,20 @@ declare module Ext.form { cleanHtml?( html?:string ): string; /** [Method] Clear any invalid styles messages for this field */ clearInvalid?(): void; - /** [Method] Called when the editor creates its toolbar - * @param editor Ext.form.field.IHtmlEditor - */ - createToolbar?( editor?:Ext.form.field.IHtmlEditor ): void; /** [Method] Executes a Midas editor command directly on the editor document * @param cmd String The Midas command - * @param value String The value to pass to the command + * @param value String/Boolean The value to pass to the command */ + execCmd?( cmd?:any, value?:any ): any; execCmd?( cmd?:string, value?:string ): void; execCmd?( cmd?:string, value?:bool ): void; /** [Method] Only relevant if the instance s isFileUpload method returns true */ extractFileInput?(): HTMLElement; /** [Method] Try to focus this component - * @param selectText any If applicable, true to also select the text in this component - * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param selectText Object + * @param delay Object */ - focus?( selectText?:any, delay?:any ): any; - focus?( selectText?:bool, delay?:bool ): Ext.IComponent; - focus?( selectText?:bool, delay?:number ): Ext.IComponent; + focus?( selectText?:any, delay?:any ): Ext.IComponent; /** [Method] Called when the editor initializes the iframe with HTML contents */ getDocMarkup?(): void; /** [Method] Runs this field s validators and returns an array of error messages for any validation failures @@ -16118,8 +20127,6 @@ declare module Ext.form { getToolbar?(): Ext.toolbar.IToolbar; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes this Field mixin on the current instance */ initField?(): void; /** [Method] Initializes the field s value based on the initial config */ @@ -16131,8 +20138,8 @@ declare module Ext.form { /** [Method] Returns true if the value of this Field has been changed from its originalValue */ isDirty?(): bool; /** [Method] Returns whether two field values are logically equal - * @param value1 Object The first value to compare - * @param value2 Object The second value to compare + * @param value1 Object + * @param value2 Object */ isEqual?( value1?:any, value2?:any ): bool; /** [Method] Returns whether this Field is a file upload field if it returns true forms will use special techniques for submitti */ @@ -16140,16 +20147,18 @@ declare module Ext.form { /** [Method] Returns whether or not the field value is currently valid by validating the field s current value */ isValid?(): bool; /** [Method] Associate one or more error messages with this field - * @param errors String The error message(s) for the field. + * @param errors String/String[] The error message(s) for the field. */ + markInvalid?( errors?:any ): any; markInvalid?( errors?:string ): void; markInvalid?( errors?:string[] ): void; /** [Method] Pushes the value of the textarea into the iframe editor */ pushValue?(): void; /** [Method] Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates * @param cmd String The Midas command - * @param value String The value to pass to the command + * @param value String/Boolean The value to pass to the command */ + relayCmd?( cmd?:any, value?:any ): any; relayCmd?( cmd?:string, value?:string ): void; relayCmd?( cmd?:string, value?:bool ): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ @@ -16161,7 +20170,7 @@ declare module Ext.form { */ setReadOnly?( readOnly?:bool ): void; /** [Method] Sets a data value into the field and runs the change detection and validation - * @param value Object The value to set + * @param value Object */ setValue?( value?:any ): any; /** [Method] Syncs the contents of the editor iframe with the textarea */ @@ -16180,43 +20189,43 @@ declare module Ext.form { } declare module Ext.form.field { export interface INumber extends Ext.form.field.ISpinner { - /** [Config Option] (Boolean) False to disallow decimal values ... */ + /** [Config Option] (Boolean) */ allowDecimals?: bool; - /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ + /** [Config Option] (Boolean) */ + allowExponential?: bool; + /** [Config Option] (Boolean) */ autoStripChars?: bool; - /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ + /** [Config Option] (String) */ baseChars?: string; - /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ + /** [Config Option] (Number) */ decimalPrecision?: number; - /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ + /** [Config Option] (String) */ decimalSeparator?: string; - /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Number) The maximum allowed value. ... */ + /** [Config Option] (Number) */ maxValue?: number; - /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Number) The minimum allowed value. ... */ + /** [Config Option] (Number) */ minValue?: number; - /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ + /** [Config Option] (String) */ nanText?: string; - /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ + /** [Config Option] (String) */ negativeText?: string; - /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ + /** [Config Option] (Number) */ step?: number; - /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ + /** [Config Option] (Boolean) */ submitLocaleSeparator?: bool; - /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Template method to do any pre blur processing */ + beforeBlur?(): void; /** [Method] Runs all of Number s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) */ getErrors?( value?:any ): string[]; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ onSpinDown?(): void; @@ -16235,128 +20244,60 @@ declare module Ext.form.field { */ setMinValue?( value?:number ): void; /** [Method] Sets whether the spinner down button is enabled - * @param enabled Boolean true to enable the button, false to disable it. + * @param enabled Object + * @param internal Object */ - setSpinDownEnabled?( enabled?:bool ): void; + setSpinDownEnabled?( enabled?:any, internal?:any ): void; /** [Method] Sets whether the spinner up button is enabled - * @param enabled Boolean true to enable the button, false to disable it. + * @param enabled Object + * @param internal Object */ - setSpinUpEnabled?( enabled?:bool ): void; + setSpinUpEnabled?( enabled?:any, internal?:any ): void; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. - */ - valueToRaw?( value?:any ): any; - } -} -declare module Ext.form { - export interface INumber extends Ext.form.field.ISpinner { - /** [Config Option] (Boolean) False to disallow decimal values ... */ - allowDecimals?: bool; - /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ - autoStripChars?: bool; - /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ - baseChars?: string; - /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ - decimalPrecision?: number; - /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ - decimalSeparator?: string; - /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ - maxText?: string; - /** [Config Option] (Number) The maximum allowed value. ... */ - maxValue?: number; - /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ - minText?: string; - /** [Config Option] (Number) The minimum allowed value. ... */ - minValue?: number; - /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ - nanText?: string; - /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ - negativeText?: string; - /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ - step?: number; - /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ - submitLocaleSeparator?: bool; - /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; - /** [Method] Runs all of Number s validations and returns an array of any errors - * @param value Object The value to get errors for (defaults to the current field value) - */ - getErrors?( value?:any ): string[]; - /** [Method] Returns the value that would be included in a standard form submit for this field */ - getSubmitValue?(): string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ - onSpinDown?(): void; - /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ - onSpinUp?(): void; - /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type - * @param rawValue Object - */ - rawToValue?( rawValue?:any ): any; - /** [Method] Replaces any existing maxValue with the new value - * @param value Number The maximum value - */ - setMaxValue?( value?:number ): void; - /** [Method] Replaces any existing minValue with the new value - * @param value Number The minimum value - */ - setMinValue?( value?:number ): void; - /** [Method] Sets whether the spinner down button is enabled - * @param enabled Boolean true to enable the button, false to disable it. - */ - setSpinDownEnabled?( enabled?:bool ): void; - /** [Method] Sets whether the spinner up button is enabled - * @param enabled Boolean true to enable the button, false to disable it. - */ - setSpinUpEnabled?( enabled?:bool ): void; - /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form { export interface INumberField extends Ext.form.field.ISpinner { - /** [Config Option] (Boolean) False to disallow decimal values ... */ + /** [Config Option] (Boolean) */ allowDecimals?: bool; - /** [Config Option] (Boolean) True to automatically strip not allowed characters from the field. ... */ + /** [Config Option] (Boolean) */ + allowExponential?: bool; + /** [Config Option] (Boolean) */ autoStripChars?: bool; - /** [Config Option] (String) The base set of characters to evaluate as valid numbers. ... */ + /** [Config Option] (String) */ baseChars?: string; - /** [Config Option] (Number) The maximum precision to display after the decimal separator ... */ + /** [Config Option] (Number) */ decimalPrecision?: number; - /** [Config Option] (String) Character(s) to allow as the decimal separator ... */ + /** [Config Option] (String) */ decimalSeparator?: string; - /** [Config Option] (String) Error text to display if the maximum value validation fails. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Number) The maximum allowed value. ... */ + /** [Config Option] (Number) */ maxValue?: number; - /** [Config Option] (String) Error text to display if the minimum value validation fails. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Number) The minimum allowed value. ... */ + /** [Config Option] (Number) */ minValue?: number; - /** [Config Option] (String) Error text to display if the value is not a valid number. ... */ + /** [Config Option] (String) */ nanText?: string; - /** [Config Option] (String) Error text to display if the value is negative and minValue is set to 0. ... */ + /** [Config Option] (String) */ negativeText?: string; - /** [Config Option] (Number) Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the ... */ + /** [Config Option] (Number) */ step?: number; - /** [Config Option] (Boolean) False to ensure that the getSubmitValue method strips always uses . ... */ + /** [Config Option] (Boolean) */ submitLocaleSeparator?: bool; - /** [Method] Template method to do any pre blur processing - * @param e Ext.IEventObject The event object - */ - beforeBlur?( e?:Ext.IEventObject ): void; + /** [Method] Template method to do any pre blur processing */ + beforeBlur?(): void; /** [Method] Runs all of Number s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) */ getErrors?( value?:any ): string[]; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): string; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ onSpinDown?(): void; @@ -16375,30 +20316,104 @@ declare module Ext.form { */ setMinValue?( value?:number ): void; /** [Method] Sets whether the spinner down button is enabled - * @param enabled Boolean true to enable the button, false to disable it. + * @param enabled Object + * @param internal Object */ - setSpinDownEnabled?( enabled?:bool ): void; + setSpinDownEnabled?( enabled?:any, internal?:any ): void; /** [Method] Sets whether the spinner up button is enabled - * @param enabled Boolean true to enable the button, false to disable it. + * @param enabled Object + * @param internal Object */ - setSpinUpEnabled?( enabled?:bool ): void; + setSpinUpEnabled?( enabled?:any, internal?:any ): void; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface INumber extends Ext.form.field.ISpinner { + /** [Config Option] (Boolean) */ + allowDecimals?: bool; + /** [Config Option] (Boolean) */ + allowExponential?: bool; + /** [Config Option] (Boolean) */ + autoStripChars?: bool; + /** [Config Option] (String) */ + baseChars?: string; + /** [Config Option] (Number) */ + decimalPrecision?: number; + /** [Config Option] (String) */ + decimalSeparator?: string; + /** [Config Option] (String) */ + maxText?: string; + /** [Config Option] (Number) */ + maxValue?: number; + /** [Config Option] (String) */ + minText?: string; + /** [Config Option] (Number) */ + minValue?: number; + /** [Config Option] (String) */ + nanText?: string; + /** [Config Option] (String) */ + negativeText?: string; + /** [Config Option] (Number) */ + step?: number; + /** [Config Option] (Boolean) */ + submitLocaleSeparator?: bool; + /** [Method] Template method to do any pre blur processing */ + beforeBlur?(): void; + /** [Method] Runs all of Number s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the value that would be included in a standard form submit for this field */ + getSubmitValue?(): string; + /** [Method] private */ + initComponent?(): void; + /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ + onSpinDown?(): void; + /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ + onSpinUp?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new value + * @param value Number The maximum value + */ + setMaxValue?( value?:number ): void; + /** [Method] Replaces any existing minValue with the new value + * @param value Number The minimum value + */ + setMinValue?( value?:number ): void; + /** [Method] Sets whether the spinner down button is enabled + * @param enabled Object + * @param internal Object + */ + setSpinDownEnabled?( enabled?:any, internal?:any ): void; + /** [Method] Sets whether the spinner up button is enabled + * @param enabled Object + * @param internal Object + */ + setSpinUpEnabled?( enabled?:any, internal?:any ): void; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form.field { export interface IPicker extends Ext.form.field.ITrigger { - /** [Config Option] (Boolean) False to prevent the user from typing text directly into the field; the field can only have its value set via selecti... */ + /** [Config Option] (Boolean) */ editable?: bool; - /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + /** [Config Option] (Boolean) */ matchFieldWidth?: bool; - /** [Config Option] (String) A class to be added to the field's bodyEl element when the picker is opened. ... */ + /** [Config Option] (String) */ openCls?: string; - /** [Config Option] (String) The alignment position with which to align the picker. ... */ + /** [Config Option] (String) */ pickerAlign?: string; - /** [Config Option] (Number[]) An offset [x,y] to use in addition to the pickerAlign when positioning the picker. ... */ + /** [Config Option] (Number[]) */ pickerOffset?: number[]; /** [Property] (Boolean) */ isExpanded?: bool; @@ -16412,27 +20427,25 @@ declare module Ext.form.field { expand?(): void; /** [Method] Returns a reference to the picker component for this field creating it if necessary by calling createPicker */ getPicker?(): Ext.IComponent; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ onTriggerClick?(): void; } } declare module Ext.form { export interface IPicker extends Ext.form.field.ITrigger { - /** [Config Option] (Boolean) False to prevent the user from typing text directly into the field; the field can only have its value set via selecti... */ + /** [Config Option] (Boolean) */ editable?: bool; - /** [Config Option] (Boolean) Whether the picker dropdown's width should be explicitly set to match the width of the field. ... */ + /** [Config Option] (Boolean) */ matchFieldWidth?: bool; - /** [Config Option] (String) A class to be added to the field's bodyEl element when the picker is opened. ... */ + /** [Config Option] (String) */ openCls?: string; - /** [Config Option] (String) The alignment position with which to align the picker. ... */ + /** [Config Option] (String) */ pickerAlign?: string; - /** [Config Option] (Number[]) An offset [x,y] to use in addition to the pickerAlign when positioning the picker. ... */ + /** [Config Option] (Number[]) */ pickerOffset?: number[]; /** [Property] (Boolean) */ isExpanded?: bool; @@ -16446,23 +20459,21 @@ declare module Ext.form { expand?(): void; /** [Method] Returns a reference to the picker component for this field creating it if necessary by calling createPicker */ getPicker?(): Ext.IComponent; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] Handles the trigger click by default toggles between expanding and collapsing the picker component */ onTriggerClick?(): void; } } declare module Ext.form.field { export interface IRadio extends Ext.form.field.ICheckbox { - /** [Config Option] (String) The CSS class to use when the radio field receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Radio, or subclass thereof. ... */ + /** [Property] (Boolean) */ isRadio?: bool; /** [Method] If this radio is part of a group it will return the selected value */ getGroupValue?(): string; @@ -16470,12 +20481,10 @@ declare module Ext.form.field { getModelData?(): any; /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ getSubmitValue?(): any; - /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. - */ - onRemoved?( destroying?:bool ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event */ + onRemoved?(): void; /** [Method] Sets either the checked unchecked status of this Radio or if a string value is passed checks a sibling Radio of th - * @param value any Checked value, or the value of the sibling radio button to check. + * @param value String/Boolean Checked value, or the value of the sibling radio button to check. */ setValue?( value?:any ): any; setValue?( value?:string ): Ext.form.field.IRadio; @@ -16484,11 +20493,11 @@ declare module Ext.form.field { } declare module Ext.form { export interface IRadio extends Ext.form.field.ICheckbox { - /** [Config Option] (String) The CSS class to use when the radio field receives focus ... */ + /** [Config Option] (String) */ focusCls?: string; - /** [Config Option] (String) private The type attribute for input fields -- e.g. ... */ + /** [Config Option] (String) */ inputType?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Radio, or subclass thereof. ... */ + /** [Property] (Boolean) */ isRadio?: bool; /** [Method] If this radio is part of a group it will return the selected value */ getGroupValue?(): string; @@ -16496,12 +20505,10 @@ declare module Ext.form { getModelData?(): any; /** [Method] Returns the submit value for the checkbox which can be used when submitting forms */ getSubmitValue?(): any; - /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. - */ - onRemoved?( destroying?:bool ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event */ + onRemoved?(): void; /** [Method] Sets either the checked unchecked status of this Radio or if a string value is passed checks a sibling Radio of th - * @param value any Checked value, or the value of the sibling radio button to check. + * @param value String/Boolean Checked value, or the value of the sibling radio button to check. */ setValue?( value?:any ): any; setValue?( value?:string ): Ext.form.field.IRadio; @@ -16510,28 +20517,28 @@ declare module Ext.form { } declare module Ext.form.field { export interface ISpinner extends Ext.form.field.ITrigger { - /** [Config Option] (Boolean) Specifies whether the up and down arrow keys should trigger spinning up and down. ... */ + /** [Config Option] (Boolean) */ keyNavEnabled?: bool; - /** [Config Option] (Boolean) Specifies whether the mouse wheel should trigger spinning up and down while the field has focus. ... */ + /** [Config Option] (Boolean) */ mouseWheelEnabled?: bool; - /** [Config Option] (Boolean) Whether a click repeater should be attached to the spinner buttons. ... */ + /** [Config Option] (Boolean) */ repeatTriggerClick?: bool; - /** [Config Option] (Boolean) Specifies whether the down spinner button is enabled. ... */ + /** [Config Option] (Boolean) */ spinDownEnabled?: bool; - /** [Config Option] (Boolean) Specifies whether the up spinner button is enabled. ... */ + /** [Config Option] (Boolean) */ spinUpEnabled?: bool; /** [Property] (Ext.Element) */ spinDownEl?: Ext.IElement; /** [Property] (Ext.Element) */ spinUpEl?: Ext.IElement; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; /** [Method] Get the total width of the spinner button area */ getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ onSpinDown?(): void; /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ @@ -16552,28 +20559,28 @@ declare module Ext.form.field { } declare module Ext.form { export interface ISpinner extends Ext.form.field.ITrigger { - /** [Config Option] (Boolean) Specifies whether the up and down arrow keys should trigger spinning up and down. ... */ + /** [Config Option] (Boolean) */ keyNavEnabled?: bool; - /** [Config Option] (Boolean) Specifies whether the mouse wheel should trigger spinning up and down while the field has focus. ... */ + /** [Config Option] (Boolean) */ mouseWheelEnabled?: bool; - /** [Config Option] (Boolean) Whether a click repeater should be attached to the spinner buttons. ... */ + /** [Config Option] (Boolean) */ repeatTriggerClick?: bool; - /** [Config Option] (Boolean) Specifies whether the down spinner button is enabled. ... */ + /** [Config Option] (Boolean) */ spinDownEnabled?: bool; - /** [Config Option] (Boolean) Specifies whether the up spinner button is enabled. ... */ + /** [Config Option] (Boolean) */ spinUpEnabled?: bool; /** [Property] (Ext.Element) */ spinDownEl?: Ext.IElement; /** [Property] (Ext.Element) */ spinUpEl?: Ext.IElement; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; /** [Method] Get the total width of the spinner button area */ getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] This method is called when the spinner down button is clicked or when the down arrow key is pressed if keyNavEnabled */ onSpinDown?(): void; /** [Method] This method is called when the spinner up button is clicked or when the up arrow key is pressed if keyNavEnabled is */ @@ -16594,82 +20601,72 @@ declare module Ext.form { } declare module Ext.form.field { export interface IText extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ + /** [Config Option] (Boolean) */ allowBlank?: bool; - /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ + /** [Config Option] (Boolean) */ allowOnlyWhitespace?: bool; - /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ + /** [Config Option] (String) */ blankText?: string; - /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ + /** [Config Option] (Boolean) */ disableKeyFilter?: bool; - /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ + /** [Config Option] (String) */ emptyCls?: string; - /** [Config Option] (String) The default text to place into an empty field. ... */ + /** [Config Option] (String) */ emptyText?: string; - /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ + /** [Config Option] (Boolean) */ enableKeyEvents?: bool; - /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ + /** [Config Option] (Boolean) */ enforceMaxLength?: bool; - /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ + /** [Config Option] (Boolean) */ grow?: bool; - /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + /** [Config Option] (String) */ growAppend?: string; - /** [Config Option] (Number) The maximum width to allow when grow = true ... */ + /** [Config Option] (Number) */ growMax?: number; - /** [Config Option] (Number) The minimum width to allow when grow = true ... */ + /** [Config Option] (Number) */ growMin?: number; - /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ + /** [Config Option] (RegExp) */ maskRe?: RegExp; - /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ + /** [Config Option] (Number) */ maxLength?: number; - /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ + /** [Config Option] (String) */ maxLengthText?: string; - /** [Config Option] (Number) Minimum input field length required ... */ + /** [Config Option] (Number) */ minLength?: number; - /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ + /** [Config Option] (String) */ minLengthText?: string; - /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ + /** [Config Option] (RegExp) */ regex?: RegExp; - /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ + /** [Config Option] (String) */ regexText?: string; - /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ + /** [Config Option] (String) */ requiredCls?: string; - /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ + /** [Config Option] (Boolean) */ selectOnFocus?: bool; - /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ + /** [Config Option] (Number) */ size?: number; - /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ + /** [Config Option] (RegExp) */ stripCharsRe?: RegExp; - /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ + /** [Config Option] (Boolean) */ validateBlank?: bool; - /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ + /** [Config Option] (Function) */ validator?: any; /** [Config Option] (String) */ vtype?: string; - /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ + /** [Config Option] (String) */ vtypeText?: string; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Applies the state to the object - * @param state Object The state + * @param state Object */ applyState?( state?:any ): void; /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ autoSize?(): void; - /** [Method] private Template method to do any pre focus processing - * @param e Ext.IEventObject The event object - */ - beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] private */ + beforeFocus?(): void; /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations * @param value Object The value to validate. The processed raw value will be used if nothing is passed. */ @@ -16680,139 +20677,18 @@ declare module Ext.form.field { getState?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] private Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] private Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method to do any post blur processing - * @param e Ext.IEventObject The event object - */ - postBlur?( e?:Ext.IEventObject ): void; - /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation - * @param value String The unprocessed string value - */ - processRawValue?( value?:string ): string; - /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): void; - /** [Method] Selects text in this field - * @param start Number The index where the selection should start - * @param end Number The index where the selection should end (defaults to the text length) - */ - selectText?( start?:number, end?:number ): void; - /** [Method] Sets a data value into the field and runs the change detection and validation - * @param value Object The value to set - */ - setValue?( value?:any ): any; - } -} -declare module Ext.form { - export interface IText extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ - allowBlank?: bool; - /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ - allowOnlyWhitespace?: bool; - /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ - blankText?: string; - /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ - disableKeyFilter?: bool; - /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ - emptyCls?: string; - /** [Config Option] (String) The default text to place into an empty field. ... */ - emptyText?: string; - /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ - enableKeyEvents?: bool; - /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ - enforceMaxLength?: bool; - /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ - grow?: bool; - /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ - growAppend?: string; - /** [Config Option] (Number) The maximum width to allow when grow = true ... */ - growMax?: number; - /** [Config Option] (Number) The minimum width to allow when grow = true ... */ - growMin?: number; - /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ - maskRe?: RegExp; - /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ - maxLength?: number; - /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ - maxLengthText?: string; - /** [Config Option] (Number) Minimum input field length required ... */ - minLength?: number; - /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ - minLengthText?: string; - /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ - regex?: RegExp; - /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ - regexText?: string; - /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ - requiredCls?: string; - /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ - selectOnFocus?: bool; - /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ - size?: number; - /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ - stripCharsRe?: RegExp; - /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ - validateBlank?: bool; - /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ - validator?: any; - /** [Config Option] (String) */ - vtype?: string; - /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ - vtypeText?: string; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; - /** [Method] Applies the state to the object - * @param state Object The state - */ - applyState?( state?:any ): void; - /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ - autoSize?(): void; - /** [Method] private Template method to do any pre focus processing - * @param e Ext.IEventObject The event object - */ - beforeFocus?( e?:Ext.IEventObject ): void; - /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations - * @param value Object The value to validate. The processed raw value will be used if nothing is passed. - */ - getErrors?( value?:any ): string[]; - /** [Method] Returns the raw String value of the field without performing any normalization conversion or validation */ - getRawValue?(): string; - /** [Method] The supplied default state gathering method for the AbstractComponent class */ - getState?(): any; - /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ - getSubTplData?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] private Initialize any events on this component */ - initEvents?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] private Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ - onEnable?(): void; - /** [Method] private Template method to do any post blur processing - * @param e Ext.IEventObject The event object - */ - postBlur?( e?:Ext.IEventObject ): void; + /** [Method] private */ + postBlur?(): void; /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation * @param value String The unprocessed string value */ @@ -16832,82 +20708,72 @@ declare module Ext.form { } declare module Ext.form { export interface ITextField extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Specify false to validate that the value's length must be > 0. ... */ + /** [Config Option] (Boolean) */ allowBlank?: bool; - /** [Config Option] (Boolean) Specify false to automatically trim the value before validating the whether the value is blank. ... */ + /** [Config Option] (Boolean) */ allowOnlyWhitespace?: bool; - /** [Config Option] (String) The error text to display if the allowBlank validation fails ... */ + /** [Config Option] (String) */ blankText?: string; - /** [Config Option] (Boolean) Specify true to disable input keystroke filtering ... */ + /** [Config Option] (Boolean) */ disableKeyFilter?: bool; - /** [Config Option] (String) The CSS class to apply to an empty field to style the emptyText. ... */ + /** [Config Option] (String) */ emptyCls?: string; - /** [Config Option] (String) The default text to place into an empty field. ... */ + /** [Config Option] (String) */ emptyText?: string; - /** [Config Option] (Boolean) true to enable the proxying of key events for the HTML input field ... */ + /** [Config Option] (Boolean) */ enableKeyEvents?: bool; - /** [Config Option] (Boolean) True to set the maxLength property on the underlying input field. ... */ + /** [Config Option] (Boolean) */ enforceMaxLength?: bool; - /** [Config Option] (Boolean) true if this field should automatically grow and shrink to its content ... */ + /** [Config Option] (Boolean) */ grow?: bool; - /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + /** [Config Option] (String) */ growAppend?: string; - /** [Config Option] (Number) The maximum width to allow when grow = true ... */ + /** [Config Option] (Number) */ growMax?: number; - /** [Config Option] (Number) The minimum width to allow when grow = true ... */ + /** [Config Option] (Number) */ growMin?: number; - /** [Config Option] (RegExp) An input mask regular expression that will be used to filter keystrokes (character being typed) that do not match. ... */ + /** [Config Option] (RegExp) */ maskRe?: RegExp; - /** [Config Option] (Number) Maximum input field length allowed by validation. ... */ + /** [Config Option] (Number) */ maxLength?: number; - /** [Config Option] (String) Error text to display if the maximum length validation fails ... */ + /** [Config Option] (String) */ maxLengthText?: string; - /** [Config Option] (Number) Minimum input field length required ... */ + /** [Config Option] (Number) */ minLength?: number; - /** [Config Option] (String) Error text to display if the minimum length validation fails. ... */ + /** [Config Option] (String) */ minLengthText?: string; - /** [Config Option] (RegExp) A JavaScript RegExp object to be tested against the field value during validation. ... */ + /** [Config Option] (RegExp) */ regex?: RegExp; - /** [Config Option] (String) The error text to display if regex is used and the test fails during validation ... */ + /** [Config Option] (String) */ regexText?: string; - /** [Config Option] (String) The CSS class to apply to a required field, i.e. ... */ + /** [Config Option] (String) */ requiredCls?: string; - /** [Config Option] (Boolean) true to automatically select any existing field text when the field receives input focus ... */ + /** [Config Option] (Boolean) */ selectOnFocus?: bool; - /** [Config Option] (Number) An initial value for the 'size' attribute on the text input element. ... */ + /** [Config Option] (Number) */ size?: number; - /** [Config Option] (RegExp) A JavaScript RegExp object used to strip unwanted content from the value during input. ... */ + /** [Config Option] (RegExp) */ stripCharsRe?: RegExp; - /** [Config Option] (Boolean) Specify as true to modify the behaviour of allowBlank so that blank values are not passed as valid, but are subject t... */ + /** [Config Option] (Boolean) */ validateBlank?: bool; - /** [Config Option] (Function) A custom validation function to be called during field validation (getErrors). ... */ + /** [Config Option] (Function) */ validator?: any; /** [Config Option] (String) */ vtype?: string; - /** [Config Option] (String) A custom error message to display in place of the default message provided for the vtype currently set for this field. ... */ + /** [Config Option] (String) */ vtypeText?: string; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Applies the state to the object - * @param state Object The state + * @param state Object */ applyState?( state?:any ): void; /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ autoSize?(): void; - /** [Method] private Template method to do any pre focus processing - * @param e Ext.IEventObject The event object - */ - beforeFocus?( e?:Ext.IEventObject ): void; + /** [Method] private */ + beforeFocus?(): void; /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations * @param value Object The value to validate. The processed raw value will be used if nothing is passed. */ @@ -16918,20 +20784,125 @@ declare module Ext.form { getState?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] private Initialize any events on this component */ + /** [Method] private */ initEvents?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] private Allows addition of behavior to the disable operation */ + /** [Method] private */ onDisable?(): void; - /** [Method] private Allows addition of behavior to the enable operation */ + /** [Method] private */ onEnable?(): void; - /** [Method] private Template method to do any post blur processing - * @param e Ext.IEventObject The event object + /** [Method] private */ + postBlur?(): void; + /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation + * @param value String The unprocessed string value */ - postBlur?( e?:Ext.IEventObject ): void; + processRawValue?( value?:string ): string; + /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ + reset?(): void; + /** [Method] Selects text in this field + * @param start Number The index where the selection should start + * @param end Number The index where the selection should end (defaults to the text length) + */ + selectText?( start?:number, end?:number ): void; + /** [Method] Sets a data value into the field and runs the change detection and validation + * @param value Object The value to set + */ + setValue?( value?:any ): any; + } +} +declare module Ext.form { + export interface IText extends Ext.form.field.IBase { + /** [Config Option] (Boolean) */ + allowBlank?: bool; + /** [Config Option] (Boolean) */ + allowOnlyWhitespace?: bool; + /** [Config Option] (String) */ + blankText?: string; + /** [Config Option] (Boolean) */ + disableKeyFilter?: bool; + /** [Config Option] (String) */ + emptyCls?: string; + /** [Config Option] (String) */ + emptyText?: string; + /** [Config Option] (Boolean) */ + enableKeyEvents?: bool; + /** [Config Option] (Boolean) */ + enforceMaxLength?: bool; + /** [Config Option] (Boolean) */ + grow?: bool; + /** [Config Option] (String) */ + growAppend?: string; + /** [Config Option] (Number) */ + growMax?: number; + /** [Config Option] (Number) */ + growMin?: number; + /** [Config Option] (RegExp) */ + maskRe?: RegExp; + /** [Config Option] (Number) */ + maxLength?: number; + /** [Config Option] (String) */ + maxLengthText?: string; + /** [Config Option] (Number) */ + minLength?: number; + /** [Config Option] (String) */ + minLengthText?: string; + /** [Config Option] (RegExp) */ + regex?: RegExp; + /** [Config Option] (String) */ + regexText?: string; + /** [Config Option] (String) */ + requiredCls?: string; + /** [Config Option] (Boolean) */ + selectOnFocus?: bool; + /** [Config Option] (Number) */ + size?: number; + /** [Config Option] (RegExp) */ + stripCharsRe?: RegExp; + /** [Config Option] (Boolean) */ + validateBlank?: bool; + /** [Config Option] (Function) */ + validator?: any; + /** [Config Option] (String) */ + vtype?: string; + /** [Config Option] (String) */ + vtypeText?: string; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; + /** [Method] Allows addition of behavior after rendering is complete */ + afterRender?(): void; + /** [Method] Applies the state to the object + * @param state Object + */ + applyState?( state?:any ): void; + /** [Method] Automatically grows the field to accomodate the width of the text up to the maximum field width allowed */ + autoSize?(): void; + /** [Method] private */ + beforeFocus?(): void; + /** [Method] Validates a value according to the field s validation rules and returns an array of errors for any failing validations + * @param value Object The value to validate. The processed raw value will be used if nothing is passed. + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the raw String value of the field without performing any normalization conversion or validation */ + getRawValue?(): string; + /** [Method] The supplied default state gathering method for the AbstractComponent class */ + getState?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] private */ + initComponent?(): void; + /** [Method] private */ + initEvents?(): void; + /** [Method] Allows addition of behavior to the destroy operation */ + onDestroy?(): void; + /** [Method] private */ + onDisable?(): void; + /** [Method] private */ + onEnable?(): void; + /** [Method] private */ + postBlur?(): void; /** [Method] Performs any necessary manipulation of a raw String value to prepare it for conversion and or validation * @param value String The unprocessed string value */ @@ -16951,21 +20922,21 @@ declare module Ext.form { } declare module Ext.form.field { export interface ITextArea extends Ext.form.field.IText { - /** [Config Option] (Number) An initial value for the 'cols' attribute on the textarea element. ... */ + /** [Config Option] (Number) */ cols?: number; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) True if you want the ENTER key to be classed as a special key and the specialkey event to be fired when ENTER is pres... */ + /** [Config Option] (Boolean) */ enterIsSpecial?: bool; - /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + /** [Config Option] (String) */ growAppend?: string; - /** [Config Option] (Number) The maximum height to allow when grow=true ... */ + /** [Config Option] (Number) */ growMax?: number; - /** [Config Option] (Number) The minimum height to allow when grow=true ... */ + /** [Config Option] (Number) */ growMin?: number; - /** [Config Option] (Boolean) true to prevent scrollbars from appearing regardless of how much text is in the field. ... */ + /** [Config Option] (Boolean) */ preventScrollbars?: bool; - /** [Config Option] (Number) An initial value for the 'rows' attribute on the textarea element. ... */ + /** [Config Option] (Number) */ rows?: number; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; @@ -16973,41 +20944,41 @@ declare module Ext.form.field { autoSize?(): void; /** [Method] Invoked before the Component is destroyed */ beforeDestroy?(): void; - /** [Method] private Creates and returns the data object to be used when rendering the fieldSubTpl */ + /** [Method] private */ getSubTplData?(): any; /** [Method] Returns the current data value of the field */ getValue?(): any; /** [Method] Allows for any necessary modifications before the original value is set - * @param value Object The initial value + * @param value Object */ transformOriginalValue?( value?:any ): any; /** [Method] The following overrides deal with an issue whereby some browsers will strip carriage returns from the textarea input - * @param value Object The value + * @param value Object */ transformRawValue?( value?:any ): any; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form { export interface ITextArea extends Ext.form.field.IText { - /** [Config Option] (Number) An initial value for the 'cols' attribute on the textarea element. ... */ + /** [Config Option] (Number) */ cols?: number; - /** [Config Option] (String/Object) private The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layou... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) True if you want the ENTER key to be classed as a special key and the specialkey event to be fired when ENTER is pres... */ + /** [Config Option] (Boolean) */ enterIsSpecial?: bool; - /** [Config Option] (String) A string that will be appended to the field's current value for the purposes of calculating the target field size. ... */ + /** [Config Option] (String) */ growAppend?: string; - /** [Config Option] (Number) The maximum height to allow when grow=true ... */ + /** [Config Option] (Number) */ growMax?: number; - /** [Config Option] (Number) The minimum height to allow when grow=true ... */ + /** [Config Option] (Number) */ growMin?: number; - /** [Config Option] (Boolean) true to prevent scrollbars from appearing regardless of how much text is in the field. ... */ + /** [Config Option] (Boolean) */ preventScrollbars?: bool; - /** [Config Option] (Number) An initial value for the 'rows' attribute on the textarea element. ... */ + /** [Config Option] (Number) */ rows?: number; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; @@ -17015,57 +20986,57 @@ declare module Ext.form { autoSize?(): void; /** [Method] Invoked before the Component is destroyed */ beforeDestroy?(): void; - /** [Method] private Creates and returns the data object to be used when rendering the fieldSubTpl */ + /** [Method] private */ getSubTplData?(): any; /** [Method] Returns the current data value of the field */ getValue?(): any; /** [Method] Allows for any necessary modifications before the original value is set - * @param value Object The initial value + * @param value Object */ transformOriginalValue?( value?:any ): any; /** [Method] The following overrides deal with an issue whereby some browsers will strip carriage returns from the textarea input - * @param value Object The value + * @param value Object */ transformRawValue?( value?:any ): any; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form.field { export interface ITime extends Ext.form.field.IComboBox { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ + /** [Config Option] (String) */ altFormats?: string; - /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + /** [Config Option] (Number) */ increment?: number; - /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date/String) The maximum allowed time. ... */ + /** [Config Option] (Date/String) */ maxValue?: any; - /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Date/String) The minimum allowed time. ... */ + /** [Config Option] (Date/String) */ minValue?: any; - /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ + /** [Config Option] (Number) */ pickerMaxHeight?: number; - /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + /** [Config Option] (String) */ queryMode?: string; - /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + /** [Config Option] (Boolean) */ selectOnTab?: bool; - /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ + /** [Config Option] (Boolean) */ snapToIncrement?: bool; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + /** [Config Option] (String) */ submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ valueField?: string; /** [Method] Runs all of Time s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) @@ -17073,139 +21044,65 @@ declare module Ext.form.field { getErrors?( value?:any ): string[]; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Template method to do any post blur processing - * @param e Ext.IEventObject The event object - */ - postBlur?( e?:Ext.IEventObject ): void; + /** [Method] private */ + postBlur?(): void; /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type * @param rawValue Object */ rawToValue?( rawValue?:any ): any; /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range - * @param value String The maximum time that can be selected + * @param value Date/String The maximum time that can be selected */ + setMaxValue?( value?:any ): any; setMaxValue?( value?:string ): void; /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range - * @param value String The minimum time that can be selected + * @param value Date/String The minimum time that can be selected */ + setMinValue?( value?:any ): any; setMinValue?( value?:string ): void; - /** [Method] Sets the specified value s into the field - * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. - */ - setValue?( value?:any ): any; - setValue?( value?:string ): any; - setValue?( value?:string[] ): any; + /** [Method] Sets the specified value s into the field */ + setValue?(): any; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. - */ - valueToRaw?( value?:any ): any; - } -} -declare module Ext.form { - export interface ITime extends Ext.form.field.IComboBox { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ - altFormats?: string; - /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ - displayField?: string; - /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ - format?: string; - /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ - increment?: number; - /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ - invalidText?: string; - /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ - maxText?: string; - /** [Config Option] (Date/String) The maximum allowed time. ... */ - maxValue?: any; - /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ - minText?: string; - /** [Config Option] (Date/String) The minimum allowed time. ... */ - minValue?: any; - /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ - pickerMaxHeight?: number; - /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ - queryMode?: string; - /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ - selectOnTab?: bool; - /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ - snapToIncrement?: bool; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ - submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ - triggerCls?: string; - /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ - valueField?: string; - /** [Method] Runs all of Time s validations and returns an array of any errors - * @param value Object The value to get errors for (defaults to the current field value) - */ - getErrors?( value?:any ): string[]; - /** [Method] Returns the current data value of the field */ - getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Template method to do any post blur processing - * @param e Ext.IEventObject The event object - */ - postBlur?( e?:Ext.IEventObject ): void; - /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type - * @param rawValue Object - */ - rawToValue?( rawValue?:any ): any; - /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range - * @param value String The maximum time that can be selected - */ - setMaxValue?( value?:string ): void; - /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range - * @param value String The minimum time that can be selected - */ - setMinValue?( value?:string ): void; - /** [Method] Sets the specified value s into the field - * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. - */ - setValue?( value?:any ): any; - setValue?( value?:string ): any; - setValue?( value?:string[] ): any; - /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form { export interface ITimeField extends Ext.form.field.IComboBox { - /** [Config Option] (String) Multiple date formats separated by "|" to try when parsing a user input value and it doesn't match the defined format. ... */ + /** [Config Option] (String) */ altFormats?: string; - /** [Config Option] (String) The underlying data field name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + /** [Config Option] (Number) */ increment?: number; - /** [Config Option] (String) The error text to display when the time in the field is invalid. ... */ + /** [Config Option] (String) */ invalidText?: string; - /** [Config Option] (String) The error text to display when the entered time is after maxValue. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date/String) The maximum allowed time. ... */ + /** [Config Option] (Date/String) */ maxValue?: any; - /** [Config Option] (String) The error text to display when the entered time is before minValue. ... */ + /** [Config Option] (String) */ minText?: string; - /** [Config Option] (Date/String) The minimum allowed time. ... */ + /** [Config Option] (Date/String) */ minValue?: any; - /** [Config Option] (Number) The maximum height of the Ext.picker.Time dropdown. ... */ + /** [Config Option] (Number) */ pickerMaxHeight?: number; - /** [Config Option] (String) The mode in which the ComboBox uses the configured Store. ... */ + /** [Config Option] (String) */ queryMode?: string; - /** [Config Option] (Boolean) Whether the Tab key should select the currently highlighted item. ... */ + /** [Config Option] (Boolean) */ selectOnTab?: bool; - /** [Config Option] (Boolean) Specify as true to enforce that only values on the increment boundary are accepted. ... */ + /** [Config Option] (Boolean) */ snapToIncrement?: bool; - /** [Config Option] (String) The date format string which will be submitted to the server. ... */ + /** [Config Option] (String) */ submitFormat?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (String) The underlying data value name to bind to this ComboBox. ... */ + /** [Config Option] (String) */ valueField?: string; /** [Method] Runs all of Time s validations and returns an array of any errors * @param value Object The value to get errors for (defaults to the current field value) @@ -17213,142 +21110,142 @@ declare module Ext.form { getErrors?( value?:any ): string[]; /** [Method] Returns the current data value of the field */ getValue?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Template method to do any post blur processing - * @param e Ext.IEventObject The event object - */ - postBlur?( e?:Ext.IEventObject ): void; + /** [Method] private */ + postBlur?(): void; /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type * @param rawValue Object */ rawToValue?( rawValue?:any ): any; /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range - * @param value String The maximum time that can be selected + * @param value Date/String The maximum time that can be selected */ + setMaxValue?( value?:any ): any; setMaxValue?( value?:string ): void; /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range - * @param value String The minimum time that can be selected + * @param value Date/String The minimum time that can be selected */ + setMinValue?( value?:any ): any; setMinValue?( value?:string ): void; - /** [Method] Sets the specified value s into the field - * @param value any The value(s) to be set. Can be either a single String or Ext.data.Model, or an Array of Strings or Models. - */ - setValue?( value?:any ): any; - setValue?( value?:string ): any; - setValue?( value?:string[] ): any; + /** [Method] Sets the specified value s into the field */ + setValue?(): any; /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field - * @param value Object The mixed-type value to convert to the raw representation. + * @param value Object + */ + valueToRaw?( value?:any ): any; + } +} +declare module Ext.form { + export interface ITime extends Ext.form.field.IComboBox { + /** [Config Option] (String) */ + altFormats?: string; + /** [Config Option] (String) */ + displayField?: string; + /** [Config Option] (String) */ + format?: string; + /** [Config Option] (Number) */ + increment?: number; + /** [Config Option] (String) */ + invalidText?: string; + /** [Config Option] (String) */ + maxText?: string; + /** [Config Option] (Date/String) */ + maxValue?: any; + /** [Config Option] (String) */ + minText?: string; + /** [Config Option] (Date/String) */ + minValue?: any; + /** [Config Option] (Number) */ + pickerMaxHeight?: number; + /** [Config Option] (String) */ + queryMode?: string; + /** [Config Option] (Boolean) */ + selectOnTab?: bool; + /** [Config Option] (Boolean) */ + snapToIncrement?: bool; + /** [Config Option] (String) */ + submitFormat?: string; + /** [Config Option] (String) */ + triggerCls?: string; + /** [Config Option] (String) */ + valueField?: string; + /** [Method] Runs all of Time s validations and returns an array of any errors + * @param value Object The value to get errors for (defaults to the current field value) + */ + getErrors?( value?:any ): string[]; + /** [Method] Returns the current data value of the field */ + getValue?(): any; + /** [Method] private */ + initComponent?(): void; + /** [Method] private */ + postBlur?(): void; + /** [Method] Converts a raw input field value into a mixed type value that is suitable for this particular field type + * @param rawValue Object + */ + rawToValue?( rawValue?:any ): any; + /** [Method] Replaces any existing maxValue with the new time and refreshes the picker s range + * @param value Date/String The maximum time that can be selected + */ + setMaxValue?( value?:any ): any; + setMaxValue?( value?:string ): void; + /** [Method] Replaces any existing minValue with the new time and refreshes the picker s range + * @param value Date/String The minimum time that can be selected + */ + setMinValue?( value?:any ): any; + setMinValue?( value?:string ): void; + /** [Method] Sets the specified value s into the field */ + setValue?(): any; + /** [Method] Converts a mixed type value to a raw representation suitable for displaying in the field + * @param value Object */ valueToRaw?( value?:any ): any; } } declare module Ext.form.field { export interface ITrigger extends Ext.form.field.IText { - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + /** [Config Option] (Boolean) */ editable?: bool; - /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + /** [Config Option] (Boolean) */ hideTrigger?: bool; - /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + /** [Config Option] (Boolean) */ repeatTriggerClick?: bool; - /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + /** [Config Option] (Boolean) */ selectOnFocus?: bool; - /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + /** [Config Option] (String) */ triggerBaseCls?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + /** [Config Option] (String) */ triggerNoEditCls?: string; - /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + /** [Config Option] (String) */ triggerWrapCls?: string; - /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + /** [Property] (Ext.Element) */ inputCell?: Ext.IElement; - /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + /** [Property] (Ext.CompositeElement) */ triggerEl?: Ext.ICompositeElement; - /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + /** [Property] (Ext.Element) */ triggerWrap?: Ext.IElement; /** [Method] Generates the arguments for the field decorations rendering template */ getLabelableRenderData?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; /** [Method] Get the total width of the trigger button area */ getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] private */ + onRender?(): void; /** [Method] The function that should handle the trigger s click event - * @param e Ext.IEventObject - */ - onTriggerClick?( e?:Ext.IEventObject ): void; - /** [Method] Sets the editable state of this field - * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. - */ - setEditable?( editable?:bool ): void; - /** [Method] Sets the read only state of this field - * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. - */ - setReadOnly?( readOnly?:bool ): void; - } -} -declare module Ext.form { - export interface ITrigger extends Ext.form.field.IText { - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ - componentLayout?: any; - /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ - editable?: bool; - /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ - hideTrigger?: bool; - /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ - readOnly?: bool; - /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ - repeatTriggerClick?: bool; - /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ - selectOnFocus?: bool; - /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ - triggerBaseCls?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ - triggerCls?: string; - /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ - triggerNoEditCls?: string; - /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ - triggerWrapCls?: string; - /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ - inputCell?: Ext.IElement; - /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ - triggerEl?: Ext.ICompositeElement; - /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ - triggerWrap?: Ext.IElement; - /** [Method] Generates the arguments for the field decorations rendering template */ - getLabelableRenderData?(): any; - /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ - getSubTplData?(): any; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; - /** [Method] Get the total width of the trigger button area */ - getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] The function that should handle the trigger s click event - * @param e Ext.IEventObject + * @param e Ext.EventObject */ onTriggerClick?( e?:Ext.IEventObject ): void; /** [Method] Sets the editable state of this field @@ -17363,51 +21260,48 @@ declare module Ext.form { } declare module Ext.form { export interface ITriggerField extends Ext.form.field.IText { - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + /** [Config Option] (Boolean) */ editable?: bool; - /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + /** [Config Option] (Boolean) */ hideTrigger?: bool; - /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + /** [Config Option] (Boolean) */ repeatTriggerClick?: bool; - /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + /** [Config Option] (Boolean) */ selectOnFocus?: bool; - /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + /** [Config Option] (String) */ triggerBaseCls?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + /** [Config Option] (String) */ triggerNoEditCls?: string; - /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + /** [Config Option] (String) */ triggerWrapCls?: string; - /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + /** [Property] (Ext.Element) */ inputCell?: Ext.IElement; - /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + /** [Property] (Ext.CompositeElement) */ triggerEl?: Ext.ICompositeElement; - /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + /** [Property] (Ext.Element) */ triggerWrap?: Ext.IElement; /** [Method] Generates the arguments for the field decorations rendering template */ getLabelableRenderData?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; /** [Method] Get the total width of the trigger button area */ getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] private */ + onRender?(): void; /** [Method] The function that should handle the trigger s click event - * @param e Ext.IEventObject + * @param e Ext.EventObject */ onTriggerClick?( e?:Ext.IEventObject ): void; /** [Method] Sets the editable state of this field @@ -17422,51 +21316,104 @@ declare module Ext.form { } declare module Ext.form { export interface ITwinTriggerField extends Ext.form.field.IText { - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) false to prevent the user from typing text directly into the field; the field can only have its value set via an acti... */ + /** [Config Option] (Boolean) */ editable?: bool; - /** [Config Option] (Boolean) true to hide the trigger element and display only the base text field ... */ + /** [Config Option] (Boolean) */ hideTrigger?: bool; - /** [Config Option] (Boolean) true to prevent the user from changing the field, and hides the trigger. ... */ + /** [Config Option] (Boolean) */ readOnly?: bool; - /** [Config Option] (Boolean) true to attach a click repeater to the trigger. ... */ + /** [Config Option] (Boolean) */ repeatTriggerClick?: bool; - /** [Config Option] (Boolean) true to select any existing text in the field immediately on focus. ... */ + /** [Config Option] (Boolean) */ selectOnFocus?: bool; - /** [Config Option] (String) The base CSS class that is always added to the trigger button. ... */ + /** [Config Option] (String) */ triggerBaseCls?: string; - /** [Config Option] (String) An additional CSS class used to style the trigger button. ... */ + /** [Config Option] (String) */ triggerCls?: string; - /** [Config Option] (String) The CSS class that is added to the text field when component is read-only or not editable. ... */ + /** [Config Option] (String) */ triggerNoEditCls?: string; - /** [Config Option] (String) The CSS class that is added to the div wrapping the trigger button(s). ... */ + /** [Config Option] (String) */ triggerWrapCls?: string; - /** [Property] (Ext.Element) A reference to the TD element wrapping the input element. ... */ + /** [Property] (Ext.Element) */ inputCell?: Ext.IElement; - /** [Property] (Ext.CompositeElement) A composite of all the trigger button elements. ... */ + /** [Property] (Ext.CompositeElement) */ triggerEl?: Ext.ICompositeElement; - /** [Property] (Ext.Element) A reference to the TABLE element which encapsulates the input field and all trigger button(s). ... */ + /** [Property] (Ext.Element) */ triggerWrap?: Ext.IElement; /** [Method] Generates the arguments for the field decorations rendering template */ getLabelableRenderData?(): any; /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ getSubTplData?(): any; - /** [Method] Gets the markup to be inserted into the outer template s bodyEl */ - getSubTplMarkup?(): void; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; /** [Method] Get the total width of the trigger button area */ getTriggerWidth?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] private */ + onRender?(): void; /** [Method] The function that should handle the trigger s click event - * @param e Ext.IEventObject + * @param e Ext.EventObject + */ + onTriggerClick?( e?:Ext.IEventObject ): void; + /** [Method] Sets the editable state of this field + * @param editable Boolean True to allow the user to directly edit the field text. If false is passed, the user will only be able to modify the field using the trigger. Will also add a click event to the text field which will call the trigger. + */ + setEditable?( editable?:bool ): void; + /** [Method] Sets the read only state of this field + * @param readOnly Boolean True to prevent the user changing the field and explicitly hide the trigger. Setting this to true will supercede settings editable and hideTrigger. Setting this to false will defer back to editable and hideTrigger. + */ + setReadOnly?( readOnly?:bool ): void; + } +} +declare module Ext.form { + export interface ITrigger extends Ext.form.field.IText { + /** [Config Option] (String/Object) */ + componentLayout?: any; + /** [Config Option] (Boolean) */ + editable?: bool; + /** [Config Option] (Boolean) */ + hideTrigger?: bool; + /** [Config Option] (Boolean) */ + readOnly?: bool; + /** [Config Option] (Boolean) */ + repeatTriggerClick?: bool; + /** [Config Option] (Boolean) */ + selectOnFocus?: bool; + /** [Config Option] (String) */ + triggerBaseCls?: string; + /** [Config Option] (String) */ + triggerCls?: string; + /** [Config Option] (String) */ + triggerNoEditCls?: string; + /** [Config Option] (String) */ + triggerWrapCls?: string; + /** [Property] (Ext.Element) */ + inputCell?: Ext.IElement; + /** [Property] (Ext.CompositeElement) */ + triggerEl?: Ext.ICompositeElement; + /** [Property] (Ext.Element) */ + triggerWrap?: Ext.IElement; + /** [Method] Generates the arguments for the field decorations rendering template */ + getLabelableRenderData?(): any; + /** [Method] Creates and returns the data object to be used when rendering the fieldSubTpl */ + getSubTplData?(): any; + /** [Method] Gets the markup to be inserted into the outer template s bodyEl + * @param values Object + */ + getSubTplMarkup?( values?:any ): void; + /** [Method] Get the total width of the trigger button area */ + getTriggerWidth?(): number; + /** [Method] private */ + initComponent?(): void; + /** [Method] private */ + onRender?(): void; + /** [Method] The function that should handle the trigger s click event + * @param e Ext.EventObject */ onTriggerClick?( e?:Ext.IEventObject ): void; /** [Method] Sets the editable state of this field @@ -17491,14 +21438,62 @@ declare module Ext.form.field { * @param value String The value */ static alphanum( value?:string ): bool; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] The function used to validate email addresses * @param value String The email address */ static email( value?:string ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] The function used to validate URLs * @param value String The URL */ static url( value?:string ): bool; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.form { @@ -17513,54 +21508,104 @@ declare module Ext.form { * @param value String The value */ static alphanum( value?:string ): bool; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] The function used to validate email addresses * @param value String The email address */ static email( value?:string ): bool; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] The function used to validate URLs * @param value String The URL */ static url( value?:string ): bool; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.form { export interface IFieldAncestor extends Ext.IBase { - /** [Config Option] (Object) If specified, the properties in this object are used as default config values for each Ext.form.Labelable instance (e.g. ... */ + /** [Config Option] (Object) */ fieldDefaults?: any; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Fired when the error message of any field within the container changes - * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param field Ext.form.Labelable The sub-field whose active error changed * @param error String The new active error message */ onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; } } declare module Ext.form { - export interface IFieldContainer extends Ext.container.IContainer,Ext.form.IFieldAncestor,Ext.form.ILabelable { - /** [Config Option] (Boolean) If set to true, the field container will automatically combine and display the validation errors from all the fields ... */ + export interface IFieldContainer extends Ext.container.IContainer,Ext.form.ILabelable,Ext.form.IFieldAncestor { + /** [Config Option] (Boolean) */ combineErrors?: bool; - /** [Config Option] (Boolean) If set to true, and there is no defined fieldLabel, the field container will automatically generate its label by comb... */ + /** [Config Option] (Boolean) */ combineLabels?: bool; - /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The string to use when joining the labels of individual sub-fields, when combineLabels is set to true. ... */ + /** [Config Option] (String) */ + invalidCls?: string; + /** [Config Option] (String) */ labelConnector?: string; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; /** [Method] Gets the active error message for this component if any */ getActiveError?(): string; /** [Method] Gets an Array of any active error messages currently applied to the field */ getActiveErrors?(): string[]; /** [Method] Takes an Array of invalid Ext form field Field objects and builds a combined list of error messages from them - * @param invalidFields Ext.form.field.IField[] An Array of the sub-fields which are currently invalid. + * @param invalidFields Ext.form.field.Field[] An Array of the sub-fields which are currently invalid. */ getCombinedErrors?( invalidFields?:Ext.form.field.IField[] ): string[]; /** [Method] Returns the combined field label if combineLabels is set to true and if there is no set fieldLabel */ @@ -17577,8 +21622,6 @@ declare module Ext.form { hasActiveError?(): bool; /** [Method] Checks if the field has a visible label */ hasVisibleLabel?(): bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Performs initialization of this mixin */ @@ -17586,16 +21629,16 @@ declare module Ext.form { /** [Method] Initialized the renderData to be used when rendering the renderTpl */ initRenderData?(): any; /** [Method] Called when a Ext form Labelable instance is added to the container s subtree - * @param labelable Ext.form.ILabelable The instance that was added + * @param labelable Ext.form.Labelable The instance that was added */ onAdd?( labelable?:Ext.form.ILabelable ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; /** [Method] Called when a Ext form Labelable instance is removed from the container s subtree - * @param labelable Ext.form.ILabelable The instance that was removed + * @param labelable Ext.form.Labelable The instance that was removed */ onRemove?( labelable?:Ext.form.ILabelable ): void; /** [Method] Sets the active error message to the given string @@ -17622,39 +21665,37 @@ declare module Ext.form { } declare module Ext.form { export interface IFieldSet extends Ext.container.IContainer,Ext.form.IFieldAncestor { - /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + /** [Config Option] (String/Object) */ autoEl?: any; - /** [Config Option] (String) The base CSS class applied to the fieldset. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ - border?: any; /** [Config Option] (String) */ checkboxName?: string; - /** [Config Option] (Boolean) Set to true to render a checkbox into the fieldset frame just in front of the legend to expand/collapse the fieldset ... */ + /** [Config Option] (Boolean) */ checkboxToggle?: bool; - /** [Config Option] (Boolean) Set to true to render the fieldset as collapsed by default. ... */ + /** [Config Option] (Boolean) */ collapsed?: bool; - /** [Config Option] (Boolean) Set to true to make the fieldset collapsible and have the expand/collapse toggle button automatically rendered into t... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the fieldset's immediate child items. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String[]) An array of events that, when fired, should trigger this object to save its state. ... */ + /** [Config Option] (String[]) */ stateEvents?: string[]; - /** [Config Option] (String) A title to be displayed in the fieldset's legend. ... */ + /** [Config Option] (String) */ title?: string; - /** [Config Option] (Boolean) Set to true will add a listener to the titleCmp property for the click event which will execute the toggle method. ... */ + /** [Config Option] (Boolean) */ toggleOnTitleClick?: bool; - /** [Property] (Ext.form.field.Checkbox) Refers to the Ext.form.field.Checkbox component that is added next to the title in the legend. ... */ + /** [Property] (Ext.form.field.Checkbox) */ checkboxCmp?: Ext.form.field.ICheckbox; - /** [Property] (Ext.Component) The component for the fieldset's legend. ... */ + /** [Property] (Ext.Component) */ legend?: Ext.IComponent; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; - /** [Property] (Ext.panel.Tool) Refers to the Ext.panel.Tool component that is added as the collapse/expand button next to the title in the legend. ... */ + /** [Property] (Ext.panel.Tool) */ toggleCmp?: Ext.panel.ITool; /** [Method] Collapses the fieldset */ collapse?(): Ext.form.IFieldSet; @@ -17672,17 +21713,15 @@ declare module Ext.form { getRefItems?( deep?:any ): void; /** [Method] The supplied default state gathering method for the AbstractComponent class */ getState?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Fired when the error message of any field within the container changes - * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param field Ext.form.Labelable The sub-field whose active error changed * @param error String The new active error message */ onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; @@ -17696,13 +21735,13 @@ declare module Ext.form { } declare module Ext.form { export interface ILabel extends Ext.IComponent { - /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + /** [Config Option] (String/Object) */ autoEl?: any; - /** [Config Option] (String) The id of the input element to which this label will be bound via the standard HTML 'for' attribute. ... */ + /** [Config Option] (String) */ forId?: string; - /** [Config Option] (String) An HTML fragment that will be used as the label's innerHTML. ... */ + /** [Config Option] (String) */ html?: string; - /** [Config Option] (String) The plain text to display within the label. ... */ + /** [Config Option] (String) */ text?: string; /** [Method] Updates the label s innerHTML with the specified string * @param text String The new label text @@ -17713,75 +21752,75 @@ declare module Ext.form { } declare module Ext.form { export interface ILabelable extends Ext.IBase { - /** [Config Option] (String) If specified, then the component will be displayed with this value as its active error when first rendered. ... */ + /** [Config Option] (String) */ activeError?: string; - /** [Config Option] (String/String[]/Ext.XTemplate) The template used to format the Array of error messages passed to setActiveErrors into a single HTML string. ... */ + /** [Config Option] (String/String[]/Ext.XTemplate) */ activeErrorsTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup at the end of the input containing element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterBodyEl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterLabelTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup after the subTpl markup. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ afterSubTpl?: any; - /** [Config Option] (Boolean) Whether to adjust the component's body area to make room for 'side' or 'under' error messages. ... */ + /** [Config Option] (Boolean) */ autoFitErrors?: bool; - /** [Config Option] (String) The CSS class to be applied to the body content element. ... */ + /** [Config Option] (String) */ baseBodyCls?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup at the beginning of the input containing ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeBodyEl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the label text. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeLabelTextTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the label element. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeLabelTpl?: any; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup before the subTpl markup. ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ beforeSubTpl?: any; - /** [Config Option] (String) The CSS class to be applied to the special clearing div rendered directly after the field contents wrapper to provide... */ + /** [Config Option] (String) */ clearCls?: string; - /** [Config Option] (String) The CSS class to be applied to the error message element. ... */ + /** [Config Option] (String) */ errorMsgCls?: string; - /** [Config Option] (String) An extra CSS class to be applied to the body content element in addition to baseBodyCls. ... */ + /** [Config Option] (String) */ fieldBodyCls?: string; - /** [Config Option] (String) The label for the field. ... */ + /** [Config Option] (String) */ fieldLabel?: string; - /** [Config Option] (String) A CSS class to be applied to the outermost element to denote that it is participating in the form field layout. ... */ + /** [Config Option] (String) */ formItemCls?: string; - /** [Config Option] (Boolean) When set to true, the label element (fieldLabel and labelSeparator) will be automatically hidden if the fieldLabel is... */ + /** [Config Option] (Boolean) */ hideEmptyLabel?: bool; - /** [Config Option] (Boolean) Set to true to completely hide the label element (fieldLabel and labelSeparator). ... */ + /** [Config Option] (Boolean) */ hideLabel?: bool; - /** [Config Option] (String) The CSS class to use when marking the component invalid. ... */ + /** [Config Option] (String) */ invalidCls?: string; - /** [Config Option] (String) Controls the position and alignment of the fieldLabel. ... */ + /** [Config Option] (String) */ labelAlign?: string; - /** [Config Option] (String/Array/Ext.XTemplate) An optional string or XTemplate configuration to insert in the field markup inside the label element (as attributes). ... */ + /** [Config Option] (String/Array/Ext.XTemplate) */ labelAttrTpl?: any; - /** [Config Option] (String) The CSS class to be applied to the label element. ... */ + /** [Config Option] (String) */ labelCls?: string; - /** [Config Option] (String) An optional string of one or more additional CSS classes to add to the label element. ... */ + /** [Config Option] (String) */ labelClsExtra?: string; - /** [Config Option] (Number) The amount of space in pixels between the fieldLabel and the input field. ... */ + /** [Config Option] (Number) */ labelPad?: number; - /** [Config Option] (String) Character(s) to be inserted at the end of the label text. ... */ + /** [Config Option] (String) */ labelSeparator?: string; /** [Config Option] (String) */ labelStyle?: string; - /** [Config Option] (Number) The width of the fieldLabel in pixels. ... */ + /** [Config Option] (Number) */ labelWidth?: number; - /** [Config Option] (String) The location where the error message text should display. ... */ + /** [Config Option] (String) */ msgTarget?: string; - /** [Config Option] (Boolean) true to disable displaying any error message set on this object. ... */ + /** [Config Option] (Boolean) */ preventMark?: bool; - /** [Property] (Ext.Element) The div Element wrapping the component's contents. ... */ + /** [Property] (Ext.Element) */ bodyEl?: Ext.IElement; - /** [Property] (Ext.Element) The div Element that will contain the component's error message(s). ... */ + /** [Property] (Ext.Element) */ errorEl?: Ext.IElement; - /** [Property] (Boolean) Flag denoting that this object is labelable as a field. ... */ + /** [Property] (Boolean) */ isFieldLabelable?: bool; - /** [Property] (Ext.Element) The <TD> Element which contains the label Element for this component. ... */ + /** [Property] (Ext.Element) */ labelCell?: Ext.IElement; - /** [Property] (Ext.Element) The label Element for this component. ... */ + /** [Property] (Ext.Element) */ labelEl?: Ext.IElement; /** [Method] Gets the active error message for this component if any */ getActiveError?(): string; @@ -17827,11 +21866,11 @@ declare module Ext.form { } declare module Ext.form { export interface IPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { - /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + /** [Config Option] (Boolean) */ pollForChanges?: bool; - /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + /** [Config Option] (Number) */ pollInterval?: number; /** [Method] Forces each field within the form panel to check if its value has changed */ checkChange?(): void; @@ -17848,8 +21887,6 @@ declare module Ext.form { getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; /** [Method] Convenience function to check if the form has any invalid fields */ hasInvalidField?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Convenience function to check if the form has any dirty fields */ @@ -17861,16 +21898,16 @@ declare module Ext.form { */ load?( options?:any ): void; /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad - * @param record Ext.data.IModel The record to load + * @param record Ext.data.Model The record to load */ loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; /** [Method] Fired when the error message of any field within the container changes - * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param field Ext.form.Labelable The sub-field whose active error changed * @param error String The new active error message */ onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; @@ -17884,15 +21921,19 @@ declare module Ext.form { * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) */ submit?( options?:any ): void; + /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block + * @param record Ext.data.Model The record to edit + */ + updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; } } declare module Ext { export interface IFormPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { - /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + /** [Config Option] (Boolean) */ pollForChanges?: bool; - /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + /** [Config Option] (Number) */ pollInterval?: number; /** [Method] Forces each field within the form panel to check if its value has changed */ checkChange?(): void; @@ -17909,8 +21950,6 @@ declare module Ext { getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; /** [Method] Convenience function to check if the form has any invalid fields */ hasInvalidField?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Convenience function to check if the form has any dirty fields */ @@ -17922,16 +21961,16 @@ declare module Ext { */ load?( options?:any ): void; /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad - * @param record Ext.data.IModel The record to load + * @param record Ext.data.Model The record to load */ loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; /** [Method] Fired when the error message of any field within the container changes - * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param field Ext.form.Labelable The sub-field whose active error changed * @param error String The new active error message */ onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; @@ -17945,15 +21984,19 @@ declare module Ext { * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) */ submit?( options?:any ): void; + /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block + * @param record Ext.data.Model The record to edit + */ + updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; } } declare module Ext.form { export interface IFormPanel extends Ext.panel.IPanel,Ext.form.IFieldAncestor { - /** [Config Option] (Ext.enums.Layout/Object) The Ext.container.Container.layout for the form panel's immediate child items. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean) If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked ... */ + /** [Config Option] (Boolean) */ pollForChanges?: bool; - /** [Config Option] (Number) Interval in milliseconds at which the form's fields are checked for value changes. ... */ + /** [Config Option] (Number) */ pollInterval?: number; /** [Method] Forces each field within the form panel to check if its value has changed */ checkChange?(): void; @@ -17970,8 +22013,6 @@ declare module Ext.form { getValues?( asString?:bool, dirtyOnly?:bool, includeEmptyText?:bool, useDataValues?:bool ): any; /** [Method] Convenience function to check if the form has any invalid fields */ hasInvalidField?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Initializes the FieldAncestor s state this must be called from the initComponent method of any components importing */ initFieldAncestor?(): void; /** [Method] Convenience function to check if the form has any dirty fields */ @@ -17983,16 +22024,16 @@ declare module Ext.form { */ load?( options?:any ): void; /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad - * @param record Ext.data.IModel The record to load + * @param record Ext.data.Model The record to load */ loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; /** [Method] Fired when the error message of any field within the container changes - * @param field Ext.form.ILabelable The sub-field whose active error changed + * @param field Ext.form.Labelable The sub-field whose active error changed * @param error String The new active error message */ onFieldErrorChange?( field?:Ext.form.ILabelable, error?:string ): void; /** [Method] Fired when the validity of any field within the container changes - * @param field Ext.form.field.IField The sub-field whose validity changed + * @param field Ext.form.field.Field The sub-field whose validity changed * @param valid Boolean The new validity state */ onFieldValidityChange?( field?:Ext.form.field.IField, valid?:bool ): void; @@ -18006,15 +22047,19 @@ declare module Ext.form { * @param options Object The options to pass to the action (see Ext.form.Basic.submit and Ext.form.Basic.doAction for details) */ submit?( options?:any ): void; + /** [Method] Persists the values in this form into the passed Ext data Model object in a beginEdit endEdit block + * @param record Ext.data.Model The record to edit + */ + updateRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; } } declare module Ext.form { export interface IRadioGroup extends Ext.form.ICheckboxGroup { - /** [Config Option] (Boolean) True to allow every item in the group to be blank. ... */ + /** [Config Option] (Boolean) */ allowBlank?: bool; - /** [Config Option] (String) Error text to display if the allowBlank validation fails ... */ + /** [Config Option] (String) */ blankText?: string; - /** [Config Option] (String) private The default xtype of child Components to create in this Container when a child item is specified as a raw co... */ + /** [Config Option] (String) */ defaultType?: string; /** [Config Option] (Ext.form.field.Radio[]/Object[]) */ items?: any; @@ -18030,6 +22075,356 @@ declare module Ext.form { export interface IRadioManager extends Ext.util.IMixedCollection { } export class RadioManager { + /** [Method] Adds an item to the collection + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param obj Object The item to add. + */ + static add( key?:any, obj?:any ): any; + /** [Method] Adds all elements of an Array or an Object to the collection + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + */ + static addAll( objs?:any ): void; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Removes all items from the collection */ + static clear(): void; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Creates a shallow copy of this collection */ + static clone(): Ext.util.IMixedCollection; + /** [Method] Collects unique values of a particular property in this MixedCollection + * @param property String The property to collect on + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param allowBlank Boolean Pass true to allow null, undefined or empty string values + */ + static collect( property?:string, root?:string, allowBlank?:bool ): any[]; + /** [Method] Returns true if the collection contains the passed Object as an item + * @param o Object The Object to look for in the collection. + */ + static contains( o?:any ): bool; + /** [Method] Returns true if the collection contains the passed Object as a key + * @param key String The key to look for in the collection. + */ + static containsKey( key?:string ): bool; + /** [Method] Executes the specified function once for every item in the collection + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current item in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every key in the collection passing each key and its associated item as th + * @param fn Function The function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static eachKey( fn?:any, scope?:any ): void; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static filter( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; + static filter( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:Ext.util.IFilter[], value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + static filter( property?:string, value?:RegExp, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; + /** [Method] Filter by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + */ + static filterBy( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + static find(): void; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function + * @param fn Function The selection function to execute for each item. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. + */ + static findBy( fn?:any, scope?:any ): any; + /** [Method] Finds the index of the first matching object in this collection by a specific property value + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. + */ + static findIndex( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; + static findIndex( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + static findIndex( property?:string, value?:RegExp, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; + /** [Method] Find the index of the first matching object in this collection by a function + * @param fn Function The function to be called. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. + * @param start Number The index to start searching at. + */ + static findIndexBy( fn?:any, scope?:any, start?:number ): number; + /** [Method] Calculates the insertion index of the new item based upon the comparison function passed or the current sort order + * @param newItem Object The new object to find the insertion position of. + * @param sorterFn Function The function to sort by. This is the same as the sorting function passed to sortBy. It accepts 2 items from this MixedCollection, and returns -1 0, or 1 depending on the relative sort positions of the 2 compared items. If omitted, a function generated from the currently defined set of sorters will be used. + */ + static findInsertionIndex( newItem?:any, sorterFn?:any ): number; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Returns the first item in the collection */ + static first(): any; + /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ + static generateComparator(): void; + /** [Method] Returns the item associated with the passed key OR index + * @param key String/Number The key or index of the item. + */ + static get( key?:any ): any; + static get( key?:string ): any; + static get( key?:number ): any; + /** [Method] Returns the item at the specified index + * @param index Number The index of the item. + */ + static getAt( index?:number ): any; + /** [Method] Returns the item associated with the passed key + * @param key String/Number The key of the item. + */ + static getByKey( key?:any ): any; + static getByKey( key?:string ): any; + static getByKey( key?:number ): any; + /** [Method] Returns the number of items in the collection */ + static getCount(): number; + /** [Method] Gets the first sorter from the sorters collection excluding any groupers that may be in place */ + static getFirstSorter(): Ext.util.ISorter; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] A function which will be called passing a newly added object when the object is added without a separate id + * @param item Object The item for which to find the key. + */ + static getKey( item?:any ): any; + /** [Method] Returns a range of items in this collection + * @param startIndex Number The starting index. Defaults to 0. + * @param endIndex Number The ending index. Defaults to the last item. + */ + static getRange( startIndex?:number, endIndex?:number ): any[]; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Returns index within the collection of the passed Object + * @param o Object The item to find the index of. + */ + static indexOf( o?:any ): number; + /** [Method] Returns index within the collection of the passed key + * @param key String The key to find the index of. + */ + static indexOfKey( key?:string ): number; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Performs initialization of this mixin */ + static initSortable(): void; + /** [Method] Inserts an item at the specified index in the collection + * @param index Number The index to insert the item at. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + */ + static insert( index?:number, key?:any, o?:any ): any; + /** [Method] Returns the last item in the collection */ + static last(): any; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Remove an item from the collection + * @param o Object The item to remove. + */ + static remove( o?:any ): any; + /** [Method] Remove all items in the collection + * @param items Array An array of items to be removed. + */ + static removeAll( items?:any[] ): Ext.util.IMixedCollection; + /** [Method] Remove an item from a specified index in the collection + * @param index Number The index within the collection of the item to remove. + */ + static removeAt( index?:number ): any; + /** [Method] Removes an item associated with the passed key fom the collection + * @param key String The key of the item to remove. If null is passed, all objects which yielded no key from the configured getKey function are removed. + */ + static removeAtKey( key?:string ): any; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Remove a range of items starting at a specified index in the collection + * @param index Number The index within the collection of the item to remove. + * @param removeCount Number The nuber of items to remove beginning at the specified index. + */ + static removeRange( index?:number, removeCount?:number ): any; + /** [Method] Reorders each of the items based on a mapping from old index to new index + * @param mapping Object Mapping from old item index to new item index + */ + static reorder( mapping?:any ): void; + /** [Method] Replaces an item in the collection + * @param key String The key associated with the item to replace, or the replacement item. If you supplied a getKey implementation for this MixedCollection, or if the key of your stored items is in a property called id, then the MixedCollection will be able to derive the key of the replacement item. If you want to replace an item with one having the same key value, then just pass the replacement item in this parameter. + * @param o Object {Object} o (optional) If the first parameter passed was a key, the item to associate with that key. + */ + static replace( key?:string, o?:any ): any; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Sorts the data in the Store by one or more of its properties + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. + */ + static sort( sorters?:any, direction?:any ): any; + static sort( sorters?:string, direction?:string ): Ext.util.ISorter[]; + static sort( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Sorts the collection by a single sorter function + * @param sorterFn Function The function to sort by + */ + static sortBy( sorterFn?:any ): void; + /** [Method] Sorts this collection by keys + * @param direction String 'ASC' or 'DESC'. Defaults to 'ASC'. + * @param fn Function Comparison function that defines the sort order. Defaults to sorting by case insensitive string. + */ + static sortByKey( direction?:string, fn?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Collects all of the values of the given property and returns their sum + * @param property String The property to sum by + * @param root String 'root' property to extract the first argument from. This is used mainly when summing fields in records, where the fields are all stored inside the 'data' object + * @param start Number The record index to start at + * @param end Number The record index to end at + */ + static sum( property?:string, root?:string, start?:number, end?:number ): number; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Change the key for an existing item in the collection + * @param oldKey Object The old key + * @param newKey Object The new key + */ + static updateKey( oldKey?:any, newKey?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { @@ -18037,15 +22432,15 @@ declare module Ext { } export class Function { /** [Method] Create an alias to the provided method property with name methodName of object - * @param object any + * @param object Object/Function * @param methodName String */ static alias( object?:any, methodName?:string ): any; /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the - * @param fn any The function to delegate. - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to delegate. + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ static bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; static bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; @@ -18062,11 +22457,11 @@ declare module Ext { */ static createBuffered( fn?:any, buffer?:number, scope?:any, args?:any[] ): any; /** [Method] Creates a delegate callback which when called executes after a specific delay - * @param fn any The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. - * @param delay any The number of milliseconds to defer execution by whenever called. - * @param scope any The scope (this reference) used by the function at execution time. - * @param args any Override arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. + * @param fn Function The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. + * @param delay Number The number of milliseconds to defer execution by whenever called. + * @param scope Object The scope (this reference) used by the function at execution time. + * @param args Array Override arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. */ static createDelayed( fn?:any, delay?:any, scope?:any, args?:any, appendArgs?:any ): any; static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:bool ): any; @@ -18091,11 +22486,11 @@ declare module Ext { */ static createThrottled( fn?:any, interval?:number, scope?:any ): any; /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope - * @param fn any The function to defer. - * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to defer. + * @param millis Number The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ static defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; @@ -18131,15 +22526,15 @@ declare module Ext.util { } export class Functions { /** [Method] Create an alias to the provided method property with name methodName of object - * @param object any + * @param object Object/Function * @param methodName String */ static alias( object?:any, methodName?:string ): any; /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the - * @param fn any The function to delegate. - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to delegate. + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ static bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; static bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; @@ -18156,11 +22551,11 @@ declare module Ext.util { */ static createBuffered( fn?:any, buffer?:number, scope?:any, args?:any[] ): any; /** [Method] Creates a delegate callback which when called executes after a specific delay - * @param fn any The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. - * @param delay any The number of milliseconds to defer execution by whenever called. - * @param scope any The scope (this reference) used by the function at execution time. - * @param args any Override arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. + * @param fn Function The function which will be called on a delay when the returned function is called. Optionally, a replacement (or additional) argument list may be specified. + * @param delay Number The number of milliseconds to defer execution by whenever called. + * @param scope Object The scope (this reference) used by the function at execution time. + * @param args Array Override arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position. */ static createDelayed( fn?:any, delay?:any, scope?:any, args?:any, appendArgs?:any ): any; static createDelayed( fn?:any, delay?:number, scope?:any, args?:any[], appendArgs?:bool ): any; @@ -18185,11 +22580,11 @@ declare module Ext.util { */ static createThrottled( fn?:any, interval?:number, scope?:any ): any; /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope - * @param fn any The function to defer. - * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to defer. + * @param millis Number The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ static defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; static defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; @@ -18222,59 +22617,59 @@ declare module Ext.util { } declare module Ext.fx { export interface IAnim extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) Used in conjunction with iterations to reverse the animation each time an iteration completes. ... */ + /** [Config Option] (Boolean) */ alternate?: bool; /** [Config Option] (Function) */ callback?: any; - /** [Config Option] (Number) Time to delay before starting the animation. ... */ + /** [Config Option] (Number) */ delay?: number; - /** [Config Option] (Number) Time in milliseconds for a single animation to last. ... */ + /** [Config Option] (Number) */ duration?: number; - /** [Config Option] (Boolean) Currently only for Component Animation: Only set a component's outer element size bypassing layouts. ... */ + /** [Config Option] (Boolean) */ dynamic?: bool; - /** [Config Option] (String) This describes how the intermediate values used during a transition will be calculated. ... */ + /** [Config Option] (String) */ easing?: string; - /** [Config Option] (Object) An object containing property/value pairs for the beginning of the animation. ... */ + /** [Config Option] (Object) */ from?: any; - /** [Config Option] (Number) Number of times to execute the animation. ... */ + /** [Config Option] (Number) */ iterations?: number; - /** [Config Option] (Object) Animation keyframes follow the CSS3 Animation configuration pattern. ... */ + /** [Config Option] (Object) */ keyframes?: any; - /** [Config Option] (Boolean) Run the animation from the end to the beginning Defaults to false. ... */ + /** [Config Option] (Boolean) */ reverse?: bool; /** [Config Option] (Function) */ scope?: any; - /** [Config Option] (String/Object) The Ext.fx.target.Target to apply the animation to. ... */ + /** [Config Option] (String/Object) */ target?: any; - /** [Config Option] (Object) An object containing property/value pairs for the end of the animation. ... */ + /** [Config Option] (Object) */ to?: any; - /** [Property] (Number) Current iteration the animation is running. ... */ + /** [Property] (Number) */ currentIteration?: number; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Anim, or subclass thereof. ... */ + /** [Property] (Boolean) */ isAnimation?: bool; - /** [Property] (Boolean) Flag to determine if the animation is paused. ... */ + /** [Property] (Boolean) */ paused?: bool; - /** [Property] (Boolean) Flag to determine if the animation has started ... */ + /** [Property] (Boolean) */ running?: bool; - /** [Property] (Date) Starting time of the animation. ... */ + /** [Property] (Date) */ startTime?: any; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -18284,8 +22679,9 @@ declare module Ext.fx { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fire afteranimate event and end the animation */ @@ -18299,31 +22695,32 @@ declare module Ext.fx { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -18342,11 +22739,12 @@ declare module Ext.fx { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -18373,47 +22771,47 @@ declare module Ext.fx { } declare module Ext.fx { export interface IAnimator extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Number) Time to delay before starting the animation. ... */ + /** [Config Option] (Number) */ delay?: number; - /** [Config Option] (Number) Time in milliseconds for the animation to last. ... */ + /** [Config Option] (Number) */ duration?: number; - /** [Config Option] (Boolean) Currently only for Component Animation: Only set a component's outer element size bypassing layouts. ... */ + /** [Config Option] (Boolean) */ dynamic?: bool; - /** [Config Option] (String) This describes how the intermediate values used during a transition will be calculated. ... */ + /** [Config Option] (String) */ easing?: string; - /** [Config Option] (Number) Number of times to execute the animation. ... */ + /** [Config Option] (Number) */ iterations?: number; - /** [Config Option] (Object) Animation keyframes follow the CSS3 Animation configuration pattern. ... */ + /** [Config Option] (Object) */ keyframes?: any; - /** [Config Option] (Ext.fx.target.Target) The Ext.fx.target to apply the animation to. ... */ + /** [Config Option] (Ext.fx.target.Target) */ target?: Ext.fx.target.ITarget; - /** [Property] (Number) Current iteration the animation is running. ... */ + /** [Property] (Number) */ currentIteration?: number; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Animator, or subclass thereof. ... */ + /** [Property] (Boolean) */ isAnimator?: bool; - /** [Property] (Number) Current keyframe step of the animation. ... */ + /** [Property] (Number) */ keyframeStep?: number; - /** [Property] (Boolean) Flag to determine if the animation is paused. ... */ + /** [Property] (Boolean) */ paused?: bool; - /** [Property] (Boolean) Flag to determine if the animation has started ... */ + /** [Property] (Boolean) */ running?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -18423,8 +22821,9 @@ declare module Ext.fx { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fire afteranimate event and end the animation */ @@ -18438,31 +22837,32 @@ declare module Ext.fx { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -18481,11 +22881,12 @@ declare module Ext.fx { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -18514,6 +22915,54 @@ declare module Ext.fx { export interface ICubicBezier extends Ext.IBase { } export class CubicBezier { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.fx { @@ -18526,16 +22975,62 @@ declare module Ext.fx { export interface IManager extends Ext.IBase,Ext.fx.IQueue { } export class Manager { - /** [Method] End Definitions */ - constructor(); /** [Method] Add an Anim to the manager - * @param anim Ext.fx.IAnim + * @param anim Ext.fx.Anim */ static addAnim( anim?:Ext.fx.IAnim ): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Remove an Anim from the manager - * @param anim Ext.fx.IAnim + * @param anim Ext.fx.Anim */ static removeAnim( anim?:Ext.fx.IAnim ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.fx { @@ -18552,7 +23047,7 @@ declare module Ext.fx.target { } declare module Ext.fx.target { export interface ICompositeElement extends Ext.fx.target.IElement { - /** [Property] (Boolean) true in this class to identify an object as an instantiated CompositeElement, or subclass thereof. ... */ + /** [Property] (Boolean) */ isComposite?: bool; } } @@ -18580,151 +23075,171 @@ declare module Ext.fx.target { export interface ITarget extends Ext.IBase { } } +declare module Ext.grid { + export interface ICellContext extends Ext.IBase { + /** [Property] (Boolean) */ + isCellContext?: bool; + } +} declare module Ext.grid { export interface ICellEditor extends Ext.IEditor { - /** [Config Option] (String) The position to align to (see Ext.util.Positionable.alignTo for more details). ... */ + /** [Config Option] (String) */ alignment?: string; - /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Boolean) False to keep the bound element visible while the editor is displayed ... */ + /** [Config Option] (Boolean) */ hideEl?: bool; - /** [Config Option] (Boolean/String) "sides" for sides/bottom only, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + /** [Config Option] (Boolean/String) */ shadow?: any; } } declare module Ext.grid.column { export interface IAction extends Ext.grid.column.IColumn { - /** [Config Option] (String) The alt text to use for the image element. ... */ + /** [Config Option] (String) */ altText?: string; - /** [Config Option] (Boolean) If true, the action will not respond to click events, and will be displayed semi-opaque. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (Function) A function which returns the CSS class to apply to the icon image. ... */ + /** [Config Option] (Function) */ getClass?: any; - /** [Config Option] (Function) A function which returns the tooltip string for any row. ... */ + /** [Config Option] (Function) */ getTip?: any; - /** [Config Option] (Function) A function called when the icon is clicked. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The URL of an image to display as the clickable element in the column. ... */ + /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) A CSS class to apply to the icon image. ... */ + /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Object[]) An Array which may contain multiple icon definitions, each element of which may contain: ... */ - items?: Object[]; - /** [Config Option] (String) Text to display in this column's menu item if no text was specified as a header. ... */ + /** [Config Option] (Object[]) */ + items?: any[]; + /** [Config Option] (String) */ menuText?: string; - /** [Config Option] (Object) The scope (this reference) in which the handler, getClass, isDisabled and getTip fuctions are executed. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + /** [Config Option] (Boolean) */ sortable?: bool; - /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + /** [Config Option] (Boolean) */ stopSelection?: bool; - /** [Config Option] (String) A tooltip message to be displayed on hover. ... */ + /** [Config Option] (String) */ tooltip?: string; /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified - * @param fn Function The function to call - * @param scope Object The scope of the function (defaults to current component) - * @param args Array The args to call the function with. The current component always passed as the last argument. + * @param fn Object + * @param scope Object */ - cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; - /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac */ - defaultRenderer?(): void; + cascade?( fn?:any, scope?:any ): Ext.IContainer; + /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac + * @param v Object + * @param meta Object + * @param record Object + * @param rowIdx Object + * @param colIdx Object + * @param store Object + * @param view Object + */ + defaultRenderer?( v?:any, meta?:any, record?:any, rowIdx?:any, colIdx?:any, store?:any, view?:any ): void; /** [Method] Disables this ActionColumn s action at the specified index - * @param index Number + * @param index Number/Ext.grid.column.Action * @param silent Boolean */ + disableAction?( index?:any, silent?:any ): any; disableAction?( index?:number, silent?:bool ): void; disableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; /** [Method] Enables this ActionColumn s action at the specified index - * @param index Number + * @param index Number/Ext.grid.column.Action * @param silent Boolean */ + enableAction?( index?:any, silent?:any ): any; enableAction?( index?:number, silent?:bool ): void; enableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; - /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M - * @param deep Object - */ - getRefItems?( deep?:any ): void; + /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M */ + getRefItems?(): void; } } declare module Ext.grid { export interface IActionColumn extends Ext.grid.column.IColumn { - /** [Config Option] (String) The alt text to use for the image element. ... */ + /** [Config Option] (String) */ altText?: string; - /** [Config Option] (Boolean) If true, the action will not respond to click events, and will be displayed semi-opaque. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (Function) A function which returns the CSS class to apply to the icon image. ... */ + /** [Config Option] (Function) */ getClass?: any; - /** [Config Option] (Function) A function which returns the tooltip string for any row. ... */ + /** [Config Option] (Function) */ getTip?: any; - /** [Config Option] (Function) A function called when the icon is clicked. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The URL of an image to display as the clickable element in the column. ... */ + /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) A CSS class to apply to the icon image. ... */ + /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Object[]) An Array which may contain multiple icon definitions, each element of which may contain: ... */ - items?: Object[]; - /** [Config Option] (String) Text to display in this column's menu item if no text was specified as a header. ... */ + /** [Config Option] (Object[]) */ + items?: any[]; + /** [Config Option] (String) */ menuText?: string; - /** [Config Option] (Object) The scope (this reference) in which the handler, getClass, isDisabled and getTip fuctions are executed. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + /** [Config Option] (Boolean) */ sortable?: bool; - /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + /** [Config Option] (Boolean) */ stopSelection?: bool; - /** [Config Option] (String) A tooltip message to be displayed on hover. ... */ + /** [Config Option] (String) */ tooltip?: string; /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified - * @param fn Function The function to call - * @param scope Object The scope of the function (defaults to current component) - * @param args Array The args to call the function with. The current component always passed as the last argument. + * @param fn Object + * @param scope Object */ - cascade?( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; - /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac */ - defaultRenderer?(): void; + cascade?( fn?:any, scope?:any ): Ext.IContainer; + /** [Method] Renderer closure iterates through items creating an element for each and tagging with an identifying class name x ac + * @param v Object + * @param meta Object + * @param record Object + * @param rowIdx Object + * @param colIdx Object + * @param store Object + * @param view Object + */ + defaultRenderer?( v?:any, meta?:any, record?:any, rowIdx?:any, colIdx?:any, store?:any, view?:any ): void; /** [Method] Disables this ActionColumn s action at the specified index - * @param index Number + * @param index Number/Ext.grid.column.Action * @param silent Boolean */ + disableAction?( index?:any, silent?:any ): any; disableAction?( index?:number, silent?:bool ): void; disableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; /** [Method] Enables this ActionColumn s action at the specified index - * @param index Number + * @param index Number/Ext.grid.column.Action * @param silent Boolean */ + enableAction?( index?:any, silent?:any ): any; enableAction?( index?:number, silent?:bool ): void; enableAction?( index?:Ext.grid.column.IAction, silent?:bool ): void; - /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M - * @param deep Object - */ - getRefItems?( deep?:any ): void; + /** [Method] Private override because this cannot function as a Container and it has an items property which is an Array NOT a M */ + getRefItems?(): void; } } declare module Ext.grid.column { export interface IBoolean extends Ext.grid.column.IColumn { - /** [Config Option] (String) The string returned by the renderer when the column value is falsey (but not undefined). ... */ + /** [Config Option] (String) */ falseText?: string; - /** [Config Option] (String) The string returned by the renderer when the column value is not falsey. ... */ + /** [Config Option] (String) */ trueText?: string; - /** [Config Option] (String) The string returned by the renderer when the column value is undefined. ... */ + /** [Config Option] (String) */ undefinedText?: string; } } declare module Ext.grid { export interface IBooleanColumn extends Ext.grid.column.IColumn { - /** [Config Option] (String) The string returned by the renderer when the column value is falsey (but not undefined). ... */ + /** [Config Option] (String) */ falseText?: string; - /** [Config Option] (String) The string returned by the renderer when the column value is not falsey. ... */ + /** [Config Option] (String) */ trueText?: string; - /** [Config Option] (String) The string returned by the renderer when the column value is undefined. ... */ + /** [Config Option] (String) */ undefinedText?: string; } } declare module Ext.grid.column { export interface ICheckColumn extends Ext.grid.column.IColumn { - /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + /** [Config Option] (Boolean) */ stopSelection?: bool; - /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + /** [Config Option] (String) */ tdCls?: string; /** [Method] Disables this CheckColumn * @param silent Boolean @@ -18738,9 +23253,9 @@ declare module Ext.grid.column { } declare module Ext.ux { export interface ICheckColumn extends Ext.grid.column.IColumn { - /** [Config Option] (Boolean) Prevent grid selection upon mousedown. ... */ + /** [Config Option] (Boolean) */ stopSelection?: bool; - /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + /** [Config Option] (String) */ tdCls?: string; /** [Method] Disables this CheckColumn * @param silent Boolean @@ -18754,85 +23269,85 @@ declare module Ext.ux { } declare module Ext.grid.column { export interface IColumn extends Ext.grid.header.IContainer { - /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Object[]) An optional array of sub-column definitions. ... */ - columns?: Object[]; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (Object[]) */ + columns?: any[]; + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ + /** [Config Option] (String) */ dataIndex?: string; - /** [Config Option] (Boolean) So that when removing from group headers which are then empty and then get destroyed, there's no child DOM left True... */ + /** [Config Option] (Boolean) */ detachOnRemove?: bool; - /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ + /** [Config Option] (Boolean) */ draggable?: bool; - /** [Config Option] (Function) A renderer to be used in conjunction with RowEditing. ... */ + /** [Config Option] (Function) */ editRenderer?: any; - /** [Config Option] (Object/String) An optional xtype or config object for a Field to use for editing. ... */ + /** [Config Option] (Object/String) */ editor?: any; - /** [Config Option] (String) The text to diplay in empty cells (cells with a value of undefined, null, or ''). ... */ + /** [Config Option] (String) */ emptyCellText?: string; - /** [Config Option] (Object/String) Alias for editor. ... */ + /** [Config Option] (Object/String) */ field?: any; - /** [Config Option] (Boolean) True to prevent the column from being resizable. ... */ + /** [Config Option] (Boolean) */ fixed?: bool; - /** [Config Option] (Boolean) If the grid uses a Ext.grid.feature.Grouping, this option may be used to disable the header menu item to group by the... */ + /** [Config Option] (Boolean) */ groupable?: bool; - /** [Config Option] (String) The header text. ... */ + /** [Config Option] (String) */ header?: string; - /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + /** [Config Option] (Boolean) */ hideable?: bool; - /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + /** [Config Option] (Boolean) */ lockable?: bool; - /** [Config Option] (Boolean) True to lock this column in place. ... */ + /** [Config Option] (Boolean) */ locked?: bool; - /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ + /** [Config Option] (Boolean) */ menuDisabled?: bool; - /** [Config Option] (String) The text to render in the column visibility selection menu for this column. ... */ + /** [Config Option] (String) */ menuText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Function/String) A renderer is an 'interceptor' method which can be used to transform data (value, appearance, etc.) before it is rend... */ + /** [Config Option] (Function/String) */ renderer?: any; - /** [Config Option] (Boolean) False to prevent the column from being resizable. ... */ + /** [Config Option] (Boolean) */ resizable?: bool; /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + /** [Config Option] (Boolean) */ sortable?: bool; - /** [Config Option] (String) An identifier which identifies this column uniquely within the owning grid's state. ... */ + /** [Config Option] (String) */ stateId?: string; - /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + /** [Config Option] (String) */ tdCls?: string; - /** [Config Option] (String) The header text to be used as innerHTML (html tags are accepted) to display in the Grid. ... */ + /** [Config Option] (String) */ text?: string; /** [Config Option] (String) */ tooltip?: string; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; - /** [Property] (Boolean) Set in this class to identify, at runtime, instances which are not instances of the HeaderContainer base class, but a... */ + /** [Property] (Boolean) */ + isColumn?: bool; + /** [Property] (Boolean) */ isHeader?: bool; /** [Property] (Ext.Element) */ textEl?: Ext.IElement; /** [Property] (Ext.Element) */ triggerEl?: Ext.IElement; - /** [Method] private Inform the header container about the resize Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. + /** [Method] private Inform the header container about the resize + * @param width Object + * @param height Object + * @param oldWidth Object + * @param oldHeight Object */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + afterComponentLayout?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Sizes this Column to fit the max content width - * @param The Ext.grid.column.IColumn header (or index of header) to auto size. + * @param The Ext.grid.column.Column/Number header (or index of header) to auto size. */ + autoSize?( The?:any ): any; autoSize?( The?:Ext.grid.column.IColumn ): void; autoSize?( The?:number ): void; /** [Method] When defined this will take precedence over the renderer config */ @@ -18849,34 +23364,25 @@ declare module Ext.grid.column { /** [Method] Returns the index of this column in the list of visible columns only if this column is a base level Column */ getVisibleIndex?(): number; /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param fromOwner Object */ - hide?( animateTarget?:any, callback?:any, scope?:any ): any; - hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; + hide?( fromOwner?:any ): Ext.IComponent; /** [Method] Initialized the renderData to be used when rendering the renderTpl */ initRenderData?(): any; /** [Method] Determines whether the UI should be allowed to offer an option to hide this column */ isHideable?(): void; /** [Method] Determines whether the UI should be allowed to offer an option to lock or unlock this column */ isLockable?(): void; - /** [Method] This method is invoked after a new Component has been added - * @param component Ext.IComponent - * @param position Number + /** [Method] Invalidate column cache on add We cannot refresh the View on every add because this method is called when the HeaderD + * @param child Object */ - onAdd?( component?:Ext.IComponent, position?:number ): void; + onAdd?( child?:any ): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent - * @param autoDestroy Boolean + /** [Method] Invalidate column cache on remove We cannot refresh the View on every remove because this method is called when the H + * @param child Object */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + onRemove?( child?:any ): void; /** [Method] Sets the form field to be used for editing * @param field Object An object representing a field to be created. If no xtype is specified a 'textfield' is assumed. */ @@ -18886,96 +23392,93 @@ declare module Ext.grid.column { */ setText?( text?:string ): void; /** [Method] Shows this Component rendering it first if autoRender or floating are true - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. - * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param fromOwner Object + * @param fromChild Object */ - show?( animateTarget?:any, callback?:any, scope?:any ): any; - show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + show?( fromOwner?:any, fromChild?:any ): Ext.IComponent; } } declare module Ext.grid { export interface IColumn extends Ext.grid.header.IContainer { - /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Object[]) An optional array of sub-column definitions. ... */ - columns?: Object[]; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (Object[]) */ + columns?: any[]; + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ + /** [Config Option] (String) */ dataIndex?: string; - /** [Config Option] (Boolean) So that when removing from group headers which are then empty and then get destroyed, there's no child DOM left True... */ + /** [Config Option] (Boolean) */ detachOnRemove?: bool; - /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ + /** [Config Option] (Boolean) */ draggable?: bool; - /** [Config Option] (Function) A renderer to be used in conjunction with RowEditing. ... */ + /** [Config Option] (Function) */ editRenderer?: any; - /** [Config Option] (Object/String) An optional xtype or config object for a Field to use for editing. ... */ + /** [Config Option] (Object/String) */ editor?: any; - /** [Config Option] (String) The text to diplay in empty cells (cells with a value of undefined, null, or ''). ... */ + /** [Config Option] (String) */ emptyCellText?: string; - /** [Config Option] (Object/String) Alias for editor. ... */ + /** [Config Option] (Object/String) */ field?: any; - /** [Config Option] (Boolean) True to prevent the column from being resizable. ... */ + /** [Config Option] (Boolean) */ fixed?: bool; - /** [Config Option] (Boolean) If the grid uses a Ext.grid.feature.Grouping, this option may be used to disable the header menu item to group by the... */ + /** [Config Option] (Boolean) */ groupable?: bool; - /** [Config Option] (String) The header text. ... */ + /** [Config Option] (String) */ header?: string; - /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + /** [Config Option] (Boolean) */ hideable?: bool; - /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + /** [Config Option] (Boolean) */ lockable?: bool; - /** [Config Option] (Boolean) True to lock this column in place. ... */ + /** [Config Option] (Boolean) */ locked?: bool; - /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ + /** [Config Option] (Boolean) */ menuDisabled?: bool; - /** [Config Option] (String) The text to render in the column visibility selection menu for this column. ... */ + /** [Config Option] (String) */ menuText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Function/String) A renderer is an 'interceptor' method which can be used to transform data (value, appearance, etc.) before it is rend... */ + /** [Config Option] (Function/String) */ renderer?: any; - /** [Config Option] (Boolean) False to prevent the column from being resizable. ... */ + /** [Config Option] (Boolean) */ resizable?: bool; /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) False to disable sorting of this column. ... */ + /** [Config Option] (Boolean) */ sortable?: bool; - /** [Config Option] (String) An identifier which identifies this column uniquely within the owning grid's state. ... */ + /** [Config Option] (String) */ stateId?: string; - /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + /** [Config Option] (String) */ tdCls?: string; - /** [Config Option] (String) The header text to be used as innerHTML (html tags are accepted) to display in the Grid. ... */ + /** [Config Option] (String) */ text?: string; /** [Config Option] (String) */ tooltip?: string; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; - /** [Property] (Boolean) Set in this class to identify, at runtime, instances which are not instances of the HeaderContainer base class, but a... */ + /** [Property] (Boolean) */ + isColumn?: bool; + /** [Property] (Boolean) */ isHeader?: bool; /** [Property] (Ext.Element) */ textEl?: Ext.IElement; /** [Property] (Ext.Element) */ triggerEl?: Ext.IElement; - /** [Method] private Inform the header container about the resize Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. + /** [Method] private Inform the header container about the resize + * @param width Object + * @param height Object + * @param oldWidth Object + * @param oldHeight Object */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; + afterComponentLayout?( width?:any, height?:any, oldWidth?:any, oldHeight?:any ): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Sizes this Column to fit the max content width - * @param The Ext.grid.column.IColumn header (or index of header) to auto size. + * @param The Ext.grid.column.Column/Number header (or index of header) to auto size. */ + autoSize?( The?:any ): any; autoSize?( The?:Ext.grid.column.IColumn ): void; autoSize?( The?:number ): void; /** [Method] When defined this will take precedence over the renderer config */ @@ -18992,34 +23495,25 @@ declare module Ext.grid { /** [Method] Returns the index of this column in the list of visible columns only if this column is a base level Column */ getVisibleIndex?(): number; /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param fromOwner Object */ - hide?( animateTarget?:any, callback?:any, scope?:any ): any; - hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; + hide?( fromOwner?:any ): Ext.IComponent; /** [Method] Initialized the renderData to be used when rendering the renderTpl */ initRenderData?(): any; /** [Method] Determines whether the UI should be allowed to offer an option to hide this column */ isHideable?(): void; /** [Method] Determines whether the UI should be allowed to offer an option to lock or unlock this column */ isLockable?(): void; - /** [Method] This method is invoked after a new Component has been added - * @param component Ext.IComponent - * @param position Number + /** [Method] Invalidate column cache on add We cannot refresh the View on every add because this method is called when the HeaderD + * @param child Object */ - onAdd?( component?:Ext.IComponent, position?:number ): void; + onAdd?( child?:any ): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent - * @param autoDestroy Boolean + /** [Method] Invalidate column cache on remove We cannot refresh the View on every remove because this method is called when the H + * @param child Object */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; + onRemove?( child?:any ): void; /** [Method] Sets the form field to be used for editing * @param field Object An object representing a field to be created. If no xtype is specified a 'textfield' is assumed. */ @@ -19029,96 +23523,197 @@ declare module Ext.grid { */ setText?( text?:string ): void; /** [Method] Shows this Component rendering it first if autoRender or floating are true - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. - * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. + * @param fromOwner Object + * @param fromChild Object */ - show?( animateTarget?:any, callback?:any, scope?:any ): any; - show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + show?( fromOwner?:any, fromChild?:any ): Ext.IComponent; } } declare module Ext.grid.column { export interface IDate extends Ext.grid.column.IColumn { - /** [Config Option] (String) A formatting string as used by Ext.Date.format to format a Date for this Column. ... */ + /** [Config Option] (String) */ format?: string; - /** [Method] When defined this will take precedence over the renderer config */ - defaultRenderer?(): void; + /** [Method] When defined this will take precedence over the renderer config + * @param value Object + */ + defaultRenderer?( value?:any ): void; } } declare module Ext.grid { export interface IDateColumn extends Ext.grid.column.IColumn { - /** [Config Option] (String) A formatting string as used by Ext.Date.format to format a Date for this Column. ... */ + /** [Config Option] (String) */ format?: string; - /** [Method] When defined this will take precedence over the renderer config */ - defaultRenderer?(): void; + /** [Method] When defined this will take precedence over the renderer config + * @param value Object + */ + defaultRenderer?( value?:any ): void; } } declare module Ext.grid.column { export interface INumber extends Ext.grid.column.IColumn { - /** [Config Option] (String) A formatting string as used by Ext.util.Format.number to format a numeric value for this Column. ... */ + /** [Config Option] (String) */ format?: string; } } declare module Ext.grid { export interface INumberColumn extends Ext.grid.column.IColumn { - /** [Config Option] (String) A formatting string as used by Ext.util.Format.number to format a numeric value for this Column. ... */ + /** [Config Option] (String) */ format?: string; } } +declare module Ext.grid.column { + export interface IRowNumberer extends Ext.grid.column.IColumn { + /** [Config Option] (String) */ + align?: string; + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (String) */ + dataIndex?: string; + /** [Config Option] (Boolean) */ + draggable?: bool; + /** [Config Option] (Boolean) */ + hideable?: bool; + /** [Config Option] (Boolean) */ + lockable?: bool; + /** [Config Option] (Boolean) */ + menuDisabled?: bool; + /** [Config Option] (Boolean) */ + resizable?: bool; + /** [Config Option] (String) */ + tdCls?: string; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (Number) */ + width?: number; + } +} +declare module Ext.grid { + export interface IRowNumberer extends Ext.grid.column.IColumn { + /** [Config Option] (String) */ + align?: string; + /** [Config Option] (String) */ + cls?: string; + /** [Config Option] (String) */ + dataIndex?: string; + /** [Config Option] (Boolean) */ + draggable?: bool; + /** [Config Option] (Boolean) */ + hideable?: bool; + /** [Config Option] (Boolean) */ + lockable?: bool; + /** [Config Option] (Boolean) */ + menuDisabled?: bool; + /** [Config Option] (Boolean) */ + resizable?: bool; + /** [Config Option] (String) */ + tdCls?: string; + /** [Config Option] (String) */ + text?: string; + /** [Config Option] (Number) */ + width?: number; + } +} declare module Ext.grid.column { export interface ITemplate extends Ext.grid.column.IColumn { /** [Config Option] (String/Ext.XTemplate) */ tpl?: any; - /** [Method] When defined this will take precedence over the renderer config */ - defaultRenderer?(): void; + /** [Method] When defined this will take precedence over the renderer config + * @param value Object + * @param meta Object + * @param record Object + */ + defaultRenderer?( value?:any, meta?:any, record?:any ): void; } } declare module Ext.grid { export interface ITemplateColumn extends Ext.grid.column.IColumn { /** [Config Option] (String/Ext.XTemplate) */ tpl?: any; - /** [Method] When defined this will take precedence over the renderer config */ - defaultRenderer?(): void; + /** [Method] When defined this will take precedence over the renderer config + * @param value Object + * @param meta Object + * @param record Object + */ + defaultRenderer?( value?:any, meta?:any, record?:any ): void; } } declare module Ext.grid { export interface IColumnComponentLayout extends Ext.layout.component.IAuto { - /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + /** [Config Option] (Boolean) */ setWidthInDom?: bool; - } -} -declare module Ext.grid { - export interface IColumnLayout extends Ext.layout.container.IHBox { - /** [Method] Collect the height of the table of data upon layout begin In addition to work done by our base classes containers b + /** [Method] Called before any calculation cycles to prepare for layout * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; + } +} +declare module Ext.grid { + export interface IColumnLayout extends Ext.layout.container.IHBox { + /** [Method] Collect the height of the table of data upon layout begin + * @param ownerContext Object + */ + beginLayout?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; - /** [Method] Set up padding in items This method if implemented is called after all layouts have completed - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. - */ - finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] A one time initialization method called just before rendering */ initLayout?(): void; } } +declare module Ext.grid { + export interface IColumnManager extends Ext.IBase { + /** [Method] Get a leaf level header by index regardless of what the nesting structure is + * @param index Number The column index for which to retrieve the column. + */ + getHeaderAtIndex?( index?:number ): Ext.grid.column.IColumn; + /** [Method] Get a leaf level header by index regardless of what the nesting structure is + * @param id String The id + */ + getHeaderById?( id?:string ): Ext.grid.column.IColumn; + /** [Method] Returns the index of a leaf level header regardless of what the nesting structure is + * @param header Ext.grid.column.Column The header to find the index of + */ + getHeaderIndex?( header?:Ext.grid.column.IColumn ): number; + /** [Method] When passed a column index returns the closet visible column to that + * @param index Number Position at which to find the closest visible column. + */ + getVisibleHeaderClosestToIndex?( index?:number ): void; + } +} +declare module Ext.grid { + export interface IColumnModel extends Ext.IBase { + /** [Method] Get a leaf level header by index regardless of what the nesting structure is + * @param index Number The column index for which to retrieve the column. + */ + getHeaderAtIndex?( index?:number ): Ext.grid.column.IColumn; + /** [Method] Get a leaf level header by index regardless of what the nesting structure is + * @param id String The id + */ + getHeaderById?( id?:string ): Ext.grid.column.IColumn; + /** [Method] Returns the index of a leaf level header regardless of what the nesting structure is + * @param header Ext.grid.column.Column The header to find the index of + */ + getHeaderIndex?( header?:Ext.grid.column.IColumn ): number; + /** [Method] When passed a column index returns the closet visible column to that + * @param index Number Position at which to find the closest visible column. + */ + getVisibleHeaderClosestToIndex?( index?:number ): void; + } +} declare module Ext.grid.feature { export interface IAbstractSummary extends Ext.grid.feature.IFeature { - /** [Config Option] (String) The name of the property which contains the Array of summary objects. ... */ + /** [Config Option] (String) */ remoteRoot?: string; - /** [Config Option] (Boolean) True to show the summary row. ... */ + /** [Config Option] (Boolean) */ showSummaryRow?: bool; /** [Method] Toggle whether or not to show the summary row * @param visible Boolean True to show the summary row @@ -19128,15 +23723,15 @@ declare module Ext.grid.feature { } declare module Ext.grid.feature { export interface IFeature extends Ext.util.IObservable { - /** [Property] (Boolean) True when feature is disabled. ... */ + /** [Property] (Boolean) */ disabled?: bool; - /** [Property] (String) Prefix to use when firing events on the view. ... */ + /** [Property] (String) */ eventPrefix?: string; /** [Property] (String) */ eventSelector?: string; /** [Property] (Ext.grid.Panel) */ grid?: Ext.grid.IPanel; - /** [Property] (Boolean) Most features will expose additional events, some may not and will need to change this to false. ... */ + /** [Property] (Boolean) */ hasFeatureEvent?: bool; /** [Property] (Ext.view.Table) */ view?: Ext.view.ITable; @@ -19155,29 +23750,29 @@ declare module Ext.grid.feature { } declare module Ext.grid.feature { export interface IGrouping extends Ext.grid.feature.IFeature,Ext.grid.feature.IAbstractSummary { - /** [Config Option] (Boolean) Set to false to disable collapsing groups from the UI. ... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Number) Number of pixels to indent per grouping level ... */ + /** [Config Option] (Number) */ depthToIndent?: number; - /** [Config Option] (Boolean) True to enable the grouping control in the header menu. ... */ + /** [Config Option] (Boolean) */ enableGroupingMenu?: bool; - /** [Config Option] (Boolean) True to allow the user to turn off grouping. ... */ + /** [Config Option] (Boolean) */ enableNoGroups?: bool; - /** [Config Option] (String) Text displayed in the grid header menu for grouping by header. ... */ + /** [Config Option] (String) */ groupByText?: string; - /** [Config Option] (String/Array/Ext.Template) A string Template snippet, an array of strings (optionally followed by an object containing Template methods) to be u... */ + /** [Config Option] (String/Array/Ext.Template) */ groupHeaderTpl?: any; - /** [Config Option] (Boolean) True to hide the header that is currently grouped. ... */ + /** [Config Option] (Boolean) */ hideGroupedHeader?: bool; - /** [Config Option] (String) Text displayed in the grid header for enabling/disabling grouping. ... */ + /** [Config Option] (String) */ showGroupsText?: string; - /** [Config Option] (Boolean) True to show the summary row. ... */ + /** [Config Option] (Boolean) */ showSummaryRow?: bool; - /** [Config Option] (Boolean) True to start all groups collapsed. ... */ + /** [Config Option] (Boolean) */ startCollapsed?: bool; - /** [Property] (String) Prefix to use when firing events on the view. ... */ + /** [Property] (String) */ eventPrefix?: string; - /** [Property] (String) Selector used to determine when to fire the event with the eventPrefix. ... */ + /** [Property] (String) */ eventSelector?: string; /** [Method] Collapse a group * @param groupName String The group name @@ -19198,14 +23793,14 @@ declare module Ext.grid.feature { /** [Method] Expand all groups */ expandAll?(): void; /** [Method] Abstract method to be overriden when a feature should add additional arguments to its event signature - * @param eventName Object + * @param type Object * @param view Object - * @param featureTarget Object + * @param targetEl Object * @param e Object */ - getFireEventArgs?( eventName?:any, view?:any, featureTarget?:any, e?:any ): void; + getFireEventArgs?( type?:any, view?:any, targetEl?:any, e?:any ): void; /** [Method] Returns the group data object for the group to which the passed record belongs if the Store is grouped - * @param record Ext.data.IModel The record for which to return group information. + * @param record Ext.data.Model The record for which to return group information. */ getRecordGroup?( record?:Ext.data.IModel ): any; /** [Method] Returns true if the named group is expanded @@ -19220,24 +23815,28 @@ declare module Ext.grid.feature { } declare module Ext.grid.feature { export interface IGroupingSummary extends Ext.grid.feature.IGrouping { - /** [Config Option] (Boolean) True to show the summary row. ... */ + /** [Config Option] (Boolean) */ showSummaryRow?: bool; } } declare module Ext.grid.feature { export interface IGroupStore extends Ext.util.IObservable { + /** [Method] Get the index within the entire dataset + * @param record Ext.data.Model The Ext.data.Model object to find. + */ + indexOfTotal?( record?:Ext.data.IModel ): number; } } declare module Ext.grid.feature { export interface IRowBody extends Ext.grid.feature.IFeature { - /** [Property] (String) Prefix to use when firing events on the view. ... */ + /** [Property] (String) */ eventPrefix?: string; - /** [Property] (String) Selector used to determine when to fire the event with the eventPrefix. ... */ + /** [Property] (String) */ eventSelector?: string; /** [Method] Provides additional data to the prepareData call within the grid view * @param data Object The data for this particular record. * @param idx Number The row index for this record. - * @param record Ext.data.IModel The record instance + * @param record Ext.data.Model The record instance * @param orig Object The original result from the prepareData call to massage. */ getAdditionalData?( data?:any, idx?:number, record?:Ext.data.IModel, orig?:any ): void; @@ -19245,7 +23844,7 @@ declare module Ext.grid.feature { } declare module Ext.grid.feature { export interface IRowWrap extends Ext.grid.feature.IFeature { - /** [Property] (Boolean) turn off feature events. ... */ + /** [Property] (Boolean) */ hasFeatureEvent?: bool; } } @@ -19257,23 +23856,23 @@ declare module Ext.grid.feature { } declare module Ext.grid.header { export interface IContainer extends Ext.container.IContainer { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Number) Width of the header if no width or flex is specified. ... */ + /** [Config Option] (Number) */ defaultWidth?: number; - /** [Config Option] (Boolean) True to move any component to the detachedBody when the component is removed from this container. ... */ + /** [Config Option] (Boolean) */ detachOnRemove?: bool; - /** [Config Option] (Boolean) False to disable column hiding within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnHide?: bool; - /** [Config Option] (Boolean) Specify as true to constrain column dragging so that a column cannot be dragged into or out of this column. ... */ + /** [Config Option] (Boolean) */ sealed?: bool; - /** [Config Option] (Boolean) Provides the default sortable state for all Headers within this HeaderContainer. ... */ + /** [Config Option] (Boolean) */ sortable?: bool; - /** [Config Option] (Number) HeaderContainer overrides the default weight of 0 for all docked items to 100. ... */ + /** [Config Option] (Number) */ weight?: number; /** [Property] (Boolean) */ isGroupHeader?: bool; @@ -19295,7 +23894,7 @@ declare module Ext.grid.header { */ getHeaderAtIndex?( index?:number ): void; /** [Method] Returns the index of a leaf level header regardless of what the nesting structure is - * @param header Ext.grid.column.IColumn The header to find the index of + * @param header Ext.grid.column.Column The header to find the index of */ getHeaderIndex?( header?:Ext.grid.column.IColumn ): number; /** [Method] Returns an array of menu items to be placed into the shared menu across all headers in this header container */ @@ -19306,112 +23905,83 @@ declare module Ext.grid.header { * @param index Number Position at which to find the closest visible column. */ getVisibleHeaderClosestToIndex?( index?:number ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Determines whether this Component is the root of a layout */ isLayoutRoot?(): void; /** [Method] Invalidate column cache on add We cannot refresh the View on every add because this method is called when the HeaderD - * @param component Ext.IComponent - * @param position Number + * @param c Object */ - onAdd?( component?:Ext.IComponent, position?:number ): void; + onAdd?( c?:any ): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; /** [Method] Invalidate column cache on remove We cannot refresh the View on every remove because this method is called when the H - * @param component Ext.IComponent - * @param autoDestroy Boolean + * @param c Object */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onRemove?( c?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; } } declare module Ext.grid.header { export interface IDragZone extends Ext.dd.IDragZone { /** [Method] Called when a mousedown occurs in this container - * @param e Event The mouse down event + * @param e Object */ - getDragData?( e?:Event ): any; - /** [Method] Called before a repair of an invalid drop to get the XY to animate to - * @param e Event The mouse up event - */ - getRepairXY?( e?:Event ): number[]; - /** [Method] An empty function by default but provided so that you can perform a custom action before the initial drag event begi - * @param data Object An object containing arbitrary data to be shared with drop targets - * @param e Event The event object - */ - onBeforeDrag?( data?:any, e?:Event ): bool; - /** [Method] Abstract method called when this item is dropped on another DragDrop obj - * @param e Event the mouseup event - * @param id String In POINT mode, the element id this was dropped on. In INTERSECT mode, an array of dd items this was dropped on. - */ - onDragDrop?( e?:Event, id?:string ): void; - onDragDrop?( e?:Event, id?:Ext.dd.IDragDrop[] ): void; - /** [Method] Called once drag threshold has been reached to initialize the proxy element - * @param x Number The x position of the click on the dragged object - * @param y Number The y position of the click on the dragged object - */ - onInitDrag?( x?:number, y?:number ): bool; + getDragData?( e?:any ): any; + /** [Method] Called before a repair of an invalid drop to get the XY to animate to */ + getRepairXY?(): number[]; + /** [Method] An empty function by default but provided so that you can perform a custom action before the initial drag event begi */ + onBeforeDrag?(): bool; + /** [Method] Called once drag threshold has been reached to initialize the proxy element */ + onInitDrag?(): bool; } } declare module Ext.grid.header { export interface IDropZone extends Ext.dd.IDropZone { /** [Method] Returns a custom data object associated with the DOM node that is the target of the event - * @param e Event The event + * @param e Object */ - getTargetFromEvent?( e?:Event ): any; + getTargetFromEvent?( e?:any ): any; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + * @param node Object + * @param dragZone Object + * @param e Object + * @param data Object */ - onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; - /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dragged out of the drop node without dropping - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source - */ - onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + onNodeDrop?( node?:any, dragZone?:any, e?:any, data?:any ): bool; + /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dragged out of the drop node without dropping */ + onNodeOut?(): void; /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + * @param node Object + * @param dragZone Object + * @param e Object + * @param data Object */ - onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + onNodeOver?( node?:any, dragZone?:any, e?:any, data?:any ): string; } } declare module Ext.grid.locking { export interface IHeaderContainer extends Ext.grid.header.IContainer { - /** [Method] This is the function which all other column access methods are based upon Return the full column set for the whole Lo - * @param inResult Object - * @param hiddenAncestor Object - */ - getGridColumns?( inResult?:any, hiddenAncestor?:any ): any[]; + /** [Method] This is the function which all other column access methods are based upon Return the full column set for the whole Lo */ + getGridColumns?(): any[]; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th */ + getRefItems?(): void; } } declare module Ext.grid.locking { export interface ILockable extends Ext.IBase { /** [Config Option] (Object) */ lockedGridConfig?: any; - /** [Config Option] (Object) A view configuration to be applied to the locked side of the grid. ... */ + /** [Config Option] (Object) */ lockedViewConfig?: any; /** [Config Option] (Object) */ normalGridConfig?: any; - /** [Config Option] (Object) A view configuration to be applied to the normal/unlocked side of the grid. ... */ + /** [Config Option] (Object) */ normalViewConfig?: any; - /** [Config Option] (Number) Number of pixels to scroll when scrolling the locked section with mousewheel. ... */ + /** [Config Option] (Number) */ scrollDelta?: number; - /** [Config Option] (String) The xtype of the subgrid to specify. ... */ + /** [Config Option] (String) */ subGridXType?: string; - /** [Config Option] (Boolean) Synchronize rowHeight between the normal and locked grid view. ... */ + /** [Config Option] (Boolean) */ syncRowHeight?: bool; /** [Method] Synchronizes the row heights between the locked and non locked portion of the grid for each row */ syncRowHeights?(): void; @@ -19421,17 +23991,17 @@ declare module Ext.grid { export interface ILockable extends Ext.IBase { /** [Config Option] (Object) */ lockedGridConfig?: any; - /** [Config Option] (Object) A view configuration to be applied to the locked side of the grid. ... */ + /** [Config Option] (Object) */ lockedViewConfig?: any; /** [Config Option] (Object) */ normalGridConfig?: any; - /** [Config Option] (Object) A view configuration to be applied to the normal/unlocked side of the grid. ... */ + /** [Config Option] (Object) */ normalViewConfig?: any; - /** [Config Option] (Number) Number of pixels to scroll when scrolling the locked section with mousewheel. ... */ + /** [Config Option] (Number) */ scrollDelta?: number; - /** [Config Option] (String) The xtype of the subgrid to specify. ... */ + /** [Config Option] (String) */ subGridXType?: string; - /** [Config Option] (Boolean) Synchronize rowHeight between the normal and locked grid view. ... */ + /** [Config Option] (Boolean) */ syncRowHeight?: bool; /** [Method] Synchronizes the row heights between the locked and non locked portion of the grid for each row */ syncRowHeights?(): void; @@ -19439,25 +24009,25 @@ declare module Ext.grid { } declare module Ext.grid.locking { export interface IView extends Ext.IBase,Ext.util.IObservable { - /** [Property] (Boolean) true in this class to identify an object as an instantiated LockingView, or subclass thereof. ... */ + /** [Property] (Boolean) */ isLockingView?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -19467,8 +24037,9 @@ declare module Ext.grid.locking { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -19480,31 +24051,32 @@ declare module Ext.grid.locking { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -19523,11 +24095,12 @@ declare module Ext.grid.locking { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -19554,25 +24127,25 @@ declare module Ext.grid.locking { } declare module Ext.grid { export interface ILockingView extends Ext.IBase,Ext.util.IObservable { - /** [Property] (Boolean) true in this class to identify an object as an instantiated LockingView, or subclass thereof. ... */ + /** [Property] (Boolean) */ isLockingView?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -19582,8 +24155,9 @@ declare module Ext.grid { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -19595,31 +24169,32 @@ declare module Ext.grid { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -19638,11 +24213,12 @@ declare module Ext.grid { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -19669,88 +24245,88 @@ declare module Ext.grid { } declare module Ext.grid { export interface IPanel extends Ext.panel.ITable { - /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + /** [Config Option] (Ext.grid.column.Column[]/Object) */ columns?: any; - /** [Config Option] (Boolean) False to remove row line styling ... */ + /** [Config Option] (Boolean) */ rowLines?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ + /** [Config Option] (String) */ viewType?: string; /** [Method] Reconfigures the grid with a new store columns - * @param store Ext.data.IStore The new store. + * @param store Ext.data.Store The new store. * @param columns Object[] An array of column configs */ - reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; - } -} -declare module Ext { - export interface IListView extends Ext.panel.ITable { - /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ - columns?: any; - /** [Config Option] (Boolean) False to remove row line styling ... */ - rowLines?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ - viewType?: string; - /** [Method] Reconfigures the grid with a new store columns - * @param store Ext.data.IStore The new store. - * @param columns Object[] An array of column configs - */ - reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; - } -} -declare module Ext.grid { - export interface IGridPanel extends Ext.panel.ITable { - /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ - columns?: any; - /** [Config Option] (Boolean) False to remove row line styling ... */ - rowLines?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ - viewType?: string; - /** [Method] Reconfigures the grid with a new store columns - * @param store Ext.data.IStore The new store. - * @param columns Object[] An array of column configs - */ - reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + reconfigure?( store?:Ext.data.IStore, columns?:any[] ): void; } } declare module Ext.list { export interface IListView extends Ext.panel.ITable { - /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + /** [Config Option] (Ext.grid.column.Column[]/Object) */ columns?: any; - /** [Config Option] (Boolean) False to remove row line styling ... */ + /** [Config Option] (Boolean) */ rowLines?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ + /** [Config Option] (String) */ viewType?: string; /** [Method] Reconfigures the grid with a new store columns - * @param store Ext.data.IStore The new store. + * @param store Ext.data.Store The new store. * @param columns Object[] An array of column configs */ - reconfigure?( store?:Ext.data.IStore, columns?:Object[] ): void; + reconfigure?( store?:Ext.data.IStore, columns?:any[] ): void; + } +} +declare module Ext { + export interface IListView extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) */ + columns?: any; + /** [Config Option] (Boolean) */ + rowLines?: bool; + /** [Config Option] (String) */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.Store The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:any[] ): void; + } +} +declare module Ext.grid { + export interface IGridPanel extends Ext.panel.ITable { + /** [Config Option] (Ext.grid.column.Column[]/Object) */ + columns?: any; + /** [Config Option] (Boolean) */ + rowLines?: bool; + /** [Config Option] (String) */ + viewType?: string; + /** [Method] Reconfigures the grid with a new store columns + * @param store Ext.data.Store The new store. + * @param columns Object[] An array of column configs + */ + reconfigure?( store?:Ext.data.IStore, columns?:any[] ): void; } } declare module Ext.grid.plugin { export interface IBufferedRenderer extends Ext.IAbstractPlugin { - /** [Config Option] (Number) The number of extra rows to render on the leading side of scrolling outside the numFromEdge buffer as scrolling proce... */ + /** [Config Option] (Number) */ leadingBufferZone?: number; - /** [Config Option] (Number) The zone which causes new rows to be appended to the view. ... */ + /** [Config Option] (Number) */ numFromEdge?: number; - /** [Config Option] (Number) ... */ + /** [Config Option] (Number) */ percentageFromEdge?: number; - /** [Config Option] (Number) This is the time in milliseconds to buffer load requests when scrolling the PagingScrollbar. ... */ + /** [Config Option] (Number) */ scrollToLoadBuffer?: number; - /** [Config Option] (Boolean) By default, on detection of a scroll event which brings the end of the rendered table within numFromEdge rows of the ... */ + /** [Config Option] (Boolean) */ synchronousRender?: bool; - /** [Config Option] (Number) The number of extra rows to render on the trailing side of scrolling outside the numFromEdge buffer as scrolling proc... */ + /** [Config Option] (Number) */ trailingBufferZone?: number; - /** [Config Option] (Boolean) Configure as true if the row heights are not all the same height as the first row. ... */ + /** [Config Option] (Boolean) */ variableRowHeight?: bool; - /** [Property] (Number) Current pixel scroll position of the associated View. ... */ + /** [Property] (Number) */ position?: number; /** [Method] The destroy method is invoked by the owning Component at the time the Component is being destroyed */ destroy?(): void; - /** [Method] Initialize this as a plugin The init method is invoked after initComponent method has been run for the client Compon - * @param client Ext.IComponent The client Component which owns this plugin. + /** [Method] Initialize this as a plugin + * @param grid Object */ - init?( client?:Ext.IComponent ): void; + init?( grid?:any ): void; /** [Method] Scrolls to and optionlly selects the specified row index in the total dataset * @param recordIdx Number The zero-based position in the dataset to scroll to. * @param doSelect Boolean Pass as true to select the specified row. @@ -19767,8 +24343,8 @@ declare module Ext.grid.plugin { /** [Method] Completes the edit if there is an active edit in progress */ completeEdit?(): void; /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited - * @param record any The Store data record which backs the row to be edited, or index of the record. - * @param columnHeader any The Column object defining the column to be edited, or index of the column. + * @param record Ext.data.Model/Number The Store data record which backs the row to be edited, or index of the record. + * @param columnHeader Ext.grid.column.Column/Number The Column object defining the column to be edited, or index of the column. */ startEdit?( record?:any, columnHeader?:any ): any; startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.grid.column.IColumn ): bool; @@ -19783,63 +24359,59 @@ declare module Ext.grid.plugin { } declare module Ext.grid.plugin { export interface IDragDrop extends Ext.IAbstractPlugin { - /** [Config Option] (Object/Boolean) true to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + /** [Config Option] (Object/Boolean) */ containerScroll?: any; - /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + /** [Config Option] (String) */ ddGroup?: string; - /** [Config Option] (String) The ddGroup to which the DragZone will belong. ... */ + /** [Config Option] (String) */ dragGroup?: string; - /** [Config Option] (String) The text to show while dragging. ... */ + /** [Config Option] (String) */ dragText?: string; - /** [Config Option] (String) The ddGroup to which the DropZone will belong. ... */ + /** [Config Option] (String) */ dropGroup?: string; - /** [Config Option] (Boolean) false to disallow dragging items from the View. ... */ + /** [Config Option] (Boolean) */ enableDrag?: bool; - /** [Config Option] (Boolean) false to disallow the View from accepting drop gestures. ... */ + /** [Config Option] (Boolean) */ enableDrop?: bool; /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ disable?(): void; /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ enable?(): void; /** [Method] The init method is invoked after initComponent method has been run for the client Component - * @param client Ext.IComponent The client Component which owns this plugin. + * @param view Object */ - init?( client?:Ext.IComponent ): void; + init?( view?:any ): void; } } declare module Ext.grid.plugin { export interface IEditing extends Ext.IAbstractPlugin,Ext.util.IObservable { - /** [Config Option] (Number) The number of clicks on a grid required to display the editor. ... */ + /** [Config Option] (Number) */ clicksToEdit?: number; - /** [Config Option] (String) The event which triggers editing. ... */ + /** [Config Option] (String) */ triggerEvent?: string; /** [Property] (Boolean) */ editing?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; - /** [Method] Template method called before editing begins - * @param context Object The current editing context - */ - beforeEdit?( context?:any ): bool; /** [Method] Cancels any active edit that is in progress */ cancelEdit?(): void; /** [Method] Removes all listeners for this object including the managed listeners */ @@ -19849,8 +24421,9 @@ declare module Ext.grid.plugin { /** [Method] Completes the edit if there is an active edit in progress */ completeEdit?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -19862,31 +24435,32 @@ declare module Ext.grid.plugin { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -19905,11 +24479,12 @@ declare module Ext.grid.plugin { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -19919,9 +24494,10 @@ declare module Ext.grid.plugin { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited - * @param record Ext.data.IModel The Store data record which backs the row to be edited, or index of the record in Store. - * @param columnHeader Ext.grid.column.IColumn The Column object defining the column to be edited, or index of the column. + * @param record Ext.data.Model/Number The Store data record which backs the row to be edited, or index of the record in Store. + * @param columnHeader Ext.grid.column.Column/Number The Column object defining the column to be edited, or index of the column. */ + startEdit?( record?:any, columnHeader?:any ): any; startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.grid.column.IColumn ): void; startEdit?( record?:number, columnHeader?:Ext.grid.column.IColumn ): void; startEdit?( record?:Ext.data.IModel, columnHeader?:number ): void; @@ -19949,14 +24525,14 @@ declare module Ext.grid.plugin { /** [Method] The base implementation just sets the plugin s disabled flag to false Plugin subclasses which need more complex proc */ enable?(): void; /** [Method] The init method is invoked after initComponent method has been run for the client Component - * @param client Ext.IComponent The client Component which owns this plugin. + * @param headerCt Object */ - init?( client?:Ext.IComponent ): void; + init?( headerCt?:any ): void; } } declare module Ext.grid.plugin { export interface IHeaderResizer extends Ext.IAbstractPlugin { - /** [Config Option] (Boolean) True to resize on the fly rather than using a proxy marker. ... */ + /** [Config Option] (Boolean) */ dynamic?: bool; /** [Method] The base implementation just sets the plugin s disabled flag to true Plugin subclasses which need more complex proce */ disable?(): void; @@ -19965,9 +24541,9 @@ declare module Ext.grid.plugin { /** [Method] Returns the value of dynamic */ getDynamic?(): bool; /** [Method] not using w and e resize bc we are only ever resizing one column wResizeCursor Ext isWebKit w resize col resi - * @param client Ext.IComponent The client Component which owns this plugin. + * @param headerCt Object */ - init?( client?:Ext.IComponent ): void; + init?( headerCt?:any ): void; /** [Method] Sets the value of dynamic * @param dynamic Boolean */ @@ -19976,63 +24552,59 @@ declare module Ext.grid.plugin { } declare module Ext.grid.plugin { export interface IRowEditing extends Ext.grid.plugin.IEditing { - /** [Config Option] (Boolean) true to automatically cancel any pending changes when the row editor begins editing a new row. ... */ + /** [Config Option] (Boolean) */ autoCancel?: bool; - /** [Config Option] (Number) The number of clicks to move the row editor to a new row while it is visible and actively editing another row. ... */ + /** [Config Option] (Number) */ clicksToMoveEditor?: number; - /** [Config Option] (Boolean) True to show a tooltip that summarizes all validation errors present in the row editor. ... */ + /** [Config Option] (Boolean) */ errorSummary?: bool; /** [Method] Starts editing the specified record using the specified Column definition to define which field is being edited - * @param record Ext.data.IModel The Store data record which backs the row to be edited. - * @param columnHeader Ext.data.IModel The Column object defining the column to be edited. + * @param record Ext.data.Model The Store data record which backs the row to be edited. + * @param columnHeader Ext.data.Model The Column object defining the column to be edited. */ startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.data.IModel ): bool; } } declare module Ext.grid.plugin { export interface IRowExpander extends Ext.IAbstractPlugin { - /** [Config Option] (Boolean) true to toggle a row between expanded/collapsed when double clicked (defaults to true). ... */ + /** [Config Option] (Boolean) */ expandOnDblClick?: bool; - /** [Config Option] (Boolean) true to toggle selected row(s) between expanded/collapsed when the enter key is pressed (defaults to true). ... */ + /** [Config Option] (Boolean) */ expandOnEnter?: bool; - /** [Config Option] (Boolean) true to select a row when clicking on the expander icon (defaults to false). ... */ + /** [Config Option] (Boolean) */ selectRowOnExpand?: bool; /** [Method] The init method is invoked after initComponent method has been run for the client Component - * @param client Ext.IComponent The client Component which owns this plugin. + * @param grid Object */ - init?( client?:Ext.IComponent ): void; + init?( grid?:any ): void; } } declare module Ext.grid.property { export interface IGrid extends Ext.grid.IPanel { - /** [Config Option] (Boolean) Adds column line styling ... */ + /** [Config Option] (Boolean) */ columnLines?: bool; - /** [Config Option] (Object) An object containing name/value pairs of custom editor type definitions that allow the grid to support additional typ... */ + /** [Config Option] (Object) */ customEditors?: any; - /** [Config Option] (Object) An object containing name/value pairs of custom renderer type definitions that allow the grid to support custom rende... */ + /** [Config Option] (Object) */ customRenderers?: any; - /** [Config Option] (Boolean) private config overrides False to disable column dragging within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnMove?: bool; - /** [Config Option] (Boolean) True to automatically infer the type based on the initial value passed for each field. ... */ + /** [Config Option] (Boolean) */ inferTypes?: bool; - /** [Config Option] (Number/String) Specify the width for the name column. ... */ + /** [Config Option] (Number/String) */ nameColumnWidth?: any; - /** [Config Option] (String) The name of the field from the property store to use as the property field name. ... */ + /** [Config Option] (String) */ nameField?: string; - /** [Config Option] (Object) An object containing custom property name/display name pairs. ... */ + /** [Config Option] (Object) */ propertyNames?: any; /** [Config Option] (Object) */ source?: any; - /** [Config Option] (Object) This option allows various configurations to be set for each field in the property grid. ... */ + /** [Config Option] (Object) */ sourceConfig?: any; - /** [Config Option] (String) The name of the field from the property store to use as the value field name. ... */ + /** [Config Option] (String) */ valueField?: string; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets the source data object containing the property data */ getSource?(): any; - /** [Method] private The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Removes a property from the grid * @param prop String The name of the property to remove. */ @@ -20052,34 +24624,30 @@ declare module Ext.grid.property { } declare module Ext.grid { export interface IPropertyGrid extends Ext.grid.IPanel { - /** [Config Option] (Boolean) Adds column line styling ... */ + /** [Config Option] (Boolean) */ columnLines?: bool; - /** [Config Option] (Object) An object containing name/value pairs of custom editor type definitions that allow the grid to support additional typ... */ + /** [Config Option] (Object) */ customEditors?: any; - /** [Config Option] (Object) An object containing name/value pairs of custom renderer type definitions that allow the grid to support custom rende... */ + /** [Config Option] (Object) */ customRenderers?: any; - /** [Config Option] (Boolean) private config overrides False to disable column dragging within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnMove?: bool; - /** [Config Option] (Boolean) True to automatically infer the type based on the initial value passed for each field. ... */ + /** [Config Option] (Boolean) */ inferTypes?: bool; - /** [Config Option] (Number/String) Specify the width for the name column. ... */ + /** [Config Option] (Number/String) */ nameColumnWidth?: any; - /** [Config Option] (String) The name of the field from the property store to use as the property field name. ... */ + /** [Config Option] (String) */ nameField?: string; - /** [Config Option] (Object) An object containing custom property name/display name pairs. ... */ + /** [Config Option] (Object) */ propertyNames?: any; /** [Config Option] (Object) */ source?: any; - /** [Config Option] (Object) This option allows various configurations to be set for each field in the property grid. ... */ + /** [Config Option] (Object) */ sourceConfig?: any; - /** [Config Option] (String) The name of the field from the property store to use as the value field name. ... */ + /** [Config Option] (String) */ valueField?: string; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets the source data object containing the property data */ getSource?(): any; - /** [Method] private The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Removes a property from the grid * @param prop String The name of the property to remove. */ @@ -20107,133 +24675,76 @@ declare module Ext.grid { } declare module Ext.grid.property { export interface IProperty extends Ext.data.IModel { - /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + /** [Config Option] (String/Object/Ext.data.Field) */ idProperty?: any; - /** [Property] (Ext.util.MixedCollection) A Collection of the fields defined for this Model (including fields defined in superclasses) This is a collection of... */ + /** [Property] (Ext.util.MixedCollection) */ fields?: Ext.util.IMixedCollection; } } declare module Ext { export interface IPropGridProperty extends Ext.data.IModel { - /** [Config Option] (String/Object/Ext.data.Field) The name of the field treated as this Model's unique id. ... */ + /** [Config Option] (String/Object/Ext.data.Field) */ idProperty?: any; - /** [Property] (Ext.util.MixedCollection) A Collection of the fields defined for this Model (including fields defined in superclasses) This is a collection of... */ + /** [Property] (Ext.util.MixedCollection) */ fields?: Ext.util.IMixedCollection; } } declare module Ext.grid.property { export interface IStore extends Ext.data.IStore { - /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Boolean) */ sortOnLoad?: bool; - /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader Returns the proxy currently */ + /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader */ getProxy?(): Ext.data.proxy.IProxy; - /** [Method] Should only be called by the grid */ - getSource?(): void; - /** [Method] Should only be called by the grid - * @param dataObject Object - */ - setSource?( dataObject?:any ): void; } } declare module Ext.grid { export interface IPropertyStore extends Ext.data.IStore { - /** [Config Option] (Boolean) If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. ... */ + /** [Config Option] (Boolean) */ sortOnLoad?: bool; - /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader Returns the proxy currently */ + /** [Method] Return a singleton customized Proxy object which configures itself with a custom Reader */ getProxy?(): Ext.data.proxy.IProxy; - /** [Method] Should only be called by the grid */ - getSource?(): void; - /** [Method] Should only be called by the grid - * @param dataObject Object - */ - setSource?( dataObject?:any ): void; } } declare module Ext.grid { export interface IRowEditor extends Ext.form.IPanel { - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; - /** [Config Option] (String) Change the hideMode to offsets so that we get accurate measurements when the roweditor is hidden for laying out thing... */ + /** [Config Option] (String) */ hideMode?: string; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; - /** [Method] Returns the x coordinate of this element reletive to its offsetParent */ - getLocalX?(): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Returns true if any fields in this form have changed from their original values */ + /** [Method] Lie to the CQ system about our nesting structure */ + getRefItems?(): void; + /** [Method] Convenience function to check if the form has any dirty fields */ isDirty?(): bool; /** [Method] Loads an Ext data Model into this form internally just calls Ext form Basic loadRecord See also trackResetOnLoad - * @param record Ext.data.IModel The record to load + * @param record Object */ - loadRecord?( record?:Ext.data.IModel ): Ext.form.IBasic; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + loadRecord?( record?:any ): Ext.form.IBasic; + /** [Method] Possibly animates down to a target element */ + onHide?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Start editing the specified grid at the specified position - * @param record Ext.data.IModel The Store data record which backs the row to be edited. - * @param columnHeader Ext.data.IModel The Column object defining the column to be edited. + * @param record Ext.data.Model The Store data record which backs the row to be edited. + * @param columnHeader Ext.data.Model The Column object defining the column to be edited. */ startEdit?( record?:Ext.data.IModel, columnHeader?:Ext.data.IModel ): void; } } declare module Ext.grid { export interface IRowEditorButtons extends Ext.container.IContainer { - /** [Config Option] (Boolean) Specify as true to have the Component inject framing elements within the Component at render time to provide a graphi... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Method] Work round position absolute 100 width bug in IEQuirks Called by the layout system after the Component has been lai - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; - } -} -declare module Ext.grid { - export interface IRowNumberer extends Ext.grid.column.IColumn { - /** [Config Option] (String) Sets the alignment of the header and rendered columns. ... */ - align?: string; - /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ - cls?: string; - /** [Config Option] (String) The name of the field in the grid's Ext.data.Store's Ext.data.Model definition from which to draw the column's value. ... */ - dataIndex?: string; - /** [Config Option] (Boolean) False to disable drag-drop reordering of this column. ... */ - draggable?: bool; - /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ - hideable?: bool; - /** [Config Option] (Boolean) May not be moved from its preferred locked side when grid is enableLocking:true If the grid is configured with enabl... */ - lockable?: bool; - /** [Config Option] (Boolean) True to disable the column header menu containing sort/hide options. ... */ - menuDisabled?: bool; - /** [Config Option] (Boolean) private False to prevent the column from being resizable. ... */ - resizable?: bool; - /** [Config Option] (String) Any valid text or HTML fragment to display in the header cell for the row number column. ... */ - text?: string; - /** [Config Option] (Number) The default width in pixels of the row number column. ... */ - width?: number; + /** [Config Option] (Boolean/Number) */ + shrinkWrap?: any; } } declare module Ext.grid { export interface IView extends Ext.view.ITable { - /** [Config Option] (Boolean) true to use overflow:'auto' on the components layout element and show scroll bars automatically when necessary, false... */ + /** [Config Option] (Boolean) */ autoScroll?: bool; - /** [Config Option] (Boolean) True to stripe the rows. ... */ + /** [Config Option] (Boolean) */ stripeRows?: bool; } } @@ -20243,27 +24754,24 @@ declare module Ext.grid { } declare module Ext { export interface IImg extends Ext.IComponent { - /** [Config Option] (String) The descriptive text for non-visual UI description. ... */ + /** [Config Option] (String) */ alt?: string; - /** [Config Option] (String/Object) A tag name or DomHelper spec used to create the Element which will encapsulate this Component. ... */ + /** [Config Option] (String/Object) */ autoEl?: any; - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String) A numeric unicode character code to serve as the image. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (String) Optional CSS classes to add to the img element. ... */ + /** [Config Option] (String) */ imgCls?: string; - /** [Config Option] (String) The image src. ... */ + /** [Config Option] (String) */ src?: string; - /** [Config Option] (String) Specifies addtional information about the image. ... */ + /** [Config Option] (String) */ title?: string; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; /** [Method] Updates the src of the image * @param src String */ @@ -20271,39 +24779,39 @@ declare module Ext { } } declare module Ext { - export interface Iis { + export interface IIs { } - export class is { + export class Is { } } declare module Ext { - /** [Property] (String) URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. ... */ + /** [Property] (String) */ export var BLANK_IMAGE_URL: string; - /** [Property] (String) URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent the IE insecure content... */ + /** [Property] (String) */ export var SSL_SECURE_URL: string; - /** [Property] (Boolean) Indicates whether to use native browser parsing for JSON methods. ... */ + /** [Property] (Boolean) */ export var USE_NATIVE_JSON: bool; /** [Property] (Number) */ export var chromeVersion: number; /** [Property] (Function) */ export var emptyFn: any; - /** [Property] (Object) A zero length string which will pass a truth test. ... */ + /** [Property] (Object) */ export var emptyString: any; /** [Property] (Boolean) */ export var enableFx: bool; - /** [Property] (Boolean) True to automatically uncache orphaned Ext.Elements periodically ... */ + /** [Property] (Boolean) */ export var enableGarbageCollector: bool; - /** [Property] (Boolean) True to automatically purge event listeners during garbageCollection. ... */ + /** [Property] (Boolean) */ export var enableListenerCollection: bool; - /** [Property] (Boolean) Experimental. ... */ + /** [Property] (Boolean) */ export var enableNestedListenerRemoval: bool; /** [Property] (String[]) */ export var enumerables: string[]; /** [Property] (Number) */ export var firefoxVersion: number; - /** [Property] (Ext.util.Observable) An instance of Ext.util.Observable through which Ext fires global events. ... */ + /** [Property] (Ext.util.Observable) */ export var globalEvents: Ext.util.IObservable; - /** [Property] (Number) The current version of IE (0 if the browser is not IE). ... */ + /** [Property] (Number) */ export var ieVersion: number; /** [Property] (Boolean) */ export var isChrome: bool; @@ -20319,15 +24827,15 @@ declare module Ext { export var isFF4: bool; /** [Property] (Boolean) */ export var isFF5: bool; - /** [Property] (Boolean) True if the detected browser uses the Gecko layout engine (e.g. ... */ + /** [Property] (Boolean) */ export var isGecko: bool; - /** [Property] (Boolean) True if the detected browser uses a Gecko 5.0+ layout engine (e.g. ... */ + /** [Property] (Boolean) */ export var isGecko10: bool; - /** [Property] (Boolean) True if the detected browser uses a Gecko 1.9+ layout engine (e.g. ... */ + /** [Property] (Boolean) */ export var isGecko3: bool; - /** [Property] (Boolean) True if the detected browser uses a Gecko 2.0+ layout engine (e.g. ... */ + /** [Property] (Boolean) */ export var isGecko4: bool; - /** [Property] (Boolean) True if the detected browser uses a Gecko 5.0+ layout engine (e.g. ... */ + /** [Property] (Boolean) */ export var isGecko5: bool; /** [Property] (Boolean) */ export var isIE: bool; @@ -20365,7 +24873,7 @@ declare module Ext { export var isOpera: bool; /** [Property] (Boolean) */ export var isOpera10_5: bool; - /** [Property] (Boolean) True when the document is fully initialized and ready for action ... */ + /** [Property] (Boolean) */ export var isReady: bool; /** [Property] (Boolean) */ export var isSafari: bool; @@ -20385,13 +24893,13 @@ declare module Ext { export var isWebKit: bool; /** [Property] (Boolean) */ export var isWindows: bool; - /** [Property] (String) The name of the property in the global namespace (The window in browser environments) which refers to the current ins... */ + /** [Property] (String) */ export var name: string; /** [Property] (Number) */ export var operaVersion: number; /** [Property] (Number) */ export var safariVersion: number; - /** [Property] (Boolean) By default, Ext intelligently decides whether floating elements should be shimmed. ... */ + /** [Property] (Boolean) */ export var useShims: bool; /** [Property] (Number) */ export var webKitVersion: number; @@ -20400,12 +24908,13 @@ declare module Ext { */ export function addBehaviors( obj?:any ): void; /** [Method] Adds namespace s to known list - * @param namespace String + * @param namespace String/String[] */ + export function addNamespaces( namespace?:any ): any; export function addNamespaces( namespace?:string ): void; export function addNamespaces( namespace?:string[] ): void; /** [Method] Loads Ext app Application class and starts it up with given configuration after the page is ready - * @param config any Application config object or name of a class derived from Ext.app.Application. + * @param config Object/String Application config object or name of a class derived from Ext.app.Application. */ export function application( config?:any ): void; /** [Method] Copies all the properties of config to the specified object @@ -20425,10 +24934,10 @@ declare module Ext { */ export function batchLayouts( fn?:any, scope?:any ): void; /** [Method] Create a new function from the provided fn change this to the provided scope optionally overrides arguments for the - * @param fn any The function to delegate. - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to delegate. + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the default global environment object (usually the browser window). + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ export function bind( fn?:any, scope?:any, args?:any, appendArgs?:any ): any; export function bind( fn?:any, scope?:any, args?:any[], appendArgs?:bool ): any; @@ -20439,7 +24948,11 @@ declare module Ext { * @param args Array The arguments to pass to the function * @param delay Number Pass a number to delay the call by a number of milliseconds. */ - export function callback( callback?:any, scope?:any, args?:any[], delay?:number ): void; + export function callback( callback?:any, scope?:any, args?:any[], delay?:number ): any; + /** [Method] Old alias to Ext Array clean + * @param array Array + */ + export function clean( array?:any[] ): any[]; /** [Method] Clone simple variables including array like objects DOM nodes and Date without keeping the old reference * @param item Object The variable to clone */ @@ -20450,10 +24963,10 @@ declare module Ext { */ export function coerce( from?:any, to?:any ): any; /** [Method] Copies a set of named properties fom the source object to the destination object - * @param dest any The destination object. - * @param source any The source object. - * @param names any Either an Array of property names, or a comma-delimited list of property names to copy. - * @param usePrototypeKeys any Defaults to false. Pass true to copy keys off of the prototype as well as the instance. + * @param dest Object The destination object. + * @param source Object The source object. + * @param names String/String[] Either an Array of property names, or a comma-delimited list of property names to copy. + * @param usePrototypeKeys Boolean Defaults to false. Pass true to copy keys off of the prototype as well as the instance. */ export function copyTo( dest?:any, source?:any, names?:any, usePrototypeKeys?:any ): any; export function copyTo( dest?:any, source?:any, names?:string, usePrototypeKeys?:bool ): any; @@ -20468,17 +24981,19 @@ declare module Ext { * @param args Object... Additional arguments after the alias will be passed to the class constructor. */ export function createByAlias( alias:string, ...args:any[] ): any; - /** [Method] Shorthand for Ext JSON decode Decodes parses a JSON string to an object + /** [Method] Old name for widget */ + export function createWidget(): void; + /** [Method] Shorthand for Ext JSON decode * @param json String The JSON string * @param safe Boolean True to return null, false to throw an exception if the JSON is invalid. */ export function decode( json?:string, safe?:bool ): any; /** [Method] Calls this function after the number of millseconds specified optionally in a specific scope - * @param fn any The function to defer. - * @param millis any The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) - * @param scope any The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. - * @param args any Overrides arguments for the call. (Defaults to the arguments passed by the caller) - * @param appendArgs any if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position + * @param fn Function The function to defer. + * @param millis Number The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately) + * @param scope Object The scope (this reference) in which the function is executed. If omitted, defaults to the browser window. + * @param args Array Overrides arguments for the call. (Defaults to the arguments passed by the caller) + * @param appendArgs Boolean/Number if True args are appended to call args instead of overriding, if a number the args are inserted at the specified position */ export function defer( fn?:any, millis?:any, scope?:any, args?:any, appendArgs?:any ): any; export function defer( fn?:any, millis?:number, scope?:any, args?:any[], appendArgs?:bool ): number; @@ -20497,41 +25012,55 @@ declare module Ext { */ export function deprecate( packageName?:string, since?:string, closure?:any, scope?:any ): void; /** [Method] Attempts to destroy any objects passed to it by removing all event listeners removing them from the DOM if applicab - * @param args Ext.IElement An Ext.Element, Ext.Component, or an Array of either of these to destroy + * @param args Ext.dom.Element/Ext.util.Observable/Ext.dom.Element[]/Ext.util.Observable[]... Any number of elements or components, or an Array of either of these to destroy. */ - export function destroy( args?:Ext.IElement ): void; - export function destroy( args?:Ext.IComponent ): void; - export function destroy( args?:Ext.IElement[] ): void; - export function destroy( args:Ext.IComponent[] ): void; + export function destroy( args?:any ): any; + export function destroy( args?:Ext.dom.IElement ): void; + export function destroy( args?:Ext.util.IObservable ): void; + export function destroy( args?:Ext.dom.IElement[] ): void; + export function destroy( args:Ext.util.IObservable[] ): void; /** [Method] Attempts to destroy and then remove a set of named properties of the passed object * @param o Object The object (most likely a Component) who's properties you wish to destroy. * @param args String... One or more names of the properties to destroy and remove from the object. */ export function destroyMembers( o:any, ...args:any[] ): void; /** [Method] Iterates an array or an iterable value and invoke the given callback function for each item - * @param iterable any The value to be iterated. If this argument is not iterable, the callback function is called once. + * @param iterable Array/NodeList/Object The value to be iterated. If this argument is not iterable, the callback function is called once. * @param fn Function The callback function. If it returns false, the iteration stops and this method returns the current index. * @param scope Object The scope (this reference) in which the specified function is executed. * @param reverse Boolean Reverse the iteration order (loop from the end to the beginning) Defaults false */ export function each( iterable?:any, fn?:any, scope?:any, reverse?:bool ): bool; - /** [Method] Shorthand for Ext JSON encode Encodes an Object Array or other value + /** [Method] Shorthand for Ext JSON encode * @param o Object The variable to encode */ export function encode( o?:any ): string; - /** [Method] Convenient shortcut to Ext Loader exclude Explicitly exclude files from being loaded + /** [Method] Escapes the passed string for use in a regular expression + * @param str String + */ + export function escapeRe( str?:string ): string; + /** [Method] Convenient shortcut to Ext Loader exclude * @param excludes Array */ export function exclude( excludes?:any[] ): any; + /** [Method] This method deprecated + * @param superclass Function + * @param overrides Object + */ + export function extend( superclass?:any, overrides?:any ): any; + /** [Method] Old alias to Ext Array flatten + * @param array Array The array to flatten + */ + export function flatten( array?:any[] ): any[]; /** [Method] Gets the singleton flyweight element with the passed node as the active element - * @param dom any The dom node or id - * @param named any Allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_global") + * @param dom String/HTMLElement The dom node or id + * @param named String Allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_global") */ export function fly( dom?:any, named?:any ): any; export function fly( dom?:string, named?:string ): Ext.dom.element.IFly; export function fly( dom?:HTMLElement, named?:string ): Ext.dom.element.IFly; /** [Method] Retrieves Ext dom Element objects - * @param el any The id of the node, a DOM Node or an existing Element. + * @param el String/HTMLElement/Ext.Element The id of the node, a DOM Node or an existing Element. */ export function get( el?:any ): any; export function get( el?:string ): Ext.dom.IElement; @@ -20544,7 +25073,7 @@ declare module Ext { */ export function getClass( object?:any ): Ext.IClass; /** [Method] Get the name of the class by its reference or its instance Ext ClassManager getName is usually invoked by the short - * @param object any + * @param object Ext.Class/Object */ export function getClassName( object?:any ): string; /** [Method] This is shorthand reference to Ext ComponentManager get @@ -20554,7 +25083,7 @@ declare module Ext { /** [Method] Returns the current HTML document object as an Ext Element */ export function getDoc(): Ext.IElement; /** [Method] Returns the dom node for the passed String id dom node or Ext Element - * @param el any + * @param el String/HTMLElement/Ext.Element */ export function getDom( el?:any ): any; export function getDom( el?:string ): any; @@ -20568,21 +25097,33 @@ declare module Ext { export function getNamespace( className?:string ): string; /** [Method] Returns the current orientation of the mobile device */ export function getOrientation(): string; + /** [Method] Utility method for getting the width of the browser s vertical scrollbar + * @param force Boolean true to force a recalculation of the value. + */ + export function getScrollBarWidth( force?:bool ): number; /** [Method] Returns the size of the browser scrollbars * @param force Boolean true to force a recalculation of the value. */ export function getScrollbarSize( force?:bool ): any; /** [Method] Shortcut to Ext data StoreManager lookup - * @param store any The id of the Store, or a Store instance, or a store configuration + * @param store String/Object The id of the Store, or a Store instance, or a store configuration */ export function getStore( store?:any ): Ext.data.IStore; /** [Method] Get the version number of the supplied package name will return the last registered version last Ext setVersion cal * @param packageName String The package name, for example: 'core', 'touch', 'extjs' */ export function getVersion( packageName?:string ): Ext.IVersion; + /** [Method] Old alias to Ext String htmlDecode + * @param value String The string to decode. + */ + export function htmlDecode( value?:string ): string; + /** [Method] Old alias to Ext String htmlEncode + * @param value String The string to encode. + */ + export function htmlEncode( value?:string ): string; /** [Method] Generates unique ids - * @param el any The element to generate an id for - * @param prefix any Id prefix (defaults "ext-gen") + * @param el HTMLElement/Ext.Element The element to generate an id for + * @param prefix String Id prefix (defaults "ext-gen") */ export function id( el?:any, prefix?:any ): any; export function id( el?:HTMLElement, prefix?:string ): string; @@ -20591,6 +25132,14 @@ declare module Ext { * @param o Object */ export function identityFn( o?:any ): void; + /** [Method] Invokes a method on each item in an Array + * @param arr Array/NodeList The Array of items to invoke the method on. + * @param methodName String The method name to invoke. + * @param args Object... Arguments to send into the method invocation. + */ + export function invoke( arr?:any, methodName?:any, args?:any ): any; + export function invoke( arr:any[], methodName:string, ...args:any[] ): any[]; + export function invoke( arr:NodeList, methodName:string, ...args:any[] ): any[]; /** [Method] Returns true if the passed value is a JavaScript Array false otherwise * @param target Object The target to test */ @@ -20620,7 +25169,7 @@ declare module Ext { * @param value Object The value to test */ export function isFunction( value?:any ): bool; - /** [Method] Returns true if the passed value is iterable false otherwise + /** [Method] Returns true if the passed value is iterable that is if elements of it are addressable using array notation with nu * @param value Object The value to test */ export function isIterable( value?:any ): bool; @@ -20649,21 +25198,39 @@ declare module Ext { */ export function isTextNode( value?:any ): bool; /** [Method] Iterates either an array or an object - * @param object any The object or array to be iterated. + * @param object Object/Array The object or array to be iterated. * @param fn Function The function to be called for each iteration. See and Ext.Array.each and Ext.Object.each for detailed lists of arguments passed to this function depending on the given object type that is being iterated. * @param scope Object The scope (this reference) in which the specified function is executed. Defaults to the object being iterated itself. */ export function iterate( object?:any, fn?:any, scope?:any ): void; /** [Method] Logs a message - * @param options any The message to log or an options object with any of the following properties: msg: The message to log (required). level: One of: "error", "warn", "info" or "log" (the default is "log"). dump: An object to dump to the log as part of the message. stack: True to include a stack trace in the log. indent: Cause subsequent log statements to be indented one step. outdent: Cause this and following statements to be one step less indented. + * @param options String/Object The message to log or an options object with any of the following properties: msg: The message to log (required). level: One of: "error", "warn", "info" or "log" (the default is "log"). dump: An object to dump to the log as part of the message. stack: True to include a stack trace in the log. indent: Cause subsequent log statements to be indented one step. outdent: Cause this and following statements to be one step less indented. * @param message String... The message to log (required unless specified in options object). */ export function log( options:any, ...message:any[] ): void; + /** [Method] Old alias to Ext Array max + * @param array Array/NodeList The Array from which to select the maximum value. + * @param comparisonFn Function a function to perform the comparision which determines maximization. If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 + */ + export function max( array?:any, comparisonFn?:any ): any; + export function max( array?:any[], comparisonFn?:any ): any; + export function max( array?:NodeList, comparisonFn?:any ): any; + /** [Method] Old alias to Ext Array mean + * @param array Array The Array to calculate the mean value of. + */ + export function mean( array?:any[] ): number; /** [Method] A convenient alias method for Ext Object merge * @param destination Object The object into which all subsequent objects are merged. * @param object Object... Any number of objects to merge into the destination. */ export function merge( destination:any, ...object:any[] ): any; + /** [Method] Old alias to Ext Array min + * @param array Array/NodeList The Array from which to select the minimum value. + * @param comparisonFn Function a function to perform the comparision which determines minimization. If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 + */ + export function min( array?:any, comparisonFn?:any ): any; + export function min( array?:any[], comparisonFn?:any ): any; + export function min( array?:NodeList, comparisonFn?:any ): any; /** [Method] Creates namespaces to be used for scoping variables and classes so that they are not global * @param namespaces String... */ @@ -20672,8 +25239,13 @@ declare module Ext { * @param namespaces String... */ export function ns( ...namespaces:any[] ): any; + /** [Method] Validate that a value is numeric and convert it to a number if necessary + * @param value Object + * @param defaultValue Number The value to return if the original value is non-numeric + */ + export function num( value?:any, defaultValue?:number ): number; /** [Method] Shorthand for the Ext util Observable addListener method of the globalEvents Observable instance - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -20696,24 +25268,43 @@ declare module Ext { * @param overrides Object The properties to add or replace on target. */ export function override( target?:any, overrides?:any ): void; + /** [Method] Partitions the set into two sets a true set and a false set + * @param arr Array/NodeList The array to partition + * @param truth Function a function to determine truth. If this is omitted the element itself must be able to be evaluated for its truthfulness. + */ + export function partition( arr?:any, truth?:any ): any; + export function partition( arr?:any[], truth?:any ): any[]; + export function partition( arr?:NodeList, truth?:any ): any[]; /** [Method] Create a new function from the provided fn the arguments of which are pre set to args * @param fn Function The original function * @param args Array The arguments to pass to new callback * @param scope Object The scope (this reference) in which the function is executed. */ export function pass( fn?:any, args?:any[], scope?:any ): any; + /** [Method] Old alias to Ext Array pluck + * @param array Array/NodeList The Array of items to pluck the value from. + * @param propertyName String The property name to pluck from each element. + */ + export function pluck( array?:any, propertyName?:any ): any; + export function pluck( array?:any[], propertyName?:string ): any[]; + export function pluck( array?:NodeList, propertyName?:string ): any[]; /** [Method] Shorthand for Ext PluginManager registerType * @param ptype String The ptype mnemonic string by which the Plugin class may be looked up. * @param cls Function The new Plugin class. */ export function preg( ptype?:string, cls?:any ): void; - /** [Method] Shorthand of Ext dom Query select Selects an array of DOM nodes by CSS XPath selector + /** [Method] Shorthand of Ext dom Query select * @param path String The selector/xpath query * @param root HTMLElement The start of the query. * @param type String Either "select" or "simple" for a simple selector match (only valid when used when the call is deferred to the jsSelect method) * @param single Boolean Pass true to select only the first matching node using document.querySelector (where available) */ export function query( path?:string, root?:HTMLElement, type?:string, single?:bool ): HTMLElement[]; + /** [Method] Old way for creating Model classes + * @param name String Name of the Model class. + * @param config Object A configuration object for the Model you wish to create. + */ + export function regModel( name?:string, config?:any ): Ext.data.IModel; /** [Method] Creates a new store for the given id and config then registers it with the Store Manager * @param id String The id to set on the new store * @param config Object The store config @@ -20724,11 +25315,12 @@ declare module Ext { */ export function removeNode( node?:HTMLElement ): void; /** [Method] Loads all classes by the given names and all their direct dependencies optionally executes the given callback functi - * @param expressions String Can either be a string or an array of string + * @param expressions String/Array Can either be a string or an array of string * @param fn Function The callback function * @param scope Object The execution scope (this) of the callback function - * @param excludes String Classes to be excluded, useful when being used with expressions + * @param excludes String/Array Classes to be excluded, useful when being used with expressions */ + export function require( expressions?:any, fn?:any, scope?:any, excludes?:any ): any; export function require( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; export function require( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; export function require( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; @@ -20747,20 +25339,25 @@ declare module Ext { */ export function setGlyphFontFamily( fontFamily?:string ): void; /** [Method] Set version number for the given package name - * @param packageName any The package name, for example: 'core', 'touch', 'extjs' - * @param version any The version, for example: '1.2.3alpha', '2.4.0-dev' + * @param packageName String The package name, for example: 'core', 'touch', 'extjs' + * @param version String/Ext.Version The version, for example: '1.2.3alpha', '2.4.0-dev' */ export function setVersion( packageName?:any, version?:any ): any; export function setVersion( packageName?:string, version?:string ): Ext; export function setVersion( packageName?:string, version?:Ext.IVersion ): Ext; + /** [Method] Old alias to Ext Array sum + * @param array Array The Array to calculate the sum value of. + */ + export function sum( array?:any[] ): number; /** [Method] */ export function suspendLayouts(): void; /** [Method] Synchronously loads all classes by the given names and all their direct dependencies optionally executes the given c - * @param expressions String Can either be a string or an array of string + * @param expressions String/Array Can either be a string or an array of string * @param fn Function The callback function * @param scope Object The execution scope (this) of the callback function - * @param excludes String Classes to be excluded, useful when being used with expressions + * @param excludes String/Array Classes to be excluded, useful when being used with expressions */ + export function syncRequire( expressions?:any, fn?:any, scope?:any, excludes?:any ): any; export function syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; export function syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; export function syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; @@ -20771,6 +25368,15 @@ declare module Ext { * @param end Number a 1-based index that specifies the end of extraction. Defaults to the last index of the iterable value */ export function toArray( iterable?:any, start?:number, end?:number ): any[]; + /** [Method] Turns an array into a sentence joined by a specified connector e g Ext toSentence Adama Tigh Roslin + * @param items String[] The array to create a sentence from + * @param connector String The string to use to connect the last two words. Usually 'and' or 'or' - defaults to 'and'. + */ + export function toSentence( items?:string[], connector?:string ): string; + /** [Method] Old alias to typeOf + * @param value Object + */ + export function type( value?:any ): string; /** [Method] Returns the type of the given variable in string format * @param value Object */ @@ -20781,6 +25387,31 @@ declare module Ext { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ export function un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Old alias to Ext Array unique + * @param array Array + */ + export function unique( array?:any[] ): any[]; + /** [Method] Old alias to Ext String urlAppend + * @param url String The URL to append to. + * @param string String The content to append to the URL. + */ + export function urlAppend( url?:string, string?:string ): string; + /** [Method] Alias for Ext Object fromQueryString + * @param queryString String The query string to decode + * @param recursive Boolean Whether or not to recursively decode the string. This format is supported by PHP / Ruby on Rails servers and similar. + */ + export function urlDecode( queryString?:string, recursive?:bool ): any; + /** [Method] Takes an object and converts it to an encoded query string + * @param object Object The object to encode + * @param recursive Boolean Whether or not to interpret the object in recursive format. (PHP / Ruby on Rails servers and similar). + */ + export function urlEncode( object?:any, recursive?:bool ): string; + /** [Method] Utility method for returning a default value if the passed value is empty + * @param value Object The value to test + * @param defaultValue Object The value to return if the original value is empty + * @param allowBlank Boolean true to allow zero length strings to qualify as non-empty. + */ + export function value( value?:any, defaultValue?:any, allowBlank?:bool ): any; /** [Method] Returns the given value itself if it s not empty as described in isEmpty returns the default value second argument * @param value Object The value to test * @param defaultValue Object The value to return if the original value is empty @@ -20792,6 +25423,13 @@ declare module Ext { * @param config Object The configuration object for the widget constructor. */ export function widget( name?:string, config?:any ): any; + /** [Method] Zips N sets together + * @param arr Array/NodeList... This argument may be repeated. Array(s) to contribute values. + * @param zipper Function The last item in the argument list. This will drive how the items are zipped together. + */ + export function zip( arr?:any, zipper?:any ): any; + export function zip( arr?:any[], zipper?:any ): any[]; + export function zip( arr:NodeList, zipper:any ): any[]; } declare module Ext { export interface IJSON { @@ -20842,90 +25480,89 @@ declare module Ext.layout { } declare module Ext.layout.component { export interface IAuto extends Ext.layout.component.IComponent { - /** [Config Option] (Boolean) When publishing height of an auto Component, it is usually not written to the DOM. ... */ + /** [Config Option] (Boolean) */ setHeightInDom?: bool; - /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + /** [Config Option] (Boolean) */ setWidthInDom?: bool; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; } } declare module Ext.layout.component { export interface IBody extends Ext.layout.component.IAuto { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; } } declare module Ext.layout.component { export interface IBoundList extends Ext.layout.component.IAuto { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Returns the set of items to layout empty by default */ getLayoutItems?(): void; - /** [Method] Validates item is in the proper place in the dom - * @param item Object - * @param target Object - * @param position Object - */ - isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] Validates item is in the proper place in the dom */ + isValidParent?(): void; } } declare module Ext.layout.component { export interface IButton extends Ext.layout.component.IAuto { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; } } declare module Ext.layout.component { export interface IComponent extends Ext.layout.ILayout { /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Returns the element into which rendering must take place */ getRenderTarget?(): Ext.IElement; /** [Method] Returns the owner component s resize element */ getTarget?(): Ext.IElement; /** [Method] This method if implemented is called after all layouts are finished and all have a lastComponentSize cached - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - notifyOwner?( ownerContext?:Ext.layout.IContextItem ): void; + notifyOwner?( ownerContext?:any ): void; } } declare module Ext.layout.component { @@ -20935,34 +25572,35 @@ declare module Ext.layout.component { */ afterRemove?( item?:any ): void; /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] We are overriding the Ext layout Layout configureItem method to also add a class that indicates the position of the d - * @param item Ext.IComponent The item we are configuring + * @param item Ext.Component The item we are configuring */ configureItem?( item?:Ext.IComponent ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Retrieve an ordered and or filtered array of all docked Components * @param order String The desired ordering of the items ('render' or 'visual'). * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. */ getDockedItems?( order?:string, beforeBody?:bool ): Ext.IComponent[]; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] Returns an array containing all the visible docked items inside this layout s owner Panel */ getLayoutItems?(): any[]; /** [Method] The default weighting of docked items produces this arrangement @@ -20985,34 +25623,35 @@ declare module Ext.layout.component { */ afterRemove?( item?:any ): void; /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] We are overriding the Ext layout Layout configureItem method to also add a class that indicates the position of the d - * @param item Ext.IComponent The item we are configuring + * @param item Ext.Component The item we are configuring */ configureItem?( item?:Ext.IComponent ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Retrieve an ordered and or filtered array of all docked Components * @param order String The desired ordering of the items ('render' or 'visual'). * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. */ getDockedItems?( order?:string, beforeBody?:bool ): Ext.IComponent[]; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] Returns an array containing all the visible docked items inside this layout s owner Panel */ getLayoutItems?(): any[]; /** [Method] The default weighting of docked items produces this arrangement @@ -21030,14 +25669,14 @@ declare module Ext.layout.component { } declare module Ext.layout.component { export interface IDraw extends Ext.layout.component.IAuto { - /** [Config Option] (Boolean) When publishing height of an auto Component, it is usually not written to the DOM. ... */ + /** [Config Option] (Boolean) */ setHeightInDom?: bool; - /** [Config Option] (Boolean) When publishing width of an auto Component, it is usually not written to the DOM. ... */ + /** [Config Option] (Boolean) */ setWidthInDom?: bool; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; } } declare module Ext.layout.component.field { @@ -21048,9 +25687,9 @@ declare module Ext.layout.component.field { export interface IField extends Ext.layout.component.IAuto { /** [Property] (Object) */ elementId?: any; - /** [Property] (Object) Collection of named strategies for laying out and adjusting insets to accommodate error messages. ... */ + /** [Property] (Object) */ errorStrategies?: any; - /** [Property] (Object) Collection of named strategies for laying out and adjusting labels to accommodate error messages. ... */ + /** [Property] (Object) */ labelStrategies?: any; /** [Property] (Object) */ left?: any; @@ -21067,93 +25706,95 @@ declare module Ext.layout.component.field { /** [Property] (Object) */ under?: any; /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Return the set of strategy functions from the errorStrategies collection that is appropriate for the field s msgTarge */ getErrorStrategy?(): void; /** [Method] Return the set of strategy functions from the labelStrategies collection that is appropriate for the field s labelAli */ getLabelStrategy?(): void; + /** [Method] Destroy the error tip instance */ + destroyTip?(): void; + /** [Method] Use a custom QuickTip instance separate from the main QuickTips singleton so that we can give it a custom frame style */ + initTip?(): void; } } declare module Ext.layout.component.field { export interface IFieldContainer extends Ext.layout.component.field.IField { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; } } declare module Ext.layout.component.field { export interface IHtmlEditor extends Ext.layout.component.field.IFieldContainer { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; - /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. - */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM */ + finishedLayout?(): void; } } declare module Ext.layout.component.field { export interface ISlider extends Ext.layout.component.field.IField { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; } } declare module Ext.layout.component.field { export interface IText extends Ext.layout.component.field.IField { /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; } } declare module Ext.layout.component.field { export interface ITextArea extends Ext.layout.component.field.IText { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; } } declare module Ext.layout.component.field { export interface ITrigger extends Ext.layout.component.field.IField { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; } } declare module Ext.layout.component { export interface IFieldSet extends Ext.layout.component.IBody { /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Returns the set of items to layout empty by default */ getLayoutItems?(): void; } @@ -21161,68 +25802,64 @@ declare module Ext.layout.component { declare module Ext.layout.component { export interface IProgressBar extends Ext.layout.component.IAuto { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; } } declare module Ext.layout.container { export interface IAbsolute extends Ext.layout.container.IAnchor { - /** [Config Option] (Boolean) True indicates that changes to one item in this layout do not effect the layout in general. ... */ + /** [Config Option] (Boolean) */ ignoreOnContentChange?: bool; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; - /** [Method] This method is called when a child item changes in some way - * @param child Ext.IComponent The child item that has changed. - */ - onContentChange?( child?:Ext.IComponent ): bool; + /** [Method] This method is called when a child item changes in some way */ + onContentChange?(): bool; } } declare module Ext.layout { export interface IAbsoluteLayout extends Ext.layout.container.IAnchor { - /** [Config Option] (Boolean) True indicates that changes to one item in this layout do not effect the layout in general. ... */ + /** [Config Option] (Boolean) */ ignoreOnContentChange?: bool; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; - /** [Method] This method is called when a child item changes in some way - * @param child Ext.IComponent The child item that has changed. - */ - onContentChange?( child?:Ext.IComponent ): bool; + /** [Method] This method is called when a child item changes in some way */ + onContentChange?(): bool; } } declare module Ext.layout.container { export interface IAccordion extends Ext.layout.container.IVBox { - /** [Config Option] (Boolean) Only valid when multi is false and animate is false. ... */ + /** [Config Option] (Boolean) */ activeOnTop?: bool; - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] (Boolean) True to slide the contained panels open and closed during expand/collapse using animation, false to open and close di... */ + /** [Config Option] (Boolean) */ animate?: bool; /** [Config Option] (Boolean) */ autoWidth?: bool; - /** [Config Option] (Boolean) True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the cont... */ + /** [Config Option] (Boolean) */ collapseFirst?: bool; - /** [Config Option] (Boolean) True to adjust the active item's height to fill the available space in the container, false to use the item's current... */ + /** [Config Option] (Boolean) */ fill?: bool; - /** [Config Option] (Boolean) True to hide the contained Panels' collapse/expand toggle buttons, false to display them. ... */ + /** [Config Option] (Boolean) */ hideCollapseTool?: bool; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Boolean) Set to true to enable multiple accordion items to be open at once. ... */ + /** [Config Option] (Boolean) */ multi?: bool; - /** [Config Option] (Boolean) True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/co... */ + /** [Config Option] (Boolean) */ titleCollapse?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object @@ -21241,25 +25878,25 @@ declare module Ext.layout.container { } declare module Ext.layout { export interface IAccordionLayout extends Ext.layout.container.IVBox { - /** [Config Option] (Boolean) Only valid when multi is false and animate is false. ... */ + /** [Config Option] (Boolean) */ activeOnTop?: bool; - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] (Boolean) True to slide the contained panels open and closed during expand/collapse using animation, false to open and close di... */ + /** [Config Option] (Boolean) */ animate?: bool; /** [Config Option] (Boolean) */ autoWidth?: bool; - /** [Config Option] (Boolean) True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the cont... */ + /** [Config Option] (Boolean) */ collapseFirst?: bool; - /** [Config Option] (Boolean) True to adjust the active item's height to fill the available space in the container, false to use the item's current... */ + /** [Config Option] (Boolean) */ fill?: bool; - /** [Config Option] (Boolean) True to hide the contained Panels' collapse/expand toggle buttons, false to display them. ... */ + /** [Config Option] (Boolean) */ hideCollapseTool?: bool; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Boolean) Set to true to enable multiple accordion items to be open at once. ... */ + /** [Config Option] (Boolean) */ multi?: bool; - /** [Config Option] (Boolean) True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/co... */ + /** [Config Option] (Boolean) */ titleCollapse?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object @@ -21278,93 +25915,93 @@ declare module Ext.layout { } declare module Ext.layout.container { export interface IAnchor extends Ext.layout.container.IAuto { - /** [Config Option] (String) This configuation option is to be applied to child items of a container managed by this layout (ie. ... */ + /** [Config Option] (String) */ anchor?: string; - /** [Config Option] (String) Default anchor for all child container items applied if no anchor or specific width is set on the child item. ... */ + /** [Config Option] (String) */ defaultAnchor?: string; - /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + /** [Property] (Boolean) */ manageOverflow?: bool; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Adds layout s itemCls and owning Container s itemCls * @param item Object */ configureItem?( item?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; } } declare module Ext.layout { export interface IAnchorLayout extends Ext.layout.container.IAuto { - /** [Config Option] (String) This configuation option is to be applied to child items of a container managed by this layout (ie. ... */ + /** [Config Option] (String) */ anchor?: string; - /** [Config Option] (String) Default anchor for all child container items applied if no anchor or specific width is set on the child item. ... */ + /** [Config Option] (String) */ defaultAnchor?: string; - /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + /** [Property] (Boolean) */ manageOverflow?: bool; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Adds layout s itemCls and owning Container s itemCls * @param item Object */ configureItem?( item?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; } } declare module Ext.layout.container { export interface IAuto extends Ext.layout.container.IContainer { - /** [Config Option] (Boolean) Set to true to leave space for a vertical scrollbar (if the OS shows space-consuming scrollbars) regardless of whethe... */ + /** [Config Option] (Boolean) */ reserveScrollbar?: bool; - /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + /** [Property] (Boolean) */ manageOverflow?: bool; - /** [Property] (Boolean) indicates that this layout will correct cross browser padding differences when the container has overflow. ... */ + /** [Property] (Boolean) */ managePadding?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Handles overflow processing for a container - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ calculateOverflow?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Returns the container size that of the target - * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param ownerContext Ext.layout.ContextItem The owner's context item. * @param inDom Boolean True if the container size must be in the DOM. */ getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; /** [Method] Overridden method from Ext layout container Container */ getElementTarget?(): Ext.IElement; /** [Method] Returns the overflow x style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] Returns the overflow y style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] Overridden method from Ext layout container Container */ @@ -21372,7 +26009,7 @@ declare module Ext.layout.container { /** [Method] A one time initialization method called just before rendering */ initLayout?(): void; /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem * @param containerSize Object */ setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; @@ -21380,152 +26017,156 @@ declare module Ext.layout.container { } declare module Ext.layout.container { export interface IBorder extends Ext.layout.container.IContainer { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Number/String/Object) Sets the padding to be applied to all child items managed by this layout. ... */ + /** [Config Option] (Number/String/Object) */ padding?: any; - /** [Config Option] (Object) The default weights to assign to regions in the border layout. ... */ + /** [Config Option] (Object) */ regionWeights?: any; - /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout. ... */ + /** [Config Option] (Boolean) */ split?: bool; - /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout and is used in conjunction with ... */ + /** [Config Option] (Boolean) */ splitterResize?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ getLayoutItems?(): Ext.IComponent[]; } } declare module Ext.layout { export interface IBorderLayout extends Ext.layout.container.IContainer { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Number/String/Object) Sets the padding to be applied to all child items managed by this layout. ... */ + /** [Config Option] (Number/String/Object) */ padding?: any; - /** [Config Option] (Object) The default weights to assign to regions in the border layout. ... */ + /** [Config Option] (Object) */ regionWeights?: any; - /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout. ... */ + /** [Config Option] (Boolean) */ split?: bool; - /** [Config Option] (Boolean) This configuration option is to be applied to the child items managed by this layout and is used in conjunction with ... */ + /** [Config Option] (Boolean) */ splitterResize?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ getLayoutItems?(): Ext.IComponent[]; } } declare module Ext.layout.container { export interface IBox extends Ext.layout.container.IContainer { - /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + /** [Config Option] (Object) */ defaultMargins?: any; - /** [Config Option] (Number) This configuration option is to be applied to child items of the container managed by this layout. ... */ + /** [Config Option] (Number) */ flex?: number; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (String) Controls how the child items of the container are packed together. ... */ + /** [Config Option] (String) */ pack?: string; - /** [Config Option] (String) Sets the padding to be applied to all child items managed by this layout. ... */ + /** [Config Option] (String) */ padding?: string; - /** [Config Option] (String/Ext.Component) Allows stretchMax calculation to take into account the max perpendicular size (height for HBox layout and width for V... */ + /** [Config Option] (String/Ext.Component) */ stretchMaxPartner?: any; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] This method is called to re cache our understanding of flexes * @param ownerContext Object */ cacheFlexes?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Overridden method from Ext layout container Container */ getElementTarget?(): Ext.IElement; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] Overridden method from Ext layout container Container */ getRenderTarget?(): Ext.IElement; } } declare module Ext.layout { export interface IBoxLayout extends Ext.layout.container.IContainer { - /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + /** [Config Option] (Object) */ defaultMargins?: any; - /** [Config Option] (Number) This configuration option is to be applied to child items of the container managed by this layout. ... */ + /** [Config Option] (Number) */ flex?: number; - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (String) Controls how the child items of the container are packed together. ... */ + /** [Config Option] (String) */ pack?: string; - /** [Config Option] (String) Sets the padding to be applied to all child items managed by this layout. ... */ + /** [Config Option] (String) */ padding?: string; - /** [Config Option] (String/Ext.Component) Allows stretchMax calculation to take into account the max perpendicular size (height for HBox layout and width for V... */ + /** [Config Option] (String/Ext.Component) */ stretchMaxPartner?: any; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] This method is called to re cache our understanding of flexes * @param ownerContext Object */ cacheFlexes?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + finishedLayout?( ownerContext?:any ): void; /** [Method] Overridden method from Ext layout container Container */ getElementTarget?(): Ext.IElement; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] Overridden method from Ext layout container Container */ getRenderTarget?(): Ext.IElement; } @@ -21536,7 +26177,7 @@ declare module Ext.layout.container.boxoverflow { triggerButtonCls?: string; /** [Property] (Array) */ menuItems?: any[]; - /** [Property] (String) HTML fragment to render into the toolbar overflow menu if there are no items to display ... */ + /** [Property] (String) */ noItemsMenuText?: string; } } @@ -21546,7 +26187,7 @@ declare module Ext.layout.boxoverflow { triggerButtonCls?: string; /** [Property] (Array) */ menuItems?: any[]; - /** [Property] (String) HTML fragment to render into the toolbar overflow menu if there are no items to display ... */ + /** [Property] (String) */ noItemsMenuText?: string; } } @@ -21560,43 +26201,43 @@ declare module Ext.layout.boxoverflow { } declare module Ext.layout.container.boxoverflow { export interface IScroller extends Ext.layout.container.boxoverflow.INone,Ext.util.IObservable { - /** [Config Option] (String) CSS class added to the afterCt element. ... */ + /** [Config Option] (String) */ afterCtCls?: string; /** [Config Option] (String) */ afterScrollerCls?: string; - /** [Config Option] (Boolean) True to animate the scrolling of items within the layout (ignored if enableScroll is false) ... */ + /** [Config Option] (Boolean) */ animateScroll?: bool; - /** [Config Option] (String) CSS class added to the beforeCt element. ... */ + /** [Config Option] (String) */ beforeCtCls?: string; /** [Config Option] (String) */ beforeScrollerCls?: string; - /** [Config Option] (Number) Number of milliseconds that each scroll animation lasts ... */ + /** [Config Option] (Number) */ scrollDuration?: number; - /** [Config Option] (Number) The number of pixels to scroll by on scroller click ... */ + /** [Config Option] (Number) */ scrollIncrement?: number; - /** [Config Option] (Number) Number of milliseconds between each scroll while a scroller button is held down ... */ + /** [Config Option] (Number) */ scrollRepeatInterval?: number; - /** [Config Option] (String) CSS class added to both scroller elements if enableScroll is used ... */ + /** [Config Option] (String) */ scrollerCls?: string; - /** [Config Option] (Number) The number of pixels to increment on mouse wheel scrolling. ... */ + /** [Config Option] (Number) */ wheelIncrement?: number; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -21606,8 +26247,9 @@ declare module Ext.layout.container.boxoverflow { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -21619,7 +26261,7 @@ declare module Ext.layout.container.boxoverflow { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the current scroll position of the innerCt element */ getScrollPosition?(): number; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -21627,25 +26269,26 @@ declare module Ext.layout.container.boxoverflow { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -21664,11 +26307,12 @@ declare module Ext.layout.container.boxoverflow { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -21678,9 +26322,10 @@ declare module Ext.layout.container.boxoverflow { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Scrolls to the given component - * @param item String The item to scroll to. Can be a numerical index, component id or a reference to the component itself. + * @param item String/Number/Ext.Component The item to scroll to. Can be a numerical index, component id or a reference to the component itself. * @param animate Boolean True to animate the scrolling */ + scrollToItem?( item?:any, animate?:any ): any; scrollToItem?( item?:string, animate?:bool ): void; scrollToItem?( item?:number, animate?:bool ): void; scrollToItem?( item?:Ext.IComponent, animate?:bool ): void; @@ -21702,43 +26347,43 @@ declare module Ext.layout.container.boxoverflow { } declare module Ext.layout.boxoverflow { export interface IScroller extends Ext.layout.container.boxoverflow.INone,Ext.util.IObservable { - /** [Config Option] (String) CSS class added to the afterCt element. ... */ + /** [Config Option] (String) */ afterCtCls?: string; /** [Config Option] (String) */ afterScrollerCls?: string; - /** [Config Option] (Boolean) True to animate the scrolling of items within the layout (ignored if enableScroll is false) ... */ + /** [Config Option] (Boolean) */ animateScroll?: bool; - /** [Config Option] (String) CSS class added to the beforeCt element. ... */ + /** [Config Option] (String) */ beforeCtCls?: string; /** [Config Option] (String) */ beforeScrollerCls?: string; - /** [Config Option] (Number) Number of milliseconds that each scroll animation lasts ... */ + /** [Config Option] (Number) */ scrollDuration?: number; - /** [Config Option] (Number) The number of pixels to scroll by on scroller click ... */ + /** [Config Option] (Number) */ scrollIncrement?: number; - /** [Config Option] (Number) Number of milliseconds between each scroll while a scroller button is held down ... */ + /** [Config Option] (Number) */ scrollRepeatInterval?: number; - /** [Config Option] (String) CSS class added to both scroller elements if enableScroll is used ... */ + /** [Config Option] (String) */ scrollerCls?: string; - /** [Config Option] (Number) The number of pixels to increment on mouse wheel scrolling. ... */ + /** [Config Option] (Number) */ wheelIncrement?: number; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -21748,8 +26393,9 @@ declare module Ext.layout.boxoverflow { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -21761,7 +26407,7 @@ declare module Ext.layout.boxoverflow { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the current scroll position of the innerCt element */ getScrollPosition?(): number; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -21769,25 +26415,26 @@ declare module Ext.layout.boxoverflow { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -21806,11 +26453,12 @@ declare module Ext.layout.boxoverflow { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -21820,9 +26468,10 @@ declare module Ext.layout.boxoverflow { /** [Method] Resumes firing events see suspendEvents */ resumeEvents?(): void; /** [Method] Scrolls to the given component - * @param item String The item to scroll to. Can be a numerical index, component id or a reference to the component itself. + * @param item String/Number/Ext.Component The item to scroll to. Can be a numerical index, component id or a reference to the component itself. * @param animate Boolean True to animate the scrolling */ + scrollToItem?( item?:any, animate?:any ): any; scrollToItem?( item?:string, animate?:bool ): void; scrollToItem?( item?:number, animate?:bool ): void; scrollToItem?( item?:Ext.IComponent, animate?:bool ): void; @@ -21844,12 +26493,8 @@ declare module Ext.layout.boxoverflow { } declare module Ext.layout.container { export interface ICard extends Ext.layout.container.IFit { - /** [Config Option] (Boolean) True to render each contained item at the time it becomes active, false to render all contained items as soon as the ... */ + /** [Config Option] (Boolean) */ deferredRender?: bool; - /** [Method] Called before both dynamic render and bulk render - * @param item Object - */ - configureItem?( item?:any ): void; /** [Method] Return the active visible component in the layout */ getActiveItem?(): Ext.IComponent; /** [Method] Return the active visible component in the layout to the next card */ @@ -21867,7 +26512,7 @@ declare module Ext.layout.container { /** [Method] Sets the active visible component in the layout to the previous card */ prev?(): Ext.IComponent; /** [Method] Makes the given card active - * @param newCard any The component, component id, itemId, or index of component. + * @param newCard Ext.Component/Number/String The component, component id, itemId, or index of component. */ setActiveItem?( newCard?:any ): any; setActiveItem?( newCard?:Ext.IComponent ): Ext.IComponent; @@ -21877,12 +26522,8 @@ declare module Ext.layout.container { } declare module Ext.layout { export interface ICardLayout extends Ext.layout.container.IFit { - /** [Config Option] (Boolean) True to render each contained item at the time it becomes active, false to render all contained items as soon as the ... */ + /** [Config Option] (Boolean) */ deferredRender?: bool; - /** [Method] Called before both dynamic render and bulk render - * @param item Object - */ - configureItem?( item?:any ): void; /** [Method] Return the active visible component in the layout */ getActiveItem?(): Ext.IComponent; /** [Method] Return the active visible component in the layout to the next card */ @@ -21900,7 +26541,7 @@ declare module Ext.layout { /** [Method] Sets the active visible component in the layout to the previous card */ prev?(): Ext.IComponent; /** [Method] Makes the given card active - * @param newCard any The component, component id, itemId, or index of component. + * @param newCard Ext.Component/Number/String The component, component id, itemId, or index of component. */ setActiveItem?( newCard?:any ): any; setActiveItem?( newCard?:Ext.IComponent ): Ext.IComponent; @@ -21910,28 +26551,24 @@ declare module Ext.layout { } declare module Ext.layout.container { export interface ICheckboxGroup extends Ext.layout.container.IContainer { - /** [Config Option] (Boolean) By default, CheckboxGroup allocates all available space to the configured columns meaning that column are evenly spa... */ + /** [Config Option] (Boolean) */ autoFlex?: bool; /** [Method] In addition to work done by our base classes containers benefit from some extra cached data * @param ownerContext Object */ beginLayout?( ownerContext?:any ): void; /** [Method] Just wait for the child items to all lay themselves out in the width we are configured to make available to them - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; /** [Method] A one time initialization method called just before rendering */ initLayout?(): void; - /** [Method] Always valid - * @param item Object - * @param target Object - * @param position Object - */ - isValidParent?( item?:any, target?:any, position?:any ): void; + /** [Method] Always valid */ + isValidParent?(): void; /** [Method] Iterates over all passed items ensuring they are rendered * @param items Object */ @@ -21940,41 +26577,43 @@ declare module Ext.layout.container { } declare module Ext.layout.container { export interface IColumn extends Ext.layout.container.IAuto { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + /** [Property] (Boolean) */ manageOverflow?: bool; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Object * @param containerSize Object */ - setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; + setCtSizeIfNeeded?( ownerContext?:any, containerSize?:any ): void; } } declare module Ext.layout { export interface IColumnLayout extends Ext.layout.container.IAuto { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Property] (Boolean) true to rerun the layout if scrollbars are needed. ... */ + /** [Property] (Boolean) */ manageOverflow?: bool; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; /** [Method] This method sets the height and or width of the outerCt innerCt to adjust for the following browser specific issues - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Object * @param containerSize Object */ - setCtSizeIfNeeded?( ownerContext?:Ext.layout.IContextItem, containerSize?:any ): void; + setCtSizeIfNeeded?( ownerContext?:any, containerSize?:any ): void; } } declare module Ext.layout.container { export interface IContainer extends Ext.layout.ILayout,Ext.util.IElementContainer { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Property] (Ext.Element) */ overflowPadderEl?: Ext.IElement; @@ -21985,15 +26624,16 @@ declare module Ext.layout.container { */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Adds layout s itemCls and owning Container s itemCls * @param item Object */ configureItem?( item?:any ): void; /** [Method] Returns the container size that of the target - * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param ownerContext Ext.layout.ContextItem The owner's context item. * @param inDom Boolean True if the container size must be in the DOM. */ getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; @@ -22017,7 +26657,7 @@ declare module Ext.layout.container { } declare module Ext.layout { export interface IContainerLayout extends Ext.layout.ILayout,Ext.util.IElementContainer { - /** [Config Option] (String) An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Property] (Ext.Element) */ overflowPadderEl?: Ext.IElement; @@ -22028,15 +26668,16 @@ declare module Ext.layout { */ beginLayout?( ownerContext?:any ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Adds layout s itemCls and owning Container s itemCls * @param item Object */ configureItem?( item?:any ): void; /** [Method] Returns the container size that of the target - * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param ownerContext Ext.layout.ContextItem The owner's context item. * @param inDom Boolean True if the container size must be in the DOM. */ getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool ): any; @@ -22061,98 +26702,103 @@ declare module Ext.layout { declare module Ext.layout.container { export interface IEditor extends Ext.layout.container.IContainer { /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; } } declare module Ext.layout.container { export interface IFit extends Ext.layout.container.IContainer { - /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + /** [Config Option] (Object) */ defaultMargins?: any; - /** [Config Option] (String) End Definitions An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; } } declare module Ext.layout { export interface IFitLayout extends Ext.layout.container.IContainer { - /** [Config Option] (Object) If the individual contained items do not have a margins property specified or margin specified via CSS, the default m... */ + /** [Config Option] (Object) */ defaultMargins?: any; - /** [Config Option] (String) End Definitions An optional extra CSS class that will be added to the container. ... */ + /** [Config Option] (String) */ itemCls?: string; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object + * @param ownerSizeModel Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any, ownerSizeModel?:any ): Ext.layout.ISizePolicy; } } declare module Ext.layout.container { export interface IForm extends Ext.layout.container.IContainer { - /** [Property] (Object) Returns flags indicating cross-browser handling of scrollHeight/Width. ... */ + /** [Property] (Object) */ getScrollRangeFlags?: any; /** [Method] All of the below methods are old methods moved here from Container layout TODO remove these methods once Form layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Handles overflow processing for a container - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem * @param containerSize Object * @param dimensions Number A bit mask for the overflow managed dimensions. The 0-bit is for width and the 1-bit is for height. In other words, a value of 1 would be only width, 2 would be only height and 3 would be both. */ calculateOverflow?( ownerContext?:Ext.layout.IContextItem, containerSize?:any, dimensions?:number ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] Creates an element that makes bottom right body padding consistent across browsers * @param out Object * @param renderData Object */ doRenderPadder?( out?:any, renderData?:any ): void; /** [Method] Returns the container size that of the target - * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param ownerContext Ext.layout.ContextItem The owner's context item. * @param inDom Boolean True if the container size must be in the DOM. * @param ignoreOverflow Boolean if true scrollbar size will not be subtracted from container size. */ getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool, ignoreOverflow?:bool ): any; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; /** [Method] returns the overflow x style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] returns the overflow y style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] Returns the element into which rendering must take place */ @@ -22169,47 +26815,48 @@ declare module Ext.layout.container { } declare module Ext.layout { export interface IFormLayout extends Ext.layout.container.IContainer { - /** [Property] (Object) Returns flags indicating cross-browser handling of scrollHeight/Width. ... */ + /** [Property] (Object) */ getScrollRangeFlags?: any; /** [Method] All of the below methods are old methods moved here from Container layout TODO remove these methods once Form layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object + * @param firstCycle Object */ - beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayoutCycle?( ownerContext?:any, firstCycle?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; /** [Method] Handles overflow processing for a container - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem * @param containerSize Object * @param dimensions Number A bit mask for the overflow managed dimensions. The 0-bit is for width and the 1-bit is for height. In other words, a value of 1 would be only width, 2 would be only height and 3 would be both. */ calculateOverflow?( ownerContext?:Ext.layout.IContextItem, containerSize?:any, dimensions?:number ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + completeLayout?( ownerContext?:any ): void; /** [Method] Creates an element that makes bottom right body padding consistent across browsers * @param out Object * @param renderData Object */ doRenderPadder?( out?:any, renderData?:any ): void; /** [Method] Returns the container size that of the target - * @param ownerContext Ext.layout.IContextItem The owner's context item. + * @param ownerContext Ext.layout.ContextItem The owner's context item. * @param inDom Boolean True if the container size must be in the DOM. * @param ignoreOverflow Boolean if true scrollbar size will not be subtracted from container size. */ getContainerSize?( ownerContext?:Ext.layout.IContextItem, inDom?:bool, ignoreOverflow?:bool ): any; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Object */ - getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; + getItemSizePolicy?( item?:any ): Ext.layout.ISizePolicy; /** [Method] returns the overflow x style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowXStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] returns the overflow y style of the render target - * @param ownerContext Ext.layout.IContextItem + * @param ownerContext Ext.layout.ContextItem */ getOverflowYStyle?( ownerContext?:Ext.layout.IContextItem ): string; /** [Method] Returns the element into which rendering must take place */ @@ -22226,97 +26873,95 @@ declare module Ext.layout { } declare module Ext.layout.container { export interface IHBox extends Ext.layout.container.IBox { - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:middle is used. ... */ + /** [Config Option] ("round"/"floor"/"ceil") */ alignRoundingMethod?: any; - /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + /** [Config Option] (Boolean) */ constrainAlign?: bool; } } declare module Ext.layout { export interface IHBoxLayout extends Ext.layout.container.IBox { - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:middle is used. ... */ + /** [Config Option] ("round"/"floor"/"ceil") */ alignRoundingMethod?: any; - /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + /** [Config Option] (Boolean) */ constrainAlign?: bool; } } declare module Ext.layout.container { export interface ITable extends Ext.layout.container.IContainer { - /** [Config Option] (Number) The total number of columns to create in the table for this layout. ... */ + /** [Config Option] (Number) */ columns?: number; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <table&... */ + /** [Config Option] (Object) */ tableAttrs?: any; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <td>... */ + /** [Config Option] (Object) */ tdAttrs?: any; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <tr>... */ + /** [Config Option] (Object) */ trAttrs?: any; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; - /** [Method] This method if implemented is called after all layouts have completed - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. - */ - finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; + /** [Method] This method if implemented is called after all layouts have completed */ + finalizeLayout?(): void; /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ getLayoutItems?(): Ext.IComponent[]; /** [Method] Validates item is in the proper place in the dom * @param item Object * @param target Object - * @param position Object + * @param rowIdx Object + * @param cellIdx Object */ - isValidParent?( item?:any, target?:any, position?:any ): void; + isValidParent?( item?:any, target?:any, rowIdx?:any, cellIdx?:any ): void; } } declare module Ext.layout { export interface ITableLayout extends Ext.layout.container.IContainer { - /** [Config Option] (Number) The total number of columns to create in the table for this layout. ... */ + /** [Config Option] (Number) */ columns?: number; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <table&... */ + /** [Config Option] (Object) */ tableAttrs?: any; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <td>... */ + /** [Config Option] (Object) */ tdAttrs?: any; - /** [Config Option] (Object) An object containing properties which are added to the DomHelper specification used to create the layout's <tr>... */ + /** [Config Option] (Object) */ trAttrs?: any; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; - /** [Method] This method if implemented is called after all layouts have completed - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. - */ - finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; + /** [Method] This method if implemented is called after all layouts have completed */ + finalizeLayout?(): void; /** [Method] Returns an array of child components either for a render phase Performed in the beforeLayout method of the layout s */ getLayoutItems?(): Ext.IComponent[]; /** [Method] Validates item is in the proper place in the dom * @param item Object * @param target Object - * @param position Object + * @param rowIdx Object + * @param cellIdx Object */ - isValidParent?( item?:any, target?:any, position?:any ): void; + isValidParent?( item?:any, target?:any, rowIdx?:any, cellIdx?:any ): void; } } declare module Ext.layout.container { export interface IVBox extends Ext.layout.container.IBox { - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:center is used. ... */ + /** [Config Option] ("round"/"floor"/"ceil") */ alignRoundingMethod?: any; - /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + /** [Config Option] (Boolean) */ constrainAlign?: bool; } } declare module Ext.layout { export interface IVBoxLayout extends Ext.layout.container.IBox { - /** [Config Option] (String) Controls how the child items of the container are aligned. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] ("round"/"floor"/"ceil") The Math method to use for rounding fractional pixels when align:center is used. ... */ + /** [Config Option] ("round"/"floor"/"ceil") */ alignRoundingMethod?: any; - /** [Config Option] (Boolean) Limits the size of aligned components to the size of the container under certain circumstances. ... */ + /** [Config Option] (Boolean) */ constrainAlign?: bool; } } @@ -22324,28 +26969,29 @@ declare module Ext.layout { export interface IContext extends Ext.IBase { /** [Property] (Ext.util.Queue) */ layoutQueue?: Ext.util.IQueue; - /** [Property] (Number) One of these values: 0 - Before run 1 - Running 2 - Run complete ... */ + /** [Property] (Number) */ state?: number; /** [Method] Flushes any pending writes to the DOM by calling each ContextItem in the flushQueue */ flush?(): void; /** [Method] Returns the ContextItem for a component - * @param cmp Ext.IComponent + * @param cmp Ext.Component */ getCmp?( cmp?:Ext.IComponent ): void; /** [Method] Returns the ContextItem for an element - * @param parent Ext.layout.IContextItem - * @param el Ext.dom.IElement + * @param parent Ext.layout.ContextItem + * @param el Ext.dom.Element */ getEl?( parent?:Ext.layout.IContextItem, el?:Ext.dom.IElement ): void; /** [Method] Invalidates one or more components layouts component and container - * @param components Ext.IComponent An array of Components or a single Component. + * @param components Ext.Component/Array An array of Components or a single Component. * @param full Boolean True if all properties should be invalidated, otherwise only those calculated by the component should be invalidated. */ + invalidate?( components?:any, full?:any ): any; invalidate?( components?:Ext.IComponent, full?:bool ): void; invalidate?( components?:any[], full?:bool ): void; /** [Method] Removes the ContextItem for an element from the cache and from the parent s children array - * @param parent Ext.layout.IContextItem - * @param el Ext.dom.IElement + * @param parent Ext.layout.ContextItem + * @param el Ext.dom.Element */ removeEl?( parent?:Ext.layout.IContextItem, el?:Ext.dom.IElement ): void; /** [Method] Resets the given layout object @@ -22359,36 +27005,37 @@ declare module Ext.layout { /** [Method] Performs one layout cycle by calling each layout in the layout queue */ runCycle?(): bool; /** [Method] Set the size of a component element or composite or an array of components or elements - * @param item Ext.IComponent The item(s) to size. + * @param items Ext.Component/Ext.Component[]/Ext.dom.Element/Ext.dom.Element[]/Ext.dom.CompositeElement The item(s) to size. * @param width Number The new width to set (ignored if undefined or NaN). * @param height Number The new height to set (ignored if undefined or NaN). */ - setItemSize?( item?:Ext.IComponent, width?:number, height?:number ): void; - setItemSize?( item?:Ext.IComponent[], width?:number, height?:number ): void; - setItemSize?( item?:Ext.dom.IElement, width?:number, height?:number ): void; - setItemSize?( item?:Ext.dom.IElement[], width?:number, height?:number ): void; - setItemSize?( item?:Ext.dom.ICompositeElement, width?:number, height?:number ): void; + setItemSize?( items?:any, width?:any, height?:any ): any; + setItemSize?( items?:Ext.IComponent, width?:number, height?:number ): void; + setItemSize?( items?:Ext.IComponent[], width?:number, height?:number ): void; + setItemSize?( items?:Ext.dom.IElement, width?:number, height?:number ): void; + setItemSize?( items?:Ext.dom.IElement[], width?:number, height?:number ): void; + setItemSize?( items?:Ext.dom.ICompositeElement, width?:number, height?:number ): void; } } declare module Ext.layout { export interface IContextItem extends Ext.IBase { - /** [Property] (Object) State variables that are cleared when invalidated. ... */ + /** [Property] (Object) */ state?: any; - /** [Property] (Boolean) True if this item wraps a Component (rather than an Element). ... */ + /** [Property] (Boolean) */ wrapsComponent?: bool; /** [Method] Queue the addition of a class name or array of class names to this ContextItem s target when next flushed * @param newCls Object */ addCls?( newCls?:any ): void; /** [Method] Registers a layout in the block list for the given property - * @param layout Ext.layout.ILayout + * @param layout Ext.layout.Layout * @param propName String The property name that blocked the layout (e.g., 'width'). */ block?( layout?:Ext.layout.ILayout, propName?:string ): void; /** [Method] clears the margin cache so that marginInfo get re read from the dom on the next call to getMarginInfo This is neede */ clearMarginCache?(): void; /** [Method] Registers a layout in the DOM block list for the given property - * @param layout Ext.layout.ILayout + * @param layout Ext.layout.Layout * @param propName String The property name that blocked the layout (e.g., 'width'). */ domBlock?( layout?:Ext.layout.ILayout, propName?:string ): void; @@ -22403,8 +27050,8 @@ declare module Ext.layout { */ getDomProp?( propName?:string ): any; /** [Method] Returns the context item for an owned element - * @param nameOrEl any The element or the name of an owned element - * @param owner any The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. For more details on owned elements see childEls and renderSelectors + * @param nameOrEl String/Ext.dom.Element The element or the name of an owned element + * @param owner Ext.layout.container.Container/Ext.Component The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. For more details on owned elements see childEls and renderSelectors */ getEl?( nameOrEl?:any, owner?:any ): any; getEl?( nameOrEl?:string, owner?:Ext.layout.container.IContainer ): Ext.layout.IContextItem; @@ -22453,9 +27100,10 @@ declare module Ext.layout { */ removeCls?( removeCls?:any ): void; /** [Method] Removes a cached ContextItem that was created using getEl - * @param nameOrEl String The element or the name of an owned element - * @param owner Ext.layout.container.IContainer The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. + * @param nameOrEl String/Ext.dom.Element The element or the name of an owned element + * @param owner Ext.layout.container.Container/Ext.Component The owner of the named element if the passed "nameOrEl" parameter is a String. Defaults to this ContextItem's "target" property. */ + removeEl?( nameOrEl?:any, owner?:any ): any; removeEl?( nameOrEl?:string, owner?:Ext.layout.container.IContainer ): void; removeEl?( nameOrEl?:Ext.dom.IElement, owner?:Ext.layout.container.IContainer ): void; removeEl?( nameOrEl?:string, owner?:Ext.IComponent ): void; @@ -22501,46 +27149,46 @@ declare module Ext.layout { } declare module Ext.layout { export interface ILayout extends Ext.IBase { - /** [Property] (Boolean) Used only during a layout run, this value indicates that a layout has finished its calculations. ... */ + /** [Property] (Boolean) */ done?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Layout, or subclass thereof. ... */ + /** [Property] (Boolean) */ isLayout?: bool; /** [Method] Removes layout s itemCls and owning Container s itemCls * @param item Object */ afterRemove?( item?:any ): void; /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] Called before any calculation cycles to reset DOM values and prepare for calculation - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ beginLayoutCycle?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ calculate?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] This method if implemented is called at the end of the cycle in which this layout completes by not setting done to - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ completeLayout?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] Called before an item is rendered to allow the layout to configure the item - * @param item Ext.IComponent The item to be configured + * @param item Ext.Component The item to be configured */ configureItem?( item?:Ext.IComponent ): void; /** [Method] Destroys this layout */ destroy?(): void; /** [Method] This method if implemented is called after all layouts have completed - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ finalizeLayout?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] Returns an object describing how this layout manages the size of the given component - * @param item Ext.IComponent + * @param item Ext.Component */ getItemSizePolicy?( item?:Ext.IComponent ): Ext.layout.ISizePolicy; /** [Method] Returns the set of items to layout empty by default */ @@ -22554,11 +27202,11 @@ declare module Ext.layout { */ isValidParent?( item?:any, target?:any, position?:any ): void; /** [Method] This method if implemented is called after all layouts are finished and all have a lastComponentSize cached - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Ext.layout.ContextItem The context item for the layout's owner component. */ notifyOwner?( ownerContext?:Ext.layout.IContextItem ): void; /** [Method] This method is called when a child item changes in some way - * @param child Ext.IComponent The child item that has changed. + * @param child Ext.Component The child item that has changed. */ onContentChange?( child?:Ext.IComponent ): bool; /** [Method] Iterates over all passed items ensuring they are rendered @@ -22572,33 +27220,33 @@ declare module Ext.layout { export interface ISizeModel extends Ext.IBase { /** [Property] (Boolean) */ auto?: bool; - /** [Property] (Boolean) True if the size is calculated by the ownerLayout. ... */ + /** [Property] (Boolean) */ calculated?: bool; - /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on a configured size. ... */ + /** [Property] (Boolean) */ calculatedFromConfigured?: bool; - /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on natural size model results. ... */ + /** [Property] (Boolean) */ calculatedFromNatural?: bool; - /** [Property] (Boolean) True if the size is calculated by the ownerLayout based on shrinkWrap size model results. ... */ + /** [Property] (Boolean) */ calculatedFromShrinkWrap?: bool; - /** [Property] (Boolean) True if the size is configured (e.g., by a width or minWidth). ... */ + /** [Property] (Boolean) */ configured?: bool; - /** [Property] (Boolean) True if the size is constrained by a maxWidth or maxHeight configuration. ... */ + /** [Property] (Boolean) */ constrainedMax?: bool; - /** [Property] (Boolean) True if the size is constrained by a minWidth or minHeight configuration. ... */ + /** [Property] (Boolean) */ constrainedMin?: bool; /** [Property] (Boolean) */ fixed?: bool; /** [Property] (String) */ name?: string; - /** [Property] (Object) An object with the config property names that determine the size. ... */ + /** [Property] (Object) */ names?: any; - /** [Property] (Boolean) True if the size is determined by CSS and not by content. ... */ + /** [Property] (Boolean) */ natural?: bool; /** [Property] (Number) */ ordinal?: number; - /** [Property] (Object[]) An array of objects indexed by the ordinal of a height SizeModel on a width SizeModel to yield an object describing b... */ - pairsByHeightOrdinal?: Object[]; - /** [Property] (Boolean) True if the size is determined by content irrespective of the container box. ... */ + /** [Property] (Object[]) */ + pairsByHeightOrdinal?: any[]; + /** [Property] (Boolean) */ shrinkWrap?: bool; } } @@ -22635,7 +27283,7 @@ declare module Ext { */ static getPath( className?:string ): string; /** [Method] Loads the specified script URL and calls the supplied callbacks - * @param options any The options object or simply the URL to load. + * @param options Object/String The options object or simply the URL to load. */ static loadScript( options?:any ): void; /** [Method] Add a new listener to be executed when all required scripts are fully loaded @@ -22645,11 +27293,12 @@ declare module Ext { */ static onReady( fn?:any, scope?:any, withDomReady?:bool ): void; /** [Method] Loads all classes by the given names and all their direct dependencies optionally executes the given callback functi - * @param expressions String Can either be a string or an array of string + * @param expressions String/Array Can either be a string or an array of string * @param fn Function The callback function * @param scope Object The execution scope (this) of the callback function - * @param excludes String Classes to be excluded, useful when being used with expressions + * @param excludes String/Array Classes to be excluded, useful when being used with expressions */ + static require( expressions?:any, fn?:any, scope?:any, excludes?:any ): any; static require( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; static require( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; static require( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; @@ -22659,16 +27308,17 @@ declare module Ext { */ static setConfig( config?:any ): Ext.ILoader; /** [Method] Sets the path of a namespace - * @param name any See flexSetter + * @param name String/Object See flexSetter * @param path String See flexSetter */ static setPath( name?:any, path?:string ): Ext.ILoader; /** [Method] Synchronously loads all classes by the given names and all their direct dependencies optionally executes the given c - * @param expressions String Can either be a string or an array of string + * @param expressions String/Array Can either be a string or an array of string * @param fn Function The callback function * @param scope Object The execution scope (this) of the callback function - * @param excludes String Classes to be excluded, useful when being used with expressions + * @param excludes String/Array Classes to be excluded, useful when being used with expressions */ + static syncRequire( expressions?:any, fn?:any, scope?:any, excludes?:any ): any; static syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:string ): void; static syncRequire( expressions?:any[], fn?:any, scope?:any, excludes?:string ): void; static syncRequire( expressions?:string, fn?:any, scope?:any, excludes?:any[] ): void; @@ -22676,47 +27326,43 @@ declare module Ext { } } declare module Ext { - export interface ILoadMask extends Ext.IComponent,Ext.util.IBindable,Ext.util.IFloating { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + export interface ILoadMask extends Ext.IComponent,Ext.util.IFloating,Ext.util.IBindable { + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String) The CSS class to apply to the mask element ... */ + /** [Config Option] (String) */ maskCls?: string; - /** [Config Option] (String) The text to display in a centered loading message box. ... */ + /** [Config Option] (String) */ msg?: string; - /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + /** [Config Option] (String) */ msgCls?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Ext.data.Store) Optional Store to which the mask is bound. ... */ + /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; - /** [Config Option] (Ext.Component) The Component you wish to mask. ... */ + /** [Config Option] (Ext.Component) */ target?: Ext.IComponent; - /** [Config Option] (Boolean) Whether or not to use a loading message class or simply mask the bound element. ... */ + /** [Config Option] (Boolean) */ useMsg?: bool; - /** [Config Option] (Boolean) True to mask the targetEl of the bound Component. ... */ + /** [Config Option] (Boolean) */ useTargetEl?: bool; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; - /** [Method] Invoked after the Component is shown after onShow is called - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - afterShow?( animateTarget?:string, callback?:any, scope?:any ): void; - afterShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Invoked after the Component is shown after onShow is called */ + afterShow?(): void; /** [Method] Changes the data store bound to this LoadMask - * @param store Ext.data.IStore The store to bind to this LoadMask + * @param store Ext.data.Store The store to bind to this LoadMask */ bindStore?( store?:Ext.data.IStore ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Center this Component in its container */ center?(): Ext.IComponent; /** [Method] Moves this floating Component into a constrain region - * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. */ + doConstrain?( constrainTo?:any ): any; doConstrain?( constrainTo?:string ): void; doConstrain?( constrainTo?:HTMLElement ): void; doConstrain?( constrainTo?:Ext.IElement ): void; @@ -22724,20 +27370,13 @@ declare module Ext { /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + * @param store Object */ - getStoreListeners?( store?:Ext.data.IStore ): any; - /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. - */ - hide?( animateTarget?:any, callback?:any, scope?:any ): any; - hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; + getStoreListeners?( store?:any ): any; + /** [Method] Hides this Component setting it to invisible using the configured hideMode */ + hide?(): Ext.IComponent; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; @@ -22745,39 +27384,22 @@ declare module Ext { onDestroy?(): void; /** [Method] Allows addition of behavior to the disable operation */ onDisable?(): void; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Possibly animates down to a target element */ + onHide?(): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th * @param active Boolean True to activate the Component, false to deactivate it. - * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + * @param newActive Ext.Component The newly active Component which is taking over topmost zIndex position. */ setActive?( active?:bool, newActive?:Ext.IComponent ): void; - /** [Method] Shows this Component rendering it first if autoRender or floating are true - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. - * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. - */ - show?( animateTarget?:any, callback?:any, scope?:any ): any; - show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Shows this Component rendering it first if autoRender or floating are true */ + show?(): Ext.IComponent; /** [Method] Sends this Component to the back of lower z index than any other visible windows */ toBack?(): Ext.IComponent; /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag @@ -22785,32 +27407,32 @@ declare module Ext { */ toFront?( preventFocus?:bool ): Ext.IComponent; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.menu { export interface ICheckItem extends Ext.menu.IItem { - /** [Config Option] (Boolean) True to prevent the checked item from being toggled. ... */ + /** [Config Option] (Boolean) */ checkChangeDisabled?: bool; - /** [Config Option] (Function) Alternative for the checkchange event. ... */ + /** [Config Option] (Function) */ checkHandler?: any; - /** [Config Option] (Boolean) True to render the menuitem initially checked. ... */ + /** [Config Option] (Boolean) */ checked?: bool; - /** [Config Option] (String) The CSS class used by cls to show the checked state. ... */ + /** [Config Option] (String) */ checkedCls?: string; - /** [Config Option] (String) Name of a radio group that the item belongs. ... */ + /** [Config Option] (String) */ group?: string; - /** [Config Option] (String) The CSS class applied to this item's icon image to denote being a part of a radio group. ... */ + /** [Config Option] (String) */ groupCls?: string; - /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + /** [Config Option] (Boolean) */ hideOnClick?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The CSS class used by cls to show the unchecked state. ... */ + /** [Config Option] (String) */ uncheckedCls?: string; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; @@ -22831,7 +27453,7 @@ declare module Ext.menu { } declare module Ext.menu { export interface IColorPicker extends Ext.menu.IMenu { - /** [Config Option] (Boolean) False to continue showing the menu after a color is selected. ... */ + /** [Config Option] (Boolean) */ hideOnClick?: bool; /** [Config Option] (String) */ pickerId?: string; @@ -22841,7 +27463,7 @@ declare module Ext.menu { } declare module Ext.menu { export interface IDatePicker extends Ext.menu.IMenu { - /** [Config Option] (Boolean) False to continue showing the menu after a date is selected. ... */ + /** [Config Option] (Boolean) */ hideOnClick?: bool; /** [Config Option] (String) */ pickerId?: string; @@ -22850,70 +27472,88 @@ declare module Ext.menu { } } declare module Ext.menu { - export interface IItem extends Ext.IComponent { - /** [Config Option] (String) The CSS class added to the menu item when the item is activated (focused/mouseover). ... */ + export interface IItem extends Ext.IComponent,Ext.IQueryable { + /** [Config Option] (String) */ activeCls?: string; - /** [Config Option] (Boolean) Whether or not this menu item can be activated when focused/mouseovered. ... */ + /** [Config Option] (Boolean) */ canActivate?: bool; - /** [Config Option] (Number) The delay in milliseconds to wait before hiding the menu after clicking the menu item. ... */ + /** [Config Option] (Number) */ clickHideDelay?: number; - /** [Config Option] (Boolean) Whether or not to destroy any associated sub-menu when this item is destroyed. ... */ + /** [Config Option] (Boolean) */ destroyMenu?: bool; - /** [Config Option] (String) The CSS class added to the menu item when the item is disabled. ... */ + /** [Config Option] (String) */ disabledCls?: string; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this item. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Function) A function called when the menu item is clicked (can be used instead of click event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + /** [Config Option] (Boolean) */ hideOnClick?: bool; - /** [Config Option] (String) The href attribute to use for the underlying anchor link. ... */ + /** [Config Option] (String) */ href?: string; /** [Config Option] (String) */ hrefTarget?: string; - /** [Config Option] (String) The path to an icon to display in this item. ... */ + /** [Config Option] (String) */ icon?: string; /** [Config Option] (String) */ iconCls?: string; /** [Config Option] (Ext.menu.Menu/Object) */ menu?: any; - /** [Config Option] (String) The default Ext.util.Positionable.getAlignToXY anchor position value for this item's sub-menu relative to this item's... */ + /** [Config Option] (String) */ menuAlign?: string; - /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu expands after this item is moused over. ... */ + /** [Config Option] (Number) */ menuExpandDelay?: number; - /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu hides after this item is moused out. ... */ + /** [Config Option] (Number) */ menuHideDelay?: number; /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; /** [Config Option] (String) */ text?: string; - /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + /** [Config Option] (String/Object) */ tooltip?: any; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; /** [Property] (Boolean) */ activated?: bool; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; /** [Property] (Ext.menu.Menu) */ parentMenu?: Ext.menu.IMenu; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; /** [Method] The initComponent template method is an important initialization step for a Component */ initComponent?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event */ + onRemoved?(): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. */ - onRemoved?( destroying?:bool ): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Sets the click handler of this item * @param fn Function The handler function * @param scope Object The scope of the handler function @@ -22928,7 +27568,7 @@ declare module Ext.menu { */ setIconCls?( iconCls?:string ): void; /** [Method] Set a child menu for this item - * @param menu any A menu, or menu configuration. null may be passed to remove the menu. + * @param menu Ext.menu.Menu/Object A menu, or menu configuration. null may be passed to remove the menu. * @param destroyMenu Boolean True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used. */ setMenu?( menu?:any, destroyMenu?:bool ): void; @@ -22937,76 +27577,94 @@ declare module Ext.menu { */ setText?( text?:string ): void; /** [Method] Sets the tooltip for this menu item - * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + * @param tooltip String/Object This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. */ setTooltip?( tooltip?:any ): Ext.menu.IItem; } } declare module Ext.menu { - export interface ITextItem extends Ext.IComponent { - /** [Config Option] (String) The CSS class added to the menu item when the item is activated (focused/mouseover). ... */ + export interface ITextItem extends Ext.IComponent,Ext.IQueryable { + /** [Config Option] (String) */ activeCls?: string; - /** [Config Option] (Boolean) Whether or not this menu item can be activated when focused/mouseovered. ... */ + /** [Config Option] (Boolean) */ canActivate?: bool; - /** [Config Option] (Number) The delay in milliseconds to wait before hiding the menu after clicking the menu item. ... */ + /** [Config Option] (Number) */ clickHideDelay?: number; - /** [Config Option] (Boolean) Whether or not to destroy any associated sub-menu when this item is destroyed. ... */ + /** [Config Option] (Boolean) */ destroyMenu?: bool; - /** [Config Option] (String) The CSS class added to the menu item when the item is disabled. ... */ + /** [Config Option] (String) */ disabledCls?: string; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for this item. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Function) A function called when the menu item is clicked (can be used instead of click event). ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Boolean) Whether to not to hide the owning menu when this item is clicked. ... */ + /** [Config Option] (Boolean) */ hideOnClick?: bool; - /** [Config Option] (String) The href attribute to use for the underlying anchor link. ... */ + /** [Config Option] (String) */ href?: string; /** [Config Option] (String) */ hrefTarget?: string; - /** [Config Option] (String) The path to an icon to display in this item. ... */ + /** [Config Option] (String) */ icon?: string; /** [Config Option] (String) */ iconCls?: string; /** [Config Option] (Ext.menu.Menu/Object) */ menu?: any; - /** [Config Option] (String) The default Ext.util.Positionable.getAlignToXY anchor position value for this item's sub-menu relative to this item's... */ + /** [Config Option] (String) */ menuAlign?: string; - /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu expands after this item is moused over. ... */ + /** [Config Option] (Number) */ menuExpandDelay?: number; - /** [Config Option] (Number) The delay in milliseconds before this item's sub-menu hides after this item is moused out. ... */ + /** [Config Option] (Number) */ menuHideDelay?: number; /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; /** [Config Option] (String) */ text?: string; - /** [Config Option] (String/Object) The tooltip for the button - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config obj... */ + /** [Config Option] (String/Object) */ tooltip?: any; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; /** [Property] (Boolean) */ activated?: bool; - /** [Property] (Boolean) This is an internal flag that you use when creating custom components. ... */ + /** [Property] (Boolean) */ maskOnDisable?: bool; /** [Property] (Ext.menu.Menu) */ parentMenu?: Ext.menu.IMenu; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; /** [Method] The initComponent template method is an important initialization step for a Component */ initComponent?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event */ + onRemoved?(): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. */ - onRemoved?( destroying?:bool ): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Sets the click handler of this item * @param fn Function The handler function * @param scope Object The scope of the handler function @@ -23021,7 +27679,7 @@ declare module Ext.menu { */ setIconCls?( iconCls?:string ): void; /** [Method] Set a child menu for this item - * @param menu any A menu, or menu configuration. null may be passed to remove the menu. + * @param menu Ext.menu.Menu/Object A menu, or menu configuration. null may be passed to remove the menu. * @param destroyMenu Boolean True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used. */ setMenu?( menu?:any, destroyMenu?:bool ): void; @@ -23030,7 +27688,7 @@ declare module Ext.menu { */ setText?( text?:string ): void; /** [Method] Sets the tooltip for this menu item - * @param tooltip any This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. + * @param tooltip String/Object This may be: String : A string to be used as innerHTML (html tags are accepted) to show in a tooltip Object : A configuration object for Ext.tip.QuickTipManager.register. */ setTooltip?( tooltip?:any ): Ext.menu.IItem; } @@ -23043,50 +27701,150 @@ declare module Ext.menu { export interface IManager extends Ext.IBase { } export class Manager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Returns a Ext menu Menu object - * @param menu any The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. + * @param menu String/Object The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. */ static get( menu?:any ): Ext.menu.IMenu; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Hides all menus that are currently visible */ static hideAll(): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.menu { export interface IMenuMgr extends Ext.IBase { } export class MenuMgr { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Returns a Ext menu Menu object - * @param menu any The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. + * @param menu String/Object The string menu id, an existing menu object reference, or a Menu config that will be used to generate and return a new Menu this. */ static get( menu?:any ): Ext.menu.IMenu; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Hides all menus that are currently visible */ static hideAll(): bool; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.menu { export interface IMenu extends Ext.panel.IPanel { - /** [Config Option] (Boolean) True to allow multiple menus to be displayed at the same time. ... */ + /** [Config Option] (Boolean) */ allowOtherMenus?: bool; - /** [Config Option] (Boolean) True to enable keyboard navigation for controlling the menu. ... */ + /** [Config Option] (Boolean) */ enableKeyNav?: bool; - /** [Config Option] (Boolean) A Menu configured as floating: true (the default) will be rendered as an absolutely positioned, floating Component. ... */ + /** [Config Option] (Boolean) */ floating?: bool; - /** [Config Option] (Boolean) True to initially render the Menu as hidden, requiring to be shown manually. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) A String which specifies how this Component's encapsulating DOM element will be hidden. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (Boolean) True to ignore clicks on any item in this menu that is a parent item (displays a submenu) so that the submenu is not ... */ + /** [Config Option] (Boolean) */ ignoreParentClicks?: bool; - /** [Config Option] (Number) The minimum width of the Menu. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean) True to remove the incised line down the left side of the menu and to not indent general Component items. ... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Boolean) True to show the icon separator. ... */ + /** [Config Option] (Boolean) */ showSeparator?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Menu, or subclass thereof. ... */ + /** [Property] (Boolean) */ isMenu?: bool; /** [Property] (Ext.menu.Menu) */ parentMenu?: Ext.menu.IMenu; + /** [Method] Invoked after the Component is shown after onShow is called */ + afterShow?(): void; + /** [Method] Invoked before the Component is shown */ + beforeShow?(): void; /** [Method] Returns whether a menu item can be activated or not * @param item Object */ @@ -23095,42 +27853,23 @@ declare module Ext.menu { * @param andBlurFocusedItem Object */ deactivateActiveItem?( andBlurFocusedItem?:any ): void; - /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. - */ - hide?( animateTarget?:any, callback?:any, scope?:any ): any; - hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; - /** [Method] Menus are never contained and must not ascertain their visibility from the ancestor hierarchy Returns true if this - * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. - */ - isVisible?( deep?:bool ): bool; + /** [Method] Hides this Component setting it to invisible using the configured hideMode */ + hide?(): Ext.IComponent; + /** [Method] Menus are never contained and must not ascertain their visibility from the ancestor hierarchy */ + isVisible?(): bool; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Shows this Component rendering it first if autoRender or floating are true - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true. The target from which the Component should animate from while opening. - * @param callback any A callback function to call after the Component is displayed. Only necessary if animation was specified. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. - */ - show?( animateTarget?:any, callback?:any, scope?:any ): any; - show?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - show?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; /** [Method] Shows this component by the specified Component or Element - * @param component any The Ext.Component or Ext.Element to show the component by. - * @param position any Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. - * @param offsets any Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + * @param cmp Object + * @param pos Object + * @param off Object */ - showBy?( component?:any, position?:any, offsets?:any ): any; - showBy?( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; - showBy?( component?:Ext.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + showBy?( cmp?:any, pos?:any, off?:any ): Ext.IComponent; } } declare module Ext.menu { export interface ISeparator extends Ext.menu.IItem { - /** [Config Option] (String) The CSS class used by the separator item to show the incised line. ... */ + /** [Config Option] (String) */ separatorCls?: string; } } @@ -23138,32 +27877,2274 @@ declare module Ext { export interface IMessageBox extends Ext.window.IMessageBox { } export class MessageBox { + /** [Method] Adds Component s to this Container + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + static add( component?:any ): Ext.IComponent[]; + /** [Method] Adds Component s to this Container + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + static add( component?:any ): Ext.IComponent; + /** [Method] Adds a CSS class to the body element + * @param cls String The class to add + */ + static addBodyCls( cls?:string ): Ext.panel.IPanel; + /** [Method] Adds each argument passed to this method to the childEls array */ + static addChildEls(): void; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls String/String[] The CSS class name to add. + */ + static addClass( cls?:any ): any; + static addClass( cls?:string ): Ext.IComponent; + static addClass( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls String/String[] The CSS class name to add. + */ + static addCls( cls?:any ): any; + static addCls( cls?:string ): Ext.IComponent; + static addCls( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a cls to the uiCls array which will also call addUIClsToElement and adds to all elements of this component + * @param classes String/String[] A string or an array of strings to add to the uiCls. + * @param skip Object (Boolean) skip true to skip adding it to the class and do it later (via the return). + */ + static addClsWithUI( classes?:any, skip?:any ): any; + static addClsWithUI( classes?:string, skip?:any ): void; + static addClsWithUI( classes?:string[], skip?:any ): void; + /** [Method] Adds docked item s to the container + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param pos Number The index at which the Component will be added + */ + static addDocked( component?:any, pos?:number ): Ext.IComponent[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param element Object + * @param listeners Object + * @param scope Object + * @param options Object + */ + static addListener( element?:any, listeners?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Save a property to the given state object if it is not its default or configured value + * @param state Object The state object. + * @param propName String The name of the property on this object to save. + * @param value String The value of the state property (defaults to this[propName]). + */ + static addPropertyToState( state?:any, propName?:string, value?:string ): bool; + /** [Method] Add events that will trigger the state to be saved + * @param events String/String[] The event name or an array of event names. + */ + static addStateEvents( events?:any ): any; + static addStateEvents( events?:string ): void; + static addStateEvents( events?:string[] ): void; + /** [Method] Add tools to this panel + * @param tools Object[]/Ext.panel.Tool[] The tools to add + */ + static addTool( tools?:any ): void; + /** [Method] inherit docs + * @param cls Object + */ + static addUIClsToElement( cls?:any ): void; + /** [Method] Invoked after the Panel is Collapsed */ + static afterCollapse(): void; + /** [Method] Called by the layout system after the Component has been laid out */ + static afterComponentLayout(): void; + /** [Method] Invoked after the Panel is Expanded */ + static afterExpand(): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components + * @param layout Ext.layout.container.Container + */ + static afterLayout( layout?:Ext.layout.container.IContainer ): void; + /** [Method] Template method called after a Component has been positioned + * @param ax Object + * @param ay Object + */ + static afterSetPosition( ax?:any, ay?:any ): void; + /** [Method] Invoked after the Component is shown after onShow is called + * @param animateTarget String/Ext.Element + * @param callback Function + * @param scope Object + */ + static afterShow( animateTarget?:any, callback?:any, scope?:any ): any; + static afterShow( animateTarget?:string, callback?:any, scope?:any ): void; + static afterShow( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Displays a standard read only message box with an OK button comparable to the basic JavaScript alert prompt + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + static alert( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Aligns the element with another element relative to the specified anchor points + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static alignTo( element?:any, position?:any, offsets?:any, animate?:any ): any; + static alignTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + static alignTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + static alignTo( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Anchors an element to another element and realigns it when the window is resized + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + * @param monitorScroll Boolean/Number True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback Function The function to call after the animation finishes + */ + static anchorTo( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; + static anchorTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + /** [Method] Performs custom animation on this object + * @param animObj Object + */ + static animate( animObj?:any ): any; + /** [Method] Applies the state to the object + * @param state Object + */ + static applyState( state?:any ): void; + /** [Method] Template method to do any pre blur processing + * @param e Ext.EventObject The event object + */ + static beforeBlur( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run + * @param adjWidth Number The box-adjusted width that was set. + * @param adjHeight Number The box-adjusted height that was set. + */ + static beforeComponentLayout( adjWidth?:number, adjHeight?:number ): void; + /** [Method] Template method to do any pre focus processing + * @param e Ext.EventObject The event object + */ + static beforeFocus( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run */ + static beforeLayout(): void; + /** [Method] Invoked before the Component is shown */ + static beforeShow(): void; + /** [Method] Bubbles up the component container heirarchy calling the specified function with each component + * @param fn Function The function to call + * @param scope Object The scope of the function. Defaults to current node. + * @param args Array The args to call the function with. Defaults to passing the current component. + */ + static bubble( fn?:any, scope?:any, args?:any[] ): Ext.IComponent; + /** [Method] Calculates the new x y position to move this Positionable into a constrain region + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local Boolean The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize Number[] A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + */ + static calculateConstrainedPosition( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; + static calculateConstrainedPosition( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:HTMLElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:Ext.IElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Cancel any deferred focus on this component */ + static cancelFocus(): void; + /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified + * @param fn Function The function to call + * @param scope Object The scope of the function (defaults to current component) + * @param args Array The args to call the function with. The current component always passed as the last argument. + */ + static cascade( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; + /** [Method] Center this Component in its container */ + static center(): Ext.IComponent; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + static child( selector?:any ): any; + static child( selector?:string ): any; + static child( selector?:Ext.IComponent ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Clone the current component using the original config values passed into this instance by default + * @param overrides Object A new config containing any properties to override in the cloned version. An id property can be passed on this object, otherwise one will be generated to avoid duplicates. + */ + static cloneConfig( overrides?:any ): Ext.IComponent; + /** [Method] Closes the Panel */ + static close(): void; + /** [Method] Collapses the panel body so that the body becomes hidden + * @param direction String The direction to collapse towards. Must be one of Ext.Component.DIRECTION_TOP Ext.Component.DIRECTION_RIGHT Ext.Component.DIRECTION_BOTTOM Ext.Component.DIRECTION_LEFT Defaults to collapseDirection. + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + static collapse( direction?:string, animate?:bool ): Ext.panel.IPanel; + /** [Method] Displays a confirmation message box with Yes and No buttons comparable to JavaScript s confirm + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + static confirm( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Determines whether the passed Component is either an immediate child of this Container or whether it is a descendant + * @param comp Ext.Component The Component to test. + * @param deep Boolean Pass true to test for the Component being a descendant at any level. + */ + static contains( comp?:Ext.IComponent, deep?:bool ): bool; + /** [Method] converts a collapsdDir into an anchor argument for Element slideIn overridden in rtl mode to switch l and r + * @param collapseDir Object + */ + static convertCollapseDir( collapseDir?:any ): void; + /** [Method] Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets */ + static disable(): Ext.container.IAbstractContainer; + /** [Method] Handles autoRender */ + static doAutoRender(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + static doComponentLayout(): Ext.container.IContainer; + /** [Method] Moves this floating Component into a constrain region + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + */ + static doConstrain( constrainTo?:any ): any; + static doConstrain( constrainTo?:string ): void; + static doConstrain( constrainTo?:HTMLElement ): void; + static doConstrain( constrainTo?:Ext.IElement ): void; + static doConstrain( constrainTo?:Ext.util.IRegion ): void; + /** [Method] Manually force this container s layout to be recalculated */ + static doLayout(): Ext.container.IContainer; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + static down( selector?:any ): any; + static down( selector?:string ): any; + static down( selector?:Ext.IComponent ): any; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Ensures that this component is attached to document body + * @param runLayout Boolean True to run the component's layout. + */ + static ensureAttachedToBody( runLayout?:bool ): void; + /** [Method] Expands the panel body so that it becomes visible + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + static expand( animate?:bool ): Ext.panel.IPanel; + /** [Method] Find a container above this component at any level by a custom function + * @param fn Function The custom function to call with the arguments (container, this component). + */ + static findParentBy( fn?:any ): Ext.container.IContainer; + /** [Method] Find a container above this component at any level by xtype or class See also the up method + * @param xtype String/Ext.Class The xtype string for a component, or the class of the component directly + */ + static findParentByType( xtype?:any ): any; + static findParentByType( xtype?:string ): Ext.container.IContainer; + static findParentByType( xtype?:Ext.IClass ): Ext.container.IContainer; + /** [Method] Retrieves plugin from this component s collection by its ptype + * @param ptype String The Plugin's ptype as specified by the class's alias configuration. + */ + static findPlugin( ptype?:string ): Ext.IAbstractPlugin; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Try to focus this component + * @param selectText Boolean If applicable, true to also select the text in this component + * @param delay Boolean/Number Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param callback Function Only needed if the delay parameter is used. A function to call upon focus. + * @param scope Function Only needed if the delay parameter is used. The scope (this reference) in which to execute the callback. + */ + static focus( selectText?:any, delay?:any, callback?:any, scope?:any ): any; + static focus( selectText?:bool, delay?:bool, callback?:any, scope?:any ): Ext.IComponent; + static focus( selectText?:bool, delay?:number, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Forces this component to redo its componentLayout */ + static forceComponentLayout(): void; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static getActiveAnimation(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static getActiveAnimation(): bool; + /** [Method] Gets the x y coordinates to align this element with another element + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + */ + static getAlignToXY( element?:any, position?:any, offsets?:any ): any; + static getAlignToXY( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; + static getAlignToXY( element?:HTMLElement, position?:string, offsets?:number[] ): number[]; + static getAlignToXY( element?:string, position?:string, offsets?:number[] ): number[]; + /** [Method] Gets the x y coordinates specified by the anchor position on the element + * @param anchor String The specified anchor position. See alignTo for details on supported anchor positions. + * @param local Boolean True to get the local (element top/left-relative) anchor position instead of page coordinates + * @param size Object An object containing the size to use for calculating anchor position {width: (target width), height: (target height)} (defaults to the element's current size) + */ + static getAnchorXY( anchor?:string, local?:bool, size?:any ): number[]; + /** [Method] Return an object defining the area of this Element which can be passed to setBox to set another Element s size locati + * @param contentBox Boolean If true a box for the content of the element is returned. + * @param local Boolean If true the element's left and top relative to its offsetParent are returned instead of page x/y. + */ + static getBox( contentBox?:bool, local?:bool ): any; + /** [Method] Implements an upward event bubbling policy */ + static getBubbleTarget(): void; + /** [Method] Return the immediate child Component in which the passed element is located + * @param el Ext.Element/HTMLElement/String The element to test (or ID of element). + * @param deep Boolean If true, returns the deepest descendant Component which contains the passed element. + */ + static getChildByElement( el?:any, deep?:any ): any; + static getChildByElement( el?:Ext.IElement, deep?:bool ): Ext.IComponent; + static getChildByElement( el?:HTMLElement, deep?:bool ): Ext.IComponent; + static getChildByElement( el?:string, deep?:bool ): Ext.IComponent; + /** [Method] Returns the current collapsed state of the panel */ + static getCollapsed(): bool; + /** [Method] Returns the current collapsed state of the panel */ + static getCollapsed(): string; + /** [Method] Attempts a default component lookup see Ext container Container getComponent + * @param comp String/Number The component id, itemId or position to find + */ + static getComponent( comp?:any ): any; + static getComponent( comp?:string ): Ext.IComponent; + static getComponent( comp?:number ): Ext.IComponent; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + static getConstrainVector( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; + static getConstrainVector( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + static getConstrainVector( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): bool; + /** [Method] Gets the configured default focus item */ + static getDefaultFocus(): void; + /** [Method] Finds a docked component by id itemId or position + * @param comp String/Number The id, itemId or position of the docked component (see getComponent for details) + */ + static getDockedComponent( comp?:any ): any; + static getDockedComponent( comp?:string ): Ext.IComponent; + static getDockedComponent( comp?:number ): Ext.IComponent; + /** [Method] Retrieves an array of all currently docked Components + * @param selector String A ComponentQuery selector string to filter the returned items. + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + static getDockedItems( selector?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Retrieves the top level element representing this component */ + static getEl(): Ext.dom.IElement; + /** [Method] Gets the Header for this panel */ + static getHeader(): void; + /** [Method] Gets the current height of the component s underlying element */ + static getHeight(): number; + /** [Method] Retrieves the id of this component */ + static getId(): string; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert + * @param position String/Number/Ext.dom.Element/HTMLElement Index, element id or element you want to put this component before. + */ + static getInsertPosition( position?:any ): any; + static getInsertPosition( position?:string ): HTMLElement; + static getInsertPosition( position?:number ): HTMLElement; + static getInsertPosition( position?:Ext.dom.IElement ): HTMLElement; + static getInsertPosition( position?:HTMLElement ): HTMLElement; + /** [Method] Returns the value of itemId assigned to this component or when that is not set returns the value of id */ + static getItemId(): string; + /** [Method] Returns the layout instance currently associated with this Container */ + static getLayout(): Ext.layout.container.IContainer; + /** [Method] Gets the Ext ComponentLoader for this Component */ + static getLoader(): Ext.IComponentLoader; + /** [Method] Overridden in Ext rtl AbstractComponent */ + static getLocalX(): number; + /** [Method] Overridden in Ext rtl AbstractComponent */ + static getLocalXY(): number[]; + /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ + static getLocalY(): number; + /** [Method] Returns the offsets of this element from the passed element + * @param offsetsTo Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or element id to get get the offsets from. + */ + static getOffsetsTo( offsetsTo?:any ): any; + static getOffsetsTo( offsetsTo?:Ext.util.IPositionable ): number[]; + static getOffsetsTo( offsetsTo?:HTMLElement ): number[]; + static getOffsetsTo( offsetsTo?:string ): number[]; + /** [Method] Retrieves a plugin from this component s collection by its pluginId + * @param pluginId String + */ + static getPlugin( pluginId?:string ): Ext.IAbstractPlugin; + /** [Method] Gets the current XY position of the component s underlying element + * @param local Boolean If true the element's left and top are returned instead of page XY. + */ + static getPosition( local?:bool ): number[]; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + static getRefItems( deep?:any ): void; + /** [Method] Returns a region object that defines the area of this element */ + static getRegion(): Ext.util.IRegion; + /** [Method] Gets the current size of the component s underlying element */ + static getSize(): any; + /** [Method] Returns an object that describes how this component s width and height are managed + * @param ownerCtSizeModel Object + */ + static getSizeModel( ownerCtSizeModel?:any ): any; + /** [Method] Returns the content region of this element */ + static getViewRegion(): Ext.util.IRegion; + /** [Method] Gets the current width of the component s underlying element */ + static getWidth(): number; + /** [Method] Gets the current X position of the DOM element based on page coordinates */ + static getX(): number; + /** [Method] Gets the xtype for this component as registered with Ext ComponentManager */ + static getXType(): string; + /** [Method] Returns this Component s xtype hierarchy as a slash delimited string */ + static getXTypes(): string; + /** [Method] Gets the current position of the DOM element based on page coordinates */ + static getXY(): number[]; + /** [Method] Gets the current Y position of the DOM element based on page coordinates */ + static getY(): number; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static hasActiveFx(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static hasActiveFx(): bool; + /** [Method] Checks if the specified CSS class exists on this element s DOM node + * @param className String The CSS class to check for. + */ + static hasCls( className?:string ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Checks if there is currently a specified uiCls + * @param cls String The cls to check. + */ + static hasUICls( cls?:string ): void; + /** [Method] Hides this Component setting it to invisible using the configured hideMode */ + static hide(): Ext.IComponent; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Initialize any events on this component */ + static initEvents(): void; + /** [Method] Inserts a Component into this Container at a specified index + * @param index Number The index at which the Component will be inserted into the Container's items collection + * @param component Ext.Component/Object The child Component to insert. Ext uses lazy rendering, and will only render the inserted Component should it become necessary. A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.enums.Widget. + */ + static insert( index?:number, component?:any ): Ext.IComponent; + /** [Method] Inserts docked item s to the panel at the indicated position + * @param pos Number The index at which the Component will be inserted + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + */ + static insertDocked( pos?:number, component?:any ): void; + /** [Method] Tests whether this Component matches the selector string + * @param selector String The selector string to test against. + */ + static is( selector?:string ): bool; + /** [Method] Determines whether this Container is an ancestor of the passed Component + * @param possibleDescendant Ext.Component The Component to test for presence within this Container's subtree. + */ + static isAncestor( possibleDescendant?:Ext.IComponent ): void; + /** [Method] Determines whether this component is the descendant of a particular container + * @param container Ext.Container + */ + static isDescendantOf( container?:Ext.IContainer ): bool; + /** [Method] Method to determine whether this Component is currently disabled */ + static isDisabled(): bool; + /** [Method] Method to determine whether this Component is draggable */ + static isDraggable(): bool; + /** [Method] Method to determine whether this Component is droppable */ + static isDroppable(): bool; + /** [Method] Method to determine whether this Component is floating */ + static isFloating(): bool; + /** [Method] Method to determine whether this Component is currently set to hidden */ + static isHidden(): bool; + /** [Method] Determines whether this Component is the root of a layout */ + static isLayoutRoot(): void; + /** [Method] Returns true if layout is suspended for this component */ + static isLayoutSuspended(): bool; + /** [Method] Returns true if this component is visible + * @param deep Object + */ + static isVisible( deep?:any ): bool; + /** [Method] Tests whether or not this Component is of a specific xtype + * @param xtype String The xtype to check for this Component + * @param shallow Boolean true to check whether this Component is directly of the specified xtype, false to check whether this Component is descended from the xtype. + */ + static isXType( xtype?:string, shallow?:bool ): bool; + /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore + * @param animate Boolean true to animate this Window to full size. + */ + static maximize( animate?:bool ): Ext.window.IWindow; + /** [Method] Placeholder method for minimizing the window */ + static minimize(): Ext.window.IWindow; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Moves a Component within the Container + * @param fromIdx Number/Ext.Component The index/component to move. + * @param toIdx Number The new index for the Component. + */ + static move( fromIdx?:any, toIdx?:any ): any; + static move( fromIdx?:number, toIdx?:number ): Ext.IComponent; + static move( fromIdx?:Ext.IComponent, toIdx?:number ): Ext.IComponent; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Returns the next node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the following nodes. + */ + static nextNode( selector?:string ): Ext.IComponent; + /** [Method] Returns the next sibling of this Component + * @param selector String A ComponentQuery selector to filter the following items. + */ + static nextSibling( selector?:string ): Ext.IComponent; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.Component + * @param position Number + */ + static onAdd( component?:Ext.IComponent, position?:number ): void; + /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event */ + static onAdded(): void; + /** [Method] This method is invoked before adding a new child Component + * @param item Ext.Component + */ + static onBeforeAdd( item?:Ext.IComponent ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + static onDestroy(): void; + /** [Method] Allows addition of behavior to the disable operation */ + static onDisable(): void; + /** [Method] Invoked after a docked item is added to the Panel + * @param component Ext.Component + */ + static onDockedAdd( component?:Ext.IComponent ): void; + /** [Method] Invoked after a docked item is removed from the Panel + * @param component Ext.Component + */ + static onDockedRemove( component?:Ext.IComponent ): void; + /** [Method] Allows addition of behavior to the enable operation */ + static onEnable(): void; + /** [Method] Possibly animates down to a target element */ + static onHide(): void; + /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need */ + static onPosition(): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.Component + * @param autoDestroy Boolean + */ + static onRemove( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Object + */ + static onRemoved( destroying?:any ): void; + /** [Method] Allows addition of behavior to the resize operation */ + static onResize(): void; + /** [Method] Allows addition of behavior to the show operation */ + static onShow(): void; + /** [Method] Invoked after the afterShow method is complete + * @param callback Function + * @param scope Object + */ + static onShowComplete( callback?:any, scope?:any ): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.EventObject The event object + */ + static postBlur( e?:Ext.IEventObject ): void; + /** [Method] Returns the previous node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the preceding nodes. + */ + static previousNode( selector?:string ): Ext.IComponent; + /** [Method] Returns the previous sibling of this Component + * @param selector String A ComponentQuery selector to filter the preceding items. + */ + static previousSibling( selector?:string ): Ext.IComponent; + /** [Method] Displays a message box with a progress bar + * @param title String The title bar text + * @param msg String The message box body text + * @param progressText String The text to display inside the progress bar + */ + static progress( title?:string, msg?:string, progressText?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with OK and Cancel buttons prompting the user to enter some text comparable to JavaScript s p + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + * @param multiline Boolean/Number True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox/ + * @param value String Default value of the text input element + */ + static prompt( title?:any, msg?:any, fn?:any, scope?:any, multiline?:any, value?:any ): any; + static prompt( title?:string, msg?:string, fn?:any, scope?:any, multiline?:bool, value?:string ): Ext.window.IMessageBox; + static prompt( title?:string, msg?:string, fn?:any, scope?:any, multiline?:number, value?:string ): Ext.window.IMessageBox; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + static query( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + static queryBy( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + static queryById( id?:string ): Ext.IComponent; + /** [Method] Called by Component doAutoRender Register a Container configured floating true with this Component s ZIndexManager + * @param cmp Object + */ + static registerFloatingItem( cmp?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes a component from this container + * @param component Ext.Component/String The component reference or id to remove. + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + static remove( component?:any, autoDestroy?:any ): any; + static remove( component?:Ext.IComponent, autoDestroy?:bool ): Ext.IComponent; + static remove( component?:string, autoDestroy?:bool ): Ext.IComponent; + /** [Method] Removes all components from this container + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + static removeAll( autoDestroy?:bool ): Ext.IComponent[]; + /** [Method] Remove any anchor to this element */ + static removeAnchor(): Ext.util.IPositionable; + /** [Method] Removes a CSS class from the body element + * @param cls String The class to remove + */ + static removeBodyCls( cls?:string ): Ext.panel.IPanel; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + static removeChildEls( testFn?:any ): void; + /** [Method] Removes a CSS class from the top level element representing this component + * @param cls String/String[] The CSS class name to remove. + */ + static removeCls( cls?:any ): any; + static removeCls( cls?:string ): Ext.IComponent; + static removeCls( cls?:string[] ): Ext.IComponent; + /** [Method] Removes a cls to the uiCls array which will also call removeUIClsFromElement and removes it from all elements of thi + * @param cls String/String[] A string or an array of strings to remove to the uiCls. + */ + static removeClsWithUI( cls?:any ): any; + static removeClsWithUI( cls?:string ): void; + static removeClsWithUI( cls?:string[] ): void; + /** [Method] Removes the docked item from the panel + * @param item Ext.Component The Component to remove. + * @param autoDestroy Boolean Destroy the component after removal. + */ + static removeDocked( item?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] inherit docs + * @param cls Object + */ + static removeUIClsFromElement( cls?:any ): void; + /** [Method] Renders the Component into the passed HTML element + * @param container Ext.Element/HTMLElement/String The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String/Number The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + */ + static render( container?:any, position?:any ): any; + static render( container?:Ext.IElement, position?:string ): void; + static render( container?:HTMLElement, position?:string ): void; + static render( container?:string, position?:string ): void; + static render( container?:Ext.IElement, position?:number ): void; + static render( container?:HTMLElement, position?:number ): void; + static render( container?:string, position?:number ): void; + /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re + * @param animate Object + */ + static restore( animate?:any ): Ext.window.IWindow; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Conditionally saves a single property from this object to the given state object + * @param propName String The name of the property to save. + * @param state Object The state object in to which to save the property. + * @param stateName String The name to use for the property in state. + */ + static savePropToState( propName?:string, state?:any, stateName?:string ): bool; + /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object + * @param propNames String/String[] The name (or array of names) of the property to save. + * @param state Object The state object in to which to save the property values. + */ + static savePropsToState( propNames?:any, state?:any ): any; + static savePropsToState( propNames?:string, state?:any ): any; + static savePropsToState( propNames?:string[], state?:any ): any; + /** [Method] Saves the state of the object to the persistence store */ + static saveState(): void; + /** [Method] Scrolls this Component s target element by the passed delta values optionally animating + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. + */ + static scrollBy( deltaX?:any, deltaY?:any, animate?:any ): void; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + static sequenceFx(): any; + /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th + * @param active Boolean True to activate the Component, false to deactivate it. + * @param newActive Ext.Component The newly active Component which is taking over topmost zIndex position. + */ + static setActive( active?:bool, newActive?:Ext.IComponent ): void; + /** [Method] Sets the overflow on the content element of the component + * @param scroll Boolean True to allow the Component to auto scroll. + */ + static setAutoScroll( scroll?:bool ): Ext.IComponent; + /** [Method] Sets the body style according to the passed parameters + * @param style Mixed A full style specification string, or object, or the name of a style property to set. + * @param value String If the first param was a style property name, the style property value. + */ + static setBodyStyle( style?:any, value?:string ): Ext.panel.IPanel; + /** [Method] + * @param border Object + * @param targetEl Object + */ + static setBorder( border?:any, targetEl?:any ): void; + /** [Method] This method changes the region config property for this border region + * @param region String The new region value ("north", "south", "east" or "west"). + */ + static setBorderRegion( region?:string ): string; + /** [Method] Sets the element s box + * @param box Object The box to fill {x, y, width, height} + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static setBox( box?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Enable or disable the component + * @param disabled Boolean true to disable. + */ + static setDisabled( disabled?:bool ): void; + /** [Method] Sets the dock position of this component in its parent panel + * @param dock Object The dock position. + * @param layoutParent Boolean true to re-layout parent. + */ + static setDocked( dock?:any, layoutParent?:bool ): Ext.IComponent; + /** [Method] Set the glyph for the panel s header + * @param newGlyph Number/String The new glyph This parameter expects a format consistent with that of glyph + */ + static setGlyph( newGlyph?:any ): any; + static setGlyph( newGlyph?:number ): void; + static setGlyph( newGlyph?:string ): void; + /** [Method] Sets the height of the component + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + */ + static setHeight( height?:number ): Ext.IComponent; + /** [Method] Adds the specified icon to the dialog + * @param icon String A CSS classname specifying the icon's background image url, or empty string to clear the icon + * @param width Number The width of the icon. If not specified, the default is used + * @param height Number The height of the icon. If not specified, the default is used + */ + static setIcon( icon?:string, width?:number, height?:number ): Ext.window.IMessageBox; + /** [Method] Set the iconCls for the panel s header + * @param newIconCls String The new CSS class name + */ + static setIconCls( newIconCls?:string ): void; + /** [Method] This method allows you to show or hide a LoadMask on top of this component + * @param load Boolean/Object/String True to show the default LoadMask, a config object that will be passed to the LoadMask constructor, or a message String to show. False to hide the current LoadMask. + * @param targetEl Boolean True to mask the targetEl of this Component instead of the this.el. For example, setting this to true on a Panel will cause only the body to be masked. + */ + static setLoading( load?:any, targetEl?:bool ): Ext.ILoadMask; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x Object + */ + static setLocalX( x?:any ): Ext.util.IPositionable; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x Object + * @param y Object + */ + static setLocalXY( x?:any, y?:any ): Ext.util.IPositionable; + /** [Method] Sets the local y coordinate of this element using CSS style + * @param y Object + */ + static setLocalY( y?:any ): Ext.util.IPositionable; + /** [Method] Sets the margin on the target element + * @param margin Number/String The margin to set. See the margin config. + */ + static setMargin( margin?:any ): any; + static setMargin( margin?:number ): void; + static setMargin( margin?:string ): void; + /** [Method] Sets the overflow x y on the content element of the component + * @param overflowX String The overflow-x value. + * @param overflowY String The overflow-y value. + */ + static setOverflowXY( overflowX?:string, overflowY?:string ): Ext.IComponent; + /** [Method] Sets the page XY position of the component + * @param x Number/Number[] The new x position or an array of [x,y]. + * @param y Number The new y position. + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. + */ + static setPagePosition( x?:any, y?:any, animate?:any ): any; + static setPagePosition( x?:number, y?:number, animate?:any ): Ext.IComponent; + static setPagePosition( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the left and top of the component + * @param x Number/Number[]/Object The new left, an array of [x,y], or animation config object containing x and y properties. + * @param y Number The new top. + * @param animate Boolean/Object If true, the Component is animated into its new position. You may also pass an animation configuration. + */ + static setPosition( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the element s position and size to the specified region + * @param region Ext.util.Region The region to fill + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static setRegion( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the weight config property for this component + * @param weight Number The new weight value. + */ + static setRegionWeight( weight?:number ): number; + /** [Method] Sets the width and height of this Component + * @param width Number/String/Object The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height Number/String The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + static setSize( width?:any, height?:any ): any; + static setSize( width?:any, height?:number ): Ext.IComponent; + static setSize( width?:any, height?:string ): Ext.IComponent; + /** [Method] Set a title for the panel s header + * @param newTitle String + */ + static setTitle( newTitle?:string ): void; + /** [Method] Sets the UI for the component + * @param ui Object + */ + static setUI( ui?:any ): void; + /** [Method] Convenience function to hide or show this component by Boolean + * @param visible Boolean true to show, false to hide. + */ + static setVisible( visible?:bool ): Ext.IComponent; + /** [Method] Sets the width of the component + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + */ + static setWidth( width?:number ): Ext.IComponent; + /** [Method] Sets the X position of the DOM element based on page coordinates + * @param x Object + * @param animate Object + */ + static setX( x?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the position of the DOM element in page coordinates + * @param xy Object + * @param animate Object + */ + static setXY( xy?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the Y position of the DOM element based on page coordinates + * @param y Object + * @param animate Object + */ + static setY( y?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Displays a new message box or reinitializes an existing message box based on the config options passed in + * @param config Object The following config options are supported: + */ + static show( config?:any ): Ext.window.IMessageBox; + /** [Method] Displays component at specific xy position + * @param x Number/Number[] The new x position or array of [x,y]. + * @param y Number The new y position + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. + */ + static showAt( x?:any, y?:any, animate?:any ): any; + static showAt( x?:number, y?:number, animate?:any ): Ext.IComponent; + static showAt( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Shows this component by the specified Component or Element + * @param component Ext.Component/Ext.dom.Element The Ext.Component or Ext.Element to show the component by. + * @param position String Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. + * @param offsets Number[] Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + */ + static showBy( component?:any, position?:any, offsets?:any ): any; + static showBy( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; + static showBy( component?:Ext.dom.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + static stopAnimation(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + static stopFx(): Ext.IElement; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + static syncFx(): any; + /** [Method] Sends this Component to the back of lower z index than any other visible windows */ + static toBack(): Ext.IComponent; + /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag + * @param preventFocus Boolean Specify true to prevent the Component from being focused. + */ + static toFront( preventFocus?:bool ): Ext.IComponent; + /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ + static toggleCollapse(): Ext.panel.IPanel; + /** [Method] A shortcut method for toggling between maximize and restore based on the current maximized state of the window */ + static toggleMaximize(): Ext.window.IWindow; + /** [Method] Translates the passed page coordinates into left top css values for the element + * @param x Number/Array The page x or an array containing [x, y] + * @param y Number The page y, required if x is not an array + */ + static translatePoints( x?:any, y?:any ): any; + static translatePoints( x?:number, y?:number ): any; + static translatePoints( x?:any[], y?:number ): any; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Navigates up the ownership hierarchy searching for an ancestor Container which matches any passed simple selector or + * @param selector String/Ext.Component The simple selector component or actual component to test. If not passed the immediate owner/activater is returned. + * @param limit String/Number/Ext.Component This may be a selector upon which to stop the upward scan, or a limit of teh number of steps, or Component reference to stop on. + */ + static up( selector?:any, limit?:any ): any; + static up( selector?:string, limit?:string ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:string ): Ext.container.IContainer; + static up( selector?:string, limit?:number ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:number ): Ext.container.IContainer; + static up( selector?:string, limit?:Ext.IComponent ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:Ext.IComponent ): Ext.container.IContainer; + /** [Method] Update the content area of a component + * @param htmlOrData String/Object If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. If this component was not configured with a template, the components content area will be updated via Ext.Element update. + * @param loadScripts Boolean Only legitimate when using the html configuration. + * @param callback Function Only legitimate when using the html configuration. Callback to execute when scripts have finished loading. + */ + static update( htmlOrData?:any, loadScripts?:bool, callback?:any ): void; + /** [Method] Sets the current box measurements of the component s underlying element + * @param box Object An object in the format {x, y, width, height} + */ + static updateBox( box?:any ): Ext.IComponent; + /** [Method] Updates this component s layout + * @param options Object An object with layout options. + */ + static updateLayout( options?:any ): void; + /** [Method] Updates a progress style message box s text and progress bar + * @param value Number Any number between 0 and 1 (e.g., .5) + * @param progressText String The progress text to display inside the progress bar. + * @param msg String The message box's body text is replaced with the specified string (defaults to undefined so that any existing body text will not get overwritten by default unless a new value is passed in) + */ + static updateProgress( value?:number, progressText?:string, msg?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with an infinitely auto updating progress bar + * @param msg String The message box body text + * @param title String The title bar text + * @param config Object A Ext.ProgressBar.wait config object + */ + static wait( msg?:string, title?:string, config?:any ): Ext.window.IMessageBox; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IMsg extends Ext.window.IMessageBox { } export class Msg { + /** [Method] Adds Component s to this Container + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + static add( component?:any ): Ext.IComponent[]; + /** [Method] Adds Component s to this Container + * @param component Ext.Component[]|Object[]/Ext.Component.../Object... Either one or more Components to add or an Array of Components to add. See items for additional information. + */ + static add( component?:any ): Ext.IComponent; + /** [Method] Adds a CSS class to the body element + * @param cls String The class to add + */ + static addBodyCls( cls?:string ): Ext.panel.IPanel; + /** [Method] Adds each argument passed to this method to the childEls array */ + static addChildEls(): void; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls String/String[] The CSS class name to add. + */ + static addClass( cls?:any ): any; + static addClass( cls?:string ): Ext.IComponent; + static addClass( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a CSS class to the top level element representing this component + * @param cls String/String[] The CSS class name to add. + */ + static addCls( cls?:any ): any; + static addCls( cls?:string ): Ext.IComponent; + static addCls( cls?:string[] ): Ext.IComponent; + /** [Method] Adds a cls to the uiCls array which will also call addUIClsToElement and adds to all elements of this component + * @param classes String/String[] A string or an array of strings to add to the uiCls. + * @param skip Object (Boolean) skip true to skip adding it to the class and do it later (via the return). + */ + static addClsWithUI( classes?:any, skip?:any ): any; + static addClsWithUI( classes?:string, skip?:any ): void; + static addClsWithUI( classes?:string[], skip?:any ): void; + /** [Method] Adds docked item s to the container + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param pos Number The index at which the Component will be added + */ + static addDocked( component?:any, pos?:number ): Ext.IComponent[]; + /** [Method] Adds the specified events to the list of events which this Observable may fire + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + */ + static addEvents( eventNames?:any ): void; + /** [Method] Appends an event handler to this object + * @param element Object + * @param listeners Object + * @param scope Object + * @param options Object + */ + static addListener( element?:any, listeners?:any, scope?:any, options?:any ): any; + /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Save a property to the given state object if it is not its default or configured value + * @param state Object The state object. + * @param propName String The name of the property on this object to save. + * @param value String The value of the state property (defaults to this[propName]). + */ + static addPropertyToState( state?:any, propName?:string, value?:string ): bool; + /** [Method] Add events that will trigger the state to be saved + * @param events String/String[] The event name or an array of event names. + */ + static addStateEvents( events?:any ): any; + static addStateEvents( events?:string ): void; + static addStateEvents( events?:string[] ): void; + /** [Method] Add tools to this panel + * @param tools Object[]/Ext.panel.Tool[] The tools to add + */ + static addTool( tools?:any ): void; + /** [Method] inherit docs + * @param cls Object + */ + static addUIClsToElement( cls?:any ): void; + /** [Method] Invoked after the Panel is Collapsed */ + static afterCollapse(): void; + /** [Method] Called by the layout system after the Component has been laid out */ + static afterComponentLayout(): void; + /** [Method] Invoked after the Panel is Expanded */ + static afterExpand(): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components + * @param layout Ext.layout.container.Container + */ + static afterLayout( layout?:Ext.layout.container.IContainer ): void; + /** [Method] Template method called after a Component has been positioned + * @param ax Object + * @param ay Object + */ + static afterSetPosition( ax?:any, ay?:any ): void; + /** [Method] Invoked after the Component is shown after onShow is called + * @param animateTarget String/Ext.Element + * @param callback Function + * @param scope Object + */ + static afterShow( animateTarget?:any, callback?:any, scope?:any ): any; + static afterShow( animateTarget?:string, callback?:any, scope?:any ): void; + static afterShow( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Displays a standard read only message box with an OK button comparable to the basic JavaScript alert prompt + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + static alert( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Aligns the element with another element relative to the specified anchor points + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static alignTo( element?:any, position?:any, offsets?:any, animate?:any ): any; + static alignTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + static alignTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + static alignTo( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; + /** [Method] Anchors an element to another element and realigns it when the window is resized + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + * @param monitorScroll Boolean/Number True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback Function The function to call after the animation finishes + */ + static anchorTo( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; + static anchorTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + static anchorTo( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; + /** [Method] Performs custom animation on this object + * @param animObj Object + */ + static animate( animObj?:any ): any; + /** [Method] Applies the state to the object + * @param state Object + */ + static applyState( state?:any ): void; + /** [Method] Template method to do any pre blur processing + * @param e Ext.EventObject The event object + */ + static beforeBlur( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run + * @param adjWidth Number The box-adjusted width that was set. + * @param adjHeight Number The box-adjusted height that was set. + */ + static beforeComponentLayout( adjWidth?:number, adjHeight?:number ): void; + /** [Method] Template method to do any pre focus processing + * @param e Ext.EventObject The event object + */ + static beforeFocus( e?:Ext.IEventObject ): void; + /** [Method] Occurs before componentLayout is run */ + static beforeLayout(): void; + /** [Method] Invoked before the Component is shown */ + static beforeShow(): void; + /** [Method] Bubbles up the component container heirarchy calling the specified function with each component + * @param fn Function The function to call + * @param scope Object The scope of the function. Defaults to current node. + * @param args Array The args to call the function with. Defaults to passing the current component. + */ + static bubble( fn?:any, scope?:any, args?:any[] ): Ext.IComponent; + /** [Method] Calculates the new x y position to move this Positionable into a constrain region + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local Boolean The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize Number[] A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + */ + static calculateConstrainedPosition( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; + static calculateConstrainedPosition( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:HTMLElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:Ext.IElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + static calculateConstrainedPosition( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Cancel any deferred focus on this component */ + static cancelFocus(): void; + /** [Method] Cascades down the component container heirarchy from this component passed in the first call calling the specified + * @param fn Function The function to call + * @param scope Object The scope of the function (defaults to current component) + * @param args Array The args to call the function with. The current component always passed as the last argument. + */ + static cascade( fn?:any, scope?:any, args?:any[] ): Ext.IContainer; + /** [Method] Center this Component in its container */ + static center(): Ext.IComponent; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + static child( selector?:any ): any; + static child( selector?:string ): any; + static child( selector?:Ext.IComponent ): any; + /** [Method] Removes all listeners for this object including the managed listeners */ + static clearListeners(): void; + /** [Method] Removes all managed listeners for this object */ + static clearManagedListeners(): void; + /** [Method] Clone the current component using the original config values passed into this instance by default + * @param overrides Object A new config containing any properties to override in the cloned version. An id property can be passed on this object, otherwise one will be generated to avoid duplicates. + */ + static cloneConfig( overrides?:any ): Ext.IComponent; + /** [Method] Closes the Panel */ + static close(): void; + /** [Method] Collapses the panel body so that the body becomes hidden + * @param direction String The direction to collapse towards. Must be one of Ext.Component.DIRECTION_TOP Ext.Component.DIRECTION_RIGHT Ext.Component.DIRECTION_BOTTOM Ext.Component.DIRECTION_LEFT Defaults to collapseDirection. + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + static collapse( direction?:string, animate?:bool ): Ext.panel.IPanel; + /** [Method] Displays a confirmation message box with Yes and No buttons comparable to JavaScript s confirm + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + */ + static confirm( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; + /** [Method] Determines whether the passed Component is either an immediate child of this Container or whether it is a descendant + * @param comp Ext.Component The Component to test. + * @param deep Boolean Pass true to test for the Component being a descendant at any level. + */ + static contains( comp?:Ext.IComponent, deep?:bool ): bool; + /** [Method] converts a collapsdDir into an anchor argument for Element slideIn overridden in rtl mode to switch l and r + * @param collapseDir Object + */ + static convertCollapseDir( collapseDir?:any ): void; + /** [Method] Inherit docs Disable all immediate children that was previously disabled Override disable because onDisable only gets */ + static disable(): Ext.container.IAbstractContainer; + /** [Method] Handles autoRender */ + static doAutoRender(): void; + /** [Method] This method needs to be called whenever you change something on this component that requires the Component s layout t */ + static doComponentLayout(): Ext.container.IContainer; + /** [Method] Moves this floating Component into a constrain region + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + */ + static doConstrain( constrainTo?:any ): any; + static doConstrain( constrainTo?:string ): void; + static doConstrain( constrainTo?:HTMLElement ): void; + static doConstrain( constrainTo?:Ext.IElement ): void; + static doConstrain( constrainTo?:Ext.util.IRegion ): void; + /** [Method] Manually force this container s layout to be recalculated */ + static doLayout(): Ext.container.IContainer; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + static down( selector?:any ): any; + static down( selector?:string ): any; + static down( selector?:Ext.IComponent ): any; + /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present + * @param eventNames String/String[] The event name to bubble, or an Array of event names. + */ + static enableBubble( eventNames?:any ): any; + static enableBubble( eventNames?:string ): void; + static enableBubble( eventNames?:string[] ): void; + /** [Method] Ensures that this component is attached to document body + * @param runLayout Boolean True to run the component's layout. + */ + static ensureAttachedToBody( runLayout?:bool ): void; + /** [Method] Expands the panel body so that it becomes visible + * @param animate Boolean True to animate the transition, else false (defaults to the value of the animCollapse panel config). May also be specified as the animation duration in milliseconds. + */ + static expand( animate?:bool ): Ext.panel.IPanel; + /** [Method] Find a container above this component at any level by a custom function + * @param fn Function The custom function to call with the arguments (container, this component). + */ + static findParentBy( fn?:any ): Ext.container.IContainer; + /** [Method] Find a container above this component at any level by xtype or class See also the up method + * @param xtype String/Ext.Class The xtype string for a component, or the class of the component directly + */ + static findParentByType( xtype?:any ): any; + static findParentByType( xtype?:string ): Ext.container.IContainer; + static findParentByType( xtype?:Ext.IClass ): Ext.container.IContainer; + /** [Method] Retrieves plugin from this component s collection by its ptype + * @param ptype String The Plugin's ptype as specified by the class's alias configuration. + */ + static findPlugin( ptype?:string ): Ext.IAbstractPlugin; + /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList + * @param eventName String The name of the event to fire. + * @param args Object... Variable number of parameters are passed to handlers. + */ + static fireEvent( eventName:string, ...args:any[] ): bool; + /** [Method] Fires the specified event with the passed parameter list + * @param eventName String The name of the event to fire. + * @param args Object[] An array of parameters which are passed to handlers. + */ + static fireEventArgs( eventName?:string, args?:any[] ): bool; + /** [Method] Try to focus this component + * @param selectText Boolean If applicable, true to also select the text in this component + * @param delay Boolean/Number Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param callback Function Only needed if the delay parameter is used. A function to call upon focus. + * @param scope Function Only needed if the delay parameter is used. The scope (this reference) in which to execute the callback. + */ + static focus( selectText?:any, delay?:any, callback?:any, scope?:any ): any; + static focus( selectText?:bool, delay?:bool, callback?:any, scope?:any ): Ext.IComponent; + static focus( selectText?:bool, delay?:number, callback?:any, scope?:any ): Ext.IComponent; + /** [Method] Forces this component to redo its componentLayout */ + static forceComponentLayout(): void; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static getActiveAnimation(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static getActiveAnimation(): bool; + /** [Method] Gets the x y coordinates to align this element with another element + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + */ + static getAlignToXY( element?:any, position?:any, offsets?:any ): any; + static getAlignToXY( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; + static getAlignToXY( element?:HTMLElement, position?:string, offsets?:number[] ): number[]; + static getAlignToXY( element?:string, position?:string, offsets?:number[] ): number[]; + /** [Method] Gets the x y coordinates specified by the anchor position on the element + * @param anchor String The specified anchor position. See alignTo for details on supported anchor positions. + * @param local Boolean True to get the local (element top/left-relative) anchor position instead of page coordinates + * @param size Object An object containing the size to use for calculating anchor position {width: (target width), height: (target height)} (defaults to the element's current size) + */ + static getAnchorXY( anchor?:string, local?:bool, size?:any ): number[]; + /** [Method] Return an object defining the area of this Element which can be passed to setBox to set another Element s size locati + * @param contentBox Boolean If true a box for the content of the element is returned. + * @param local Boolean If true the element's left and top relative to its offsetParent are returned instead of page x/y. + */ + static getBox( contentBox?:bool, local?:bool ): any; + /** [Method] Implements an upward event bubbling policy */ + static getBubbleTarget(): void; + /** [Method] Return the immediate child Component in which the passed element is located + * @param el Ext.Element/HTMLElement/String The element to test (or ID of element). + * @param deep Boolean If true, returns the deepest descendant Component which contains the passed element. + */ + static getChildByElement( el?:any, deep?:any ): any; + static getChildByElement( el?:Ext.IElement, deep?:bool ): Ext.IComponent; + static getChildByElement( el?:HTMLElement, deep?:bool ): Ext.IComponent; + static getChildByElement( el?:string, deep?:bool ): Ext.IComponent; + /** [Method] Returns the current collapsed state of the panel */ + static getCollapsed(): bool; + /** [Method] Returns the current collapsed state of the panel */ + static getCollapsed(): string; + /** [Method] Attempts a default component lookup see Ext container Container getComponent + * @param comp String/Number The component id, itemId or position to find + */ + static getComponent( comp?:any ): any; + static getComponent( comp?:string ): Ext.IComponent; + static getComponent( comp?:number ): Ext.IComponent; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + static getConstrainVector( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; + static getConstrainVector( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; + static getConstrainVector( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; + /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size + */ + static getConstrainVector( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:HTMLElement, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): bool; + static getConstrainVector( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): bool; + /** [Method] Gets the configured default focus item */ + static getDefaultFocus(): void; + /** [Method] Finds a docked component by id itemId or position + * @param comp String/Number The id, itemId or position of the docked component (see getComponent for details) + */ + static getDockedComponent( comp?:any ): any; + static getDockedComponent( comp?:string ): Ext.IComponent; + static getDockedComponent( comp?:number ): Ext.IComponent; + /** [Method] Retrieves an array of all currently docked Components + * @param selector String A ComponentQuery selector string to filter the returned items. + * @param beforeBody Boolean An optional flag to limit the set of items to only those before the body (true) or after the body (false). All components are returned by default. + */ + static getDockedItems( selector?:string, beforeBody?:bool ): Ext.IComponent[]; + /** [Method] Retrieves the top level element representing this component */ + static getEl(): Ext.dom.IElement; + /** [Method] Gets the Header for this panel */ + static getHeader(): void; + /** [Method] Gets the current height of the component s underlying element */ + static getHeight(): number; + /** [Method] Retrieves the id of this component */ + static getId(): string; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert + * @param position String/Number/Ext.dom.Element/HTMLElement Index, element id or element you want to put this component before. + */ + static getInsertPosition( position?:any ): any; + static getInsertPosition( position?:string ): HTMLElement; + static getInsertPosition( position?:number ): HTMLElement; + static getInsertPosition( position?:Ext.dom.IElement ): HTMLElement; + static getInsertPosition( position?:HTMLElement ): HTMLElement; + /** [Method] Returns the value of itemId assigned to this component or when that is not set returns the value of id */ + static getItemId(): string; + /** [Method] Returns the layout instance currently associated with this Container */ + static getLayout(): Ext.layout.container.IContainer; + /** [Method] Gets the Ext ComponentLoader for this Component */ + static getLoader(): Ext.IComponentLoader; + /** [Method] Overridden in Ext rtl AbstractComponent */ + static getLocalX(): number; + /** [Method] Overridden in Ext rtl AbstractComponent */ + static getLocalXY(): number[]; + /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ + static getLocalY(): number; + /** [Method] Returns the offsets of this element from the passed element + * @param offsetsTo Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or element id to get get the offsets from. + */ + static getOffsetsTo( offsetsTo?:any ): any; + static getOffsetsTo( offsetsTo?:Ext.util.IPositionable ): number[]; + static getOffsetsTo( offsetsTo?:HTMLElement ): number[]; + static getOffsetsTo( offsetsTo?:string ): number[]; + /** [Method] Retrieves a plugin from this component s collection by its pluginId + * @param pluginId String + */ + static getPlugin( pluginId?:string ): Ext.IAbstractPlugin; + /** [Method] Gets the current XY position of the component s underlying element + * @param local Boolean If true the element's left and top are returned instead of page XY. + */ + static getPosition( local?:bool ): number[]; + /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th + * @param deep Object + */ + static getRefItems( deep?:any ): void; + /** [Method] Returns a region object that defines the area of this element */ + static getRegion(): Ext.util.IRegion; + /** [Method] Gets the current size of the component s underlying element */ + static getSize(): any; + /** [Method] Returns an object that describes how this component s width and height are managed + * @param ownerCtSizeModel Object + */ + static getSizeModel( ownerCtSizeModel?:any ): any; + /** [Method] Returns the content region of this element */ + static getViewRegion(): Ext.util.IRegion; + /** [Method] Gets the current width of the component s underlying element */ + static getWidth(): number; + /** [Method] Gets the current X position of the DOM element based on page coordinates */ + static getX(): number; + /** [Method] Gets the xtype for this component as registered with Ext ComponentManager */ + static getXType(): string; + /** [Method] Returns this Component s xtype hierarchy as a slash delimited string */ + static getXTypes(): string; + /** [Method] Gets the current position of the DOM element based on page coordinates */ + static getXY(): number[]; + /** [Method] Gets the current Y position of the DOM element based on page coordinates */ + static getY(): number; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static hasActiveFx(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + static hasActiveFx(): bool; + /** [Method] Checks if the specified CSS class exists on this element s DOM node + * @param className String The CSS class to check for. + */ + static hasCls( className?:string ): bool; + /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles + * @param eventName String The name of the event to check for + */ + static hasListener( eventName?:string ): bool; + /** [Method] Checks if there is currently a specified uiCls + * @param cls String The cls to check. + */ + static hasUICls( cls?:string ): void; + /** [Method] Hides this Component setting it to invisible using the configured hideMode */ + static hide(): Ext.IComponent; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Initialize any events on this component */ + static initEvents(): void; + /** [Method] Inserts a Component into this Container at a specified index + * @param index Number The index at which the Component will be inserted into the Container's items collection + * @param component Ext.Component/Object The child Component to insert. Ext uses lazy rendering, and will only render the inserted Component should it become necessary. A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.enums.Widget. + */ + static insert( index?:number, component?:any ): Ext.IComponent; + /** [Method] Inserts docked item s to the panel at the indicated position + * @param pos Number The index at which the Component will be inserted + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + */ + static insertDocked( pos?:number, component?:any ): void; + /** [Method] Tests whether this Component matches the selector string + * @param selector String The selector string to test against. + */ + static is( selector?:string ): bool; + /** [Method] Determines whether this Container is an ancestor of the passed Component + * @param possibleDescendant Ext.Component The Component to test for presence within this Container's subtree. + */ + static isAncestor( possibleDescendant?:Ext.IComponent ): void; + /** [Method] Determines whether this component is the descendant of a particular container + * @param container Ext.Container + */ + static isDescendantOf( container?:Ext.IContainer ): bool; + /** [Method] Method to determine whether this Component is currently disabled */ + static isDisabled(): bool; + /** [Method] Method to determine whether this Component is draggable */ + static isDraggable(): bool; + /** [Method] Method to determine whether this Component is droppable */ + static isDroppable(): bool; + /** [Method] Method to determine whether this Component is floating */ + static isFloating(): bool; + /** [Method] Method to determine whether this Component is currently set to hidden */ + static isHidden(): bool; + /** [Method] Determines whether this Component is the root of a layout */ + static isLayoutRoot(): void; + /** [Method] Returns true if layout is suspended for this component */ + static isLayoutSuspended(): bool; + /** [Method] Returns true if this component is visible + * @param deep Object + */ + static isVisible( deep?:any ): bool; + /** [Method] Tests whether or not this Component is of a specific xtype + * @param xtype String The xtype to check for this Component + * @param shallow Boolean true to check whether this Component is directly of the specified xtype, false to check whether this Component is descended from the xtype. + */ + static isXType( xtype?:string, shallow?:bool ): bool; + /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore + * @param animate Boolean true to animate this Window to full size. + */ + static maximize( animate?:bool ): Ext.window.IWindow; + /** [Method] Placeholder method for minimizing the window */ + static minimize(): Ext.window.IWindow; + /** [Method] Shorthand for addManagedListener + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. + */ + static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; + static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] Moves a Component within the Container + * @param fromIdx Number/Ext.Component The index/component to move. + * @param toIdx Number The new index for the Component. + */ + static move( fromIdx?:any, toIdx?:any ): any; + static move( fromIdx?:number, toIdx?:number ): Ext.IComponent; + static move( fromIdx?:Ext.IComponent, toIdx?:number ): Ext.IComponent; + /** [Method] Shorthand for removeManagedListener + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; + static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] Returns the next node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the following nodes. + */ + static nextNode( selector?:string ): Ext.IComponent; + /** [Method] Returns the next sibling of this Component + * @param selector String A ComponentQuery selector to filter the following items. + */ + static nextSibling( selector?:string ): Ext.IComponent; + /** [Method] Shorthand for addListener + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. + * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. + * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. + * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: + */ + static on( eventName?:any, fn?:any, scope?:any, options?:any ): any; + /** [Method] This method is invoked after a new Component has been added + * @param component Ext.Component + * @param position Number + */ + static onAdd( component?:Ext.IComponent, position?:number ): void; + /** [Method] Method to manage awareness of when components are added to their respective Container firing an added event */ + static onAdded(): void; + /** [Method] This method is invoked before adding a new child Component + * @param item Ext.Component + */ + static onBeforeAdd( item?:Ext.IComponent ): void; + /** [Method] Allows addition of behavior to the destroy operation */ + static onDestroy(): void; + /** [Method] Allows addition of behavior to the disable operation */ + static onDisable(): void; + /** [Method] Invoked after a docked item is added to the Panel + * @param component Ext.Component + */ + static onDockedAdd( component?:Ext.IComponent ): void; + /** [Method] Invoked after a docked item is removed from the Panel + * @param component Ext.Component + */ + static onDockedRemove( component?:Ext.IComponent ): void; + /** [Method] Allows addition of behavior to the enable operation */ + static onEnable(): void; + /** [Method] Possibly animates down to a target element */ + static onHide(): void; + /** [Method] Called after the component is moved this method is empty by default but can be implemented by any subclass that need */ + static onPosition(): void; + /** [Method] This method is invoked after a new Component has been removed + * @param component Ext.Component + * @param autoDestroy Boolean + */ + static onRemove( component?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event + * @param destroying Object + */ + static onRemoved( destroying?:any ): void; + /** [Method] Allows addition of behavior to the resize operation */ + static onResize(): void; + /** [Method] Allows addition of behavior to the show operation */ + static onShow(): void; + /** [Method] Invoked after the afterShow method is complete + * @param callback Function + * @param scope Object + */ + static onShowComplete( callback?:any, scope?:any ): void; + /** [Method] Template method to do any post blur processing + * @param e Ext.EventObject The event object + */ + static postBlur( e?:Ext.IEventObject ): void; + /** [Method] Returns the previous node in the Component tree in tree traversal order + * @param selector String A ComponentQuery selector to filter the preceding nodes. + */ + static previousNode( selector?:string ): Ext.IComponent; + /** [Method] Returns the previous sibling of this Component + * @param selector String A ComponentQuery selector to filter the preceding items. + */ + static previousSibling( selector?:string ): Ext.IComponent; + /** [Method] Displays a message box with a progress bar + * @param title String The title bar text + * @param msg String The message box body text + * @param progressText String The text to display inside the progress bar + */ + static progress( title?:string, msg?:string, progressText?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with OK and Cancel buttons prompting the user to enter some text comparable to JavaScript s p + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + * @param multiline Boolean/Number True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox/ + * @param value String Default value of the text input element + */ + static prompt( title?:any, msg?:any, fn?:any, scope?:any, multiline?:any, value?:any ): any; + static prompt( title?:string, msg?:string, fn?:any, scope?:any, multiline?:bool, value?:string ): Ext.window.IMessageBox; + static prompt( title?:string, msg?:string, fn?:any, scope?:any, multiline?:number, value?:string ): Ext.window.IMessageBox; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + static query( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + static queryBy( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + static queryById( id?:string ): Ext.IComponent; + /** [Method] Called by Component doAutoRender Register a Container configured floating true with this Component s ZIndexManager + * @param cmp Object + */ + static registerFloatingItem( cmp?:any ): void; + /** [Method] Relays selected events from the specified Observable as if the events were fired by this + * @param origin Object The Observable whose events this object is to relay. + * @param events String[] Array of event names to relay. + * @param prefix String A common prefix to prepend to the event names. For example: this.relayEvents(this.getStore(), ['load', 'clear'], 'store'); Now the grid will forward 'load' and 'clear' events of store as 'storeload' and 'storeclear'. + */ + static relayEvents( origin?:any, events?:string[], prefix?:string ): any; + /** [Method] Removes a component from this container + * @param component Ext.Component/String The component reference or id to remove. + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + static remove( component?:any, autoDestroy?:any ): any; + static remove( component?:Ext.IComponent, autoDestroy?:bool ): Ext.IComponent; + static remove( component?:string, autoDestroy?:bool ): Ext.IComponent; + /** [Method] Removes all components from this container + * @param autoDestroy Boolean True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config. + */ + static removeAll( autoDestroy?:bool ): Ext.IComponent[]; + /** [Method] Remove any anchor to this element */ + static removeAnchor(): Ext.util.IPositionable; + /** [Method] Removes a CSS class from the body element + * @param cls String The class to remove + */ + static removeBodyCls( cls?:string ): Ext.panel.IPanel; + /** [Method] Removes items in the childEls array based on the return value of a supplied test function + * @param testFn Function The test function. + */ + static removeChildEls( testFn?:any ): void; + /** [Method] Removes a CSS class from the top level element representing this component + * @param cls String/String[] The CSS class name to remove. + */ + static removeCls( cls?:any ): any; + static removeCls( cls?:string ): Ext.IComponent; + static removeCls( cls?:string[] ): Ext.IComponent; + /** [Method] Removes a cls to the uiCls array which will also call removeUIClsFromElement and removes it from all elements of thi + * @param cls String/String[] A string or an array of strings to remove to the uiCls. + */ + static removeClsWithUI( cls?:any ): any; + static removeClsWithUI( cls?:string ): void; + static removeClsWithUI( cls?:string[] ): void; + /** [Method] Removes the docked item from the panel + * @param item Ext.Component The Component to remove. + * @param autoDestroy Boolean Destroy the component after removal. + */ + static removeDocked( item?:Ext.IComponent, autoDestroy?:bool ): void; + /** [Method] Removes an event handler + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static removeListener( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Removes listeners that were added by the mon method + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; + static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; + static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; + /** [Method] inherit docs + * @param cls Object + */ + static removeUIClsFromElement( cls?:any ): void; + /** [Method] Renders the Component into the passed HTML element + * @param container Ext.Element/HTMLElement/String The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String/Number The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + */ + static render( container?:any, position?:any ): any; + static render( container?:Ext.IElement, position?:string ): void; + static render( container?:HTMLElement, position?:string ): void; + static render( container?:string, position?:string ): void; + static render( container?:Ext.IElement, position?:number ): void; + static render( container?:HTMLElement, position?:number ): void; + static render( container?:string, position?:number ): void; + /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re + * @param animate Object + */ + static restore( animate?:any ): Ext.window.IWindow; + /** [Method] Resumes firing of the named event s + * @param eventName String... Multiple event names to resume. + */ + static resumeEvent( ...eventName:any[] ): void; + /** [Method] Resumes firing events see suspendEvents */ + static resumeEvents(): void; + /** [Method] Conditionally saves a single property from this object to the given state object + * @param propName String The name of the property to save. + * @param state Object The state object in to which to save the property. + * @param stateName String The name to use for the property in state. + */ + static savePropToState( propName?:string, state?:any, stateName?:string ): bool; + /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object + * @param propNames String/String[] The name (or array of names) of the property to save. + * @param state Object The state object in to which to save the property values. + */ + static savePropsToState( propNames?:any, state?:any ): any; + static savePropsToState( propNames?:string, state?:any ): any; + static savePropsToState( propNames?:string[], state?:any ): any; + /** [Method] Saves the state of the object to the persistence store */ + static saveState(): void; + /** [Method] Scrolls this Component s target element by the passed delta values optionally animating + * @param deltaX Number/Number[]/Object Either the x delta, an Array specifying x and y deltas or an object with "x" and "y" properties. + * @param deltaY Number/Boolean/Object Either the y delta, or an animate flag or config object. + * @param animate Boolean/Object Animate flag/config object if the delta values were passed separately. + */ + static scrollBy( deltaX?:any, deltaY?:any, animate?:any ): void; + /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ + static sequenceFx(): any; + /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th + * @param active Boolean True to activate the Component, false to deactivate it. + * @param newActive Ext.Component The newly active Component which is taking over topmost zIndex position. + */ + static setActive( active?:bool, newActive?:Ext.IComponent ): void; + /** [Method] Sets the overflow on the content element of the component + * @param scroll Boolean True to allow the Component to auto scroll. + */ + static setAutoScroll( scroll?:bool ): Ext.IComponent; + /** [Method] Sets the body style according to the passed parameters + * @param style Mixed A full style specification string, or object, or the name of a style property to set. + * @param value String If the first param was a style property name, the style property value. + */ + static setBodyStyle( style?:any, value?:string ): Ext.panel.IPanel; + /** [Method] + * @param border Object + * @param targetEl Object + */ + static setBorder( border?:any, targetEl?:any ): void; + /** [Method] This method changes the region config property for this border region + * @param region String The new region value ("north", "south", "east" or "west"). + */ + static setBorderRegion( region?:string ): string; + /** [Method] Sets the element s box + * @param box Object The box to fill {x, y, width, height} + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static setBox( box?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Enable or disable the component + * @param disabled Boolean true to disable. + */ + static setDisabled( disabled?:bool ): void; + /** [Method] Sets the dock position of this component in its parent panel + * @param dock Object The dock position. + * @param layoutParent Boolean true to re-layout parent. + */ + static setDocked( dock?:any, layoutParent?:bool ): Ext.IComponent; + /** [Method] Set the glyph for the panel s header + * @param newGlyph Number/String The new glyph This parameter expects a format consistent with that of glyph + */ + static setGlyph( newGlyph?:any ): any; + static setGlyph( newGlyph?:number ): void; + static setGlyph( newGlyph?:string ): void; + /** [Method] Sets the height of the component + * @param height Number The new height to set. This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. undefined to leave the height unchanged. + */ + static setHeight( height?:number ): Ext.IComponent; + /** [Method] Adds the specified icon to the dialog + * @param icon String A CSS classname specifying the icon's background image url, or empty string to clear the icon + * @param width Number The width of the icon. If not specified, the default is used + * @param height Number The height of the icon. If not specified, the default is used + */ + static setIcon( icon?:string, width?:number, height?:number ): Ext.window.IMessageBox; + /** [Method] Set the iconCls for the panel s header + * @param newIconCls String The new CSS class name + */ + static setIconCls( newIconCls?:string ): void; + /** [Method] This method allows you to show or hide a LoadMask on top of this component + * @param load Boolean/Object/String True to show the default LoadMask, a config object that will be passed to the LoadMask constructor, or a message String to show. False to hide the current LoadMask. + * @param targetEl Boolean True to mask the targetEl of this Component instead of the this.el. For example, setting this to true on a Panel will cause only the body to be masked. + */ + static setLoading( load?:any, targetEl?:bool ): Ext.ILoadMask; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x Object + */ + static setLocalX( x?:any ): Ext.util.IPositionable; + /** [Method] Overridden in Ext rtl AbstractComponent + * @param x Object + * @param y Object + */ + static setLocalXY( x?:any, y?:any ): Ext.util.IPositionable; + /** [Method] Sets the local y coordinate of this element using CSS style + * @param y Object + */ + static setLocalY( y?:any ): Ext.util.IPositionable; + /** [Method] Sets the margin on the target element + * @param margin Number/String The margin to set. See the margin config. + */ + static setMargin( margin?:any ): any; + static setMargin( margin?:number ): void; + static setMargin( margin?:string ): void; + /** [Method] Sets the overflow x y on the content element of the component + * @param overflowX String The overflow-x value. + * @param overflowY String The overflow-y value. + */ + static setOverflowXY( overflowX?:string, overflowY?:string ): Ext.IComponent; + /** [Method] Sets the page XY position of the component + * @param x Number/Number[] The new x position or an array of [x,y]. + * @param y Number The new y position. + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. + */ + static setPagePosition( x?:any, y?:any, animate?:any ): any; + static setPagePosition( x?:number, y?:number, animate?:any ): Ext.IComponent; + static setPagePosition( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the left and top of the component + * @param x Number/Number[]/Object The new left, an array of [x,y], or animation config object containing x and y properties. + * @param y Number The new top. + * @param animate Boolean/Object If true, the Component is animated into its new position. You may also pass an animation configuration. + */ + static setPosition( x?:any, y?:number, animate?:any ): Ext.IComponent; + /** [Method] Sets the element s position and size to the specified region + * @param region Ext.util.Region The region to fill + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + */ + static setRegion( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the weight config property for this component + * @param weight Number The new weight value. + */ + static setRegionWeight( weight?:number ): number; + /** [Method] Sets the width and height of this Component + * @param width Number/String/Object The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. + * @param height Number/String The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. + */ + static setSize( width?:any, height?:any ): any; + static setSize( width?:any, height?:number ): Ext.IComponent; + static setSize( width?:any, height?:string ): Ext.IComponent; + /** [Method] Set a title for the panel s header + * @param newTitle String + */ + static setTitle( newTitle?:string ): void; + /** [Method] Sets the UI for the component + * @param ui Object + */ + static setUI( ui?:any ): void; + /** [Method] Convenience function to hide or show this component by Boolean + * @param visible Boolean true to show, false to hide. + */ + static setVisible( visible?:bool ): Ext.IComponent; + /** [Method] Sets the width of the component + * @param width Number The new width to setThis may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. + */ + static setWidth( width?:number ): Ext.IComponent; + /** [Method] Sets the X position of the DOM element based on page coordinates + * @param x Object + * @param animate Object + */ + static setX( x?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the position of the DOM element in page coordinates + * @param xy Object + * @param animate Object + */ + static setXY( xy?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Sets the Y position of the DOM element based on page coordinates + * @param y Object + * @param animate Object + */ + static setY( y?:any, animate?:any ): Ext.util.IPositionable; + /** [Method] Displays a new message box or reinitializes an existing message box based on the config options passed in + * @param config Object The following config options are supported: + */ + static show( config?:any ): Ext.window.IMessageBox; + /** [Method] Displays component at specific xy position + * @param x Number/Number[] The new x position or array of [x,y]. + * @param y Number The new y position + * @param animate Boolean/Object True to animate the Component into its new position. You may also pass an animation configuration. + */ + static showAt( x?:any, y?:any, animate?:any ): any; + static showAt( x?:number, y?:number, animate?:any ): Ext.IComponent; + static showAt( x?:number[], y?:number, animate?:any ): Ext.IComponent; + /** [Method] Shows this component by the specified Component or Element + * @param component Ext.Component/Ext.dom.Element The Ext.Component or Ext.Element to show the component by. + * @param position String Alignment position as used by Ext.util.Positionable.getAlignToXY. Defaults to defaultAlign. + * @param offsets Number[] Alignment offsets as used by Ext.util.Positionable.getAlignToXY. + */ + static showBy( component?:any, position?:any, offsets?:any ): any; + static showBy( component?:Ext.IComponent, position?:string, offsets?:number[] ): Ext.IComponent; + static showBy( component?:Ext.dom.IElement, position?:string, offsets?:number[] ): Ext.IComponent; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + static stopAnimation(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + static stopFx(): Ext.IElement; + /** [Method] Suspends firing of the named event s + * @param eventName String... Multiple event names to suspend. + */ + static suspendEvent( ...eventName:any[] ): void; + /** [Method] Suspends the firing of all events + * @param queueSuspended Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events. + */ + static suspendEvents( queueSuspended?:bool ): void; + /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ + static syncFx(): any; + /** [Method] Sends this Component to the back of lower z index than any other visible windows */ + static toBack(): Ext.IComponent; + /** [Method] Brings this floating Component to the front of any other visible floating Components managed by the same ZIndexManag + * @param preventFocus Boolean Specify true to prevent the Component from being focused. + */ + static toFront( preventFocus?:bool ): Ext.IComponent; + /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ + static toggleCollapse(): Ext.panel.IPanel; + /** [Method] A shortcut method for toggling between maximize and restore based on the current maximized state of the window */ + static toggleMaximize(): Ext.window.IWindow; + /** [Method] Translates the passed page coordinates into left top css values for the element + * @param x Number/Array The page x or an array containing [x, y] + * @param y Number The page y, required if x is not an array + */ + static translatePoints( x?:any, y?:any ): any; + static translatePoints( x?:number, y?:number ): any; + static translatePoints( x?:any[], y?:number ): any; + /** [Method] Shorthand for removeListener + * @param eventName String The type of event the handler was associated with. + * @param fn Function The handler to remove. This must be a reference to the function passed into the Ext.util.Observable.addListener call. + * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. + */ + static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Navigates up the ownership hierarchy searching for an ancestor Container which matches any passed simple selector or + * @param selector String/Ext.Component The simple selector component or actual component to test. If not passed the immediate owner/activater is returned. + * @param limit String/Number/Ext.Component This may be a selector upon which to stop the upward scan, or a limit of teh number of steps, or Component reference to stop on. + */ + static up( selector?:any, limit?:any ): any; + static up( selector?:string, limit?:string ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:string ): Ext.container.IContainer; + static up( selector?:string, limit?:number ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:number ): Ext.container.IContainer; + static up( selector?:string, limit?:Ext.IComponent ): Ext.container.IContainer; + static up( selector?:Ext.IComponent, limit?:Ext.IComponent ): Ext.container.IContainer; + /** [Method] Update the content area of a component + * @param htmlOrData String/Object If this component has been configured with a template via the tpl config then it will use this argument as data to populate the template. If this component was not configured with a template, the components content area will be updated via Ext.Element update. + * @param loadScripts Boolean Only legitimate when using the html configuration. + * @param callback Function Only legitimate when using the html configuration. Callback to execute when scripts have finished loading. + */ + static update( htmlOrData?:any, loadScripts?:bool, callback?:any ): void; + /** [Method] Sets the current box measurements of the component s underlying element + * @param box Object An object in the format {x, y, width, height} + */ + static updateBox( box?:any ): Ext.IComponent; + /** [Method] Updates this component s layout + * @param options Object An object with layout options. + */ + static updateLayout( options?:any ): void; + /** [Method] Updates a progress style message box s text and progress bar + * @param value Number Any number between 0 and 1 (e.g., .5) + * @param progressText String The progress text to display inside the progress bar. + * @param msg String The message box's body text is replaced with the specified string (defaults to undefined so that any existing body text will not get overwritten by default unless a new value is passed in) + */ + static updateProgress( value?:number, progressText?:string, msg?:string ): Ext.window.IMessageBox; + /** [Method] Displays a message box with an infinitely auto updating progress bar + * @param msg String The message box body text + * @param title String The title bar text + * @param config Object A Ext.ProgressBar.wait config object + */ + static wait( msg?:string, title?:string, config?:any ): Ext.window.IMessageBox; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IModelManager extends Ext.IAbstractManager { } export class ModelManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Creates a new instance of a Model using the given data + * @param data Object Data to initialize the Model's fields with + * @param name String The name of the model to create + * @param id Number unique id of the Model instance (see Ext.data.Model) + */ + static create( data?:any, name?:string, id?:number ): void; + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Returns the Ext data Model class for a given model name - * @param id any The classname of the model or the model class itself. + * @param id String/Object The classname of the model or the model class itself. */ static getModel( id?:any ): Ext.data.IModel; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IModelMgr extends Ext.IAbstractManager { } export class ModelMgr { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Creates a new instance of a Model using the given data + * @param data Object Data to initialize the Model's fields with + * @param name String The name of the model to create + * @param id Number unique id of the Model instance (see Ext.data.Model) + */ + static create( data?:any, name?:string, id?:number ): void; + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Returns the Ext data Model class for a given model name - * @param id any The classname of the model or the model class itself. + * @param id String/Object The classname of the model or the model class itself. */ static getModel( id?:any ): Ext.data.IModel; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { @@ -23263,7 +30244,7 @@ declare module Ext { static merge( destination:any, ...object:any[] ): any; /** [Method] Converts a name value pair to an array of objects with support for nested structures * @param name String - * @param value any + * @param value Object/Array * @param recursive Boolean True to traverse object recursively */ static toQueryObjects( name?:string, value?:any, recursive?:bool ): any[]; @@ -23276,55 +30257,53 @@ declare module Ext { } declare module Ext.panel { export interface IAbstractPanel extends Ext.container.IContainer,Ext.container.IDockingContainer { - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) A shortcut to add or remove the border on the body of a panel. ... */ + /** [Config Option] (Boolean) */ bodyBorder?: bool; - /** [Config Option] (String/String[]) A CSS class, space-delimited string of classes, or array of classes to be applied to the panel's body element. ... */ + /** [Config Option] (String/String[]) */ bodyCls?: any; - /** [Config Option] (Number/String) A shortcut for setting a padding style on the body element. ... */ + /** [Config Option] (Number/String) */ bodyPadding?: any; - /** [Config Option] (String/Object/Function) Custom CSS styles to be applied to the panel's body element, which can be supplied as a valid CSS style string, an ob... */ + /** [Config Option] (String/Object/Function) */ bodyStyle?: any; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + /** [Config Option] (Object/Object[]) */ dockedItems?: any; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean/Number) Allows for this panel to include the dockedItems when trying to determine the overall size of the panel. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrapDock?: any; - /** [Property] (Ext.dom.Element) The Panel's body Element which may be used to contain HTML content. ... */ + /** [Property] (Ext.dom.Element) */ body?: Ext.dom.IElement; - /** [Property] (String) The name of the padding property that is used by the layout to manage padding. ... */ + /** [Property] (String) */ contentPaddingProperty?: string; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Panel, or subclass thereof. ... */ + /** [Property] (Boolean) */ isPanel?: bool; /** [Method] Adds a CSS class to the body element * @param cls String The class to add */ addBodyCls?( cls?:string ): Ext.panel.IPanel; /** [Method] Adds docked item s to the container - * @param component any The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). * @param pos Number The index at which the Component will be added */ addDocked?( component?:any, pos?:number ): Ext.IComponent[]; - /** [Method] inherit docs Method which adds a specified UI uiCls to the components element - * @param ui String The UI to remove from the element. + /** [Method] inherit docs + * @param cls Object */ - addUIClsToElement?( ui?:string ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; + addUIClsToElement?( cls?:any ): void; /** [Method] Attempts a default component lookup see Ext container Container getComponent - * @param comp any The component id, itemId or position to find + * @param comp String/Number The component id, itemId or position to find */ getComponent?( comp?:any ): any; getComponent?( comp?:string ): Ext.IComponent; getComponent?( comp?:number ): Ext.IComponent; /** [Method] Finds a docked component by id itemId or position - * @param comp any The id, itemId or position of the docked component (see getComponent for details) + * @param comp String/Number The id, itemId or position of the docked component (see getComponent for details) */ getDockedComponent?( comp?:any ): any; getDockedComponent?( comp?:string ): Ext.IComponent; @@ -23338,19 +30317,17 @@ declare module Ext.panel { * @param deep Object */ getRefItems?( deep?:any ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Inserts docked item s to the panel at the indicated position * @param pos Number The index at which the Component will be inserted - * @param component any The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). + * @param component Object/Object[] The Component or array of components to add. The components must include a 'dock' paramater on each component to indicate where it should be docked ('top', 'right', 'bottom', 'left'). */ insertDocked?( pos?:number, component?:any ): void; /** [Method] Invoked after a docked item is added to the Panel - * @param component Ext.IComponent + * @param component Ext.Component */ onDockedAdd?( component?:Ext.IComponent ): void; /** [Method] Invoked after a docked item is removed from the Panel - * @param component Ext.IComponent + * @param component Ext.Component */ onDockedRemove?( component?:Ext.IComponent ): void; /** [Method] Removes a CSS class from the body element @@ -23358,14 +30335,14 @@ declare module Ext.panel { */ removeBodyCls?( cls?:string ): Ext.panel.IPanel; /** [Method] Removes the docked item from the panel - * @param item Ext.IComponent The Component to remove. + * @param item Ext.Component The Component to remove. * @param autoDestroy Boolean Destroy the component after removal. */ removeDocked?( item?:Ext.IComponent, autoDestroy?:bool ): void; - /** [Method] inherit docs Method which removes a specified UI uiCls from the components element - * @param ui String The UI to add to the element. + /** [Method] inherit docs + * @param cls Object */ - removeUIClsFromElement?( ui?:string ): void; + removeUIClsFromElement?( cls?:any ): void; /** [Method] Sets the body style according to the passed parameters * @param style Mixed A full style specification string, or object, or the name of a style property to set. * @param value String If the first param was a style property name, the style property value. @@ -23380,88 +30357,69 @@ declare module Ext.panel { * @param id String The id of the dropped element */ afterInvalidDrop?( e?:Event, id?:string ): void; - /** [Method] Sets the pointer offset to the distance between the linked element s top left corner and the location the element was - * @param iPageX Number the X coordinate of the click - * @param iPageY Number the Y coordinate of the click - */ - autoOffset?( iPageX?:number, iPageY?:number ): void; - /** [Method] Event that fires prior to the onMouseDown event + /** [Method] overrides Ext dd DragDrop * @param e Object */ b4MouseDown?( e?:any ): void; /** [Method] Creates the proxy element if it does not yet exist */ createFrame?(): void; - /** [Method] Called when we are done dragging the object - * @param e Event the mouseup event + /** [Method] Returns a reference to the actual element to drag + * @param e Object */ - endDrag?( e?:Event ): void; - /** [Method] Returns a reference to the actual element to drag */ - getDragEl?(): HTMLElement; - /** [Method] Override this we don t want to repair on an invalid drop the panel should main it s position Abstract method cal - * @param e Event the mouseup event - */ - onInvalidDrop?( e?:Event ): void; - /** [Method] Abstract method called after a drag drop object is clicked and the drag or mousedown time thresholds have beeen met - * @param x Number X click location - * @param y Number Y click location - */ - startDrag?( x?:number, y?:number ): void; + getDragEl?( e?:any ): HTMLElement; } } declare module Ext.panel { export interface IHeader extends Ext.container.IContainer { - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (String) Path to image for an icon in the header. ... */ + /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) CSS class for an icon in the header. ... */ + /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Boolean/Number) If this property is a number, it is interpreted as follows: 0: Neither width nor height depend on content. ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrap?: any; /** [Config Option] (String) */ title?: string; - /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + /** [Config Option] (String) */ titleAlign?: string; - /** [Config Option] (Number) The ordinal position among the header items (tools and other components specified using the items config) at which th... */ + /** [Config Option] (Number) */ titlePosition?: number; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Header, or subclass thereof. ... */ + /** [Property] (Boolean) */ isHeader?: bool; /** [Method] Add a tool to the header * @param tool Object */ addTool?( tool?:any ): void; - /** [Method] inherit docs Method which adds a specified UI uiCls to the components element - * @param ui String The UI to remove from the element. + /** [Method] inherit docs + * @param cls Object */ - addUIClsToElement?( ui?:string ): void; - /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components - * @param layout Ext.layout.container.IContainer - */ - afterLayout?( layout?:Ext.layout.container.IContainer ): void; + addUIClsToElement?( cls?:any ): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components */ + afterLayout?(): void; /** [Method] Occurs before componentLayout is run */ beforeLayout?(): void; /** [Method] Gets the tools for this header */ getTools?(): Ext.panel.ITool[]; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Set up the tools lt tool type gt link in the owning Panel * @param component Object * @param index Object */ onAdd?( component?:any, index?:any ): void; - /** [Method] inherit docs Method which removes a specified UI uiCls from the components element - * @param ui String The UI to add to the element. + /** [Method] inherit docs + * @param cls Object */ - removeUIClsFromElement?( ui?:string ): void; + removeUIClsFromElement?( cls?:any ): void; /** [Method] Sets glyph that provides the icon image for this header - * @param glyph Number the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph + * @param glyph Number/String the numeric charCode or string charCode/font-family. This parameter expects a format consistent with that of glyph */ + setGlyph?( glyph?:any ): any; setGlyph?( glyph?:number ): void; setGlyph?( glyph?:string ): void; /** [Method] Sets the image path that provides the icon image for this header @@ -23480,94 +30438,92 @@ declare module Ext.panel { } declare module Ext.panel { export interface IPanel extends Ext.panel.IAbstractPanel { - /** [Config Option] (Boolean) true to animate the transition when the panel is collapsed, false to skip the animation (defaults to true if the Ext.... */ + /** [Config Option] (Boolean) */ animCollapse?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ bbar?: any; - /** [Config Option] (String) The alignment of any buttons added to this panel. ... */ + /** [Config Option] (String) */ buttonAlign?: string; - /** [Config Option] (Object/Object[]) Convenience config used for adding buttons docked to the bottom of the panel. ... */ + /** [Config Option] (Object/Object[]) */ buttons?: any; - /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + /** [Config Option] (String) */ closeAction?: string; - /** [Config Option] (String) The direction to collapse the Panel when the toggle button is clicked. ... */ + /** [Config Option] (String) */ collapseDirection?: string; - /** [Config Option] (Boolean) true to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the pane... */ + /** [Config Option] (Boolean) */ collapseFirst?: bool; - /** [Config Option] (String) Important: this config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + /** [Config Option] (String) */ collapseMode?: string; - /** [Config Option] (Boolean) true to render the panel collapsed, false to render it expanded. ... */ + /** [Config Option] (Boolean) */ collapsed?: bool; - /** [Config Option] (String) A CSS class to add to the panel's element after it has been collapsed. ... */ + /** [Config Option] (String) */ collapsedCls?: string; - /** [Config Option] (Boolean) True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area. ... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Boolean) True to constrain the panel within its containing element, false to allow it to fall outside of its containing element. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Boolean) True to constrain the panel header within its containing element (allowing the panel body to fall outside of its cont... */ + /** [Config Option] (Boolean) */ constrainHeader?: bool; - /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + /** [Config Option] (Object/Object[]) */ dockedItems?: any; - /** [Config Option] (Object/Object[]) Convenience config used for adding items to the bottom of the panel. ... */ + /** [Config Option] (Object/Object[]) */ fbar?: any; - /** [Config Option] (Boolean) Important: This config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + /** [Config Option] (Boolean) */ floatable?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + /** [Config Option] (Boolean) */ frameHeader?: bool; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Boolean/Object) Pass as false to prevent a Header from being created and shown. ... */ + /** [Config Option] (Boolean/Object) */ header?: any; /** [Config Option] (String) */ headerOverCls?: string; - /** [Config Option] (String) Specify as 'top', 'bottom', 'left' or 'right'. ... */ + /** [Config Option] (String) */ headerPosition?: string; - /** [Config Option] (Boolean) true to hide the expand/collapse toggle button when collapsible == true, false to display it. ... */ + /** [Config Option] (Boolean) */ hideCollapseTool?: bool; - /** [Config Option] (String) Path to image for an icon in the header. ... */ + /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) CSS class for an icon in the header. ... */ + /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ lbar?: any; - /** [Config Option] (Boolean) When true, the dock component layout writes height information to the panel's DOM elements based on its shrink wrap h... */ + /** [Config Option] (Boolean) */ manageHeight?: bool; - /** [Config Option] (Number) Minimum width of all footer toolbar buttons in pixels. ... */ + /** [Config Option] (Number) */ minButtonWidth?: number; - /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + /** [Config Option] (Boolean) */ overlapHeader?: bool; - /** [Config Option] (Ext.Component/Object) Important: This config is only effective for collapsible Panels which are direct child items of a border layout when ... */ + /** [Config Option] (Ext.Component/Object) */ placeholder?: any; /** [Config Option] (Number) */ placeholderCollapseHideMode?: number; - /** [Config Option] (Boolean) ... */ + /** [Config Option] (Boolean) */ preventHeader?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ rbar?: any; - /** [Config Option] (Boolean) When draggable is true, Specify this as true to cause the draggable config to work the same as it does in Window. ... */ + /** [Config Option] (Boolean) */ simpleDrag?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ tbar?: any; - /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + /** [Config Option] (String) */ title?: string; - /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + /** [Config Option] (String) */ titleAlign?: string; - /** [Config Option] (Boolean) true to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, fa... */ + /** [Config Option] (Boolean) */ titleCollapse?: bool; - /** [Config Option] (Object[]/Ext.panel.Tool[]) An array of Ext.panel.Tool configs/instances to be added to the header tool area. ... */ + /** [Config Option] (Object[]/Ext.panel.Tool[]) */ tools?: any; - /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) Only present if this Panel has been configured with draggable true. ... */ + /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) */ dd?: any; /** [Method] Add tools to this panel - * @param tools any The tools to add + * @param tools Object[]/Ext.panel.Tool[] The tools to add */ addTool?( tools?:any ): void; - /** [Method] Template method to be implemented in subclasses to add their tools after the collapsible tool */ - addTools?(): void; /** [Method] Invoked after the Panel is Collapsed * @param animated Boolean */ @@ -23576,8 +30532,6 @@ declare module Ext.panel { * @param animated Boolean */ afterExpand?( animated?:bool ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Closes the Panel */ close?(): void; /** [Method] Collapses the panel body so that the body becomes hidden @@ -23604,36 +30558,26 @@ declare module Ext.panel { /** [Method] Determines whether this Component is the root of a layout */ isLayoutRoot?(): void; /** [Method] Returns true if this component is visible - * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + * @param deep Object */ - isVisible?( deep?:bool ): bool; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + isVisible?( deep?:any ): bool; + /** [Method] Possibly animates down to a target element */ + onHide?(): void; /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + * @param destroying Object */ - onRemoved?( destroying?:bool ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onRemoved?( destroying?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] - * @param border String The border, see border. If a falsey value is passed the border will be removed. + * @param border Object + * @param targetEl Object */ - setBorder?( border?:string ): void; - setBorder?( border?:number ): void; + setBorder?( border?:any, targetEl?:any ): void; /** [Method] Set the glyph for the panel s header - * @param newGlyph Number The new glyph This parameter expects a format consistent with that of glyph + * @param newGlyph Number/String The new glyph This parameter expects a format consistent with that of glyph */ + setGlyph?( newGlyph?:any ): any; setGlyph?( newGlyph?:number ): void; setGlyph?( newGlyph?:string ): void; /** [Method] Set the icon for the panel s header @@ -23649,103 +30593,101 @@ declare module Ext.panel { */ setTitle?( newTitle?:string ): void; /** [Method] Sets the UI for the component - * @param ui String The new UI for the component. + * @param ui Object */ - setUI?( ui?:string ): void; + setUI?( ui?:any ): void; /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ toggleCollapse?(): Ext.panel.IPanel; } } declare module Ext { export interface IPanel extends Ext.panel.IAbstractPanel { - /** [Config Option] (Boolean) true to animate the transition when the panel is collapsed, false to skip the animation (defaults to true if the Ext.... */ + /** [Config Option] (Boolean) */ animCollapse?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ bbar?: any; - /** [Config Option] (String) The alignment of any buttons added to this panel. ... */ + /** [Config Option] (String) */ buttonAlign?: string; - /** [Config Option] (Object/Object[]) Convenience config used for adding buttons docked to the bottom of the panel. ... */ + /** [Config Option] (Object/Object[]) */ buttons?: any; - /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + /** [Config Option] (String) */ closeAction?: string; - /** [Config Option] (String) The direction to collapse the Panel when the toggle button is clicked. ... */ + /** [Config Option] (String) */ collapseDirection?: string; - /** [Config Option] (Boolean) true to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the pane... */ + /** [Config Option] (Boolean) */ collapseFirst?: bool; - /** [Config Option] (String) Important: this config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + /** [Config Option] (String) */ collapseMode?: string; - /** [Config Option] (Boolean) true to render the panel collapsed, false to render it expanded. ... */ + /** [Config Option] (Boolean) */ collapsed?: bool; - /** [Config Option] (String) A CSS class to add to the panel's element after it has been collapsed. ... */ + /** [Config Option] (String) */ collapsedCls?: string; - /** [Config Option] (Boolean) True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area. ... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Boolean) True to constrain the panel within its containing element, false to allow it to fall outside of its containing element. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Boolean) True to constrain the panel header within its containing element (allowing the panel body to fall outside of its cont... */ + /** [Config Option] (Boolean) */ constrainHeader?: bool; - /** [Config Option] (Object/Object[]) A component or series of components to be added as docked items to this panel. ... */ + /** [Config Option] (Object/Object[]) */ dockedItems?: any; - /** [Config Option] (Object/Object[]) Convenience config used for adding items to the bottom of the panel. ... */ + /** [Config Option] (Object/Object[]) */ fbar?: any; - /** [Config Option] (Boolean) Important: This config is only effective for collapsible Panels which are direct child items of a border layout. ... */ + /** [Config Option] (Boolean) */ floatable?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel. ... */ + /** [Config Option] (Boolean) */ frame?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + /** [Config Option] (Boolean) */ frameHeader?: bool; - /** [Config Option] (Number/String) A numeric unicode character code to use as the icon for the panel header. ... */ + /** [Config Option] (Number/String) */ glyph?: any; - /** [Config Option] (Boolean/Object) Pass as false to prevent a Header from being created and shown. ... */ + /** [Config Option] (Boolean/Object) */ header?: any; /** [Config Option] (String) */ headerOverCls?: string; - /** [Config Option] (String) Specify as 'top', 'bottom', 'left' or 'right'. ... */ + /** [Config Option] (String) */ headerPosition?: string; - /** [Config Option] (Boolean) true to hide the expand/collapse toggle button when collapsible == true, false to display it. ... */ + /** [Config Option] (Boolean) */ hideCollapseTool?: bool; - /** [Config Option] (String) Path to image for an icon in the header. ... */ + /** [Config Option] (String) */ icon?: string; - /** [Config Option] (String) CSS class for an icon in the header. ... */ + /** [Config Option] (String) */ iconCls?: string; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ lbar?: any; - /** [Config Option] (Boolean) When true, the dock component layout writes height information to the panel's DOM elements based on its shrink wrap h... */ + /** [Config Option] (Boolean) */ manageHeight?: bool; - /** [Config Option] (Number) Minimum width of all footer toolbar buttons in pixels. ... */ + /** [Config Option] (Number) */ minButtonWidth?: number; - /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + /** [Config Option] (Boolean) */ overlapHeader?: bool; - /** [Config Option] (Ext.Component/Object) Important: This config is only effective for collapsible Panels which are direct child items of a border layout when ... */ + /** [Config Option] (Ext.Component/Object) */ placeholder?: any; /** [Config Option] (Number) */ placeholderCollapseHideMode?: number; - /** [Config Option] (Boolean) ... */ + /** [Config Option] (Boolean) */ preventHeader?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ rbar?: any; - /** [Config Option] (Boolean) When draggable is true, Specify this as true to cause the draggable config to work the same as it does in Window. ... */ + /** [Config Option] (Boolean) */ simpleDrag?: bool; - /** [Config Option] (Object/Object[]) Convenience config. ... */ + /** [Config Option] (Object/Object[]) */ tbar?: any; - /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + /** [Config Option] (String) */ title?: string; - /** [Config Option] (String) The alignment of the title text within the available space between the icon and the tools. ... */ + /** [Config Option] (String) */ titleAlign?: string; - /** [Config Option] (Boolean) true to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, fa... */ + /** [Config Option] (Boolean) */ titleCollapse?: bool; - /** [Config Option] (Object[]/Ext.panel.Tool[]) An array of Ext.panel.Tool configs/instances to be added to the header tool area. ... */ + /** [Config Option] (Object[]/Ext.panel.Tool[]) */ tools?: any; - /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) Only present if this Panel has been configured with draggable true. ... */ + /** [Property] (Ext.dd.DragSource/Ext.util.ComponentDragger) */ dd?: any; /** [Method] Add tools to this panel - * @param tools any The tools to add + * @param tools Object[]/Ext.panel.Tool[] The tools to add */ addTool?( tools?:any ): void; - /** [Method] Template method to be implemented in subclasses to add their tools after the collapsible tool */ - addTools?(): void; /** [Method] Invoked after the Panel is Collapsed * @param animated Boolean */ @@ -23754,8 +30696,6 @@ declare module Ext { * @param animated Boolean */ afterExpand?( animated?:bool ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Closes the Panel */ close?(): void; /** [Method] Collapses the panel body so that the body becomes hidden @@ -23782,36 +30722,26 @@ declare module Ext { /** [Method] Determines whether this Component is the root of a layout */ isLayoutRoot?(): void; /** [Method] Returns true if this component is visible - * @param deep Boolean Pass true to interrogate the visibility status of all parent Containers to determine whether this Component is truly visible to the user. Generally, to determine whether a Component is hidden, the no argument form is needed. For example when creating dynamically laid out UIs in a hidden Container before showing them. + * @param deep Object */ - isVisible?( deep?:bool ): bool; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; + isVisible?( deep?:any ): bool; + /** [Method] Possibly animates down to a target element */ + onHide?(): void; /** [Method] Method to manage awareness of when components are removed from their respective Container firing a removed event - * @param destroying Boolean Will be passed as true if the Container performing the remove operation will delete this Component upon remove. + * @param destroying Object */ - onRemoved?( destroying?:bool ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + onRemoved?( destroying?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] - * @param border String The border, see border. If a falsey value is passed the border will be removed. + * @param border Object + * @param targetEl Object */ - setBorder?( border?:string ): void; - setBorder?( border?:number ): void; + setBorder?( border?:any, targetEl?:any ): void; /** [Method] Set the glyph for the panel s header - * @param newGlyph Number The new glyph This parameter expects a format consistent with that of glyph + * @param newGlyph Number/String The new glyph This parameter expects a format consistent with that of glyph */ + setGlyph?( newGlyph?:any ): any; setGlyph?( newGlyph?:number ): void; setGlyph?( newGlyph?:string ): void; /** [Method] Set the icon for the panel s header @@ -23827,18 +30757,18 @@ declare module Ext { */ setTitle?( newTitle?:string ): void; /** [Method] Sets the UI for the component - * @param ui String The new UI for the component. + * @param ui Object */ - setUI?( ui?:string ): void; + setUI?( ui?:any ): void; /** [Method] Shortcut for performing an expand or collapse based on the current state of the panel */ toggleCollapse?(): Ext.panel.IPanel; } } declare module Ext.panel { export interface IProxy extends Ext.IBase { - /** [Config Option] (Boolean) True to insert a placeholder proxy element while dragging the panel, false to drag with no proxy. ... */ + /** [Config Option] (Boolean) */ insertProxy?: bool; - /** [Config Option] (Boolean) True to move the panel to the dragged position when dropped ... */ + /** [Config Option] (Boolean) */ moveOnDrag?: bool; /** [Property] (Ext.panel.Panel) */ panel?: Ext.panel.IPanel; @@ -23861,9 +30791,9 @@ declare module Ext.panel { } declare module Ext.dd { export interface IPanelProxy extends Ext.IBase { - /** [Config Option] (Boolean) True to insert a placeholder proxy element while dragging the panel, false to drag with no proxy. ... */ + /** [Config Option] (Boolean) */ insertProxy?: bool; - /** [Config Option] (Boolean) True to move the panel to the dragged position when dropped ... */ + /** [Config Option] (Boolean) */ moveOnDrag?: bool; /** [Property] (Ext.panel.Panel) */ panel?: Ext.panel.IPanel; @@ -23885,79 +30815,75 @@ declare module Ext.dd { } } declare module Ext.panel { - export interface ITable extends Ext.panel.IPanel { - /** [Config Option] (Boolean) True to allow deselecting a record. ... */ + export interface ITable extends Ext.panel.IPanel,Ext.grid.locking.ILockable { + /** [Config Option] (Boolean) */ allowDeselect?: bool; /** [Config Option] (Boolean) */ columnLines?: bool; - /** [Config Option] (Ext.grid.column.Column[]/Object) An array of column definition objects which define all columns that appear in this grid. ... */ + /** [Config Option] (Ext.grid.column.Column[]/Object) */ columns?: any; - /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + /** [Config Option] (Boolean) */ deferRowRender?: bool; - /** [Config Option] (Boolean) True to disable selection model. ... */ + /** [Config Option] (Boolean) */ disableSelection?: bool; - /** [Config Option] (String) Default text (html tags are accepted) to display in the Panel body when the Store is empty. ... */ + /** [Config Option] (String) */ emptyText?: string; - /** [Config Option] (Boolean) False to disable column hiding within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnHide?: bool; - /** [Config Option] (Boolean) False to disable column dragging within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnMove?: bool; - /** [Config Option] (Boolean) False to disable column resizing within this grid. ... */ + /** [Config Option] (Boolean) */ enableColumnResize?: bool; - /** [Config Option] (Boolean) Configure as true to enable locking support for this grid. ... */ + /** [Config Option] (Boolean) */ enableLocking?: bool; - /** [Config Option] (Ext.grid.feature.Feature[]/Object[]/Ext.enums.Feature[]) An array of grid Features to be added to this grid. ... */ + /** [Config Option] (Ext.grid.feature.Feature[]/Object[]/Ext.enums.Feature[]) */ features?: any; - /** [Config Option] (Boolean) True to force the columns to fit into the available width. ... */ + /** [Config Option] (Boolean) */ forceFit?: bool; - /** [Config Option] (Boolean) True to hide column headers. ... */ + /** [Config Option] (Boolean) */ hideHeaders?: bool; - /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean) True to enable 'MULTI' selection mode on selection model. ... */ + /** [Config Option] (Boolean) */ multiSelect?: bool; - /** [Config Option] (Boolean) Adds row line styling ... */ + /** [Config Option] (Boolean) */ rowLines?: bool; - /** [Config Option] (String/Boolean) Scrollers configuration. ... */ + /** [Config Option] (String/Boolean) */ scroll?: any; - /** [Config Option] (Boolean) True to constrain column dragging so that a column cannot be dragged in or out of it's current group. ... */ + /** [Config Option] (Boolean) */ sealedColumns?: bool; - /** [Config Option] (Ext.selection.Model/Object) A selection model instance or config object. ... */ + /** [Config Option] (Ext.selection.Model/Object) */ selModel?: any; - /** [Config Option] (String) An xtype of selection model to use. ... */ + /** [Config Option] (String) */ selType?: string; - /** [Config Option] (Boolean) True to enable 'SIMPLE' selection mode on selection model. ... */ + /** [Config Option] (Boolean) */ simpleSelect?: bool; - /** [Config Option] (Boolean) False to disable column sorting via clicking the header and via the Sorting menu items. ... */ + /** [Config Option] (Boolean) */ sortableColumns?: bool; /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; - /** [Config Option] (Object) A config object to be used when configuring the scroll monitor to control refreshing of data in an "infinite grid". ... */ + /** [Config Option] (Object) */ verticalScroller?: any; - /** [Config Option] (Ext.view.Table) The Ext.view.Table used by the grid. ... */ + /** [Config Option] (Ext.view.Table) */ view?: Ext.view.ITable; - /** [Config Option] (Object) A config object that will be applied to the grid's UI view. ... */ + /** [Config Option] (Object) */ viewConfig?: any; - /** [Config Option] (String) An xtype of view to use. ... */ + /** [Config Option] (String) */ viewType?: string; - /** [Property] (Boolean) True to indicate that a view has been injected into the panel. ... */ + /** [Property] (Boolean) */ hasView?: bool; - /** [Property] (Boolean) If you are writing a grid plugin or a {Ext.grid.feature.Feature Feature} which creates a column-based structure which... */ + /** [Property] (Boolean) */ optimizedColumnMove?: bool; - /** [Method] Invoked after the Panel is Collapsed - * @param animated Boolean - */ - afterCollapse?( animated?:bool ): void; - /** [Method] Invoked after the Panel is Expanded - * @param animated Boolean - */ - afterExpand?( animated?:bool ): void; + /** [Method] Invoked after the Panel is Collapsed */ + afterCollapse?(): void; + /** [Method] Invoked after the Panel is Expanded */ + afterExpand?(): void; /** [Method] Applies the state to the object - * @param state Object The state + * @param state Object */ applyState?( state?:any ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; + /** [Method] This method is obsolete in 4 1 */ + determineScrollbars?(): void; /** [Method] Returns the selection model being used and creates it via the configuration if it has not been created already */ getSelectionModel?(): Ext.selection.IModel; /** [Method] The supplied default state gathering method for the AbstractComponent class */ @@ -23966,43 +30892,49 @@ declare module Ext.panel { getStore?(): Ext.data.IStore; /** [Method] Gets the view for this panel */ getView?(): Ext.view.ITable; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; + /** [Method] This method is obsolete in 4 1 */ + invalidateScroller?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; + /** [Method] Synchronizes the row heights between the locked and non locked portion of the grid for each row */ + syncRowHeights?(): void; } } declare module Ext.panel { export interface ITool extends Ext.IComponent { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String) CSS class to add when the Component is disabled. ... */ + /** [Config Option] (Function) */ + callback?: any; + /** [Config Option] (String) */ disabledCls?: string; - /** [Config Option] (Function) A function to execute when the tool is clicked. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Number) Tool size is fixed so that Box layout can avoid measurements. ... */ + /** [Config Option] (Number) */ height?: number; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Object) The scope to execute the handler function. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (Boolean) Specify as false to allow click event to propagate. ... */ + /** [Config Option] (Boolean) */ stopEvent?: bool; + /** [Config Option] (Ext.Component) */ + toolOwner?: Ext.IComponent; /** [Config Option] (String/Object) */ tooltip?: any; - /** [Config Option] (String) The type of tooltip to use. ... */ + /** [Config Option] (String) */ tooltipType?: string; - /** [Config Option] (String) The type of tool to render. ... */ + /** [Config Option] (String) */ type?: string; - /** [Config Option] (Number) The width of this component in pixels. ... */ + /** [Config Option] (Number) */ width?: number; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Tool, or subclass thereof. ... */ + /** [Property] (Boolean) */ isTool?: bool; - /** [Method] inherit docs Allows addition of behavior after rendering is complete */ + /** [Method] inherit docs */ afterRender?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] */ initComponent?(): void; - /** [Method] inherit docs Allows addition of behavior to the destroy operation */ + /** [Method] inherit docs */ onDestroy?(): void; /** [Method] Sets the type of the tool * @param type String The new type. See the type config. @@ -24018,53 +30950,138 @@ declare module Ext.perf { export interface IMonitor extends Ext.IBase { } export class Monitor { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IPerf extends Ext.IBase { } export class Perf { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.picker { export interface IColor extends Ext.IComponent { - /** [Config Option] (Boolean) If set to true then reselecting a color that is already selected fires the select event ... */ + /** [Config Option] (Boolean) */ allowReselect?: bool; - /** [Config Option] (String) The DOM event that will cause a color to be selected. ... */ + /** [Config Option] (String) */ clickEvent?: string; - /** [Config Option] (String) The CSS class to apply to the containing element. ... */ + /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (Function) A function that will handle the select event of this picker. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The CSS class to apply to the color picker's items ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The CSS class to apply to the selected element ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (String) The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). ... */ + /** [Config Option] (String) */ value?: string; - /** [Property] (String[]) An array of 6-digit color hex code strings (without the # symbol). ... */ + /** [Property] (String[]) */ colors?: string[]; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; + /** [Method] Clears any selection and sets the value to null */ + clear?(): void; /** [Method] Get the currently selected color value */ getValue?(): string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Initialized the renderData to be used when rendering the renderTpl */ - initRenderData?(): any; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; /** [Method] Selects the specified color in the picker fires the select event * @param color String A valid 6-digit color hex code (# will be stripped if included) * @param suppressEvent Boolean True to stop the select event from firing. @@ -24074,39 +31091,32 @@ declare module Ext.picker { } declare module Ext { export interface IColorPalette extends Ext.IComponent { - /** [Config Option] (Boolean) If set to true then reselecting a color that is already selected fires the select event ... */ + /** [Config Option] (Boolean) */ allowReselect?: bool; - /** [Config Option] (String) The DOM event that will cause a color to be selected. ... */ + /** [Config Option] (String) */ clickEvent?: string; - /** [Config Option] (String) The CSS class to apply to the containing element. ... */ + /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (Function) A function that will handle the select event of this picker. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (String) The CSS class to apply to the color picker's items ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The CSS class to apply to the selected element ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (String) The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). ... */ + /** [Config Option] (String) */ value?: string; - /** [Property] (String[]) An array of 6-digit color hex code strings (without the # symbol). ... */ + /** [Property] (String[]) */ colors?: string[]; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; + /** [Method] Clears any selection and sets the value to null */ + clear?(): void; /** [Method] Get the currently selected color value */ getValue?(): string; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Initialized the renderData to be used when rendering the renderTpl */ - initRenderData?(): any; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; /** [Method] Selects the specified color in the picker fires the select event * @param color String A valid 6-digit color hex code (# will be stripped if included) * @param suppressEvent Boolean True to stop the select event from firing. @@ -24116,74 +31126,72 @@ declare module Ext { } declare module Ext.picker { export interface IDate extends Ext.IComponent { - /** [Config Option] (String) The text to display for the aria title ... */ + /** [Config Option] (String) */ ariaTitle?: string; - /** [Config Option] (String) The date format to display for the current value in the ariaTitle ... */ + /** [Config Option] (String) */ ariaTitleDateFormat?: string; - /** [Config Option] (String) The base CSS class to apply to this components element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; /** [Config Option] (String[]) */ dayNames?: string[]; - /** [Config Option] (Boolean) True to disable animations when showing the month picker. ... */ + /** [Config Option] (Boolean) */ disableAnim?: bool; - /** [Config Option] (String) The class to apply to disabled cells. ... */ + /** [Config Option] (String) */ disabledCellCls?: string; - /** [Config Option] (String[]) An array of 'dates' to disable, as strings. ... */ + /** [Config Option] (String[]) */ disabledDates?: string[]; - /** [Config Option] (RegExp) JavaScript regular expression used to disable a pattern of dates. ... */ + /** [Config Option] (RegExp) */ disabledDatesRE?: RegExp; - /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + /** [Config Option] (String) */ disabledDatesText?: string; - /** [Config Option] (Number[]) An array of days to disable, 0-based. ... */ + /** [Config Option] (Number[]) */ disabledDays?: number[]; - /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + /** [Config Option] (String) */ disabledDaysText?: string; - /** [Config Option] (Boolean) True to automatically focus the picker on show. ... */ + /** [Config Option] (Boolean) */ focusOnShow?: bool; - /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (Function) Optional. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Object) Specifies optional custom key event handlers for the Ext.util.KeyNav attached to this date picker. ... */ + /** [Config Option] (Object) */ keyNavConfig?: any; - /** [Config Option] (String) The format for displaying a date in a longer format. ... */ + /** [Config Option] (String) */ longDayFormat?: string; - /** [Config Option] (Date) Maximum allowable date (JavaScript date object) ... */ + /** [Config Option] (Date) */ maxDate?: any; - /** [Config Option] (String) The error text to display if the maxDate validation fails. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date) Minimum allowable date (JavaScript date object) ... */ + /** [Config Option] (Date) */ minDate?: any; - /** [Config Option] (String) The error text to display if the minDate validation fails. ... */ + /** [Config Option] (String) */ minText?: string; /** [Config Option] (String[]) */ monthNames?: string[]; - /** [Config Option] (String) The date format for the header month ... */ + /** [Config Option] (String) */ monthYearFormat?: string; - /** [Config Option] (String) The header month selector tooltip ... */ + /** [Config Option] (String) */ monthYearText?: string; - /** [Config Option] (String) The next month navigation button tooltip ... */ + /** [Config Option] (String) */ nextText?: string; - /** [Config Option] (String) The previous month navigation button tooltip ... */ + /** [Config Option] (String) */ prevText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The class to apply to the selected cell. ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (Boolean) False to hide the footer area containing the Today button and disable the keyboard handler for spacebar that selects ... */ + /** [Config Option] (Boolean) */ showToday?: bool; - /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + /** [Config Option] (Number) */ startDay?: number; - /** [Config Option] (String) The text to display on the button that selects the current date ... */ + /** [Config Option] (String) */ todayText?: string; - /** [Config Option] (String) A string used to format the message for displaying in a tooltip over the button that selects the current date. ... */ + /** [Config Option] (String) */ todayTip?: string; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets a single character to represent the day of the week * @param value Object */ @@ -24194,30 +31202,12 @@ declare module Ext.picker { * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. */ hideMonthPicker?( animate?:bool ): Ext.picker.IDate; - /** [Method] private inherit docs The initComponent template method is an important initialization step for a Component */ + /** [Method] private inherit docs */ initComponent?(): void; - /** [Method] Initialize any events on this component */ - initEvents?(): void; - /** [Method] Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ - onEnable?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; /** [Method] Sets the current value to today */ selectToday?(): Ext.picker.IDate; /** [Method] Replaces any existing disabled dates with new values and refreshes the DatePicker - * @param disabledDates any An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. + * @param disabledDates String[]/RegExp An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. */ setDisabledDates?( disabledDates?:any ): any; setDisabledDates?( disabledDates?:string[] ): Ext.picker.IDate; @@ -24258,74 +31248,72 @@ declare module Ext.picker { } declare module Ext { export interface IDatePicker extends Ext.IComponent { - /** [Config Option] (String) The text to display for the aria title ... */ + /** [Config Option] (String) */ ariaTitle?: string; - /** [Config Option] (String) The date format to display for the current value in the ariaTitle ... */ + /** [Config Option] (String) */ ariaTitleDateFormat?: string; - /** [Config Option] (String) The base CSS class to apply to this components element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Specifies the border size for this component. ... */ + /** [Config Option] (Number/String/Boolean) */ border?: any; /** [Config Option] (String[]) */ dayNames?: string[]; - /** [Config Option] (Boolean) True to disable animations when showing the month picker. ... */ + /** [Config Option] (Boolean) */ disableAnim?: bool; - /** [Config Option] (String) The class to apply to disabled cells. ... */ + /** [Config Option] (String) */ disabledCellCls?: string; - /** [Config Option] (String[]) An array of 'dates' to disable, as strings. ... */ + /** [Config Option] (String[]) */ disabledDates?: string[]; - /** [Config Option] (RegExp) JavaScript regular expression used to disable a pattern of dates. ... */ + /** [Config Option] (RegExp) */ disabledDatesRE?: RegExp; - /** [Config Option] (String) The tooltip text to display when the date falls on a disabled date. ... */ + /** [Config Option] (String) */ disabledDatesText?: string; - /** [Config Option] (Number[]) An array of days to disable, 0-based. ... */ + /** [Config Option] (Number[]) */ disabledDays?: number[]; - /** [Config Option] (String) The tooltip to display when the date falls on a disabled day. ... */ + /** [Config Option] (String) */ disabledDaysText?: string; - /** [Config Option] (Boolean) True to automatically focus the picker on show. ... */ + /** [Config Option] (Boolean) */ focusOnShow?: bool; - /** [Config Option] (String) The default date format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (Function) Optional. ... */ + /** [Config Option] (Function) */ handler?: any; - /** [Config Option] (Object) Specifies optional custom key event handlers for the Ext.util.KeyNav attached to this date picker. ... */ + /** [Config Option] (Object) */ keyNavConfig?: any; - /** [Config Option] (String) The format for displaying a date in a longer format. ... */ + /** [Config Option] (String) */ longDayFormat?: string; - /** [Config Option] (Date) Maximum allowable date (JavaScript date object) ... */ + /** [Config Option] (Date) */ maxDate?: any; - /** [Config Option] (String) The error text to display if the maxDate validation fails. ... */ + /** [Config Option] (String) */ maxText?: string; - /** [Config Option] (Date) Minimum allowable date (JavaScript date object) ... */ + /** [Config Option] (Date) */ minDate?: any; - /** [Config Option] (String) The error text to display if the minDate validation fails. ... */ + /** [Config Option] (String) */ minText?: string; /** [Config Option] (String[]) */ monthNames?: string[]; - /** [Config Option] (String) The date format for the header month ... */ + /** [Config Option] (String) */ monthYearFormat?: string; - /** [Config Option] (String) The header month selector tooltip ... */ + /** [Config Option] (String) */ monthYearText?: string; - /** [Config Option] (String) The next month navigation button tooltip ... */ + /** [Config Option] (String) */ nextText?: string; - /** [Config Option] (String) The previous month navigation button tooltip ... */ + /** [Config Option] (String) */ prevText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Object) The scope (this reference) in which the handler function will be called. ... */ + /** [Config Option] (Object) */ scope?: any; - /** [Config Option] (String) The class to apply to the selected cell. ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (Boolean) False to hide the footer area containing the Today button and disable the keyboard handler for spacebar that selects ... */ + /** [Config Option] (Boolean) */ showToday?: bool; - /** [Config Option] (Number) Day index at which the week should begin, 0-based. ... */ + /** [Config Option] (Number) */ startDay?: number; - /** [Config Option] (String) The text to display on the button that selects the current date ... */ + /** [Config Option] (String) */ todayText?: string; - /** [Config Option] (String) A string used to format the message for displaying in a tooltip over the button that selects the current date. ... */ + /** [Config Option] (String) */ todayTip?: string; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets a single character to represent the day of the week * @param value Object */ @@ -24336,30 +31324,12 @@ declare module Ext { * @param animate Boolean Indicates whether to animate this action. If the animate parameter is not specified, the behavior will use disableAnim to determine whether to animate or not. */ hideMonthPicker?( animate?:bool ): Ext.picker.IDate; - /** [Method] private inherit docs The initComponent template method is an important initialization step for a Component */ + /** [Method] private inherit docs */ initComponent?(): void; - /** [Method] Initialize any events on this component */ - initEvents?(): void; - /** [Method] Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] Allows addition of behavior to the enable operation */ - onEnable?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; /** [Method] Sets the current value to today */ selectToday?(): Ext.picker.IDate; /** [Method] Replaces any existing disabled dates with new values and refreshes the DatePicker - * @param disabledDates any An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. + * @param disabledDates String[]/RegExp An array of date strings (see the disabledDates config for details on supported values), or a JavaScript regular expression used to disable a pattern of dates. */ setDisabledDates?( disabledDates?:any ): any; setDisabledDates?( disabledDates?:string[] ): Ext.picker.IDate; @@ -24400,38 +31370,32 @@ declare module Ext { } declare module Ext.picker { export interface IMonth extends Ext.IComponent { - /** [Config Option] (String) The base CSS class to apply to the picker element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String) The text to display on the cancel button. ... */ + /** [Config Option] (String) */ cancelText?: string; - /** [Config Option] (String) The text to display on the ok button. ... */ + /** [Config Option] (String) */ okText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String) The class to be added to selected items in the picker. ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (Boolean) True to show ok and cancel buttons below the picker. ... */ + /** [Config Option] (Boolean) */ showButtons?: bool; - /** [Config Option] (Date/Number[]) The default value to set. ... */ + /** [Config Option] (Date/Number[]) */ value?: any; /** [Method] Modify the year display by passing an offset * @param offset Number The offset to move by. */ adjustYear?( offset?:number ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets the selected value */ getValue?(): number[]; /** [Method] Checks whether the picker has a selection */ hasSelection?(): bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; /** [Method] Set the value for the picker - * @param value any The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. + * @param value Date/Number[] The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. */ setValue?( value?:any ): any; setValue?( value?:number[] ): Ext.picker.IMonth; @@ -24439,38 +31403,32 @@ declare module Ext.picker { } declare module Ext { export interface IMonthPicker extends Ext.IComponent { - /** [Config Option] (String) The base CSS class to apply to the picker element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String) The text to display on the cancel button. ... */ + /** [Config Option] (String) */ cancelText?: string; - /** [Config Option] (String) The text to display on the ok button. ... */ + /** [Config Option] (String) */ okText?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String) The class to be added to selected items in the picker. ... */ + /** [Config Option] (String) */ selectedCls?: string; - /** [Config Option] (Boolean) True to show ok and cancel buttons below the picker. ... */ + /** [Config Option] (Boolean) */ showButtons?: bool; - /** [Config Option] (Date/Number[]) The default value to set. ... */ + /** [Config Option] (Date/Number[]) */ value?: any; /** [Method] Modify the year display by passing an offset * @param offset Number The offset to move by. */ adjustYear?( offset?:number ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Gets the selected value */ getValue?(): number[]; /** [Method] Checks whether the picker has a selection */ hasSelection?(): bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; /** [Method] Set the value for the picker - * @param value any The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. + * @param value Date/Number[] The value to set. It can be a Date object, where the month/year will be extracted, or it can be an array, with the month as the first index and the year as the second. */ setValue?( value?:any ): any; setValue?( value?:number[] ): Ext.picker.IMonth; @@ -24478,21 +31436,21 @@ declare module Ext { } declare module Ext.picker { export interface ITime extends Ext.view.IBoundList { - /** [Config Option] (String) CSS Class to be added to a components root level element to give distinction to it via styling. ... */ + /** [Config Option] (String) */ componentCls?: string; - /** [Config Option] (String) The default time format string which can be overriden for localization support. ... */ + /** [Config Option] (String) */ format?: string; - /** [Config Option] (Number) The number of minutes between each time value in the list. ... */ + /** [Config Option] (Number) */ increment?: number; - /** [Config Option] (Date) The maximum time to be shown in the list of times. ... */ + /** [Config Option] (Date) */ maxValue?: any; - /** [Config Option] (Date) The minimum time to be shown in the list of times. ... */ + /** [Config Option] (Date) */ minValue?: any; /** [Method] Focuses a node in the view - * @param rec Ext.data.IModel The record associated to the node that is to be focused. + * @param rec Object */ - focusNode?( rec?:Ext.data.IModel ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + focusNode?( rec?:any ): void; + /** [Method] private */ initComponent?(): void; /** [Method] Set the maxValue and update the list of available times * @param value Date @@ -24510,53 +31468,213 @@ declare module Ext { export interface IPluginManager extends Ext.IAbstractManager { } export class PluginManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Creates a new Plugin from the specified config object using the config object s ptype to determine the class to insta * @param config Object A configuration object for the Plugin you wish to create. * @param defaultType Function The constructor to provide the default Plugin type if the config object does not contain a ptype. (Optional if the config contains a ptype). */ static create( config?:any, defaultType?:any ): Ext.IComponent; + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + static each( fn?:any, scope?:any ): void; /** [Method] Returns all plugins registered with the given type * @param type String The type to search for * @param defaultsOnly Boolean True to only return plugins of this type where the plugin's isDefault property is truthy */ static findByType( type?:string, defaultsOnly?:bool ): Ext.IAbstractPlugin[]; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Registers a new item constructor keyed by a type key + * @param type String The mnemonic string by which the class may be looked up. + * @param cls Function The new instance class. + */ + static registerType( type?:string, cls?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IPluginMgr extends Ext.IAbstractManager { } export class PluginMgr { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Creates a new Plugin from the specified config object using the config object s ptype to determine the class to insta * @param config Object A configuration object for the Plugin you wish to create. * @param defaultType Function The constructor to provide the default Plugin type if the config object does not contain a ptype. (Optional if the config contains a ptype). */ static create( config?:any, defaultType?:any ): Ext.IComponent; + /** [Method] Executes the specified function once for each item in the collection + * @param fn Function The function to execute. + * @param scope Object The scope to execute in. Defaults to this. + */ + static each( fn?:any, scope?:any ): void; /** [Method] Returns all plugins registered with the given type * @param type String The type to search for * @param defaultsOnly Boolean True to only return plugins of this type where the plugin's isDefault property is truthy */ static findByType( type?:string, defaultsOnly?:bool ): Ext.IAbstractPlugin[]; + /** [Method] Returns an item by id + * @param id String The id of the item + */ + static get( id?:string ): any; + /** [Method] Gets the number of items in the collection */ + static getCount(): number; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Checks if an item type is registered + * @param type String The mnemonic string by which the class may be looked up + */ + static isRegistered( type?:string ): bool; + /** [Method] Registers a function that will be called when an item with the specified id is added to the manager + * @param id String The item id + * @param fn Function The callback function. Called with a single parameter, the item. + * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the item. + */ + static onAvailable( id?:string, fn?:any, scope?:any ): void; + /** [Method] Registers an item to be managed + * @param item Object The item to register + */ + static register( item?:any ): void; + /** [Method] Registers a new item constructor keyed by a type key + * @param type String The mnemonic string by which the class may be looked up. + * @param cls Function The new instance class. + */ + static registerType( type?:string, cls?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters an item by removing it from this manager + * @param item Object The item to unregister + */ + static unregister( item?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IProgressBar extends Ext.IComponent { - /** [Config Option] (Boolean/Object) True to animate the progress bar during transitions, or an animation configuration (see the animate method for details). ... */ + /** [Config Option] (Boolean/Object) */ animate?: any; - /** [Config Option] (String) The base CSS class to apply to the progress bar's wrapper element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; /** [Config Option] (String) */ id?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String) The text shown in the progress bar. ... */ + /** [Config Option] (String) */ text?: string; /** [Config Option] (String/HTMLElement/Ext.Element) */ textEl?: any; - /** [Config Option] (Number) A floating point value between 0 and 1 (e.g., .5) ... */ + /** [Config Option] (Number) */ value?: number; - /** [Method] private The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] Initialized the renderData to be used when rendering the renderTpl */ initRenderData?(): any; @@ -24564,11 +31682,8 @@ declare module Ext { isWaiting?(): bool; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; /** [Method] Resets the progress bar value to 0 and text to empty string * @param hide Boolean True to hide the progress bar. */ @@ -24589,9 +31704,38 @@ declare module Ext { wait?( config?:any ): Ext.IProgressBar; } } +declare module Ext { + export interface IQueryable extends Ext.IBase { + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; + } +} declare module Ext.resizer { export interface IBorderSplitter extends Ext.resizer.ISplitter { - /** [Config Option] (String/Ext.panel.Panel) must be configured in by the border layout: A string describing the relative position of the immediate sibling Panel... */ + /** [Config Option] (String/Ext.panel.Panel) */ collapseTarget?: any; /** [Method] Returns the config object with an xclass property for the splitter tracker */ getTrackerConfig?(): void; @@ -24599,15 +31743,15 @@ declare module Ext.resizer { } declare module Ext.resizer { export interface IBorderSplitterTracker extends Ext.resizer.ISplitterTracker { - /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + /** [Method] ensure the tracker is enabled store boxes of previous and next components and calculate the constrain region + * @param e Object */ - onBeforeStart?( e?:Ext.IEventObject ): void; + onBeforeStart?( e?:any ): void; } } declare module Ext.resizer { export interface IHandle extends Ext.IComponent { - /** [Config Option] ("north"/"south"/"east"/"west"/"center") Ext.resizer.Resizer.prototype.possiblePositions define the regions which will be passed in as a region configuration. ... */ + /** [Config Option] ("north"/"south"/"east"/"west"/"center") */ region?: any; } } @@ -24615,57 +31759,57 @@ declare module Ext.resizer { export interface IResizer extends Ext.IBase,Ext.util.IObservable { /** [Config Option] (Ext.Element/Ext.util.Region) */ constrainTo?: any; - /** [Config Option] (Boolean) Specify as true to update the target (Element or Component) dynamically during dragging. ... */ + /** [Config Option] (Boolean) */ dynamic?: bool; - /** [Config Option] (String) String consisting of the resize handles to display. ... */ + /** [Config Option] (String) */ handles?: string; - /** [Config Option] (Number) Optional. ... */ + /** [Config Option] (Number) */ height?: number; - /** [Config Option] (Number) The increment to snap the height resize in pixels. ... */ + /** [Config Option] (Number) */ heightIncrement?: number; - /** [Config Option] (Number) The maximum height for the element ... */ + /** [Config Option] (Number) */ maxHeight?: number; - /** [Config Option] (Number) The maximum width for the element ... */ + /** [Config Option] (Number) */ maxWidth?: number; - /** [Config Option] (Number) The minimum height for the element ... */ + /** [Config Option] (Number) */ minHeight?: number; - /** [Config Option] (Number) The minimum width for the element ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean) True to ensure that the resize handles are always visible, false indicates resizing by cursor changes only ... */ + /** [Config Option] (Boolean) */ pinned?: bool; - /** [Config Option] (Boolean) True to preserve the original ratio between height and width during resize ... */ + /** [Config Option] (Boolean) */ preserveRatio?: bool; /** [Config Option] (Ext.Element/Ext.Component) */ target?: any; - /** [Config Option] (Boolean) True for transparent handles. ... */ + /** [Config Option] (Boolean) */ transparent?: bool; - /** [Config Option] (Number) Optional. ... */ + /** [Config Option] (Number) */ width?: number; - /** [Config Option] (Number) The increment to snap the width resize in pixels. ... */ + /** [Config Option] (Number) */ widthIncrement?: number; /** [Property] (Ext.Element) */ el?: Ext.IElement; - /** [Property] (Ext.Element/Ext.Component) Reference to the original resize target if the element of the original resize target was a Field, or an IMG or a TEXT... */ + /** [Property] (Ext.Element/Ext.Component) */ originalTarget?: any; /** [Property] (Ext.resizer.ResizeTracker) */ resizeTracker?: Ext.resizer.IResizeTracker; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -24675,8 +31819,9 @@ declare module Ext.resizer { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -24688,7 +31833,7 @@ declare module Ext.resizer { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the element that was configured with the el or target config property */ getEl?(): Ext.IElement; /** [Method] Returns the element or component that was configured with the target config property */ @@ -24700,25 +31845,26 @@ declare module Ext.resizer { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -24737,11 +31883,12 @@ declare module Ext.resizer { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Perform a manual resize and fires the resize event @@ -24775,57 +31922,57 @@ declare module Ext { export interface IResizable extends Ext.IBase,Ext.util.IObservable { /** [Config Option] (Ext.Element/Ext.util.Region) */ constrainTo?: any; - /** [Config Option] (Boolean) Specify as true to update the target (Element or Component) dynamically during dragging. ... */ + /** [Config Option] (Boolean) */ dynamic?: bool; - /** [Config Option] (String) String consisting of the resize handles to display. ... */ + /** [Config Option] (String) */ handles?: string; - /** [Config Option] (Number) Optional. ... */ + /** [Config Option] (Number) */ height?: number; - /** [Config Option] (Number) The increment to snap the height resize in pixels. ... */ + /** [Config Option] (Number) */ heightIncrement?: number; - /** [Config Option] (Number) The maximum height for the element ... */ + /** [Config Option] (Number) */ maxHeight?: number; - /** [Config Option] (Number) The maximum width for the element ... */ + /** [Config Option] (Number) */ maxWidth?: number; - /** [Config Option] (Number) The minimum height for the element ... */ + /** [Config Option] (Number) */ minHeight?: number; - /** [Config Option] (Number) The minimum width for the element ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean) True to ensure that the resize handles are always visible, false indicates resizing by cursor changes only ... */ + /** [Config Option] (Boolean) */ pinned?: bool; - /** [Config Option] (Boolean) True to preserve the original ratio between height and width during resize ... */ + /** [Config Option] (Boolean) */ preserveRatio?: bool; /** [Config Option] (Ext.Element/Ext.Component) */ target?: any; - /** [Config Option] (Boolean) True for transparent handles. ... */ + /** [Config Option] (Boolean) */ transparent?: bool; - /** [Config Option] (Number) Optional. ... */ + /** [Config Option] (Number) */ width?: number; - /** [Config Option] (Number) The increment to snap the width resize in pixels. ... */ + /** [Config Option] (Number) */ widthIncrement?: number; /** [Property] (Ext.Element) */ el?: Ext.IElement; - /** [Property] (Ext.Element/Ext.Component) Reference to the original resize target if the element of the original resize target was a Field, or an IMG or a TEXT... */ + /** [Property] (Ext.Element/Ext.Component) */ originalTarget?: any; /** [Property] (Ext.resizer.ResizeTracker) */ resizeTracker?: Ext.resizer.IResizeTracker; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -24835,8 +31982,9 @@ declare module Ext { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -24848,7 +31996,7 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the element that was configured with the el or target config property */ getEl?(): Ext.IElement; /** [Method] Returns the element or component that was configured with the target config property */ @@ -24860,25 +32008,26 @@ declare module Ext { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -24897,11 +32046,12 @@ declare module Ext { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Perform a manual resize and fires the resize event @@ -24933,121 +32083,125 @@ declare module Ext { } declare module Ext.resizer { export interface IResizeTracker extends Ext.dd.IDragTracker { - /** [Config Option] (Ext.util.Region/Ext.Element) Default to no constraint A Region (Or an element from which a Region measurement will be read) which is used to cons... */ + /** [Config Option] (Ext.util.Region/Ext.Element) */ constrainTo?: any; /** [Method] Create a proxy for this resizer - * @param target any The target + * @param target Ext.Component/Ext.Element The target */ createProxy?( target?:any ): any; createProxy?( target?:Ext.IComponent ): Ext.IElement; createProxy?( target?:Ext.IElement ): Ext.IElement; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onBeforeStart?( e?:Ext.IEventObject ): void; + onBeforeStart?( e?:any ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onDrag?( e?:Ext.IEventObject ): void; + onDrag?( e?:any ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onEnd?( e?:Ext.IEventObject ): void; + onEnd?( e?:any ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onStart?( e?:Ext.IEventObject ): void; + onStart?( e?:any ): void; } } declare module Ext.resizer { export interface ISplitter extends Ext.IComponent { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to enable dblclick to toggle expand and collapse on the collapseTarget Panel. ... */ + /** [Config Option] (Boolean) */ collapseOnDblClick?: bool; - /** [Config Option] (String/Ext.panel.Panel) A string describing the relative position of the immediate sibling Panel to collapse. ... */ + /** [Config Option] (String/Ext.panel.Panel) */ collapseTarget?: any; - /** [Config Option] (String) A class to add to the splitter when it is collapsed. ... */ + /** [Config Option] (String) */ collapsedCls?: string; - /** [Config Option] (Boolean) True to show a mini-collapse tool in the Splitter to toggle expand and collapse on the collapseTarget Panel. ... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Number) Provides a default maximum width or height for the two components that the splitter is between. ... */ + /** [Config Option] (Number) */ defaultSplitMax?: number; - /** [Config Option] (Number) Provides a default minimum width or height for the two components that the splitter is between. ... */ + /** [Config Option] (Number) */ defaultSplitMin?: number; /** [Config Option] (Boolean) */ performCollapse?: bool; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (Number) The size of the splitter. ... */ + /** [Config Option] (Number) */ size?: number; - /** [Property] (String) Orientation of this Splitter. ... */ + /** [Property] (String) */ orientation?: string; /** [Method] Invoked before the Component is destroyed */ beforeDestroy?(): void; /** [Method] Returns the config object with an xclass property for the splitter tracker */ getTrackerConfig?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Work around IE bug - * @param width any The new width to set. This may be one of: A Number specifying the new width in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS width style. A size object in the format {width: widthValue, height: heightValue}. undefined to leave the width unchanged. - * @param height any The new height to set (not required if a size object is passed as the first arg). This may be one of: A Number specifying the new height in the Element's Ext.Element.defaultUnits (by default, pixels). A String used to set the CSS height style. Animation may not be used. undefined to leave the height unchanged. - */ - setSize?( width?:any, height?:any ): any; - setSize?( width?:any, height?:number ): Ext.IComponent; - setSize?( width?:any, height?:string ): Ext.IComponent; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; + /** [Method] Work around IE bug */ + setSize?(): Ext.IComponent; } } declare module Ext.resizer { export interface ISplitterTracker extends Ext.dd.IDragTracker { - /** [Method] ensure the tracker is enabled store boxes of previous and next components and calculate the constrain region Templa - * @param e Ext.IEventObject The event object + /** [Method] ensure the tracker is enabled store boxes of previous and next components and calculate the constrain region + * @param e Object */ - onBeforeStart?( e?:Ext.IEventObject ): void; - /** [Method] Track the proxy and set the proper XY coordinates while constraining the drag Template method which should be overri - * @param e Ext.IEventObject The event object + onBeforeStart?( e?:any ): void; + /** [Method] Track the proxy and set the proper XY coordinates while constraining the drag + * @param e Object */ - onDrag?( e?:Ext.IEventObject ): void; - /** [Method] perform the resize and remove the proxy class from the splitter el Template method which should be overridden by eac - * @param e Ext.IEventObject The event object + onDrag?( e?:any ): void; + /** [Method] perform the resize and remove the proxy class from the splitter el + * @param e Object */ - onEnd?( e?:Ext.IEventObject ): void; + onEnd?( e?:any ): void; /** [Method] We move the splitter el - * @param e Ext.IEventObject The event object + * @param e Object */ - onStart?( e?:Ext.IEventObject ): void; + onStart?( e?:any ): void; } } declare module Ext.selection { export interface ICellModel extends Ext.selection.IModel { - /** [Config Option] (Boolean) Turns on/off keyboard navigation within the grid. ... */ + /** [Config Option] (Boolean) */ enableKeyNav?: bool; - /** [Config Option] ("SINGLE") Mode of selection. ... */ + /** [Config Option] ("SINGLE") */ mode?: string; - /** [Config Option] (Boolean) Set this configuration to true to prevent wrapping around of selection as a user navigates to the first or last column. ... */ + /** [Config Option] (Boolean) */ preventWrap?: bool; + /** [Method] Deselects a record instance by record instance or index + * @param record Object + * @param suppressEvent Object + */ + deselect?( record?:any, suppressEvent?:any ): void; /** [Method] Returns the current position in the format row row column column */ getCurrentPosition?(): void; + /** [Method] Selects a record instance by record instance or index + * @param pos Object + * @param keepExisting Object + * @param suppressEvent Object + */ + select?( pos?:any, keepExisting?:any, suppressEvent?:any ): void; /** [Method] Sets the current position * @param position Object The position to set. + * @param suppressEvent Boolean True to suppress selection events */ - setCurrentPosition?( position?:any ): void; + setCurrentPosition?( position?:any, suppressEvent?:bool ): void; } } declare module Ext.selection { export interface ICheckboxModel extends Ext.selection.IRowModel { - /** [Config Option] (Boolean) True if rows can only be selected by clicking on the checkbox column. ... */ + /** [Config Option] (Boolean) */ checkOnly?: bool; - /** [Config Option] (String) The selector for determining whether the checkbox element is clicked. ... */ + /** [Config Option] (String) */ checkSelector?: string; - /** [Config Option] (Number/String) The index at which to insert the checkbox column. ... */ + /** [Config Option] (Number/String) */ injectCheckbox?: any; - /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Modes of selection. ... */ + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") */ mode?: any; - /** [Config Option] (Boolean) Configure as false to not display the header checkbox at the top of the column. ... */ + /** [Config Option] (Boolean) */ showHeaderCheckbox?: bool; /** [Method] Retrieve a configuration to be used in a HeaderContainer */ getHeaderConfig?(): void; @@ -25071,33 +32225,36 @@ declare module Ext.selection { } declare module Ext.selection { export interface IDataViewModel extends Ext.selection.IModel { - /** [Config Option] (Boolean) Turns on/off keyboard navigation within the DataView. ... */ + /** [Config Option] (Boolean) */ enableKeyNav?: bool; } } declare module Ext.selection { export interface IModel extends Ext.util.IObservable,Ext.util.IBindable { - /** [Config Option] (Boolean) Allow users to deselect a record in a DataView, List or Grid. ... */ + /** [Config Option] (Boolean) */ allowDeselect?: bool; - /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Mode of selection. ... */ + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") */ mode?: any; - /** [Config Option] (Boolean) Remove records from the selection when they are removed from the store. ... */ + /** [Config Option] (Boolean) */ pruneRemoved?: bool; - /** [Property] (Ext.util.MixedCollection) A MixedCollection that maintains all of the currently selected records. ... */ + /** [Config Option] (Boolean) */ + toggleOnClick?: bool; + /** [Property] (Ext.util.MixedCollection) */ selected?: Ext.util.IMixedCollection; /** [Method] binds the store to the selModel - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IAbstractStore ): void; - bindStore?( store?:string ): void; + bindStore?( store?:any, initial?:any ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Deselects a record instance by record instance or index - * @param records Ext.data.IModel[] An array of records or an index + * @param records Ext.data.Model[]/Number An array of records or an index * @param suppressEvent Boolean True to not fire a deselect event */ + deselect?( records?:any, suppressEvent?:any ): any; deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; deselect?( records?:number, suppressEvent?:bool ): void; /** [Method] Deselects all records in the view @@ -25105,9 +32262,10 @@ declare module Ext.selection { */ deselectAll?( suppressEvent?:bool ): void; /** [Method] Deselects a range of rows if the selection model is not locked - * @param startRow Ext.data.IModel The record or index of the first row in the range - * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param startRow Ext.data.Model/Number The record or index of the first row in the range + * @param endRow Ext.data.Model/Number The record or index of the last row in the range */ + deselectRange?( startRow?:any, endRow?:any ): any; deselectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel ): void; deselectRange?( startRow?:number, endRow?:Ext.data.IModel ): void; deselectRange?( startRow?:Ext.data.IModel, endRow?:number ): void; @@ -25122,21 +32280,19 @@ declare module Ext.selection { getSelectionMode?(): string; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Returns true if there are any a selected records */ hasSelection?(): bool; /** [Method] Determines if this record is currently focused - * @param record Ext.data.IModel + * @param record Ext.data.Model */ isFocused?( record?:Ext.data.IModel ): void; /** [Method] Returns true if the selections are locked */ isLocked?(): bool; /** [Method] Returns true if the specified row is selected - * @param from any The start of the range to check. - * @param to any The end of the range to check. + * @param from Ext.data.Model/Number The start of the range to check. + * @param to Ext.data.Model/Number The end of the range to check. */ isRangeSelected?( from?:any, to?:any ): any; isRangeSelected?( from?:Ext.data.IModel, to?:Ext.data.IModel ): bool; @@ -25144,26 +32300,27 @@ declare module Ext.selection { isRangeSelected?( from?:Ext.data.IModel, to?:number ): bool; isRangeSelected?( from?:number, to?:number ): bool; /** [Method] Returns true if the specified row is selected - * @param record any The record or index of the record to check + * @param record Ext.data.Model/Number The record or index of the record to check */ isSelected?( record?:any ): any; isSelected?( record?:Ext.data.IModel ): bool; isSelected?( record?:number ): bool; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Selects a record instance by record instance or index - * @param records Ext.data.IModel[] An array of records or an index + * @param records Ext.data.Model[]/Number An array of records or an index * @param keepExisting Boolean True to retain existing selections * @param suppressEvent Boolean True to not fire a select event */ + select?( records?:any, keepExisting?:any, suppressEvent?:any ): any; select?( records?:Ext.data.IModel[], keepExisting?:bool, suppressEvent?:bool ): void; select?( records?:number, keepExisting?:bool, suppressEvent?:bool ): void; /** [Method] Selects all records in the view @@ -25171,16 +32328,17 @@ declare module Ext.selection { */ selectAll?( suppressEvent?:bool ): void; /** [Method] Selects a range of rows if the selection model is not locked - * @param startRow Ext.data.IModel The record or index of the first row in the range - * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param startRow Ext.data.Model/Number The record or index of the first row in the range + * @param endRow Ext.data.Model/Number The record or index of the last row in the range * @param keepExisting Boolean True to retain existing selections */ + selectRange?( startRow?:any, endRow?:any, keepExisting?:any ): any; selectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel, keepExisting?:bool ): void; selectRange?( startRow?:number, endRow?:Ext.data.IModel, keepExisting?:bool ): void; selectRange?( startRow?:Ext.data.IModel, endRow?:number, keepExisting?:bool ): void; selectRange?( startRow?:number, endRow?:number, keepExisting?:bool ): void; /** [Method] Sets a record as the last focused record - * @param record Ext.data.IModel + * @param record Ext.data.Model */ setLastFocused?( record?:Ext.data.IModel ): void; /** [Method] Locks the current selection and disables any changes from happening to the selection @@ -25192,34 +32350,37 @@ declare module Ext.selection { */ setSelectionMode?( selMode?:string ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext { export interface IAbstractSelectionModel extends Ext.util.IObservable,Ext.util.IBindable { - /** [Config Option] (Boolean) Allow users to deselect a record in a DataView, List or Grid. ... */ + /** [Config Option] (Boolean) */ allowDeselect?: bool; - /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") Mode of selection. ... */ + /** [Config Option] ("SINGLE"/"SIMPLE"/"MULTI") */ mode?: any; - /** [Config Option] (Boolean) Remove records from the selection when they are removed from the store. ... */ + /** [Config Option] (Boolean) */ pruneRemoved?: bool; - /** [Property] (Ext.util.MixedCollection) A MixedCollection that maintains all of the currently selected records. ... */ + /** [Config Option] (Boolean) */ + toggleOnClick?: bool; + /** [Property] (Ext.util.MixedCollection) */ selected?: Ext.util.IMixedCollection; /** [Method] binds the store to the selModel - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IAbstractStore ): void; - bindStore?( store?:string ): void; + bindStore?( store?:any, initial?:any ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Deselects a record instance by record instance or index - * @param records Ext.data.IModel[] An array of records or an index + * @param records Ext.data.Model[]/Number An array of records or an index * @param suppressEvent Boolean True to not fire a deselect event */ + deselect?( records?:any, suppressEvent?:any ): any; deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; deselect?( records?:number, suppressEvent?:bool ): void; /** [Method] Deselects all records in the view @@ -25227,9 +32388,10 @@ declare module Ext { */ deselectAll?( suppressEvent?:bool ): void; /** [Method] Deselects a range of rows if the selection model is not locked - * @param startRow Ext.data.IModel The record or index of the first row in the range - * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param startRow Ext.data.Model/Number The record or index of the first row in the range + * @param endRow Ext.data.Model/Number The record or index of the last row in the range */ + deselectRange?( startRow?:any, endRow?:any ): any; deselectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel ): void; deselectRange?( startRow?:number, endRow?:Ext.data.IModel ): void; deselectRange?( startRow?:Ext.data.IModel, endRow?:number ): void; @@ -25244,21 +32406,19 @@ declare module Ext { getSelectionMode?(): string; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Returns true if there are any a selected records */ hasSelection?(): bool; /** [Method] Determines if this record is currently focused - * @param record Ext.data.IModel + * @param record Ext.data.Model */ isFocused?( record?:Ext.data.IModel ): void; /** [Method] Returns true if the selections are locked */ isLocked?(): bool; /** [Method] Returns true if the specified row is selected - * @param from any The start of the range to check. - * @param to any The end of the range to check. + * @param from Ext.data.Model/Number The start of the range to check. + * @param to Ext.data.Model/Number The end of the range to check. */ isRangeSelected?( from?:any, to?:any ): any; isRangeSelected?( from?:Ext.data.IModel, to?:Ext.data.IModel ): bool; @@ -25266,26 +32426,27 @@ declare module Ext { isRangeSelected?( from?:Ext.data.IModel, to?:number ): bool; isRangeSelected?( from?:number, to?:number ): bool; /** [Method] Returns true if the specified row is selected - * @param record any The record or index of the record to check + * @param record Ext.data.Model/Number The record or index of the record to check */ isSelected?( record?:any ): any; isSelected?( record?:Ext.data.IModel ): bool; isSelected?( record?:number ): bool; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Selects a record instance by record instance or index - * @param records Ext.data.IModel[] An array of records or an index + * @param records Ext.data.Model[]/Number An array of records or an index * @param keepExisting Boolean True to retain existing selections * @param suppressEvent Boolean True to not fire a select event */ + select?( records?:any, keepExisting?:any, suppressEvent?:any ): any; select?( records?:Ext.data.IModel[], keepExisting?:bool, suppressEvent?:bool ): void; select?( records?:number, keepExisting?:bool, suppressEvent?:bool ): void; /** [Method] Selects all records in the view @@ -25293,16 +32454,17 @@ declare module Ext { */ selectAll?( suppressEvent?:bool ): void; /** [Method] Selects a range of rows if the selection model is not locked - * @param startRow Ext.data.IModel The record or index of the first row in the range - * @param endRow Ext.data.IModel The record or index of the last row in the range + * @param startRow Ext.data.Model/Number The record or index of the first row in the range + * @param endRow Ext.data.Model/Number The record or index of the last row in the range * @param keepExisting Boolean True to retain existing selections */ + selectRange?( startRow?:any, endRow?:any, keepExisting?:any ): any; selectRange?( startRow?:Ext.data.IModel, endRow?:Ext.data.IModel, keepExisting?:bool ): void; selectRange?( startRow?:number, endRow?:Ext.data.IModel, keepExisting?:bool ): void; selectRange?( startRow?:Ext.data.IModel, endRow?:number, keepExisting?:bool ): void; selectRange?( startRow?:number, endRow?:number, keepExisting?:bool ): void; /** [Method] Sets a record as the last focused record - * @param record Ext.data.IModel + * @param record Ext.data.Model */ setLastFocused?( record?:Ext.data.IModel ): void; /** [Method] Locks the current selection and disables any changes from happening to the selection @@ -25314,16 +32476,16 @@ declare module Ext { */ setSelectionMode?( selMode?:string ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.selection { export interface IRowModel extends Ext.selection.IModel { - /** [Config Option] (Boolean) Turns on/off keyboard navigation within the grid. ... */ + /** [Config Option] (Boolean) */ enableKeyNav?: bool; - /** [Config Option] (Boolean) True to ignore selections that are made when using the right mouse button if there are records that are already selec... */ + /** [Config Option] (Boolean) */ ignoreRightMouseSelection?: bool; /** [Method] Returns position of the first selected cell in the selection in the format row row column column */ getCurrentPosition?(): void; @@ -25342,17 +32504,17 @@ declare module Ext.selection { declare module Ext.selection { export interface ITreeModel extends Ext.selection.IRowModel { /** [Method] binds the store to the selModel - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IAbstractStore ): void; - bindStore?( store?:string ): void; + bindStore?( store?:any, initial?:any ): void; } } declare module Ext { export interface IShadow extends Ext.IBase { - /** [Config Option] (String) The shadow display mode. ... */ + /** [Config Option] (String) */ mode?: string; - /** [Config Option] (Number) The number of pixels to offset the shadow from the element ... */ + /** [Config Option] (Number) */ offset?: number; /** [Method] Hides this shadow */ hide?(): void; @@ -25374,8 +32536,9 @@ declare module Ext { */ setZIndex?( zindex?:number ): void; /** [Method] Displays the shadow under the target element - * @param targetEl String The id or element under which the shadow should display + * @param targetEl String/HTMLElement/Ext.Element The id or element under which the shadow should display */ + show?( targetEl?:any ): any; show?( targetEl?:string ): void; show?( targetEl?:HTMLElement ): void; show?( targetEl?:Ext.IElement ): void; @@ -25385,41 +32548,89 @@ declare module Ext { export interface IShadowPool extends Ext.IBase { } export class ShadowPool { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.slider { export interface IMulti extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Turn on or off animation. ... */ + /** [Config Option] (Boolean) */ animate?: bool; - /** [Config Option] (Boolean) Determines whether or not clicking on the Slider axis will change the slider. ... */ + /** [Config Option] (Boolean) */ clickToChange?: bool; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) True to disallow thumbs from overlapping one another. ... */ + /** [Config Option] (Boolean) */ constrainThumbs?: bool; - /** [Config Option] (Number/Boolean) The number of decimal places to which to round the Slider's value. ... */ + /** [Config Option] (Number/Boolean) */ decimalPrecision?: any; - /** [Config Option] (Number) How many units to change the slider when adjusting by drag and drop. ... */ + /** [Config Option] (Number) */ increment?: number; - /** [Config Option] (Number) How many units to change the Slider when adjusting with keyboard navigation. ... */ + /** [Config Option] (Number) */ keyIncrement?: number; - /** [Config Option] (Number) The maximum value for the Slider. ... */ + /** [Config Option] (Number) */ maxValue?: number; - /** [Config Option] (Number) The minimum value for the Slider. ... */ + /** [Config Option] (Number) */ minValue?: number; - /** [Config Option] (Function) A function used to display custom text for the slider tip. ... */ + /** [Config Option] (Function) */ tipText?: any; - /** [Config Option] (Object/Boolean) True to use an Ext.slider.Tip to display tips for the value. ... */ + /** [Config Option] (Object/Boolean) */ useTips?: any; - /** [Config Option] (Number) A value with which to initialize the slider. ... */ + /** [Config Option] (Number) */ value?: number; - /** [Config Option] (Number[]) Array of Number values with which to initalize the slider. ... */ + /** [Config Option] (Number[]) */ values?: number[]; - /** [Config Option] (Boolean) Orient the Slider vertically rather than horizontally. ... */ + /** [Config Option] (Boolean) */ vertical?: bool; - /** [Config Option] (Boolean) Set to true to calculate snap points based on increments from zero as opposed to from this Slider's minValue. ... */ + /** [Config Option] (Boolean) */ zeroBasedSnapping?: bool; - /** [Property] (Boolean) True while the thumb is in a drag operation ... */ + /** [Property] (Boolean) */ dragging?: bool; /** [Property] (Array) */ thumbs?: any[]; @@ -25427,9 +32638,9 @@ declare module Ext.slider { * @param value Number The initial value to set on the thumb. */ addThumb?( value?:number ): any; - /** [Method] private Invoked before the Component is destroyed */ - beforeDestroy?(): any; - /** [Method] private override Creates and returns the data object to be used when rendering the fieldSubTpl */ + /** [Method] private */ + beforeDestroy?(): void; + /** [Method] private override */ getSubTplData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): any; @@ -25439,78 +32650,75 @@ declare module Ext.slider { getValue?( index?:number ): any; /** [Method] Returns an array of values one for the location of each thumb */ getValues?(): any; - /** [Method] private override The initComponent template method is an important initialization step for a Component */ - initComponent?(): any; - /** [Method] private override Initializes the field s value based on the initial config */ - initValue?(): any; - /** [Method] private Allows addition of behavior to the disable operation */ - onDisable?(): any; - /** [Method] private Allows addition of behavior to the enable operation */ - onEnable?(): any; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): any; + /** [Method] private override */ + initComponent?(): void; + /** [Method] private override */ + initValue?(): void; + /** [Method] private */ + onDisable?(): void; + /** [Method] private */ + onEnable?(): void; + /** [Method] private */ + onRender?(): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): any; + reset?(): void; /** [Method] Sets the maximum value for the slider instance * @param val Number The new maximum value */ - setMaxValue?( val?:number ): any; + setMaxValue?( val?:number ): void; /** [Method] Sets the minimum value for the slider instance * @param val Number The new minimum value */ - setMinValue?( val?:number ): any; + setMinValue?( val?:number ): void; /** [Method] Sets the read only state of this field - * @param readOnly Boolean Whether the field should be read only. + * @param readOnly Object */ - setReadOnly?( readOnly?:bool ): any; + setReadOnly?( readOnly?:any ): void; /** [Method] Programmatically sets the value of the Slider - * @param index any Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. - * @param value any The value to set the slider to. (This will be constrained within minValue and maxValue) - * @param animate any Turn on or off animation + * @param index Number/Number[] Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation */ setValue?( index?:any, value?:any, animate?:any ): any; setValue?( index?:number, value?:number, animate?:bool ): any; setValue?( index?:number[], value?:number, animate?:bool ): any; /** [Method] Synchronizes thumbs position to the proper proportion of the total component width based on the current slider value */ - syncThumbs?(): any; + syncThumbs?(): void; } } declare module Ext.slider { export interface IMultiSlider extends Ext.form.field.IBase { - /** [Config Option] (Boolean) Turn on or off animation. ... */ + /** [Config Option] (Boolean) */ animate?: bool; - /** [Config Option] (Boolean) Determines whether or not clicking on the Slider axis will change the slider. ... */ + /** [Config Option] (Boolean) */ clickToChange?: bool; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) True to disallow thumbs from overlapping one another. ... */ + /** [Config Option] (Boolean) */ constrainThumbs?: bool; - /** [Config Option] (Number/Boolean) The number of decimal places to which to round the Slider's value. ... */ + /** [Config Option] (Number/Boolean) */ decimalPrecision?: any; - /** [Config Option] (Number) How many units to change the slider when adjusting by drag and drop. ... */ + /** [Config Option] (Number) */ increment?: number; - /** [Config Option] (Number) How many units to change the Slider when adjusting with keyboard navigation. ... */ + /** [Config Option] (Number) */ keyIncrement?: number; - /** [Config Option] (Number) The maximum value for the Slider. ... */ + /** [Config Option] (Number) */ maxValue?: number; - /** [Config Option] (Number) The minimum value for the Slider. ... */ + /** [Config Option] (Number) */ minValue?: number; - /** [Config Option] (Function) A function used to display custom text for the slider tip. ... */ + /** [Config Option] (Function) */ tipText?: any; - /** [Config Option] (Object/Boolean) True to use an Ext.slider.Tip to display tips for the value. ... */ + /** [Config Option] (Object/Boolean) */ useTips?: any; - /** [Config Option] (Number) A value with which to initialize the slider. ... */ + /** [Config Option] (Number) */ value?: number; - /** [Config Option] (Number[]) Array of Number values with which to initalize the slider. ... */ + /** [Config Option] (Number[]) */ values?: number[]; - /** [Config Option] (Boolean) Orient the Slider vertically rather than horizontally. ... */ + /** [Config Option] (Boolean) */ vertical?: bool; - /** [Config Option] (Boolean) Set to true to calculate snap points based on increments from zero as opposed to from this Slider's minValue. ... */ + /** [Config Option] (Boolean) */ zeroBasedSnapping?: bool; - /** [Property] (Boolean) True while the thumb is in a drag operation ... */ + /** [Property] (Boolean) */ dragging?: bool; /** [Property] (Array) */ thumbs?: any[]; @@ -25518,9 +32726,9 @@ declare module Ext.slider { * @param value Number The initial value to set on the thumb. */ addThumb?( value?:number ): any; - /** [Method] private Invoked before the Component is destroyed */ - beforeDestroy?(): any; - /** [Method] private override Creates and returns the data object to be used when rendering the fieldSubTpl */ + /** [Method] private */ + beforeDestroy?(): void; + /** [Method] private override */ getSubTplData?(): any; /** [Method] Returns the value that would be included in a standard form submit for this field */ getSubmitValue?(): any; @@ -25530,43 +32738,40 @@ declare module Ext.slider { getValue?( index?:number ): any; /** [Method] Returns an array of values one for the location of each thumb */ getValues?(): any; - /** [Method] private override The initComponent template method is an important initialization step for a Component */ - initComponent?(): any; - /** [Method] private override Initializes the field s value based on the initial config */ - initValue?(): any; - /** [Method] private Allows addition of behavior to the disable operation */ - onDisable?(): any; - /** [Method] private Allows addition of behavior to the enable operation */ - onEnable?(): any; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): any; + /** [Method] private override */ + initComponent?(): void; + /** [Method] private override */ + initValue?(): void; + /** [Method] private */ + onDisable?(): void; + /** [Method] private */ + onEnable?(): void; + /** [Method] private */ + onRender?(): void; /** [Method] Resets the current field value to the originally loaded value and clears any validation messages */ - reset?(): any; + reset?(): void; /** [Method] Sets the maximum value for the slider instance * @param val Number The new maximum value */ - setMaxValue?( val?:number ): any; + setMaxValue?( val?:number ): void; /** [Method] Sets the minimum value for the slider instance * @param val Number The new minimum value */ - setMinValue?( val?:number ): any; + setMinValue?( val?:number ): void; /** [Method] Sets the read only state of this field - * @param readOnly Boolean Whether the field should be read only. + * @param readOnly Object */ - setReadOnly?( readOnly?:bool ): any; + setReadOnly?( readOnly?:any ): void; /** [Method] Programmatically sets the value of the Slider - * @param index any Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. - * @param value any The value to set the slider to. (This will be constrained within minValue and maxValue) - * @param animate any Turn on or off animation + * @param index Number/Number[] Index of the thumb to move. Alternatively, it can be an array of values to set for each thumb in the slider. + * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) + * @param animate Boolean Turn on or off animation */ setValue?( index?:any, value?:any, animate?:any ): any; setValue?( index?:number, value?:number, animate?:bool ): any; setValue?( index?:number[], value?:number, animate?:bool ): any; /** [Method] Synchronizes thumbs position to the proper proportion of the total component width based on the current slider value */ - syncThumbs?(): any; + syncThumbs?(): void; } } declare module Ext.slider { @@ -25577,7 +32782,7 @@ declare module Ext.slider { * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) * @param animate Boolean Turn on or off animation */ - setValue?( value?:number, animate?:bool ): any; + setValue?( value?:number, animate?:bool ): void; } } declare module Ext { @@ -25588,7 +32793,7 @@ declare module Ext { * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) * @param animate Boolean Turn on or off animation */ - setValue?( value?:number, animate?:bool ): any; + setValue?( value?:number, animate?:bool ): void; } } declare module Ext.form { @@ -25599,7 +32804,7 @@ declare module Ext.form { * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) * @param animate Boolean Turn on or off animation */ - setValue?( value?:number, animate?:bool ): any; + setValue?( value?:number, animate?:bool ): void; } } declare module Ext.slider { @@ -25610,7 +32815,7 @@ declare module Ext.slider { * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) * @param animate Boolean Turn on or off animation */ - setValue?( value?:number, animate?:bool ): any; + setValue?( value?:number, animate?:bool ): void; } } declare module Ext.slider { @@ -25621,12 +32826,12 @@ declare module Ext.slider { * @param value Number The value to set the slider to. (This will be constrained within minValue and maxValue) * @param animate Boolean Turn on or off animation */ - setValue?( value?:number, animate?:bool ): any; + setValue?( value?:number, animate?:bool ): void; } } declare module Ext.slider { export interface IThumb extends Ext.IBase { - /** [Config Option] (Boolean) True to constrain the thumb so that it cannot overlap its siblings ... */ + /** [Config Option] (Boolean) */ constrain?: bool; /** [Config Option] (Ext.slider.MultiSlider) */ slider?: Ext.slider.IMultiSlider; @@ -25642,60 +32847,73 @@ declare module Ext.slider { } declare module Ext.slider { export interface ITip extends Ext.tip.ITip { - /** [Config Option] (String) Alignment configuration for the tip to the slider. ... */ + /** [Config Option] (String) */ align?: string; - /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Array) Offsets for aligning the tip to the slider. ... */ + /** [Config Option] (Array) */ offsets?: any[]; - /** [Config Option] (String) Sets the position for where the tip will be displayed related to the thumb. ... */ + /** [Config Option] (String) */ position?: string; /** [Method] Used to create the text that appears in the Tip s body - * @param thumb Ext.slider.IThumb The Thumb that the Tip is attached to + * @param thumb Ext.slider.Thumb The Thumb that the Tip is attached to */ getText?( thumb?:Ext.slider.IThumb ): string; } } declare module Ext.state { export interface ICookieProvider extends Ext.state.IProvider { - /** [Config Option] (String) The domain to save the cookie for. ... */ + /** [Config Option] (String) */ domain?: string; - /** [Config Option] (Date) The cookie expiration date. ... */ + /** [Config Option] (Date) */ expires?: any; - /** [Config Option] (String) The path for which the cookie is active. ... */ + /** [Config Option] (String) */ path?: string; - /** [Config Option] (Boolean) True if the site is using SSL ... */ + /** [Config Option] (Boolean) */ secure?: bool; - /** [Method] private Clears a value from the state - * @param name String The key name + /** [Method] private + * @param name Object */ - clear?( name?:string ): void; - /** [Method] private Sets the value for a key - * @param name String The key name - * @param value Object The value to set + clear?( name?:any ): void; + /** [Method] private + * @param name Object + * @param value Object */ - set?( name?:string, value?:any ): void; + set?( name?:any, value?:any ): void; } } declare module Ext.state { export interface ILocalStorageProvider extends Ext.state.IProvider { - /** [Method] private Clears a value from the state - * @param name String The key name + /** [Method] private + * @param name Object */ - clear?( name?:string ): void; + clear?( name?:any ): void; /** [Method] Sets the value for a key - * @param name String The key name - * @param value Object The value to set + * @param name Object + * @param value Object */ - set?( name?:string, value?:any ): void; + set?( name?:any, value?:any ): void; } } declare module Ext.state { export interface IManager extends Ext.IBase { } export class Manager { - /** [Method] */ - constructor(); + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Clears a value from the state * @param name String The key name */ @@ -25705,40 +32923,73 @@ declare module Ext.state { * @param defaultValue Object The default value to return if the key lookup does not match */ static get( name?:string, defaultValue?:any ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Gets the currently configured state provider */ static getProvider(): Ext.state.IProvider; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Sets the value for a key * @param name String The key name * @param value Object The state data */ static set( name?:string, value?:any ): void; /** [Method] Configures the default state provider for your application - * @param stateProvider Ext.state.IProvider The state provider to set + * @param stateProvider Ext.state.Provider The state provider to set */ static setProvider( stateProvider?:Ext.state.IProvider ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.state { export interface IProvider extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (String) A string to prefix to items stored in the underlying state store. ... */ + /** [Config Option] (String) */ prefix?: string; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -25756,8 +33007,9 @@ declare module Ext.state { */ decodeValue?( value?:string ): any; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Encodes a value including type information @@ -25773,7 +33025,7 @@ declare module Ext.state { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the current value for a key * @param name String The key name * @param defaultValue Object A default value to return if the key's value is not found @@ -25784,25 +33036,26 @@ declare module Ext.state { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -25821,11 +33074,12 @@ declare module Ext.state { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -25857,38 +33111,39 @@ declare module Ext.state { } declare module Ext.state { export interface IStateful extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Number) A buffer to be applied if many state events are fired within a short period. ... */ + /** [Config Option] (Number) */ saveDelay?: number; - /** [Config Option] (String[]) An array of events that, when fired, should trigger this object to save its state. ... */ + /** [Config Option] (String[]) */ stateEvents?: string[]; - /** [Config Option] (String) The unique id for this object to use for state management purposes. ... */ + /** [Config Option] (String) */ stateId?: string; - /** [Config Option] (Boolean) A flag which causes the object to attempt to restore the state of internal properties from a saved state on startup. ... */ + /** [Config Option] (Boolean) */ stateful?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Add events that will trigger the state to be saved - * @param events String The event name or an array of event names. + * @param events String/String[] The event name or an array of event names. */ + addStateEvents?( events?:any ): any; addStateEvents?( events?:string ): void; addStateEvents?( events?:string[] ): void; /** [Method] Applies the state to the object @@ -25902,8 +33157,9 @@ declare module Ext.state { /** [Method] Destroys this stateful object */ destroy?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -25915,7 +33171,7 @@ declare module Ext.state { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Gets the current state of the object */ getState?(): any; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -25923,25 +33179,26 @@ declare module Ext.state { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -25960,11 +33217,12 @@ declare module Ext.state { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -25980,8 +33238,8 @@ declare module Ext.state { */ savePropToState?( propName?:string, state?:any, stateName?:string ): bool; /** [Method] Gathers additional named properties of the instance and adds their current values to the passed state object - * @param propNames any The name (or array of names) of the property to save. - * @param state any The state object in to which to save the property values. + * @param propNames String/String[] The name (or array of names) of the property to save. + * @param state Object The state object in to which to save the property values. */ savePropsToState?( propNames?:any, state?:any ): any; savePropsToState?( propNames?:string, state?:any ): any; @@ -26074,8 +33332,9 @@ declare module Ext { /** [Method] Resets the set of character entity definitions used by htmlEncode and htmlDecode back to the default state */ static resetCharacterEntities(): void; /** [Method] Splits a string of space separated words into an array trimming as needed - * @param words String + * @param words String/Array */ + static splitWords( words?:any ): any; static splitWords( words?:string ): void; static splitWords( words?:any[] ): void; /** [Method] Checks if a string starts with a substring @@ -26106,97 +33365,76 @@ declare module Ext { } } declare module Ext { - export interface Isupports { + export interface ISupports { } - export class supports { + export class Supports { } } declare module Ext.tab { export interface IBar extends Ext.panel.IHeader { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number) The maximum width for a tab in this tab Bar. ... */ + /** [Config Option] (Number) */ maxTabWidth?: number; - /** [Config Option] (Number) The minimum width for a tab in this tab Bar. ... */ + /** [Config Option] (Number) */ minTabWidth?: number; - /** [Config Option] (Boolean) True to not show the full background on the tabbar ... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Tab Bar, or subclass thereof. ... */ + /** [Property] (Boolean) */ isTabBar?: bool; /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. + * @param width Object */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; - /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components - * @param layout Ext.layout.container.IContainer - */ - afterLayout?( layout?:Ext.layout.container.IContainer ): void; + afterComponentLayout?( width?:any ): void; + /** [Method] Invoked after the Container has laid out and rendered if necessary its child Components */ + afterLayout?(): void; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Returns the layout instance currently associated with this Container */ getLayout?(): Ext.layout.container.IContainer; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Set up the tools lt tool type gt link in the owning Panel - * @param component Object - * @param index Object - */ - onAdd?( component?:any, index?:any ): void; /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent - * @param autoDestroy Boolean + * @param tab Object */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + onRemove?( tab?:any ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; } } declare module Ext.tab { export interface IPanel extends Ext.panel.IPanel { /** [Config Option] (String/Number) */ activeItem?: any; - /** [Config Option] (String/Number/Ext.Component) The tab to activate initially. ... */ + /** [Config Option] (String/Number/Ext.Component) */ activeTab?: any; - /** [Config Option] (Boolean) True by default to defer the rendering of child items to the browsers DOM until a tab is activated. ... */ + /** [Config Option] (Boolean) */ deferredRender?: bool; - /** [Config Option] (String) The class added to each child item of this TabPanel. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Ext.enums.Layout/Object) Optional configuration object for the internal card layout. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; /** [Config Option] (Number) */ maxTabWidth?: number; /** [Config Option] (Number) */ minTabWidth?: number; - /** [Config Option] (Boolean) True to not show the full background on the TabBar. ... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Boolean) True to instruct each Panel added to the TabContainer to not render its header element. ... */ + /** [Config Option] (Boolean) */ removePanelHeader?: bool; - /** [Config Option] (Object) Optional configuration object for the internal Ext.tab.Bar. ... */ + /** [Config Option] (Object) */ tabBar?: any; - /** [Config Option] ("top"/"bottom"/"left"/"right") The position where the tab strip should be rendered. ... */ + /** [Config Option] ("top"/"bottom"/"left"/"right") */ tabPosition?: any; /** [Method] Returns the item that is currently active inside this TabPanel */ getActiveTab?(): Ext.IComponent; /** [Method] Returns the Ext tab Bar currently used in this TabPanel */ getTabBar?(): Ext.tab.IBar; - /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Makes sure we have a Tab for each item added to the TabPanel * @param item Object * @param index Object */ onAdd?( item?:any, index?:any ): void; /** [Method] Makes the given card active - * @param card any The card to make active. Either an ID, index or the component itself. + * @param card String/Number/Ext.Component The card to make active. Either an ID, index or the component itself. */ setActiveTab?( card?:any ): any; setActiveTab?( card?:string ): Ext.IComponent; @@ -26208,39 +33446,37 @@ declare module Ext { export interface ITabPanel extends Ext.panel.IPanel { /** [Config Option] (String/Number) */ activeItem?: any; - /** [Config Option] (String/Number/Ext.Component) The tab to activate initially. ... */ + /** [Config Option] (String/Number/Ext.Component) */ activeTab?: any; - /** [Config Option] (Boolean) True by default to defer the rendering of child items to the browsers DOM until a tab is activated. ... */ + /** [Config Option] (Boolean) */ deferredRender?: bool; - /** [Config Option] (String) The class added to each child item of this TabPanel. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Ext.enums.Layout/Object) Optional configuration object for the internal card layout. ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; /** [Config Option] (Number) */ maxTabWidth?: number; /** [Config Option] (Number) */ minTabWidth?: number; - /** [Config Option] (Boolean) True to not show the full background on the TabBar. ... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Boolean) True to instruct each Panel added to the TabContainer to not render its header element. ... */ + /** [Config Option] (Boolean) */ removePanelHeader?: bool; - /** [Config Option] (Object) Optional configuration object for the internal Ext.tab.Bar. ... */ + /** [Config Option] (Object) */ tabBar?: any; - /** [Config Option] ("top"/"bottom"/"left"/"right") The position where the tab strip should be rendered. ... */ + /** [Config Option] ("top"/"bottom"/"left"/"right") */ tabPosition?: any; /** [Method] Returns the item that is currently active inside this TabPanel */ getActiveTab?(): Ext.IComponent; /** [Method] Returns the Ext tab Bar currently used in this TabPanel */ getTabBar?(): Ext.tab.IBar; - /** [Method] inherit docs The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Makes sure we have a Tab for each item added to the TabPanel * @param item Object * @param index Object */ onAdd?( item?:any, index?:any ): void; /** [Method] Makes the given card active - * @param card any The card to make active. Either an ID, index or the component itself. + * @param card String/Number/Ext.Component The card to make active. Either an ID, index or the component itself. */ setActiveTab?( card?:any ): any; setActiveTab?( card?:string ): Ext.IComponent; @@ -26250,45 +33486,38 @@ declare module Ext { } declare module Ext.tab { export interface ITab extends Ext.button.IButton { - /** [Config Option] (String) The CSS class to be applied to a Tab when it is active. ... */ + /** [Config Option] (String) */ activeCls?: string; - /** [Config Option] (String) The base CSS class to add to all buttons. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to make the Tab start closable (the close icon will be visible). ... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (String) The CSS class which is added to the tab when it is closable ... */ + /** [Config Option] (String) */ closableCls?: string; - /** [Config Option] (String) The accessible text label for the close button link; only used when closable = true. ... */ + /** [Config Option] (String) */ closeText?: string; - /** [Config Option] (String) The CSS class to be applied to a Tab when it is disabled. ... */ + /** [Config Option] (String) */ disabledCls?: string; - /** [Config Option] ("small"/"medium"/"large") The size of the Button. ... */ + /** [Config Option] ("small"/"medium"/"large") */ scale?: any; - /** [Property] (Boolean) Indicates that this tab is currently active. ... */ + /** [Property] (Boolean) */ active?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Tab, or subclass thereof. ... */ + /** [Property] (Boolean) */ isTab?: bool; - /** [Method] inherit docs Disable the component - * @param silent Boolean Passing true will suppress the disable event from being fired. + /** [Method] inherit docs + * @param silent Object */ - disable?( silent?:bool ): void; - /** [Method] inherit docs Enable the component - * @param silent Boolean Passing true will suppress the enable event from being fired. + disable?( silent?:any ): void; + /** [Method] inherit docs + * @param silent Object */ - enable?( silent?:bool ): void; + enable?( silent?:any ): void; /** [Method] This method returns an object which provides substitution parameters for the XTemplate used to create this Button s D */ getTemplateArgs?(): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] inherit docs */ initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; /** [Method] Sets this tab s attached card - * @param card Ext.IComponent The card to set + * @param card Ext.Component The card to set */ setCard?( card?:Ext.IComponent ): void; /** [Method] Sets the tab as either closable or not @@ -26299,107 +33528,107 @@ declare module Ext.tab { } declare module Ext { export interface ITemplate extends Ext.IBase { - /** [Config Option] (Boolean) True to immediately compile the template. ... */ + /** [Config Option] (Boolean) */ compiled?: bool; - /** [Config Option] (Boolean) True to disable format functions in the template. ... */ + /** [Config Option] (Boolean) */ disableFormats?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Template, or subclass thereof. ... */ + /** [Property] (Boolean) */ isTemplate?: bool; /** [Method] Applies the supplied values to the template and appends the new node s to the specified el - * @param el any The context element - * @param values any The template values. See applyTemplate for details. - * @param returnElement any true to return an Ext.Element. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. + * @param returnElement Boolean true to return an Ext.Element. */ append?( el?:any, values?:any, returnElement?:any ): any; append?( el?:string, values?:any, returnElement?:bool ): HTMLElement; append?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; append?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; /** [Method] Applies the supplied values to the template and appends the new node s to the specified el - * @param el String The context element - * @param values any The template values. See applyTemplate for details. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. * @param returnElement Boolean true to return an Ext.Element. */ append?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; append?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; append?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; /** [Method] Returns an HTML fragment of this template with the specified values applied - * @param values any The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); + * @param values Object/Array The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); */ apply?( values?:any ): string; /** [Method] Appends the result of this template to the provided output array - * @param values any The template values. See apply. + * @param values Object/Array The template values. See apply. * @param out Array The array to which output is pushed. */ applyOut?( values?:any, out?:any[] ): any[]; /** [Method] Alias for apply - * @param values any The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); + * @param values Object/Array The template values. Can be an array if your params are numeric: var tpl = new Ext.Template('Name: {0}, Age: {1}'); tpl.apply(['John', 25]); or an object: var tpl = new Ext.Template('Name: {name}, Age: {age}'); tpl.apply({name: 'John', age: 25}); */ applyTemplate?( values?:any ): string; /** [Method] Compiles the template into an internal function eliminating the RegEx overhead */ compile?(): Ext.ITemplate; /** [Method] Applies the supplied values to the template and inserts the new node s after el - * @param el any The context element - * @param values any The template values. See applyTemplate for details. - * @param returnElement any true to return a Ext.Element. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. */ insertAfter?( el?:any, values?:any, returnElement?:any ): any; insertAfter?( el?:string, values?:any, returnElement?:bool ): HTMLElement; insertAfter?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; insertAfter?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; /** [Method] Applies the supplied values to the template and inserts the new node s after el - * @param el String The context element - * @param values any The template values. See applyTemplate for details. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. * @param returnElement Boolean true to return a Ext.Element. */ insertAfter?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; insertAfter?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; insertAfter?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; /** [Method] Applies the supplied values to the template and inserts the new node s before el - * @param el any The context element - * @param values any The template values. See applyTemplate for details. - * @param returnElement any true to return a Ext.Element. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. */ insertBefore?( el?:any, values?:any, returnElement?:any ): any; insertBefore?( el?:string, values?:any, returnElement?:bool ): HTMLElement; insertBefore?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; insertBefore?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; /** [Method] Applies the supplied values to the template and inserts the new node s before el - * @param el String The context element - * @param values any The template values. See applyTemplate for details. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. * @param returnElement Boolean true to return a Ext.Element. */ insertBefore?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; insertBefore?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; insertBefore?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; /** [Method] Applies the supplied values to the template and inserts the new node s as the first child of el - * @param el any The context element - * @param values any The template values. See applyTemplate for details. - * @param returnElement any true to return a Ext.Element. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. */ insertFirst?( el?:any, values?:any, returnElement?:any ): any; insertFirst?( el?:string, values?:any, returnElement?:bool ): HTMLElement; insertFirst?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; insertFirst?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; /** [Method] Applies the supplied values to the template and inserts the new node s as the first child of el - * @param el String The context element - * @param values any The template values. See applyTemplate for details. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. * @param returnElement Boolean true to return a Ext.Element. */ insertFirst?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; insertFirst?( el?:HTMLElement, values?:any, returnElement?:bool ): Ext.IElement; insertFirst?( el?:Ext.IElement, values?:any, returnElement?:bool ): Ext.IElement; /** [Method] Applies the supplied values to the template and overwrites the content of el with the new node s - * @param el any The context element - * @param values any The template values. See applyTemplate for details. - * @param returnElement any true to return a Ext.Element. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. + * @param returnElement Boolean true to return a Ext.Element. */ overwrite?( el?:any, values?:any, returnElement?:any ): any; overwrite?( el?:string, values?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:HTMLElement, values?:any, returnElement?:bool ): HTMLElement; overwrite?( el?:Ext.IElement, values?:any, returnElement?:bool ): HTMLElement; /** [Method] Applies the supplied values to the template and overwrites the content of el with the new node s - * @param el String The context element - * @param values any The template values. See applyTemplate for details. + * @param el String/HTMLElement/Ext.Element The context element + * @param values Object/Array The template values. See applyTemplate for details. * @param returnElement Boolean true to return a Ext.Element. */ overwrite?( el?:string, values?:any, returnElement?:bool ): Ext.IElement; @@ -26410,26 +33639,32 @@ declare module Ext { * @param compile Boolean True to compile the template. */ set?( html?:string, compile?:bool ): Ext.ITemplate; + /** [Method] Creates a template from the passed element s value display none textarea preferred or innerHTML + * @param el String/HTMLElement A DOM element or its id + * @param config Object Config object + */ + from?( el?:any, config?:any ): any; + from?( el?:string, config?:any ): Ext.ITemplate; + from?( el?:HTMLElement, config?:any ): Ext.ITemplate; } } declare module Ext.tip { export interface IQuickTip extends Ext.tip.IToolTip { - /** [Config Option] (Boolean) true to automatically use the element's DOM title value if available. ... */ + /** [Config Option] (Boolean) */ interceptTitles?: bool; - /** [Config Option] (String/HTMLElement/Ext.Element) The target HTMLElement, Ext.Element or id to associate with this Quicktip. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ target?: any; - /** [Config Option] (String) Force creation of header Component The title text to be used to display in the panel header. ... */ + /** [Config Option] (String) */ title?: string; /** [Method] Hides a visible tip or cancels an impending show for a particular element - * @param el String The element that is the target of the tip or ID of the element. + * @param el String/HTMLElement/Ext.Element The element that is the target of the tip or ID of the element. */ + cancelShow?( el?:any ): any; cancelShow?( el?:string ): void; cancelShow?( el?:HTMLElement ): void; cancelShow?( el?:Ext.IElement ): void; /** [Method] Hides this tooltip if visible */ hide?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Configures a new quick tip instance and assigns it to a target element * @param config Object The config object with the following properties: */ @@ -26437,8 +33672,9 @@ declare module Ext.tip { /** [Method] Shows this tooltip at the current event target XY position */ show?(): void; /** [Method] Removes this quick tip from its element and destroys it - * @param el String The element from which the quick tip is to be removed or ID of the element. + * @param el String/HTMLElement/Ext.Element The element from which the quick tip is to be removed or ID of the element. */ + unregister?( el?:any ): any; unregister?( el?:string ): void; unregister?( el?:HTMLElement ): void; unregister?( el?:Ext.IElement ): void; @@ -26446,22 +33682,21 @@ declare module Ext.tip { } declare module Ext { export interface IQuickTip extends Ext.tip.IToolTip { - /** [Config Option] (Boolean) true to automatically use the element's DOM title value if available. ... */ + /** [Config Option] (Boolean) */ interceptTitles?: bool; - /** [Config Option] (String/HTMLElement/Ext.Element) The target HTMLElement, Ext.Element or id to associate with this Quicktip. ... */ + /** [Config Option] (String/HTMLElement/Ext.Element) */ target?: any; - /** [Config Option] (String) Force creation of header Component The title text to be used to display in the panel header. ... */ + /** [Config Option] (String) */ title?: string; /** [Method] Hides a visible tip or cancels an impending show for a particular element - * @param el String The element that is the target of the tip or ID of the element. + * @param el String/HTMLElement/Ext.Element The element that is the target of the tip or ID of the element. */ + cancelShow?( el?:any ): any; cancelShow?( el?:string ): void; cancelShow?( el?:HTMLElement ): void; cancelShow?( el?:Ext.IElement ): void; /** [Method] Hides this tooltip if visible */ hide?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Configures a new quick tip instance and assigns it to a target element * @param config Object The config object with the following properties: */ @@ -26469,8 +33704,9 @@ declare module Ext { /** [Method] Shows this tooltip at the current event target XY position */ show?(): void; /** [Method] Removes this quick tip from its element and destroys it - * @param el String The element from which the quick tip is to be removed or ID of the element. + * @param el String/HTMLElement/Ext.Element The element from which the quick tip is to be removed or ID of the element. */ + unregister?( el?:any ): any; unregister?( el?:string ): void; unregister?( el?:HTMLElement ): void; unregister?( el?:Ext.IElement ): void; @@ -26480,12 +33716,31 @@ declare module Ext.tip { export interface IQuickTipManager extends Ext.IBase { } export class QuickTipManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Destroys the QuickTips instance */ static destroy(): void; /** [Method] Disables quick tips globally */ static disable(): void; /** [Method] Enables quick tips globally */ static enable(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Gets the single QuickTip instance used to show tips from all registered elements */ static getQuickTip(): Ext.tip.IQuickTip; /** [Method] Initializes the global QuickTips instance and prepare any quick tips @@ -26493,151 +33748,234 @@ declare module Ext.tip { * @param config Object config object for the created QuickTip. By default, the QuickTip class is instantiated, but this can be changed by supplying an xtype property or a className property in this object. All other properties on this object are configuration for the created component. */ static init( autoRender?:bool, config?:any ): void; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Returns true if quick tips are enabled else false */ static isEnabled(): bool; /** [Method] Configures a new quick tip instance and assigns it to a target element * @param config Object The config object */ static register( config?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Alias of register * @param config Object The config object */ static tips( config?:any ): void; /** [Method] Removes any registered quick tip from the target element and destroys it - * @param el String The element from which the quick tip is to be removed or ID of the element. + * @param el String/HTMLElement/Ext.Element The element from which the quick tip is to be removed or ID of the element. */ + static unregister( el?:any ): any; static unregister( el?:string ): void; static unregister( el?:HTMLElement ): void; static unregister( el?:Ext.IElement ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; + } +} +declare module Ext { + export interface IQuickTips extends Ext.IBase { + } + export class QuickTips { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Destroys the QuickTips instance */ + static destroy(): void; + /** [Method] Disables quick tips globally */ + static disable(): void; + /** [Method] Enables quick tips globally */ + static enable(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Gets the single QuickTip instance used to show tips from all registered elements */ + static getQuickTip(): Ext.tip.IQuickTip; + /** [Method] Initializes the global QuickTips instance and prepare any quick tips + * @param autoRender Boolean True to render the QuickTips container immediately to preload images. + * @param config Object config object for the created QuickTip. By default, the QuickTip class is instantiated, but this can be changed by supplying an xtype property or a className property in this object. All other properties on this object are configuration for the created component. + */ + static init( autoRender?:bool, config?:any ): void; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Returns true if quick tips are enabled else false */ + static isEnabled(): bool; + /** [Method] Configures a new quick tip instance and assigns it to a target element + * @param config Object The config object + */ + static register( config?:any ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Alias of register + * @param config Object The config object + */ + static tips( config?:any ): void; + /** [Method] Removes any registered quick tip from the target element and destroys it + * @param el String/HTMLElement/Ext.Element The element from which the quick tip is to be removed or ID of the element. + */ + static unregister( el?:any ): any; + static unregister( el?:string ): void; + static unregister( el?:HTMLElement ): void; + static unregister( el?:Ext.IElement ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.tip { export interface ITip extends Ext.panel.IPanel { - /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) private panel overrides This config is intended mainly for non-floating Components which may or may not be shown. ... */ + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) */ autoRender?: any; - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to render a close tool button into the tooltip header. ... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (String) The action to take when the close header tool is clicked: destroy : remove the window from the DOM and destroy it a... */ + /** [Config Option] (String) */ closeAction?: string; - /** [Config Option] (Boolean) If true, then the tooltip will be automatically constrained to stay within the browser viewport. ... */ + /** [Config Option] (Boolean) */ constrainPosition?: bool; - /** [Config Option] (String) Experimental. ... */ + /** [Config Option] (String) */ defaultAlign?: string; - /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + /** [Config Option] (Boolean) */ floating?: bool; - /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + /** [Config Option] (Boolean) */ focusOnToFront?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + /** [Config Option] (Boolean) */ frameHeader?: bool; - /** [Config Option] (Boolean) true to hide the component. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (Number) The maximum width of the tip in pixels. ... */ + /** [Config Option] (Number) */ maxWidth?: number; - /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean/String) true or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + /** [Config Option] (Boolean/String) */ shadow?: any; - /** [Config Option] (Number) Width in pixels of the tip. ... */ + /** [Config Option] (Number) */ width?: number; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; } } declare module Ext { export interface ITip extends Ext.panel.IPanel { - /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) private panel overrides This config is intended mainly for non-floating Components which may or may not be shown. ... */ + /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) */ autoRender?: any; - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to render a close tool button into the tooltip header. ... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (String) The action to take when the close header tool is clicked: destroy : remove the window from the DOM and destroy it a... */ + /** [Config Option] (String) */ closeAction?: string; - /** [Config Option] (Boolean) If true, then the tooltip will be automatically constrained to stay within the browser viewport. ... */ + /** [Config Option] (Boolean) */ constrainPosition?: bool; - /** [Config Option] (String) Experimental. ... */ + /** [Config Option] (String) */ defaultAlign?: string; - /** [Config Option] (Boolean) Specify as true to float the Component outside of the document flow using CSS absolute positioning. ... */ + /** [Config Option] (Boolean) */ floating?: bool; - /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + /** [Config Option] (Boolean) */ focusOnToFront?: bool; - /** [Config Option] (Boolean) True to apply a frame to the panel panels header (if 'frame' is true). ... */ + /** [Config Option] (Boolean) */ frameHeader?: bool; - /** [Config Option] (Boolean) true to hide the component. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (Number) The maximum width of the tip in pixels. ... */ + /** [Config Option] (Number) */ maxWidth?: number; - /** [Config Option] (Number) The minimum width of the tip in pixels. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean/String) true or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow. ... */ + /** [Config Option] (Boolean/String) */ shadow?: any; - /** [Config Option] (Number) Width in pixels of the tip. ... */ + /** [Config Option] (Number) */ width?: number; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; } } declare module Ext.tip { export interface IToolTip extends Ext.tip.ITip { - /** [Config Option] (String) If specified, indicates that the tip should be anchored to a particular side of the target element or mouse pointer (... */ + /** [Config Option] (String) */ anchor?: string; - /** [Config Option] (Number) A numeric pixel value used to offset the default position of the anchor arrow. ... */ + /** [Config Option] (Number) */ anchorOffset?: number; - /** [Config Option] (Boolean) True to anchor the tooltip to the target element, false to anchor it relative to the mouse coordinates. ... */ + /** [Config Option] (Boolean) */ anchorToTarget?: bool; - /** [Config Option] (Boolean) True to automatically hide the tooltip after the mouse exits the target element or after the dismissDelay has expired... */ + /** [Config Option] (Boolean) */ autoHide?: bool; - /** [Config Option] (String) A DomQuery selector which allows selection of individual elements within the target element to trigger showing and hi... */ + /** [Config Option] (String) */ delegate?: string; - /** [Config Option] (Number) Delay in milliseconds before the tooltip automatically hides. ... */ + /** [Config Option] (Number) */ dismissDelay?: number; - /** [Config Option] (Number) Delay in milliseconds after the mouse exits the target element but before the tooltip actually hides. ... */ + /** [Config Option] (Number) */ hideDelay?: number; - /** [Config Option] (Number[]) An XY offset from the mouse position where the tooltip should be shown. ... */ + /** [Config Option] (Number[]) */ mouseOffset?: number[]; - /** [Config Option] (Number) Delay in milliseconds before the tooltip displays after the mouse enters the target element. ... */ + /** [Config Option] (Number) */ showDelay?: number; /** [Config Option] (HTMLElement/Ext.Element/String) */ target?: any; - /** [Config Option] (Boolean) True to have the tooltip follow the mouse as it moves over the target element. ... */ + /** [Config Option] (Boolean) */ trackMouse?: bool; - /** [Property] (HTMLElement) When a ToolTip is configured with the delegate option to cause selected child elements of the target Element to each ... */ + /** [Property] (HTMLElement) */ triggerElement?: HTMLElement; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Hides this tooltip if visible */ hide?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; /** [Method] Binds this ToolTip to the specified element - * @param t String The Element, HtmlElement, or ID of an element to bind to + * @param t String/HTMLElement/Ext.Element The Element, HtmlElement, or ID of an element to bind to */ + setTarget?( t?:any ): any; setTarget?( t?:string ): void; setTarget?( t?:HTMLElement ): void; setTarget?( t?:Ext.IElement ): void; @@ -26647,63 +33985,36 @@ declare module Ext.tip { } declare module Ext { export interface IToolTip extends Ext.tip.ITip { - /** [Config Option] (String) If specified, indicates that the tip should be anchored to a particular side of the target element or mouse pointer (... */ + /** [Config Option] (String) */ anchor?: string; - /** [Config Option] (Number) A numeric pixel value used to offset the default position of the anchor arrow. ... */ + /** [Config Option] (Number) */ anchorOffset?: number; - /** [Config Option] (Boolean) True to anchor the tooltip to the target element, false to anchor it relative to the mouse coordinates. ... */ + /** [Config Option] (Boolean) */ anchorToTarget?: bool; - /** [Config Option] (Boolean) True to automatically hide the tooltip after the mouse exits the target element or after the dismissDelay has expired... */ + /** [Config Option] (Boolean) */ autoHide?: bool; - /** [Config Option] (String) A DomQuery selector which allows selection of individual elements within the target element to trigger showing and hi... */ + /** [Config Option] (String) */ delegate?: string; - /** [Config Option] (Number) Delay in milliseconds before the tooltip automatically hides. ... */ + /** [Config Option] (Number) */ dismissDelay?: number; - /** [Config Option] (Number) Delay in milliseconds after the mouse exits the target element but before the tooltip actually hides. ... */ + /** [Config Option] (Number) */ hideDelay?: number; - /** [Config Option] (Number[]) An XY offset from the mouse position where the tooltip should be shown. ... */ + /** [Config Option] (Number[]) */ mouseOffset?: number[]; - /** [Config Option] (Number) Delay in milliseconds before the tooltip displays after the mouse enters the target element. ... */ + /** [Config Option] (Number) */ showDelay?: number; /** [Config Option] (HTMLElement/Ext.Element/String) */ target?: any; - /** [Config Option] (Boolean) True to have the tooltip follow the mouse as it moves over the target element. ... */ + /** [Config Option] (Boolean) */ trackMouse?: bool; - /** [Property] (HTMLElement) When a ToolTip is configured with the delegate option to cause selected child elements of the target Element to each ... */ + /** [Property] (HTMLElement) */ triggerElement?: HTMLElement; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; /** [Method] Hides this tooltip if visible */ hide?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; - /** [Method] Allows addition of behavior to the disable operation */ - onDisable?(): void; - /** [Method] Possibly animates down to a target element - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onHide?( animateTarget?:string, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; - onHide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; /** [Method] Binds this ToolTip to the specified element - * @param t String The Element, HtmlElement, or ID of an element to bind to + * @param t String/HTMLElement/Ext.Element The Element, HtmlElement, or ID of an element to bind to */ + setTarget?( t?:any ): any; setTarget?( t?:string ): void; setTarget?( t?:HTMLElement ): void; setTarget?( t?:Ext.IElement ): void; @@ -26713,7 +34024,7 @@ declare module Ext { } declare module Ext.toolbar { export interface IFill extends Ext.IComponent { - /** [Property] (Boolean) true in this class to identify an object as an instantiated Fill, or subclass thereof. ... */ + /** [Property] (Boolean) */ isFill?: bool; } } @@ -26721,74 +34032,62 @@ declare module Ext.toolbar { export interface IItem extends Ext.IComponent { /** [Config Option] (String) */ overflowText?: string; - /** [Method] Disable the component - * @param silent Boolean Passing true will suppress the disable event from being fired. - */ - disable?( silent?:bool ): void; - /** [Method] Enable the component - * @param silent Boolean Passing true will suppress the enable event from being fired. - */ - enable?( silent?:bool ): void; - /** [Method] Try to focus this component - * @param selectText any If applicable, true to also select the text in this component - * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). - */ - focus?( selectText?:any, delay?:any ): any; - focus?( selectText?:bool, delay?:bool ): Ext.IComponent; - focus?( selectText?:bool, delay?:number ): Ext.IComponent; + /** [Method] Disable the component */ + disable?(): void; + /** [Method] Enable the component */ + enable?(): void; + /** [Method] Try to focus this component */ + focus?(): Ext.IComponent; } } declare module Ext.toolbar { export interface IPaging extends Ext.toolbar.IToolbar,Ext.util.IBindable { - /** [Config Option] (String) Customizable piece of the default paging text. ... */ + /** [Config Option] (String) */ afterPageText?: string; - /** [Config Option] (String) The text displayed before the input item. ... */ + /** [Config Option] (String) */ beforePageText?: string; - /** [Config Option] (Boolean) true to display the displayMsg ... */ + /** [Config Option] (Boolean) */ displayInfo?: bool; - /** [Config Option] (String) The paging status message to display. ... */ + /** [Config Option] (String) */ displayMsg?: string; - /** [Config Option] (String) The message to display when no records are found. ... */ + /** [Config Option] (String) */ emptyMsg?: string; - /** [Config Option] (String) The quicktip text displayed for the first page button. ... */ + /** [Config Option] (String) */ firstText?: string; - /** [Config Option] (Number) The width in pixels of the input field used to display and change the current page number. ... */ + /** [Config Option] (Number) */ inputItemWidth?: number; - /** [Config Option] (String) The quicktip text displayed for the last page button. ... */ + /** [Config Option] (String) */ lastText?: string; - /** [Config Option] (String) The quicktip text displayed for the next page button. ... */ + /** [Config Option] (String) */ nextText?: string; - /** [Config Option] (Boolean) true to insert any configured items before the paging buttons. ... */ + /** [Config Option] (Boolean) */ prependButtons?: bool; - /** [Config Option] (String) The quicktip text displayed for the previous page button. ... */ + /** [Config Option] (String) */ prevText?: string; - /** [Config Option] (String) The quicktip text displayed for the Refresh button. ... */ + /** [Config Option] (String) */ refreshText?: string; /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; /** [Method] Binds the paging toolbar to the specified Ext data Store deprecated - * @param store Ext.data.IStore The data store to bind + * @param store Ext.data.Store The data store to bind */ bind?( store?:Ext.data.IStore ): void; /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Ext.data.AbstractStore/String The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. */ + bindStore?( store?:any ): any; bindStore?( store?:Ext.data.IAbstractStore ): void; bindStore?( store?:string ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Refresh the current page has the same effect as clicking the refresh button */ doRefresh?(): void; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Move to the first page has the same effect as clicking the first button */ moveFirst?(): void; /** [Method] Move to the last page has the same effect as clicking the last button */ @@ -26798,78 +34097,73 @@ declare module Ext.toolbar { /** [Method] Move to the previous page has the same effect as clicking the previous button */ movePrevious?(): void; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Unbinds the paging toolbar from the specified Ext data Store deprecated - * @param store Ext.data.IStore The data store to unbind + * @param store Ext.data.Store The data store to unbind */ unbind?( store?:Ext.data.IStore ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext { export interface IPagingToolbar extends Ext.toolbar.IToolbar,Ext.util.IBindable { - /** [Config Option] (String) Customizable piece of the default paging text. ... */ + /** [Config Option] (String) */ afterPageText?: string; - /** [Config Option] (String) The text displayed before the input item. ... */ + /** [Config Option] (String) */ beforePageText?: string; - /** [Config Option] (Boolean) true to display the displayMsg ... */ + /** [Config Option] (Boolean) */ displayInfo?: bool; - /** [Config Option] (String) The paging status message to display. ... */ + /** [Config Option] (String) */ displayMsg?: string; - /** [Config Option] (String) The message to display when no records are found. ... */ + /** [Config Option] (String) */ emptyMsg?: string; - /** [Config Option] (String) The quicktip text displayed for the first page button. ... */ + /** [Config Option] (String) */ firstText?: string; - /** [Config Option] (Number) The width in pixels of the input field used to display and change the current page number. ... */ + /** [Config Option] (Number) */ inputItemWidth?: number; - /** [Config Option] (String) The quicktip text displayed for the last page button. ... */ + /** [Config Option] (String) */ lastText?: string; - /** [Config Option] (String) The quicktip text displayed for the next page button. ... */ + /** [Config Option] (String) */ nextText?: string; - /** [Config Option] (Boolean) true to insert any configured items before the paging buttons. ... */ + /** [Config Option] (Boolean) */ prependButtons?: bool; - /** [Config Option] (String) The quicktip text displayed for the previous page button. ... */ + /** [Config Option] (String) */ prevText?: string; - /** [Config Option] (String) The quicktip text displayed for the Refresh button. ... */ + /** [Config Option] (String) */ refreshText?: string; /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; /** [Method] Binds the paging toolbar to the specified Ext data Store deprecated - * @param store Ext.data.IStore The data store to bind + * @param store Ext.data.Store The data store to bind */ bind?( store?:Ext.data.IStore ): void; /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Ext.data.AbstractStore/String The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. */ + bindStore?( store?:any ): any; bindStore?( store?:Ext.data.IAbstractStore ): void; bindStore?( store?:string ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Refresh the current page has the same effect as clicking the refresh button */ doRefresh?(): void; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Move to the first page has the same effect as clicking the first button */ moveFirst?(): void; /** [Method] Move to the last page has the same effect as clicking the last button */ @@ -26879,48 +34173,44 @@ declare module Ext { /** [Method] Move to the previous page has the same effect as clicking the previous button */ movePrevious?(): void; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Allows addition of behavior to the destroy operation */ - onDestroy?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Unbinds the paging toolbar from the specified Ext data Store deprecated - * @param store Ext.data.IStore The data store to unbind + * @param store Ext.data.Store The data store to unbind */ unbind?( store?:Ext.data.IStore ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.toolbar { export interface ISeparator extends Ext.toolbar.IItem { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Number/String/Boolean) Force border: true so container border is not set on this Specifies the border size for this component. ... */ - border?: any; } } declare module Ext.toolbar { export interface ISpacer extends Ext.IComponent { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; } } declare module Ext.toolbar { export interface ITextItem extends Ext.toolbar.IItem { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String) The text to be used as innerHTML (html tags are accepted). ... */ + /** [Config Option] (String) */ text?: string; /** [Method] Updates this item s text setting the text to be used as innerHTML * @param text String The text to display (html accepted). @@ -26930,153 +34220,119 @@ declare module Ext.toolbar { } declare module Ext.toolbar { export interface IToolbar extends Ext.container.IContainer { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Boolean) Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the ... */ + /** [Config Option] (Boolean) */ enableOverflow?: bool; - /** [Config Option] (Ext.enums.Layout/Object) This class assigns a default layout (layout: 'hbox'). ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (String) Configure the icon class of the overflow button. ... */ + /** [Config Option] (String) */ menuTriggerCls?: string; - /** [Config Option] (Boolean) Set to true to make the toolbar vertical. ... */ + /** [Config Option] (Boolean) */ vertical?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Toolbar, or subclass thereof. ... */ + /** [Property] (Boolean) */ isToolbar?: bool; /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t - * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + * @param args Ext.Component.../Object.../String.../HTMLElement... The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element */ add?( args?:any ): Ext.IComponent[]; /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t - * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + * @param args Ext.Component.../Object.../String.../HTMLElement... The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element */ add?( args?:any ): Ext.IComponent; /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th * @param deep Object */ getRefItems?( deep?:any ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Inserts a Component into this Container at a specified index * @param index Number The index at which the Component will be inserted. - * @param component any See add method for overview of possible values. + * @param component Ext.Component/Object/String/HTMLElement See add method for overview of possible values. */ insert?( index?:number, component?:any ): Ext.IComponent; - /** [Method] This method is invoked after a new Component has been added - * @param component Ext.IComponent - * @param position Number - */ - onAdd?( component?:Ext.IComponent, position?:number ): void; - /** [Method] This method is invoked before adding a new child Component - * @param item Ext.IComponent - */ - onBeforeAdd?( item?:Ext.IComponent ): void; - /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent - * @param autoDestroy Boolean - */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; } } declare module Ext { export interface IToolbar extends Ext.container.IContainer { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; /** [Config Option] (String) */ defaultButtonUI?: string; - /** [Config Option] (String) The default xtype of child Components to create in this Container when a child item is specified as a raw configurati... */ + /** [Config Option] (String) */ defaultType?: string; - /** [Config Option] (Boolean) Configure true to make the toolbar provide a button which activates a dropdown Menu to show items which overflow the ... */ + /** [Config Option] (Boolean) */ enableOverflow?: bool; - /** [Config Option] (Ext.enums.Layout/Object) This class assigns a default layout (layout: 'hbox'). ... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (String) Configure the icon class of the overflow button. ... */ + /** [Config Option] (String) */ menuTriggerCls?: string; - /** [Config Option] (Boolean) Set to true to make the toolbar vertical. ... */ + /** [Config Option] (Boolean) */ vertical?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Toolbar, or subclass thereof. ... */ + /** [Property] (Boolean) */ isToolbar?: bool; /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t - * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + * @param args Ext.Component.../Object.../String.../HTMLElement... The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element */ add?( args?:any ): Ext.IComponent[]; /** [Method] Adds element s to the toolbar this function takes a variable number of arguments of mixed type and adds them to t - * @param args any The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element + * @param args Ext.Component.../Object.../String.../HTMLElement... The following types of arguments are all valid: config: A valid button config object HtmlElement: Any standard HTML element Field: Any form field Item: Any subclass of Ext.toolbar.Item String: Any generic string (gets wrapped in a Ext.toolbar.TextItem). Note that there are a few special strings that are treated differently as explained next: '-': Creates a separator element ' ': Creates a spacer element '->': Creates a fill element */ add?( args?:any ): Ext.IComponent; /** [Method] Used by ComponentQuery child and down to retrieve all of the items which can potentially be considered a child of th * @param deep Object */ getRefItems?( deep?:any ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Inserts a Component into this Container at a specified index * @param index Number The index at which the Component will be inserted. - * @param component any See add method for overview of possible values. + * @param component Ext.Component/Object/String/HTMLElement See add method for overview of possible values. */ insert?( index?:number, component?:any ): Ext.IComponent; - /** [Method] This method is invoked after a new Component has been added - * @param component Ext.IComponent - * @param position Number - */ - onAdd?( component?:Ext.IComponent, position?:number ): void; - /** [Method] This method is invoked before adding a new child Component - * @param item Ext.IComponent - */ - onBeforeAdd?( item?:Ext.IComponent ): void; - /** [Method] This method is invoked after a new Component has been removed - * @param component Ext.IComponent - * @param autoDestroy Boolean - */ - onRemove?( component?:Ext.IComponent, autoDestroy?:bool ): void; } } declare module Ext.tree { export interface IColumn extends Ext.grid.column.IColumn { - /** [Config Option] (Boolean) False to prevent the user from hiding this column. ... */ + /** [Config Option] (Boolean) */ hideable?: bool; - /** [Config Option] (Boolean) If the grid is configured with enableLocking, or has columns which are configured with a locked value, this option ma... */ + /** [Config Option] (Boolean) */ lockable?: bool; - /** [Config Option] (String) A CSS class names to apply to the table cells for this column. ... */ + /** [Config Option] (String) */ tdCls?: string; - /** [Property] (Boolean) Indicates whether or not the component can be dragged. ... */ + /** [Property] (Boolean) */ draggable?: bool; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; } } declare module Ext.tree { export interface IPanel extends Ext.panel.ITable { - /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ + /** [Config Option] (Boolean) */ animate?: bool; - /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + /** [Config Option] (Boolean) */ deferRowRender?: bool; - /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ + /** [Config Option] (String) */ displayField?: string; /** [Config Option] (Boolean) */ folderSort?: bool; /** [Config Option] (Boolean) */ hideHeaders?: bool; - /** [Config Option] (Boolean) False to disable tree lines. ... */ + /** [Config Option] (Boolean) */ lines?: bool; - /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) */ root?: any; - /** [Config Option] (Boolean) False to hide the root node. ... */ + /** [Config Option] (Boolean) */ rootVisible?: bool; - /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ + /** [Config Option] (Boolean) */ rowLines?: bool; - /** [Config Option] (String) An xtype of selection model to use. ... */ + /** [Config Option] (String) */ selType?: string; - /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ + /** [Config Option] (Boolean) */ singleExpand?: bool; /** [Config Option] (Ext.data.TreeStore) */ store?: Ext.data.ITreeStore; - /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ + /** [Config Option] (Boolean) */ useArrows?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ + /** [Config Option] (String) */ viewType?: string; /** [Method] Collapse all nodes * @param callback Function A function to execute when the collapse finishes. @@ -27084,7 +34340,7 @@ declare module Ext.tree { */ collapseAll?( callback?:any, scope?:any ): void; /** [Method] Collapses a record that is loaded in the tree - * @param record Ext.data.IModel The record to collapse + * @param record Ext.data.Model The record to collapse * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. * @param callback Function The function to run after the collapse is completed * @param scope Object The scope of the callback function. @@ -27096,7 +34352,7 @@ declare module Ext.tree { */ expandAll?( callback?:any, scope?:any ): void; /** [Method] Expands a record that is loaded in the tree - * @param record Ext.data.IModel The record to expand + * @param record Ext.data.Model The record to expand * @param deep Boolean True to expand nodes all the way down the tree hierarchy. * @param callback Function The function to run after the expand is completed * @param scope Object The scope of the callback function. @@ -27114,8 +34370,6 @@ declare module Ext.tree { getChecked?(): Ext.data.INodeInterface[]; /** [Method] Returns the root node for this tree */ getRootNode?(): Ext.data.INodeInterface; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Expand the tree to the path of a particular node then select it * @param path String The path to select. The path should include a leading separator. * @param field String The field to get the data from. Defaults to the model idProperty. @@ -27125,40 +34379,120 @@ declare module Ext.tree { */ selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; /** [Method] Sets root node of this tree - * @param root any + * @param root Ext.data.Model/Ext.data.NodeInterface/Object + */ + setRootNode?( root?:any ): Ext.data.INodeInterface; + } +} +declare module Ext.tree { + export interface ITreePanel extends Ext.panel.ITable { + /** [Config Option] (Boolean) */ + animate?: bool; + /** [Config Option] (Boolean) */ + deferRowRender?: bool; + /** [Config Option] (String) */ + displayField?: string; + /** [Config Option] (Boolean) */ + folderSort?: bool; + /** [Config Option] (Boolean) */ + hideHeaders?: bool; + /** [Config Option] (Boolean) */ + lines?: bool; + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) */ + root?: any; + /** [Config Option] (Boolean) */ + rootVisible?: bool; + /** [Config Option] (Boolean) */ + rowLines?: bool; + /** [Config Option] (String) */ + selType?: string; + /** [Config Option] (Boolean) */ + singleExpand?: bool; + /** [Config Option] (Ext.data.TreeStore) */ + store?: Ext.data.ITreeStore; + /** [Config Option] (Boolean) */ + useArrows?: bool; + /** [Config Option] (String) */ + viewType?: string; + /** [Method] Collapse all nodes + * @param callback Function A function to execute when the collapse finishes. + * @param scope Object The scope of the callback function + */ + collapseAll?( callback?:any, scope?:any ): void; + /** [Method] Collapses a record that is loaded in the tree + * @param record Ext.data.Model The record to collapse + * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. + * @param callback Function The function to run after the collapse is completed + * @param scope Object The scope of the callback function. + */ + collapseNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand all nodes + * @param callback Function A function to execute when the expand finishes. + * @param scope Object The scope of the callback function + */ + expandAll?( callback?:any, scope?:any ): void; + /** [Method] Expands a record that is loaded in the tree + * @param record Ext.data.Model The record to expand + * @param deep Boolean True to expand nodes all the way down the tree hierarchy. + * @param callback Function The function to run after the expand is completed + * @param scope Object The scope of the callback function. + */ + expandNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; + /** [Method] Expand the tree to the path of a particular node + * @param path String The path to expand. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the expand finishes. The callback will be called with (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + expandPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Retrieve an array of checked records */ + getChecked?(): Ext.data.INodeInterface[]; + /** [Method] Returns the root node for this tree */ + getRootNode?(): Ext.data.INodeInterface; + /** [Method] Expand the tree to the path of a particular node then select it + * @param path String The path to select. The path should include a leading separator. + * @param field String The field to get the data from. Defaults to the model idProperty. + * @param separator String A separator to use. + * @param callback Function A function to execute when the select finishes. The callback will be called with (bSuccess, oLastNode) where bSuccess is if the select was successful and oLastNode is the last node that was expanded. + * @param scope Object The scope of the callback function + */ + selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; + /** [Method] Sets root node of this tree + * @param root Ext.data.Model/Ext.data.NodeInterface/Object */ setRootNode?( root?:any ): Ext.data.INodeInterface; } } declare module Ext { export interface ITreePanel extends Ext.panel.ITable { - /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ + /** [Config Option] (Boolean) */ animate?: bool; - /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ + /** [Config Option] (Boolean) */ deferRowRender?: bool; - /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ + /** [Config Option] (String) */ displayField?: string; /** [Config Option] (Boolean) */ folderSort?: bool; /** [Config Option] (Boolean) */ hideHeaders?: bool; - /** [Config Option] (Boolean) False to disable tree lines. ... */ + /** [Config Option] (Boolean) */ lines?: bool; - /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ + /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) */ root?: any; - /** [Config Option] (Boolean) False to hide the root node. ... */ + /** [Config Option] (Boolean) */ rootVisible?: bool; - /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ + /** [Config Option] (Boolean) */ rowLines?: bool; - /** [Config Option] (String) An xtype of selection model to use. ... */ + /** [Config Option] (String) */ selType?: string; - /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ + /** [Config Option] (Boolean) */ singleExpand?: bool; /** [Config Option] (Ext.data.TreeStore) */ store?: Ext.data.ITreeStore; - /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ + /** [Config Option] (Boolean) */ useArrows?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ + /** [Config Option] (String) */ viewType?: string; /** [Method] Collapse all nodes * @param callback Function A function to execute when the collapse finishes. @@ -27166,7 +34500,7 @@ declare module Ext { */ collapseAll?( callback?:any, scope?:any ): void; /** [Method] Collapses a record that is loaded in the tree - * @param record Ext.data.IModel The record to collapse + * @param record Ext.data.Model The record to collapse * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. * @param callback Function The function to run after the collapse is completed * @param scope Object The scope of the callback function. @@ -27178,7 +34512,7 @@ declare module Ext { */ expandAll?( callback?:any, scope?:any ): void; /** [Method] Expands a record that is loaded in the tree - * @param record Ext.data.IModel The record to expand + * @param record Ext.data.Model The record to expand * @param deep Boolean True to expand nodes all the way down the tree hierarchy. * @param callback Function The function to run after the expand is completed * @param scope Object The scope of the callback function. @@ -27196,8 +34530,6 @@ declare module Ext { getChecked?(): Ext.data.INodeInterface[]; /** [Method] Returns the root node for this tree */ getRootNode?(): Ext.data.INodeInterface; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Expand the tree to the path of a particular node then select it * @param path String The path to select. The path should include a leading separator. * @param field String The field to get the data from. Defaults to the model idProperty. @@ -27207,197 +34539,97 @@ declare module Ext { */ selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; /** [Method] Sets root node of this tree - * @param root any - */ - setRootNode?( root?:any ): Ext.data.INodeInterface; - } -} -declare module Ext.tree { - export interface ITreePanel extends Ext.panel.ITable { - /** [Config Option] (Boolean) True to enable animated expand/collapse. ... */ - animate?: bool; - /** [Config Option] (Boolean) Defaults to true to enable deferred row rendering. ... */ - deferRowRender?: bool; - /** [Config Option] (String) The field inside the model that will be used as the node's text. ... */ - displayField?: string; - /** [Config Option] (Boolean) */ - folderSort?: bool; - /** [Config Option] (Boolean) */ - hideHeaders?: bool; - /** [Config Option] (Boolean) False to disable tree lines. ... */ - lines?: bool; - /** [Config Option] (Ext.data.Model/Ext.data.NodeInterface/Object) Allows you to not specify a store on this TreePanel. ... */ - root?: any; - /** [Config Option] (Boolean) False to hide the root node. ... */ - rootVisible?: bool; - /** [Config Option] (Boolean) False so that rows are not separated by lines. ... */ - rowLines?: bool; - /** [Config Option] (String) An xtype of selection model to use. ... */ - selType?: string; - /** [Config Option] (Boolean) True if only 1 node per branch may be expanded. ... */ - singleExpand?: bool; - /** [Config Option] (Ext.data.TreeStore) */ - store?: Ext.data.ITreeStore; - /** [Config Option] (Boolean) True to use Vista-style arrows in the tree. ... */ - useArrows?: bool; - /** [Config Option] (String) An xtype of view to use. ... */ - viewType?: string; - /** [Method] Collapse all nodes - * @param callback Function A function to execute when the collapse finishes. - * @param scope Object The scope of the callback function - */ - collapseAll?( callback?:any, scope?:any ): void; - /** [Method] Collapses a record that is loaded in the tree - * @param record Ext.data.IModel The record to collapse - * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. - * @param callback Function The function to run after the collapse is completed - * @param scope Object The scope of the callback function. - */ - collapseNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; - /** [Method] Expand all nodes - * @param callback Function A function to execute when the expand finishes. - * @param scope Object The scope of the callback function - */ - expandAll?( callback?:any, scope?:any ): void; - /** [Method] Expands a record that is loaded in the tree - * @param record Ext.data.IModel The record to expand - * @param deep Boolean True to expand nodes all the way down the tree hierarchy. - * @param callback Function The function to run after the expand is completed - * @param scope Object The scope of the callback function. - */ - expandNode?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; - /** [Method] Expand the tree to the path of a particular node - * @param path String The path to expand. The path should include a leading separator. - * @param field String The field to get the data from. Defaults to the model idProperty. - * @param separator String A separator to use. - * @param callback Function A function to execute when the expand finishes. The callback will be called with (success, lastNode) where success is if the expand was successful and lastNode is the last node that was expanded. - * @param scope Object The scope of the callback function - */ - expandPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; - /** [Method] Retrieve an array of checked records */ - getChecked?(): Ext.data.INodeInterface[]; - /** [Method] Returns the root node for this tree */ - getRootNode?(): Ext.data.INodeInterface; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Expand the tree to the path of a particular node then select it - * @param path String The path to select. The path should include a leading separator. - * @param field String The field to get the data from. Defaults to the model idProperty. - * @param separator String A separator to use. - * @param callback Function A function to execute when the select finishes. The callback will be called with (bSuccess, oLastNode) where bSuccess is if the select was successful and oLastNode is the last node that was expanded. - * @param scope Object The scope of the callback function - */ - selectPath?( path?:string, field?:string, separator?:string, callback?:any, scope?:any ): void; - /** [Method] Sets root node of this tree - * @param root any + * @param root Ext.data.Model/Ext.data.NodeInterface/Object */ setRootNode?( root?:any ): Ext.data.INodeInterface; } } declare module Ext.tree.plugin { export interface ITreeViewDragDrop extends Ext.IAbstractPlugin { - /** [Config Option] (Boolean) True if drops on the tree container (outside of a specific tree node) are allowed. ... */ + /** [Config Option] (Boolean) */ allowContainerDrops?: bool; - /** [Config Option] (Boolean) Allow inserting a dragged node between an expanded parent node and its first child that will become a sibling of the ... */ + /** [Config Option] (Boolean) */ allowParentInserts?: bool; - /** [Config Option] (Boolean) True if the tree should only allow append drops (use for trees which are sorted). ... */ + /** [Config Option] (Boolean) */ appendOnly?: bool; - /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + /** [Config Option] (Object/Boolean) */ containerScroll?: any; - /** [Config Option] (String) A named drag drop group to which this object belongs. ... */ + /** [Config Option] (String) */ ddGroup?: string; - /** [Config Option] (String) The name of the model field that is used to display the text for the nodes ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (String) The ddGroup to which the DragZone will belong. ... */ + /** [Config Option] (String) */ dragGroup?: string; - /** [Config Option] (String) The text to show while dragging. ... */ + /** [Config Option] (String) */ dragText?: string; - /** [Config Option] (String) The ddGroup to which the DropZone will belong. ... */ + /** [Config Option] (String) */ dropGroup?: string; - /** [Config Option] (Boolean) Set to false to disallow dragging items from the View. ... */ + /** [Config Option] (Boolean) */ enableDrag?: bool; - /** [Config Option] (Boolean) Set to false to disallow the View from accepting drop gestures. ... */ + /** [Config Option] (Boolean) */ enableDrop?: bool; - /** [Config Option] (String) The delay in milliseconds to wait before expanding a target tree node while dragging a droppable node over the target. ... */ - expandDelay?: string; - /** [Config Option] (String) The color to use when visually highlighting the dragged or dropped node (default value is light blue). ... */ + /** [Config Option] (Number) */ + expandDelay?: number; + /** [Config Option] (String) */ nodeHighlightColor?: string; - /** [Config Option] (Boolean) Whether or not to highlight any nodes after they are successfully dropped on their target. ... */ + /** [Config Option] (Boolean) */ nodeHighlightOnDrop?: bool; - /** [Config Option] (Boolean) Whether or not to highlight any nodes after they are repaired from an unsuccessful drag/drop. ... */ + /** [Config Option] (Boolean) */ nodeHighlightOnRepair?: bool; - /** [Config Option] (Boolean) Configure as true to sort the target node into the current tree sort order after the dropped node is added. ... */ + /** [Config Option] (Boolean) */ sortOnDrop?: bool; /** [Method] The init method is invoked after initComponent method has been run for the client Component - * @param client Ext.IComponent The client Component which owns this plugin. + * @param view Object */ - init?( client?:Ext.IComponent ): void; + init?( view?:any ): void; } } declare module Ext.tree { export interface IView extends Ext.view.ITable { /** [Config Option] (Boolean) */ animate?: bool; - /** [Config Option] (Boolean) Set this to true to ignore refresh events on the bound store. ... */ + /** [Config Option] (Boolean) */ blockRefresh?: bool; - /** [Config Option] (Boolean) Must be false for Tree Views because the root node must be rendered in order to be updated with its child nodes. ... */ + /** [Config Option] (Boolean) */ deferInitialRefresh?: bool; - /** [Config Option] (Boolean/Object) False to disable a load mask from displaying while the view is loading. ... */ - loadMask?: any; - /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + /** [Config Option] (Boolean) */ + loadMask?: bool; + /** [Config Option] (String) */ loadingCls?: string; - /** [Config Option] (Boolean) False to hide the root node. ... */ + /** [Config Option] (Boolean) */ rootVisible?: bool; - /** [Config Option] (Boolean) True to stripe the rows. ... */ + /** [Config Option] (Boolean) */ stripeRows?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated TreeView, or subclass thereof. ... */ + /** [Property] (Boolean) */ isTreeView?: bool; - /** [Method] Called by the layout system after the Component has been laid out - * @param width Number The width that was set - * @param height Number The height that was set - * @param oldWidth Number The old width, or undefined if this was the initial layout. - * @param oldHeight Number The old height, or undefined if this was the initial layout. - */ - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:number ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:number, oldHeight?:undefined ): void; - afterComponentLayout?( width?:number, height?:number, oldWidth?:undefined, oldHeight?:undefined ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; + /** [Method] Called by the layout system after the Component has been laid out */ + afterComponentLayout?(): void; /** [Method] Collapses a record that is loaded in the view - * @param record Ext.data.IModel The record to collapse + * @param record Ext.data.Model The record to collapse * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. * @param callback Function The function to run after the collapse is completed * @param scope Object The scope of the callback function. */ collapse?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; /** [Method] Expands a record that is loaded in the view - * @param record Ext.data.IModel The record to expand + * @param record Ext.data.Model The record to expand * @param deep Boolean True to expand nodes all the way down the tree hierarchy. * @param callback Function The function to run after the expand is completed * @param scope Object The scope of the callback function. */ expand?( record?:Ext.data.IModel, deep?:bool, callback?:any, scope?:any ): void; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Gets the base TreeStore from the bound TreePanel */ getTreeStore?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; - /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound - * @param initial Boolean True if this store is being bound as initialization of the instance. - */ - onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; - /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound - * @param initial Boolean True if this store is being bound as initialization of the instance. - */ - onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + /** [Method] Template method it is called when a new store is bound to the current instance */ + onBindStore?(): void; + /** [Method] Template method it is called when an existing store is unbound from the current instance */ + onUnbindStore?(): void; /** [Method] Toggles a record between expanded and collapsed - * @param record Ext.data.IModel + * @param record Ext.data.Model * @param deep Boolean True to collapse nodes all the way up the tree hierarchy. * @param callback Function The function to run after the expand/collapse is completed * @param scope Object The scope of the callback function. @@ -27411,74 +34643,70 @@ declare module Ext.tree { } declare module Ext.tree { export interface IViewDropZone extends Ext.view.IDropZone { - /** [Config Option] (String) */ - allowContainerDrop?: string; - /** [Config Option] (Boolean) Allow inserting a dragged node between an expanded parent node and its first child that will become a sibling of the ... */ + /** [Config Option] (Boolean) */ + allowContainerDrop?: bool; + /** [Config Option] (Boolean) */ allowParentInserts?: bool; - /** [Config Option] (String) True if the tree should only allow append drops (use for trees which are sorted). ... */ - appendOnly?: string; - /** [Config Option] (String) The delay in milliseconds to wait before expanding a target tree node while dragging a droppable node over the target. ... */ - expandDelay?: string; - /** [Method] The function a Ext dd DragSource calls once to notify this drop zone that the source has been dragged out of the zone - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag zone + /** [Config Option] (Boolean) */ + appendOnly?: bool; + /** [Config Option] (Number) */ + expandDelay?: number; + /** [Method] Moved out of the DropZone without dropping */ + notifyOut?(): void; + /** [Method] The mouse is past the end of all nodes or there are no nodes + * @param dd Object + * @param e Object + * @param data Object */ - notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; - /** [Method] Called while the DropZone determines that a Ext dd DragSource is being dragged over it but not over any of its regis - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + onContainerOver?( dd?:any, e?:any, data?:any ): string; + /** [Method] The mouse is no longer over a tree node so dropping is not valid + * @param n Object + * @param dd Object + * @param e Object + * @param data Object */ - onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; - /** [Method] The mouse is no longer over a tree node so dropping is not valid Called when the DropZone determines that a Ext dd - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + onNodeOut?( n?:any, dd?:any, e?:any, data?:any ): void; + /** [Method] The mouse is over a View node + * @param node Object + * @param dragZone Object + * @param e Object + * @param data Object */ - onNodeOut?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; - /** [Method] Called while the DropZone determines that a Ext dd DragSource is over a drop node that has either been registered or - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source - */ - onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + onNodeOver?( node?:any, dragZone?:any, e?:any, data?:any ): string; } } declare module Ext.util { export interface IAbstractMixedCollection extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Boolean) Specify true if the addAll function should add function references to the collection. ... */ + /** [Config Option] (Boolean) */ allowFunctions?: bool; - /** [Property] (Boolean) true in this class to identify an object as an instantiated MixedCollection, or subclass thereof. ... */ + /** [Property] (Boolean) */ isMixedCollection?: bool; /** [Method] Adds an item to the collection - * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this MixedCollection, or if the key of the stored items is in a property called id, the MixedCollection will be able to derive the key for the new item. In this case just pass the new item in this parameter. * @param obj Object The item to add. */ add?( key?:any, obj?:any ): any; /** [Method] Adds all elements of an Array or an Object to the collection - * @param objs any An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. + * @param objs Object/Array An Object containing properties which will be added to the collection, or an Array of values, each of which are added to the collection. Functions references will be added to the collection if allowFunctions has been set to true. */ addAll?( objs?:any ): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -27516,15 +34744,16 @@ declare module Ext.util { */ eachKey?( fn?:any, scope?:any ): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Filters the objects in this collection by a set of Filters or by a single property value pair with optional paramete - * @param property any A property on your objects, or an array of Filter objects - * @param value any Either string that the property values should start with or a RegExp to test against the property - * @param anyMatch any True to match any part of the string, not just the beginning - * @param caseSensitive any True for case sensitive comparison. + * @param property Ext.util.Filter[]/String A property on your objects, or an array of Filter objects + * @param value String/RegExp Either string that the property values should start with or a RegExp to test against the property + * @param anyMatch Boolean True to match any part of the string, not just the beginning + * @param caseSensitive Boolean True for case sensitive comparison. */ filter?( property?:any, value?:any, anyMatch?:any, caseSensitive?:any ): any; filter?( property?:Ext.util.IFilter[], value?:string, anyMatch?:bool, caseSensitive?:bool ): Ext.util.IMixedCollection; @@ -27536,17 +34765,19 @@ declare module Ext.util { * @param scope Object The scope (this reference) in which the function is executed. Defaults to this MixedCollection. */ filterBy?( fn?:any, scope?:any ): Ext.util.IMixedCollection; + /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function */ + find?(): void; /** [Method] Returns the first item in the collection which elicits a true return value from the passed selection function * @param fn Function The selection function to execute for each item. * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ findBy?( fn?:any, scope?:any ): any; /** [Method] Finds the index of the first matching object in this collection by a specific property value - * @param property any The name of a property on your objects. - * @param value any A string that the property values should start with or a RegExp to test against the property. - * @param start any The index to start searching at. - * @param anyMatch any True to match any part of the string, not just the beginning. - * @param caseSensitive any True for case sensitive comparison. + * @param property String The name of a property on your objects. + * @param value String/RegExp A string that the property values should start with or a RegExp to test against the property. + * @param start Number The index to start searching at. + * @param anyMatch Boolean True to match any part of the string, not just the beginning. + * @param caseSensitive Boolean True for case sensitive comparison. */ findIndex?( property?:any, value?:any, start?:any, anyMatch?:any, caseSensitive?:any ): any; findIndex?( property?:string, value?:string, start?:number, anyMatch?:bool, caseSensitive?:bool ): number; @@ -27566,11 +34797,11 @@ declare module Ext.util { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Returns the first item in the collection */ first?(): any; /** [Method] Returns the item associated with the passed key OR index - * @param key any The key or index of the item. + * @param key String/Number The key or index of the item. */ get?( key?:any ): any; get?( key?:string ): any; @@ -27580,7 +34811,7 @@ declare module Ext.util { */ getAt?( index?:number ): any; /** [Method] Returns the item associated with the passed key - * @param key any The key of the item. + * @param key String/Number The key of the item. */ getByKey?( key?:any ): any; getByKey?( key?:string ): any; @@ -27610,32 +34841,33 @@ declare module Ext.util { indexOfKey?( key?:string ): number; /** [Method] Inserts an item at the specified index in the collection * @param index Number The index to insert the item at. - * @param key any The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. - * @param o any If the second parameter was a key, the new item. May also be an array to insert multiple items at once. + * @param key String/Object/String[]/Object[] The key to associate with the new item, or the item itself. May also be an array of either to insert multiple items at once. + * @param o Object/Object[] If the second parameter was a key, the new item. May also be an array to insert multiple items at once. */ insert?( index?:number, key?:any, o?:any ): any; /** [Method] Returns the last item in the collection */ last?(): any; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -27670,11 +34902,12 @@ declare module Ext.util { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Remove a range of items starting at a specified index in the collection @@ -27729,10 +34962,16 @@ declare module Ext.util { getActiveAnimation?(): Ext.fx.IAnim; /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ getActiveAnimation?(): bool; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): Ext.fx.IAnim; + /** [Method] Returns the current animation if this object has any effects actively running or queued else returns false */ + hasActiveFx?(): bool; /** [Method] Ensures that all effects queued after sequenceFx is called on this object are run in sequence */ sequenceFx?(): any; /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ stopAnimation?(): Ext.IElement; + /** [Method] Stops any running effects and clears this object s internal effects queue if it contains any additional effects that */ + stopFx?(): Ext.IElement; /** [Method] Ensures that all effects queued after syncFx is called on this object are run concurrently */ syncFx?(): any; } @@ -27740,51 +34979,52 @@ declare module Ext.util { declare module Ext.util { export interface IBindable extends Ext.IBase { /** [Method] Binds a store to this instance - * @param store Ext.data.IAbstractStore The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. + * @param store Ext.data.AbstractStore/String The store to bind or ID of the store. When no store given (or when null or undefined passed), unbinds the existing store. */ + bindStore?( store?:any ): any; bindStore?( store?:Ext.data.IAbstractStore ): void; bindStore?( store?:string ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; /** [Method] Gets the current store instance */ getStore?(): Ext.data.IAbstractStore; /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. + * @param store Ext.data.Store The Store which is being bound to for which a listeners object should be returned. */ getStoreListeners?( store?:Ext.data.IStore ): any; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound + * @param store Ext.data.AbstractStore The store being bound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound + * @param store Ext.data.AbstractStore The store being unbound * @param initial Boolean True if this store is being bound as initialization of the instance. */ onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.util { export interface IClickRepeater extends Ext.util.IObservable { - /** [Config Option] (Boolean) True if autorepeating should start slowly and accelerate. ... */ + /** [Config Option] (Boolean) */ accelerate?: bool; - /** [Config Option] (Number) The initial delay before the repeating event begins firing. ... */ + /** [Config Option] (Number) */ delay?: number; /** [Config Option] (String/HTMLElement/Ext.Element) */ el?: any; - /** [Config Option] (Number) The interval between firings of the "click" event (in milliseconds). ... */ + /** [Config Option] (Number) */ interval?: number; /** [Config Option] (String) */ pressedCls?: string; - /** [Config Option] (Boolean) True to prevent the default click event ... */ + /** [Config Option] (Boolean) */ preventDefault?: bool; - /** [Config Option] (Boolean) True to stop the default click event ... */ + /** [Config Option] (Boolean) */ stopDefault?: bool; /** [Method] Disables the repeater and stops events from firing * @param force Object @@ -27804,24 +35044,39 @@ declare module Ext.util { constrain?: bool; /** [Config Option] (Boolean) */ constrainDelegate?: bool; - /** [Method] Move either the ghost Component or the target Component to its new position on drag Template method which should be - * @param e Ext.IEventObject The event object + /** [Method] Move either the ghost Component or the target Component to its new position on drag + * @param e Object */ - onDrag?( e?:Ext.IEventObject ): void; + onDrag?( e?:any ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onEnd?( e?:Ext.IEventObject ): void; + onEnd?( e?:any ): void; /** [Method] Template method which should be overridden by each DragTracker instance - * @param e Ext.IEventObject The event object + * @param e Object */ - onStart?( e?:Ext.IEventObject ): void; + onStart?( e?:any ): void; } } declare module Ext.util { export interface ICookies extends Ext.IBase { } export class Cookies { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes a cookie with the provided name from the browser if found by setting its expiration date to sometime in the p * @param name String The name of the cookie to remove * @param path String The path for the cookie. This must be included if you included a path while setting the cookie. @@ -27831,6 +35086,14 @@ declare module Ext.util { * @param name String The name of the cookie to get */ static get( name?:string ): any; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Creates a cookie with the specified name and value * @param name String The name of the cookie to set. * @param value Object The value to set for the cookie. @@ -27840,12 +35103,52 @@ declare module Ext.util { * @param secure Boolean Specify true to indicate that the cookie should only be accessible via SSL on a page using the HTTPS protocol. Defaults to false. Note that this will only work if the page calling this code uses the HTTPS protocol, otherwise the cookie will be created with default options. */ static set( name?:string, value?:any, expires?:any, path?:string, domain?:string, secure?:bool ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.util { export interface ICSS extends Ext.IBase { } export class CSS { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Creates a rule * @param styleSheet CSSStyleSheet The StyleSheet to create the rule in as returned from createStyleSheet. * @param selector String The selector to target the rule. @@ -27857,9 +35160,13 @@ declare module Ext.util { * @param id String An id to add to the stylesheet for later removal */ static createStyleSheet( cssText?:string, id?:string ): CSSStyleSheet; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Gets an an individual CSS rule by selector s - * @param selector any The CSS selector or an array of selectors to try. The first selector that is found is returned. - * @param refreshCache any true to refresh the internal cache if you have recently updated any rules or added styles dynamically + * @param selector String/String[] The CSS selector or an array of selectors to try. The first selector that is found is returned. + * @param refreshCache Boolean true to refresh the internal cache if you have recently updated any rules or added styles dynamically */ static getRule( selector?:any, refreshCache?:any ): any; static getRule( selector?:string, refreshCache?:bool ): CSSStyleRule; @@ -27868,29 +35175,60 @@ declare module Ext.util { * @param refreshCache Boolean true to refresh the internal cache */ static getRules( refreshCache?:bool ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Refresh the rule cache if you have dynamically added stylesheets */ static refreshCache(): any; /** [Method] Removes a style or link tag by id * @param id String The id of the tag */ static removeStyleSheet( id?:string ): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Dynamically swaps an existing stylesheet reference for a new one * @param id String The id of an existing link tag to remove * @param url String The href of the new stylesheet to include */ static swapStyleSheet( id?:string, url?:string ): void; /** [Method] Updates a rule property - * @param selector any If it's an array it tries each selector until it finds one. Stops immediately once one is found. - * @param property any The css property or a cssText specification eg "color:red;font-weight:bold;text-decoration:underline" - * @param value any The new value for the property + * @param selector String/String[] If it's an array it tries each selector until it finds one. Stops immediately once one is found. + * @param property String The css property or a cssText specification eg "color:red;font-weight:bold;text-decoration:underline" + * @param value String The new value for the property */ static updateRule( selector?:any, property?:any, value?:any ): any; static updateRule( selector?:string, property?:string, value?:string ): bool; static updateRule( selector?:string[], property?:string, value?:string ): bool; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.util { export interface IDelayedTask { + /** [Property] (Number) */ + id?: number; /** [Method] Cancel the last queued timeout */ cancel?(): void; /** [Method] By default cancels any pending timeout and queues a new one @@ -27914,31 +35252,31 @@ declare module Ext.util { } declare module Ext.util { export interface IEvent extends Ext.IBase { - /** [Property] (Boolean) true in this class to identify an object as an instantiated Event, or subclass thereof. ... */ + /** [Property] (Boolean) */ isEvent?: bool; } } declare module Ext.util { export interface IFilter extends Ext.IBase { - /** [Config Option] (Boolean) True to allow any match - no regex start/end line anchors will be added. ... */ + /** [Config Option] (Boolean) */ anyMatch?: bool; - /** [Config Option] (Boolean) True to make the regex case sensitive (adds 'i' switch to regex). ... */ + /** [Config Option] (Boolean) */ caseSensitive?: bool; - /** [Config Option] (Boolean) True to force exact match (^ and $ characters added to the regex). ... */ + /** [Config Option] (Boolean) */ exactMatch?: bool; - /** [Config Option] (Function) A custom filter function which is passed each item in the Ext.util.MixedCollection in turn. ... */ + /** [Config Option] (Function) */ filterFn?: any; - /** [Config Option] (String) An identifier by which this Filter is indexed in a Store's filters collection Identified Filters may be individually... */ + /** [Config Option] (String) */ id?: string; - /** [Config Option] (String) The operator to use to compare the property to this Filter's value Possible values are: * < * <= * = ... */ + /** [Config Option] (String) */ operator?: string; - /** [Config Option] (String) The property to filter on. ... */ + /** [Config Option] (String) */ property?: string; - /** [Config Option] (String) Optional root property. ... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (Mixed) The value to filter on. ... */ + /** [Config Option] (Mixed) */ value?: any; - /** [Property] (Boolean) Setting this property to true disables this individual Filter so that it no longer contributes to a Store's filter se... */ + /** [Property] (Boolean) */ disabled?: bool; /** [Method] Changes the filtering function which this Filter uses to choose items to include * @param filterFn Function A function which returns true or false to either include or exclude the passed object. @@ -27948,32 +35286,37 @@ declare module Ext.util { * @param value Mixed The new value to compare the property with. */ setValue?( value?:any ): void; + /** [Method] Creates a single filter function which encapsulates the passed Filter array + * @param filters Ext.util.Filter[] The filter set for which to create a filter function + */ + createFilterFn?( filters?:Ext.util.IFilter[] ): any; } } declare module Ext.util { export interface IFloating extends Ext.IBase { - /** [Config Option] (Boolean) True to constrain this Components within its containing element, false to allow it to fall outside of its containing ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Boolean) Configure as true to have this Component fixed at its X, Y coordinates in the browser viewport, immune to scrolling t... */ + /** [Config Option] (Boolean) */ fixed?: bool; - /** [Config Option] (Boolean) Specifies whether the floated component should be automatically focused when it is brought to the front. ... */ + /** [Config Option] (Boolean) */ focusOnToFront?: bool; - /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + /** [Config Option] (String/Boolean) */ shadow?: any; /** [Config Option] (Number) */ shadowOffset?: number; /** [Method] Center this Component in its container */ center?(): Ext.IComponent; /** [Method] Moves this floating Component into a constrain region - * @param constrainTo String The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this floating Component was rendered. */ + doConstrain?( constrainTo?:any ): any; doConstrain?( constrainTo?:string ): void; doConstrain?( constrainTo?:HTMLElement ): void; doConstrain?( constrainTo?:Ext.IElement ): void; doConstrain?( constrainTo?:Ext.util.IRegion ): void; /** [Method] This method is called internally by Ext ZIndexManager to signal that a floating Component has either been moved to th * @param active Boolean True to activate the Component, false to deactivate it. - * @param newActive Ext.IComponent The newly active Component which is taking over topmost zIndex position. + * @param newActive Ext.Component The newly active Component which is taking over topmost zIndex position. */ setActive?( active?:bool, newActive?:Ext.IComponent ): void; /** [Method] Sends this Component to the back of lower z index than any other visible windows */ @@ -27997,17 +35340,17 @@ declare module Ext.util { */ static capitalize( string?:string ): string; /** [Method] Format a number as a currency - * @param value any The numeric value to format - * @param sign any The currency sign to use (defaults to currencySign) - * @param decimals any The number of decimals to use for the currency (defaults to currencyPrecision) - * @param end any True if the currency sign should be at the end of the string (defaults to currencyAtEnd) + * @param value Number/String The numeric value to format + * @param sign String The currency sign to use (defaults to currencySign) + * @param decimals Number The number of decimals to use for the currency (defaults to currencyPrecision) + * @param end Boolean True if the currency sign should be at the end of the string (defaults to currencyAtEnd) */ static currency( value?:any, sign?:any, decimals?:any, end?:any ): any; static currency( value?:number, sign?:string, decimals?:number, end?:bool ): string; static currency( value?:string, sign?:string, decimals?:number, end?:bool ): string; /** [Method] Formats the passed date using the specified format pattern - * @param value any The value to format. If a string is passed, it is converted to a Date by the Javascript's built-in Date.parse method. - * @param format any Any valid date format string. Defaults to Ext.Date.defaultFormat. + * @param value String/Date The value to format. If a string is passed, it is converted to a Date by the Javascript's built-in Date.parse method. + * @param format String Any valid date format string. Defaults to Ext.Date.defaultFormat. */ static date( value?:any, format?:any ): any; static date( value?:string, format?:string ): string; @@ -28032,7 +35375,7 @@ declare module Ext.util { */ static escapeRegex( str?:string ): string; /** [Method] Simple format for a file size xxx bytes xxx KB xxx MB - * @param size any The numeric value to format + * @param size Number/String The numeric value to format */ static fileSize( size?:any ): any; static fileSize( size?:number ): string; @@ -28076,7 +35419,7 @@ declare module Ext.util { */ static numberRenderer( format?:string ): any; /** [Method] Parses a number or string representing margin sizes into an object - * @param v any The encoded margins + * @param v Number/String The encoded margins */ static parseBox( v?:any ): any; static parseBox( v?:number ): any; @@ -28088,8 +35431,8 @@ declare module Ext.util { */ static plural( value?:number, singular?:string, plural?:string ): void; /** [Method] Rounds the passed number to the required decimal precision - * @param value any The numeric value to round. - * @param precision any The number of decimal places to which to round the first parameter's value. + * @param value Number/String The numeric value to round. + * @param precision Number The number of decimal places to which to round the first parameter's value. */ static round( value?:any, precision?:any ): any; static round( value?:number, precision?:number ): number; @@ -28121,7 +35464,7 @@ declare module Ext.util { */ static uppercase( value?:string ): string; /** [Method] Format a number as US currency - * @param value any The numeric value to format + * @param value Number/String The numeric value to format */ static usMoney( value?:any ): any; static usMoney( value?:number ): string; @@ -28131,37 +35474,37 @@ declare module Ext.util { declare module Ext.util { export interface IGrouper extends Ext.util.ISorter { /** [Method] Returns the value for grouping to be used - * @param instance Ext.data.IModel The Model instance + * @param instance Ext.data.Model The Model instance */ getGroupString?( instance?:Ext.data.IModel ): string; } } declare module Ext.util { export interface IHashMap extends Ext.IBase,Ext.util.IObservable { - /** [Config Option] (Function) A function that is used to retrieve a default key for a passed object. ... */ + /** [Config Option] (Function) */ keyFn?: any; /** [Method] Adds an item to the collection - * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this HashMap, or if the key of the stored items is in a property called id, the HashMap will be able to derive the key for the new item. In this case just pass the new item in this parameter. + * @param key String/Object The key to associate with the item, or the new item. If a getKey implementation was specified for this HashMap, or if the key of the stored items is in a property called id, the HashMap will be able to derive the key for the new item. In this case just pass the new item in this parameter. * @param o Object The item to add. */ add?( key?:any, o?:any ): any; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -28190,8 +35533,9 @@ declare module Ext.util { */ each?( fn?:any, scope?:any ): Ext.util.IHashMap; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -28203,7 +35547,7 @@ declare module Ext.util { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Retrieves an item with a particular key * @param key String The key to lookup. */ @@ -28223,25 +35567,26 @@ declare module Ext.util { */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -28268,11 +35613,12 @@ declare module Ext.util { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Replaces an item in the hash @@ -28306,43 +35652,57 @@ declare module Ext.util { export interface IHistory extends Ext.IBase,Ext.util.IObservable { } export class History { - /** [Method] */ - constructor(); /** [Method] Add a new token to the history stack * @param token String The value that defines a particular application-specific history state * @param preventDuplicates Boolean When true, if the passed token matches the current token it will not save a new history step. Set to false if the same state can be saved more than once at the same history stack location. */ static add( token?:string, preventDuplicates?:bool ): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Programmatically steps back one step in browser history equivalent to the user pressing the Back button */ static back(): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ static clearManagedListeners(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -28354,9 +35714,13 @@ declare module Ext.util { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; + static fireEventArgs( eventName?:string, args?:any[] ): bool; /** [Method] Programmatically steps forward one step in browser history equivalent to the user pressing the Forward button */ static forward(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Retrieves the currently active history token */ static getToken(): string; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -28368,26 +35732,31 @@ declare module Ext.util { * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the browser window. */ static init( onReady?:any, scope?:any ): void; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -28406,11 +35775,12 @@ declare module Ext.util { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -28419,6 +35789,8 @@ declare module Ext.util { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -28433,49 +35805,86 @@ declare module Ext.util { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IHistory extends Ext.IBase,Ext.util.IObservable { } export class History { - /** [Method] */ - constructor(); /** [Method] Add a new token to the history stack * @param token String The value that defines a particular application-specific history state * @param preventDuplicates Boolean When true, if the passed token matches the current token it will not save a new history step. Set to false if the same state can be saved more than once at the same history stack location. */ static add( token?:string, preventDuplicates?:bool ): void; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ static addEvents( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ static addListener( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static addManagedListener( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static addManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Programmatically steps back one step in browser history equivalent to the user pressing the Back button */ static back(): void; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Removes all listeners for this object including the managed listeners */ static clearListeners(): void; /** [Method] Removes all managed listeners for this object */ static clearManagedListeners(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + static enableBubble( eventNames?:any ): any; static enableBubble( eventNames?:string ): void; static enableBubble( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -28487,9 +35896,13 @@ declare module Ext { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - static fireEventArgs( eventName?:string, args?:Object[] ): bool; + static fireEventArgs( eventName?:string, args?:any[] ): bool; /** [Method] Programmatically steps forward one step in browser history equivalent to the user pressing the Forward button */ static forward(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; /** [Method] Retrieves the currently active history token */ static getToken(): string; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles @@ -28501,26 +35914,31 @@ declare module Ext { * @param scope Object The scope (this reference) in which the callback is executed. Defaults to the browser window. */ static init( onReady?:any, scope?:any ): void; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ static mon( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; static mon( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static mun( item?:any, ename?:any, fn?:any, scope?:any ): any; static mun( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static mun( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -28539,11 +35957,12 @@ declare module Ext { */ static removeListener( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + static removeManagedListener( item?:any, ename?:any, fn?:any, scope?:any ): any; static removeManagedListener( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; static removeManagedListener( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -28552,6 +35971,8 @@ declare module Ext { static resumeEvent( ...eventName:any[] ): void; /** [Method] Resumes firing events see suspendEvents */ static resumeEvents(): void; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; /** [Method] Suspends firing of the named event s * @param eventName String... Multiple event names to suspend. */ @@ -28566,12 +35987,50 @@ declare module Ext { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ static un( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.util { export interface IInflector extends Ext.IBase { } export class Inflector { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; /** [Method] Returns the correct Model name for a given string * @param word String The word to classify */ @@ -28580,6 +36039,14 @@ declare module Ext.util { static clearPlurals(): void; /** [Method] Removes all registered singularization rules */ static clearSingulars(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; /** [Method] Returns true if the given word is transnumeral the word is its own singular and plural form e g * @param word String The word to test */ @@ -28606,24 +36073,49 @@ declare module Ext.util { * @param word String The word to singularize */ static singularize( word?:string ): string; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.util { export interface IKeyMap extends Ext.IBase { - /** [Config Option] (Object/Object[][]) Either a single object describing a handling function for s specified key (or set of keys), or an array of such objects. ... */ + /** [Config Option] (Object/Object[][]) */ binding?: any; - /** [Config Option] (String) The event to listen for to pick up key events. ... */ + /** [Config Option] (String) */ eventName?: string; - /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + /** [Config Option] (Boolean) */ ignoreInputFields?: bool; - /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + /** [Config Option] (Function) */ processEvent?: any; - /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + /** [Config Option] (Object) */ processEventScope?: any; /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ target?: any; /** [Method] Add a new binding to this KeyMap - * @param binding any A single KeyMap config or an array of configs. The following config object properties are supported: + * @param binding Object/Object[] A single KeyMap config or an array of configs. The following config object properties are supported: */ addBinding?( binding?:any ): void; /** [Method] Destroys the KeyMap instance and removes all handlers @@ -28637,7 +36129,7 @@ declare module Ext.util { /** [Method] Returns true if this KeyMap is enabled */ isEnabled?(): bool; /** [Method] Shorthand for adding a single key listener - * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param key Number/Number[]/Object Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} * @param fn Function The function to call * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ @@ -28651,7 +36143,7 @@ declare module Ext.util { */ setDisabled?( disabled?:bool ): void; /** [Method] Shorthand for removing a single key listener - * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param key Number/Number[]/Object Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} * @param fn Function The function to call * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ @@ -28660,20 +36152,20 @@ declare module Ext.util { } declare module Ext { export interface IKeyMap extends Ext.IBase { - /** [Config Option] (Object/Object[][]) Either a single object describing a handling function for s specified key (or set of keys), or an array of such objects. ... */ + /** [Config Option] (Object/Object[][]) */ binding?: any; - /** [Config Option] (String) The event to listen for to pick up key events. ... */ + /** [Config Option] (String) */ eventName?: string; - /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + /** [Config Option] (Boolean) */ ignoreInputFields?: bool; - /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + /** [Config Option] (Function) */ processEvent?: any; - /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + /** [Config Option] (Object) */ processEventScope?: any; /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ target?: any; /** [Method] Add a new binding to this KeyMap - * @param binding any A single KeyMap config or an array of configs. The following config object properties are supported: + * @param binding Object/Object[] A single KeyMap config or an array of configs. The following config object properties are supported: */ addBinding?( binding?:any ): void; /** [Method] Destroys the KeyMap instance and removes all handlers @@ -28687,7 +36179,7 @@ declare module Ext { /** [Method] Returns true if this KeyMap is enabled */ isEnabled?(): bool; /** [Method] Shorthand for adding a single key listener - * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param key Number/Number[]/Object Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} * @param fn Function The function to call * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ @@ -28701,7 +36193,7 @@ declare module Ext { */ setDisabled?( disabled?:bool ): void; /** [Method] Shorthand for removing a single key listener - * @param key any Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} + * @param key Number/Number[]/Object Either the numeric key code, array of key codes or an object with the following options: {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)} * @param fn Function The function to call * @param scope Object The scope (this reference) in which the function is executed. Defaults to the browser window. */ @@ -28710,21 +36202,21 @@ declare module Ext { } declare module Ext.util { export interface IKeyNav extends Ext.IBase { - /** [Config Option] (String) The method to call on the Ext.EventObject after this KeyNav intercepts a key. ... */ + /** [Config Option] (String) */ defaultEventAction?: string; - /** [Config Option] (Boolean) True to disable this KeyNav instance. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (String) The event to listen for to pick up key events. ... */ + /** [Config Option] (String) */ eventName?: string; - /** [Config Option] (Boolean) Handle the keydown event instead of keypress. ... */ + /** [Config Option] (Boolean) */ forceKeyDown?: bool; - /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + /** [Config Option] (Boolean) */ ignoreInputFields?: bool; - /** [Config Option] (Ext.util.KeyMap) An optional pre-existing KeyMap to use to listen for key events. ... */ + /** [Config Option] (Ext.util.KeyMap) */ keyMap?: Ext.util.IKeyMap; - /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + /** [Config Option] (Function) */ processEvent?: any; - /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + /** [Config Option] (Object) */ processEventScope?: any; /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ target?: any; @@ -28744,21 +36236,21 @@ declare module Ext.util { } declare module Ext { export interface IKeyNav extends Ext.IBase { - /** [Config Option] (String) The method to call on the Ext.EventObject after this KeyNav intercepts a key. ... */ + /** [Config Option] (String) */ defaultEventAction?: string; - /** [Config Option] (Boolean) True to disable this KeyNav instance. ... */ + /** [Config Option] (Boolean) */ disabled?: bool; - /** [Config Option] (String) The event to listen for to pick up key events. ... */ + /** [Config Option] (String) */ eventName?: string; - /** [Config Option] (Boolean) Handle the keydown event instead of keypress. ... */ + /** [Config Option] (Boolean) */ forceKeyDown?: bool; - /** [Config Option] (Boolean) Configure this as true if there are any input fields within the target, and this KeyNav should not process events fro... */ + /** [Config Option] (Boolean) */ ignoreInputFields?: bool; - /** [Config Option] (Ext.util.KeyMap) An optional pre-existing KeyMap to use to listen for key events. ... */ + /** [Config Option] (Ext.util.KeyMap) */ keyMap?: Ext.util.IKeyMap; - /** [Config Option] (Function) An optional event processor function which accepts the argument list provided by the configured event of the target, ... */ + /** [Config Option] (Function) */ processEvent?: any; - /** [Config Option] (Object) The scope (this context) in which the processEvent method is executed. ... */ + /** [Config Option] (Object) */ processEventScope?: any; /** [Config Option] (Ext.Component/Ext.Element/HTMLElement/String) */ target?: any; @@ -28778,13 +36270,13 @@ declare module Ext { } declare module Ext.util { export interface ILruCache extends Ext.util.IHashMap { - /** [Config Option] (Number) The maximum size the cache is allowed to grow to before further additions cause removal of the least recently used en... */ + /** [Config Option] (Number) */ maxSize?: number; /** [Method] Adds an item to the collection - * @param key any The key to associate with the item, or the new item. If a getKey implementation was specified for this HashMap, or if the key of the stored items is in a property called id, the HashMap will be able to derive the key for the new item. In this case just pass the new item in this parameter. - * @param o Object The item to add. + * @param key Object + * @param newValue Object */ - add?( key?:any, o?:any ): any; + add?( key?:any, newValue?:any ): any; /** [Method] Removes all items from the hash * @param initial Object */ @@ -28798,9 +36290,9 @@ declare module Ext.util { */ each?( fn?:any, scope?:any, reverse?:bool ): Ext.util.ILruCache; /** [Method] Retrieves an item with a particular key - * @param key String The key to lookup. + * @param key Object */ - get?( key?:string ): any; + get?( key?:any ): any; /** [Method] Purge the least recently used entries if the maxSize has been exceeded */ prune?(): void; } @@ -28810,21 +36302,24 @@ declare module Ext.util { /** [Property] (Object) */ target?: any; /** [Method] Captures the specified properties from the target object in this memento - * @param props String The property or array of properties to capture. + * @param props String/String[] The property or array of properties to capture. * @param target Object The object from which to capture properties. */ + capture?( props?:any, target?:any ): any; capture?( props?:string, target?:any ): void; capture?( props?:string[], target?:any ): void; /** [Method] Removes the specified properties from this memento - * @param props String The property or array of properties to remove. + * @param props String/String[] The property or array of properties to remove. */ + remove?( props?:any ): any; remove?( props?:string ): void; remove?( props?:string[] ): void; /** [Method] Restores the specified properties from this memento to the target object - * @param props String The property or array of properties to restore. + * @param props String/String[] The property or array of properties to restore. * @param clear Boolean True to remove the restored properties from this memento or false to keep them (default is true). * @param target Object The object to which to restore properties. */ + restore?( props?:any, clear?:any, target?:any ): any; restore?( props?:string, clear?:bool, target?:any ): void; restore?( props?:string[], clear?:bool, target?:any ): void; /** [Method] Restores all captured properties in this memento to the target object @@ -28854,8 +36349,8 @@ declare module Ext.util { */ reorder?( mapping?:any ): void; /** [Method] Sorts the data in the Store by one or more of its properties - * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. - * @param direction any The overall direction to sort the data by. + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. */ sort?( sorters?:any, direction?:any ): any; sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; @@ -28873,29 +36368,29 @@ declare module Ext.util { } declare module Ext.util { export interface IObservable extends Ext.IBase { - /** [Config Option] (Object) A config object containing one or more event handlers to be added to this object during initialization. ... */ + /** [Config Option] (Object) */ listeners?: any; - /** [Property] (Object) This object holds a key for any event that has a listener. ... */ + /** [Property] (Object) */ hasListeners?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Observable, or subclass thereof. ... */ + /** [Property] (Boolean) */ isObservable?: bool; /** [Method] Adds the specified events to the list of events which this Observable may fire - * @param eventNames any Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); + * @param eventNames Object/String... Either an object with event names as properties with a value of true. For example: this.addEvents({ storeloaded: true, storecleared: true }); Or any number of event names as separate parameters. For example: this.addEvents('storeloaded', 'storecleared'); */ addEvents?( eventNames?:any ): void; /** [Method] Appends an event handler to this object - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: */ addListener?( eventName?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Adds listeners to any Observable object or Ext Element which are automatically removed when this Component is destr - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ addManagedListener?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; addManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; @@ -28905,8 +36400,9 @@ declare module Ext.util { /** [Method] Removes all managed listeners for this object */ clearManagedListeners?(): void; /** [Method] Enables events fired by this Observable to bubble up an owner hierarchy by calling this getBubbleTarget if present - * @param eventNames String The event name to bubble, or an Array of event names. + * @param eventNames String/String[] The event name to bubble, or an Array of event names. */ + enableBubble?( eventNames?:any ): any; enableBubble?( eventNames?:string ): void; enableBubble?( eventNames?:string[] ): void; /** [Method] Fires the specified event with the passed parameters minus the event name plus the options object passed to addList @@ -28918,31 +36414,32 @@ declare module Ext.util { * @param eventName String The name of the event to fire. * @param args Object[] An array of parameters which are passed to handlers. */ - fireEventArgs?( eventName?:string, args?:Object[] ): bool; + fireEventArgs?( eventName?:string, args?:any[] ): bool; /** [Method] Checks to see if this object has any listeners for a specified event or whether the event bubbles * @param eventName String The name of the event to check for */ hasListener?( eventName?:string ): bool; /** [Method] Shorthand for addManagedListener - * @param item any The item to which to add a listener/listeners. - * @param ename any The event name, or an object containing event name properties. - * @param fn any If the ename parameter was an event name, this is the handler function. - * @param scope any If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. - * @param options any If the ename parameter was an event name, this is the addListener options. + * @param item Ext.util.Observable/Ext.Element The item to which to add a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. + * @param fn Function If the ename parameter was an event name, this is the handler function. + * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. + * @param options Object If the ename parameter was an event name, this is the addListener options. */ mon?( item?:any, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any, options?:any ): any; mon?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any, options?:any ): any; /** [Method] Shorthand for removeManagedListener - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + mun?( item?:any, ename?:any, fn?:any, scope?:any ): any; mun?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; mun?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Shorthand for addListener - * @param eventName any The name of the event to listen for. May also be an object who's property names are event names. + * @param eventName String/Object The name of the event to listen for. May also be an object who's property names are event names. * @param fn Function The method the event invokes, or if scope is specified, the name* of the method within the specified scope. Will be called with arguments given to Ext.util.Observable.fireEvent plus the options parameter described below. * @param scope Object The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event. * @param options Object An object containing handler configuration. Note: Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler. This object may contain any of the following properties: @@ -28961,11 +36458,12 @@ declare module Ext.util { */ removeListener?( eventName?:string, fn?:any, scope?:any ): void; /** [Method] Removes listeners that were added by the mon method - * @param item Ext.util.IObservable The item from which to remove a listener/listeners. - * @param ename any The event name, or an object containing event name properties. + * @param item Ext.util.Observable/Ext.Element The item from which to remove a listener/listeners. + * @param ename Object/String The event name, or an object containing event name properties. * @param fn Function If the ename parameter was an event name, this is the handler function. * @param scope Object If the ename parameter was an event name, this is the scope (this reference) in which the handler function is executed. */ + removeManagedListener?( item?:any, ename?:any, fn?:any, scope?:any ): any; removeManagedListener?( item?:Ext.util.IObservable, ename?:any, fn?:any, scope?:any ): void; removeManagedListener?( item?:Ext.IElement, ename?:any, fn?:any, scope?:any ): void; /** [Method] Resumes firing of the named event s @@ -28988,6 +36486,21 @@ declare module Ext.util { * @param scope Object The scope originally specified for the handler. It must be the same as the scope argument specified in the original call to Ext.util.Observable.addListener or the listener will not be removed. */ un?( eventName?:string, fn?:any, scope?:any ): void; + /** [Method] Starts capture on the specified Observable + * @param o Ext.util.Observable The Observable to capture events from. + * @param fn Function The function to call when an event is fired. + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Observable firing the event. + */ + capture?( o?:Ext.util.IObservable, fn?:any, scope?:any ): void; + /** [Method] Sets observability on the passed class constructor + * @param c Function The class constructor to make observable. + * @param listeners Object An object containing a series of listeners to add. See addListener. + */ + observe?( c?:any, listeners?:any ): void; + /** [Method] Removes all added captures from the Observable + * @param o Ext.util.Observable The Observable to release + */ + releaseCapture?( o?:Ext.util.IObservable ): void; } } declare module Ext.util { @@ -28997,11 +36510,11 @@ declare module Ext.util { declare module Ext.util { export interface IPoint extends Ext.util.IRegion { /** [Method] Compare this point and another point - * @param p any The point to compare with, either an instance of Ext.util.Point or an object with left and top properties + * @param p Ext.util.Point/Object The point to compare with, either an instance of Ext.util.Point or an object with left and top properties */ equals?( p?:any ): bool; /** [Method] Determins whether this Point contained by the passed Region Component or element - * @param region any The rectangle to check that this Point is within. + * @param region Ext.util.Region/Ext.Component/Ext.dom.Element/HTMLElement The rectangle to check that this Point is within. */ isContainedBy?( region?:any ): any; isContainedBy?( region?:Ext.util.IRegion ): bool; @@ -29009,42 +36522,46 @@ declare module Ext.util { isContainedBy?( region?:Ext.dom.IElement ): bool; isContainedBy?( region?:HTMLElement ): bool; /** [Method] Whether the given point is not away from this point within the given threshold amount - * @param p any The point to check with, either an instance of Ext.util.Point or an object with left and top properties - * @param threshold any Can be either an object with x and y properties or a number + * @param p Ext.util.Point/Object The point to check with, either an instance of Ext.util.Point or an object with left and top properties + * @param threshold Object/Number Can be either an object with x and y properties or a number */ isWithin?( p?:any, threshold?:any ): bool; /** [Method] Compare this point with another point when the x and y values of both points are rounded - * @param p any The point to compare with, either an instance of Ext.util.Point or an object with x and y properties + * @param p Ext.util.Point/Object The point to compare with, either an instance of Ext.util.Point or an object with x and y properties */ roundedEquals?( p?:any ): bool; /** [Method] Returns a human eye friendly string that represents this point useful for debugging */ toString?(): string; - /** [Method] Alias for translateBy Translate this region by the given offset amount - * @param x any Object containing the x and y properties. Or the x value is using the two argument form. + /** [Method] Alias for translateBy + * @param x Ext.util.Offset/Object Object containing the x and y properties. Or the x value is using the two argument form. * @param y Number The y value unless using an Offset object. */ translate?( x?:any, y?:number ): Ext.util.IRegion; + /** [Method] Returns a new instance of Ext util Point base on the pageX pageY values of the given event + * @param e Ext.EventObject/Event The event + */ + fromEvent?( e?:any ): Ext.util.IPoint; } } declare module Ext.util { export interface IPositionable extends Ext.IBase { /** [Method] Aligns the element with another element relative to the specified anchor points - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] - * @param animate any true for the default animation or a standard Element animation config object + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ alignTo?( element?:any, position?:any, offsets?:any, animate?:any ): any; alignTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; alignTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; alignTo?( element?:string, position?:string, offsets?:number[], animate?:any ): Ext.util.IPositionable; /** [Method] Anchors an element to another element and realigns it when the window is resized - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] - * @param animate any true for the default animation or a standard Element animation config object - * @param monitorScroll any True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. - * @param callback any The function to call after the animation finishes + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] + * @param animate Boolean/Object true for the default animation or a standard Element animation config object + * @param monitorScroll Boolean/Number True to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay in milliseconds. + * @param callback Function The function to call after the animation finishes */ anchorTo?( element?:any, position?:any, offsets?:any, animate?:any, monitorScroll?:any, callback?:any ): any; anchorTo?( element?:Ext.util.IPositionable, position?:string, offsets?:number[], animate?:any, monitorScroll?:bool, callback?:any ): Ext.util.IPositionable; @@ -29054,10 +36571,10 @@ declare module Ext.util { anchorTo?( element?:HTMLElement, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; anchorTo?( element?:string, position?:string, offsets?:number[], animate?:any, monitorScroll?:number, callback?:any ): Ext.util.IPositionable; /** [Method] Calculates the new x y position to move this Positionable into a constrain region - * @param constrainTo any The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. - * @param proposedPosition any A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. - * @param local any The proposedPosition is local (relative to floatParent if a floating Component) - * @param proposedSize any A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. + * @param constrainTo String/HTMLElement/Ext.Element/Ext.util.Region The Element or Region into which this Component is to be constrained. Defaults to the element into which this Positionable was rendered, or this Component's {@link Ext.Component.constrainTo. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to coerce into constraints instead of using this Positionable's current position. + * @param local Boolean The proposedPosition is local (relative to floatParent if a floating Component) + * @param proposedSize Number[] A proposed [width, height] size to use when calculating constraints instead of using this Positionable's current size. */ calculateConstrainedPosition?( constrainTo?:any, proposedPosition?:any, local?:any, proposedSize?:any ): any; calculateConstrainedPosition?( constrainTo?:string, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; @@ -29065,9 +36582,9 @@ declare module Ext.util { calculateConstrainedPosition?( constrainTo?:Ext.IElement, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; calculateConstrainedPosition?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], local?:bool, proposedSize?:number[] ): number[]; /** [Method] Gets the x y coordinates to align this element with another element - * @param element any The Positionable, HTMLElement, or id of the element to align to. - * @param position any The position to align to - * @param offsets any Offset the positioning by [x, y] + * @param element Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or id of the element to align to. + * @param position String The position to align to + * @param offsets Number[] Offset the positioning by [x, y] */ getAlignToXY?( element?:any, position?:any, offsets?:any ): any; getAlignToXY?( element?:Ext.util.IPositionable, position?:string, offsets?:number[] ): number[]; @@ -29085,9 +36602,9 @@ declare module Ext.util { */ getBox?( contentBox?:bool, local?:bool ): any; /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain - * @param constrainTo any The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. - * @param proposedPosition any A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position - * @param proposedSize any A proposed [width, height] size to constrain instead of using the element's current size + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position + * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size */ getConstrainVector?( constrainTo?:any, proposedPosition?:any, proposedSize?:any ): any; getConstrainVector?( constrainTo?:Ext.util.IPositionable, proposedPosition?:number[], proposedSize?:number[] ): number[]; @@ -29095,7 +36612,7 @@ declare module Ext.util { getConstrainVector?( constrainTo?:string, proposedPosition?:number[], proposedSize?:number[] ): number[]; getConstrainVector?( constrainTo?:Ext.util.IRegion, proposedPosition?:number[], proposedSize?:number[] ): number[]; /** [Method] Returns the X Y vector by which this Positionable s element must be translated to make a best attempt to constrain - * @param constrainTo Ext.util.IPositionable The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. + * @param constrainTo Ext.util.Positionable/HTMLElement/String/Ext.util.Region The Positionable, HTMLElement, element id, or Region into which the element is to be constrained. * @param proposedPosition Number[] A proposed [X, Y] position to test for validity and to produce a vector for instead of using the element's current position * @param proposedSize Number[] A proposed [width, height] size to constrain instead of using the element's current size */ @@ -29110,7 +36627,7 @@ declare module Ext.util { /** [Method] Returns the y coordinate of this element reletive to its offsetParent */ getLocalY?(): number; /** [Method] Returns the offsets of this element from the passed element - * @param offsetsTo any The Positionable, HTMLElement, or element id to get get the offsets from. + * @param offsetsTo Ext.util.Positionable/HTMLElement/String The Positionable, HTMLElement, or element id to get get the offsets from. */ getOffsetsTo?( offsetsTo?:any ): any; getOffsetsTo?( offsetsTo?:Ext.util.IPositionable ): number[]; @@ -29129,14 +36646,14 @@ declare module Ext.util { /** [Method] Move the element relative to its current position * @param direction String Possible values are: "l" (or "left") "r" (or "right") "t" (or "top", or "up") "b" (or "bottom", or "down") * @param distance Number How far to move the element in pixels - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ move?( direction?:string, distance?:number, animate?:any ): void; /** [Method] Remove any anchor to this element */ removeAnchor?(): Ext.util.IPositionable; /** [Method] Sets the element s box * @param box Object The box to fill {x, y, width, height} - * @param animate any true for the default animation or a standard Element animation config object + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ setBox?( box?:any, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the local x coordinate of this element using CSS style @@ -29144,8 +36661,8 @@ declare module Ext.util { */ setLocalX?( x?:number ): Ext.util.IPositionable; /** [Method] Sets the local x and y coordinates of this element using CSS style - * @param x any The x coordinate or an array containing [x, y]. A value of null sets the left style to 'auto' - * @param y any The y coordinate, required if x is not an array. A value of null sets the top style to 'auto' + * @param x Number/Array The x coordinate or an array containing [x, y]. A value of null sets the left style to 'auto' + * @param y Number The y coordinate, required if x is not an array. A value of null sets the top style to 'auto' */ setLocalXY?( x?:any, y?:any ): any; setLocalXY?( x?:number, y?:number ): Ext.util.IPositionable; @@ -29155,28 +36672,28 @@ declare module Ext.util { */ setLocalY?( y?:number ): Ext.util.IPositionable; /** [Method] Sets the element s position and size to the specified region - * @param region Ext.util.IRegion The region to fill - * @param animate any true for the default animation or a standard Element animation config object + * @param region Ext.util.Region The region to fill + * @param animate Boolean/Object true for the default animation or a standard Element animation config object */ setRegion?( region?:Ext.util.IRegion, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the X position of the DOM element based on page coordinates * @param The Number X position - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setX?( The?:number, animate?:any ): Ext.util.IPositionable; /** [Method] Sets the position of the DOM element in page coordinates * @param pos Number[] Contains X & Y [x, y] values for new position (coordinates are page-based) - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setXY?( pos?:number[], animate?:any ): Ext.util.IPositionable; /** [Method] Sets the Y position of the DOM element based on page coordinates * @param The Number Y position - * @param animate any True for the default animation, or a standard Element animation config object + * @param animate Boolean/Object True for the default animation, or a standard Element animation config object */ setY?( The?:number, animate?:any ): Ext.util.IPositionable; /** [Method] Translates the passed page coordinates into left top css values for the element - * @param x any The page x or an array containing [x, y] - * @param y any The page y, required if x is not an array + * @param x Number/Array The page x or an array containing [x, y] + * @param y Number The page y, required if x is not an array */ translatePoints?( x?:any, y?:any ): any; translatePoints?( x?:number, y?:number ): any; @@ -29185,13 +36702,13 @@ declare module Ext.util { } declare module Ext.util { export interface IProtoElement extends Ext.IBase { - /** [Property] (String) The property name for the className on the data object passed to writeTo. ... */ + /** [Property] (String) */ clsProp?: string; - /** [Property] (String) The property name for the removed classes on the data object passed to writeTo. ... */ + /** [Property] (String) */ removedProp?: string; - /** [Property] (Boolean) True if the style must be converted to text during writeTo. ... */ + /** [Property] (Boolean) */ styleIsText?: bool; - /** [Property] (String) The property name for the style on the data object passed to writeTo. ... */ + /** [Property] (String) */ styleProp?: string; /** [Method] Adds class to the element * @param cls String One or more classnames separated with spaces. @@ -29208,7 +36725,7 @@ declare module Ext.util { */ removeCls?( cls?:string ): Ext.util.IProtoElement; /** [Method] Adds styles to the element - * @param prop any The style property to be set, or an object of multiple styles. + * @param prop String/Object The style property to be set, or an object of multiple styles. * @param value String The value to apply to the given property. */ setStyle?( prop?:any, value?:string ): Ext.util.IProtoElement; @@ -29240,26 +36757,26 @@ declare module Ext.util { */ adjust?( top?:number, right?:number, bottom?:number, left?:number ): Ext.util.IRegion; /** [Method] Modifies the current region to be constrained to the targetRegion - * @param targetRegion Ext.util.IRegion + * @param targetRegion Ext.util.Region */ constrainTo?( targetRegion?:Ext.util.IRegion ): Ext.util.IRegion; /** [Method] Checks if this region completely contains the region that is passed in - * @param region Ext.util.IRegion + * @param region Ext.util.Region */ contains?( region?:Ext.util.IRegion ): bool; /** [Method] Create a copy of this Region */ copy?(): Ext.util.IRegion; /** [Method] Copy the values of another Region to this Region - * @param p Ext.util.IRegion The region to copy from. + * @param p Ext.util.Region The region to copy from. */ copyFrom?( p?:Ext.util.IRegion ): Ext.util.IRegion; /** [Method] Check whether this region is equivalent to the given region - * @param region Ext.util.IRegion The region to compare with + * @param region Ext.util.Region The region to compare with */ equals?( region?:Ext.util.IRegion ): bool; /** [Method] Get the offset amount of a point outside the region * @param axis String - * @param p Ext.util.IPoint the point + * @param p Ext.util.Point the point */ getOutOfBoundOffset?( axis?:string, p?:Ext.util.IPoint ): Ext.util.IOffset; /** [Method] Get the offset amount on the x axis @@ -29271,16 +36788,16 @@ declare module Ext.util { */ getOutOfBoundOffsetY?( p?:number ): number; /** [Method] Checks if this region intersects the region passed in - * @param region Ext.util.IRegion + * @param region Ext.util.Region */ intersect?( region?:Ext.util.IRegion ): Ext.util.IRegion; /** [Method] Checks if this region intersects the region passed in - * @param region Ext.util.IRegion + * @param region Ext.util.Region */ intersect?( region?:Ext.util.IRegion ): bool; /** [Method] Check whether the point offset is out of bound - * @param axis any - * @param p any the point / offset + * @param axis String + * @param p Ext.util.Point/Number the point / offset */ isOutOfBound?( axis?:any, p?:any ): any; isOutOfBound?( axis?:string, p?:Ext.util.IPoint ): bool; @@ -29296,14 +36813,25 @@ declare module Ext.util { /** [Method] Round all the properties of this region */ round?(): Ext.util.IRegion; /** [Method] Translate this region by the given offset amount - * @param x any Object containing the x and y properties. Or the x value is using the two argument form. + * @param x Ext.util.Offset/Object Object containing the x and y properties. Or the x value is using the two argument form. * @param y Number The y value unless using an Offset object. */ translateBy?( x?:any, y?:number ): Ext.util.IRegion; /** [Method] Returns the smallest region that contains the current AND targetRegion - * @param region Ext.util.IRegion + * @param region Ext.util.Region */ union?( region?:Ext.util.IRegion ): Ext.util.IRegion; + /** [Method] Creates a Region from a box Object which contains four numeric properties top right bottom and left + * @param o Object An object with top, right, bottom and left properties. + */ + from?( o?:any ): Ext.util.IRegion; + /** [Method] Retrieves an Ext util Region for a particular element + * @param el String/HTMLElement/Ext.Element An element ID, htmlElement or Ext.Element representing an element in the document. + */ + getRegion?( el?:any ): any; + getRegion?( el?:string ): Ext.util.IRegion; + getRegion?( el?:HTMLElement ): Ext.util.IRegion; + getRegion?( el?:Ext.IElement ): Ext.util.IRegion; } } declare module Ext.util { @@ -29317,7 +36845,7 @@ declare module Ext.util { */ ensureAttachedToBody?( runLayout?:bool ): void; /** [Method] This function takes the position argument passed to onRender and returns a DOM element that you can use in the insert - * @param position any Index, element id or element you want to put this component before. + * @param position String/Number/Ext.dom.Element/HTMLElement Index, element id or element you want to put this component before. */ getInsertPosition?( position?:any ): any; getInsertPosition?( position?:string ): HTMLElement; @@ -29327,14 +36855,15 @@ declare module Ext.util { /** [Method] Initialized the renderData to be used when rendering the renderTpl */ initRenderData?(): any; /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. + * @param parentNode Ext.core.Element The parent Element in which this Component's encapsulating element is contained. * @param containerIdx Number The index within the parent Container's child collection of this Component. */ onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; /** [Method] Renders the Component into the passed HTML element - * @param container Ext.IElement The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. - * @param position String The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) + * @param container Ext.Element/HTMLElement/String The element this Component should be rendered into. If it is being created from existing markup, this should be omitted. + * @param position String/Number The element ID or DOM node index within the container before which this component will be inserted (defaults to appending to the end of the container) */ + render?( container?:any, position?:any ): any; render?( container?:Ext.IElement, position?:string ): void; render?( container?:HTMLElement, position?:string ): void; render?( container?:string, position?:string ): void; @@ -29345,13 +36874,13 @@ declare module Ext.util { } declare module Ext.util { export interface ISortable extends Ext.IBase { - /** [Config Option] (String) The default sort direction to use if one is not specified. ... */ + /** [Config Option] (String) */ defaultSortDirection?: string; /** [Config Option] (String) */ sortRoot?: string; /** [Config Option] (Ext.util.Sorter[]/Object[]) */ sorters?: any; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Sortable, or subclass thereof. ... */ + /** [Property] (Boolean) */ isSortable?: bool; /** [Method] Returns a comparator function which compares two items and returns 1 0 or 1 depending on the currently defined set */ generateComparator?(): void; @@ -29360,25 +36889,29 @@ declare module Ext.util { /** [Method] Performs initialization of this mixin */ initSortable?(): void; /** [Method] Sorts the data in the Store by one or more of its properties - * @param sorters any Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. - * @param direction any The overall direction to sort the data by. + * @param sorters String/Ext.util.Sorter[] Either a string name of one of the fields in this Store's configured Model, or an array of sorter configurations. + * @param direction String The overall direction to sort the data by. */ sort?( sorters?:any, direction?:any ): any; sort?( sorters?:string, direction?:string ): Ext.util.ISorter[]; sort?( sorters?:Ext.util.ISorter[], direction?:string ): Ext.util.ISorter[]; + /** [Method] Creates a single comparator function which encapsulates the passed Sorter array + * @param sorters Ext.util.Sorter[] The sorter set for which to create a comparator function + */ + createComparator?( sorters?:Ext.util.ISorter[] ): any; } } declare module Ext.util { export interface ISorter extends Ext.IBase { - /** [Config Option] (String) The direction to sort by. ... */ + /** [Config Option] (String) */ direction?: string; - /** [Config Option] (String) The property to sort by. ... */ + /** [Config Option] (String) */ property?: string; - /** [Config Option] (String) Optional root property. ... */ + /** [Config Option] (String) */ root?: string; - /** [Config Option] (Function) A specific sorter function to execute. ... */ + /** [Config Option] (Function) */ sorterFn?: any; - /** [Config Option] (Function) A function that will be run on each value before it is compared in the sorter. ... */ + /** [Config Option] (Function) */ transform?: any; /** [Method] Set the sorting direction for this sorter * @param direction String The direction to sort in. Should be either 'ASC' or 'DESC'. @@ -29396,19 +36929,147 @@ declare module Ext.util { export interface ITaskManager extends Ext.util.ITaskRunner { } export class TaskManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Destroys this instance stopping all tasks that are currently running */ + static destroy(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Creates a new Task instance + * @param config Object The config object. For details on the supported properties, see start. + */ + static newTask( config?:any ): void; + /** [Method] Starts a new task + * @param task Object A config object that supports the following properties: + */ + static start( task?:any ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Stops an existing running task + * @param task Object The task to stop + */ + static stop( task?:any ): any; + /** [Method] Stops all tasks that are currently running */ + static stopAll(): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface ITaskManager extends Ext.util.ITaskRunner { } export class TaskManager { + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Destroys this instance stopping all tasks that are currently running */ + static destroy(): void; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Creates a new Task instance + * @param config Object The config object. For details on the supported properties, see start. + */ + static newTask( config?:any ): void; + /** [Method] Starts a new task + * @param task Object A config object that supports the following properties: + */ + static start( task?:any ): any; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Stops an existing running task + * @param task Object The task to stop + */ + static stop( task?:any ): any; + /** [Method] Stops all tasks that are currently running */ + static stopAll(): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext.util { export interface ITaskRunner extends Ext.IBase { - /** [Config Option] (Boolean) This may be configured false to inhibit firing of the idle event after task invocation. ... */ + /** [Config Option] (Boolean) */ fireIdleEvent?: bool; - /** [Config Option] (Number) The timer resolution. ... */ + /** [Config Option] (Number) */ interval?: number; /** [Method] Destroys this instance stopping all tasks that are currently running */ destroy?(): void; @@ -29430,7 +37091,7 @@ declare module Ext.util { } declare module Ext.util.taskrunner { export interface ITask { - /** [Property] (Boolean) Override default behavior ... */ + /** [Property] (Boolean) */ fireOnStart?: bool; /** [Method] Destroys this instance stopping this task s execution */ destroy?(): void; @@ -29449,8 +37110,9 @@ declare module Ext.util.taskrunner { declare module Ext.util { export interface ITextMetrics extends Ext.IBase { /** [Method] Binds this TextMetrics instance to a new element - * @param el String The element or its ID. + * @param el String/HTMLElement/Ext.Element The element or its ID. */ + bind?( el?:any ): any; bind?( el?:string ): void; bind?( el?:HTMLElement ): void; bind?( el?:Ext.IElement ): void; @@ -29472,12 +37134,20 @@ declare module Ext.util { * @param width Number The width to set on the element */ setFixedWidth?( width?:number ): void; + /** [Method] Measures the size of the specified text + * @param el String/HTMLElement The element, dom node or id from which to copy existing CSS styles that can affect the size of the rendered text + * @param text String The text to measure + * @param fixedWidth Number If the text will be multiline, you have to set a fixed width in order to accurately measure the text height + */ + measure?( el?:any, text?:any, fixedWidth?:any ): any; + measure?( el?:string, text?:string, fixedWidth?:number ): any; + measure?( el?:HTMLElement, text?:string, fixedWidth?:number ): any; } } declare module Ext { export interface IVersion { /** [Method] Returns whether this version equals to the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ equals?( target?:any ): any; equals?( target?:string ): bool; @@ -29495,126 +37165,138 @@ declare module Ext { /** [Method] Returns shortVersion version without dots and release */ getShortVersion?(): string; /** [Method] Convenient alias to isGreaterThan - * @param target any + * @param target String/Number */ gt?( target?:any ): any; gt?( target?:string ): bool; gt?( target?:number ): bool; /** [Method] Convenient alias to isGreaterThanOrEqual - * @param target any + * @param target String/Number */ gtEq?( target?:any ): any; gtEq?( target?:string ): bool; gtEq?( target?:number ): bool; /** [Method] Returns whether this version if greater than the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ isGreaterThan?( target?:any ): any; isGreaterThan?( target?:string ): bool; isGreaterThan?( target?:number ): bool; /** [Method] Returns whether this version if greater than or equal to the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ isGreaterThanOrEqual?( target?:any ): any; isGreaterThanOrEqual?( target?:string ): bool; isGreaterThanOrEqual?( target?:number ): bool; /** [Method] Returns whether this version if smaller than the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ isLessThan?( target?:any ): any; isLessThan?( target?:string ): bool; isLessThan?( target?:number ): bool; /** [Method] Returns whether this version if less than or equal to the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ isLessThanOrEqual?( target?:any ): any; isLessThanOrEqual?( target?:string ): bool; isLessThanOrEqual?( target?:number ): bool; /** [Method] Convenient alias to isLessThan - * @param target any + * @param target String/Number */ lt?( target?:any ): any; lt?( target?:string ): bool; lt?( target?:number ): bool; /** [Method] Convenient alias to isLessThanOrEqual - * @param target any + * @param target String/Number */ ltEq?( target?:any ): any; ltEq?( target?:string ): bool; ltEq?( target?:number ): bool; /** [Method] Returns whether this version matches the supplied argument - * @param target any The version to compare with + * @param target String/Number The version to compare with */ match?( target?:any ): any; match?( target?:string ): bool; match?( target?:number ): bool; /** [Method] Returns this format major minor patch build release */ toArray?(): number[]; + /** [Method] Compare 2 specified versions starting from left to right + * @param current String The current version to compare to + * @param target String The target version to compare to + */ + compare?( current?:string, target?:string ): number; + /** [Method] Converts a version component to a comparable value + * @param value Object The value to convert + */ + getComponentValue?( value?:any ): any; } } declare module Ext.view { export interface IAbstractView extends Ext.IComponent,Ext.util.IBindable { - /** [Config Option] (Boolean) Set this to true to ignore refresh events on the bound store. ... */ + /** [Config Option] (Boolean) */ blockRefresh?: bool; - /** [Config Option] (Boolean) True to defer emptyText being applied until the store's first load. ... */ + /** [Config Option] (Boolean) */ deferEmptyText?: bool; - /** [Config Option] (Boolean) Defaults to true to defer the initial refresh of the view. ... */ + /** [Config Option] (Boolean) */ deferInitialRefresh?: bool; - /** [Config Option] (Boolean) True to disable selection within the DataView. ... */ + /** [Config Option] (Boolean) */ disableSelection?: bool; - /** [Config Option] (String) The text to display in the view when there is no data to display. ... */ + /** [Config Option] (String) */ emptyText?: string; - /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (String) This is a required setting. ... */ + /** [Config Option] (String) */ itemSelector?: string; - /** [Config Option] (String/String[]/Ext.XTemplate) The inner portion of the item template to be rendered. ... */ + /** [Config Option] (String/String[]/Ext.XTemplate) */ itemTpl?: any; - /** [Config Option] (Boolean/Object) False to disable a load mask from displaying while the view is loading. ... */ + /** [Config Option] (Boolean/Object) */ loadMask?: any; - /** [Config Option] (String) The CSS class to apply to the loading message element. ... */ + /** [Config Option] (String) */ loadingCls?: string; - /** [Config Option] (Number) If specified, gives an explicit height for the data view when it is showing the loadingText, if that is specified. ... */ + /** [Config Option] (Number) */ loadingHeight?: number; - /** [Config Option] (String) A string to display during data load operations. ... */ + /** [Config Option] (String) */ loadingText?: string; - /** [Config Option] (Boolean) 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 ... */ + /** [Config Option] (Boolean) */ multiSelect?: bool; - /** [Config Option] (String) A CSS class to apply to each item in the view on mouseover. ... */ + /** [Config Option] (String) */ overItemCls?: string; - /** [Config Option] (Boolean) True to preserve scroll position across refresh operations. ... */ + /** [Config Option] (Boolean) */ preserveScrollOnRefresh?: bool; - /** [Config Option] (String) A CSS class to apply to each selected item in the view. ... */ + /** [Config Option] (String) */ selectedItemCls?: string; - /** [Config Option] (Boolean) True to enable multiselection by clicking on multiple items without requiring the user to hold Shift or Ctrl, false t... */ + /** [Config Option] (Boolean) */ simpleSelect?: bool; - /** [Config Option] (Boolean) Allows selection of exactly one item at a time. ... */ + /** [Config Option] (Boolean) */ singleSelect?: bool; /** [Config Option] (Ext.data.Store) */ store?: Ext.data.IStore; - /** [Config Option] (String/String[]/Ext.XTemplate) The HTML fragment or an array of fragments that will make up the template used by this DataView. ... */ + /** [Config Option] (String/String[]/Ext.XTemplate) */ tpl?: any; - /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + /** [Config Option] (Boolean) */ trackOver?: bool; /** [Method] Allows addition of behavior after rendering is complete */ afterRender?(): void; /** [Method] Changes the data store bound to this view and refreshes it - * @param store Ext.data.IStore The store to bind to this view + * @param store Ext.data.Store The store to bind to this view */ bindStore?( store?:Ext.data.IStore ): void; /** [Method] Binds listeners for this component to the store - * @param store Ext.data.IAbstractStore The store to bind to + * @param store Ext.data.AbstractStore The store to bind to */ bindStoreListeners?( store?:Ext.data.IAbstractStore ): void; + /** [Method] Deselects all selected records */ + clearSelections?(): void; /** [Method] Function which can be overridden which returns the data object passed to this DataView s template to render the whole - * @param records Ext.data.IModel[] An Array of Ext.data.Models to be rendered into the DataView. + * @param records Ext.data.Model[] An Array of Ext.data.Models to be rendered into the DataView. * @param startIndex Number the index number of the Record being prepared for rendering. */ - collectData?( records?:Ext.data.IModel[], startIndex?:number ): Object[]; + collectData?( records?:Ext.data.IModel[], startIndex?:number ): any[]; /** [Method] Deselects a record instance by record instance or index - * @param records Ext.data.IModel[] An array of records or an index + * @param records Ext.data.Model[]/Number An array of records or an index * @param suppressEvent Boolean Set to false to not fire a deselect event */ + deselect?( records?:any, suppressEvent?:any ): any; deselect?( records?:Ext.data.IModel[], suppressEvent?:bool ): void; deselect?( records?:number, suppressEvent?:bool ): void; /** [Method] Returns the template node the passed child belongs to or null if it doesn t belong to one @@ -29622,11 +37304,11 @@ declare module Ext.view { */ findItemByChild?( node?:HTMLElement ): HTMLElement; /** [Method] Returns the template node by the Ext EventObject or null if it is not found - * @param e Ext.IEventObject + * @param e Ext.EventObject */ findTargetByEvent?( e?:Ext.IEventObject ): void; /** [Method] Gets a template node - * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node. + * @param nodeInfo HTMLElement/String/Number/Ext.data.Model An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node. */ getNode?( nodeInfo?:any ): any; getNode?( nodeInfo?:HTMLElement ): HTMLElement; @@ -29639,7 +37321,7 @@ declare module Ext.view { */ getNodes?( start?:number, end?:number ): HTMLElement[]; /** [Method] Gets a record from a node - * @param node any The node to evaluate + * @param node Ext.Element/HTMLElement The node to evaluate */ getRecord?( node?:any ): any; getRecord?( node?:Ext.IElement ): Ext.data.IModel; @@ -29650,52 +37332,51 @@ declare module Ext.view { getRecords?( nodes?:HTMLElement[] ): Ext.data.IModel[]; /** [Method] Gets the currently selected nodes */ getSelectedNodes?(): HTMLElement[]; + /** [Method] Gets an array of the selected records */ + getSelectedRecords?(): Ext.data.IModel[]; + /** [Method] Gets the number of selected nodes */ + getSelectionCount?(): number; /** [Method] Gets the selection model for this view */ getSelectionModel?(): Ext.selection.IModel; /** [Method] Returns the store associated with this DataView */ getStore?(): Ext.data.IStore; - /** [Method] Gets the listeners to bind to a new store - * @param store Ext.data.IStore The Store which is being bound to for which a listeners object should be returned. - */ - getStoreListeners?( store?:Ext.data.IStore ): any; + /** [Method] Gets the listeners to bind to a new store */ + getStoreListeners?(): any; /** [Method] Finds the index of the passed node - * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or a record associated with a node. + * @param nodeInfo HTMLElement/String/Number/Ext.data.Model An HTMLElement template node, index of a template node, the id of a template node or a record associated with a node. */ indexOf?( nodeInfo?:any ): any; indexOf?( nodeInfo?:HTMLElement ): number; indexOf?( nodeInfo?:string ): number; indexOf?( nodeInfo?:number ): number; indexOf?( nodeInfo?:Ext.data.IModel ): number; - /** [Method] private The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] Returns true if the passed node is selected else false - * @param node any The node, node index or record to check + * @param node HTMLElement/Number/Ext.data.Model The node, node index or record to check */ isSelected?( node?:any ): any; isSelected?( node?:HTMLElement ): bool; isSelected?( node?:number ): bool; isSelected?( node?:Ext.data.IModel ): bool; /** [Method] Template method it is called when a new store is bound to the current instance - * @param store Ext.data.IAbstractStore The store being bound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object + * @param initial Object + * @param propName Object */ - onBindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + onBindStore?( store?:any, initial?:any, propName?:any ): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; + /** [Method] Template method called when this Component s DOM structure is created */ + onRender?(): void; /** [Method] Template method it is called when an existing store is unbound from the current instance - * @param store Ext.data.IAbstractStore The store being unbound - * @param initial Boolean True if this store is being bound as initialization of the instance. + * @param store Object */ - onUnbindStore?( store?:Ext.data.IAbstractStore, initial?:bool ): void; + onUnbindStore?( store?:any ): void; /** [Method] Function which can be overridden to provide custom formatting for each Record that is used by this DataView s templat - * @param data any The raw data object that was used to create the Record. + * @param data Object/Object[] The raw data object that was used to create the Record. * @param recordIndex Number the index number of the Record being prepared for rendering. - * @param record Ext.data.IModel The Record being prepared for rendering. + * @param record Ext.data.Model The Record being prepared for rendering. */ prepareData?( data?:any, recordIndex?:number, record?:Ext.data.IModel ): any; /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ @@ -29704,84 +37385,144 @@ declare module Ext.view { * @param index Number The item's data index in the store */ refreshNode?( index?:number ): void; + /** [Method] Selects a record instance by record instance or index + * @param records Ext.data.Model[]/Number An array of records or an index + * @param keepExisting Boolean + * @param suppressEvent Boolean Set to false to not fire a select event + */ + select?( records?:any, keepExisting?:any, suppressEvent?:any ): any; + select?( records?:Ext.data.IModel[], keepExisting?:bool, suppressEvent?:bool ): void; + select?( records?:number, keepExisting?:bool, suppressEvent?:bool ): void; /** [Method] Unbinds listeners from this component to the store - * @param store Ext.data.IAbstractStore The store to unbind from + * @param store Ext.data.AbstractStore The store to unbind from */ unbindStoreListeners?( store?:Ext.data.IAbstractStore ): void; } } declare module Ext.view { - export interface IBoundList extends Ext.view.IView { - /** [Config Option] (String) private overrides The base CSS class to apply to this component's element. ... */ + export interface IBoundList extends Ext.view.IView,Ext.IQueryable { + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) This Component is used as a popup, not part of a complex layout. ... */ + /** [Config Option] (Boolean) */ deferInitialRefresh?: bool; - /** [Config Option] (String) The field from the store to show in the view. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed at the bottom of the list and store queries will execute with pa... */ + /** [Config Option] (Number) */ pageSize?: number; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + /** [Config Option] (String/Boolean) */ shadow?: any; - /** [Config Option] (String/Ext.XTemplate) A String or Ext.XTemplate instance to apply to inner template. ... */ + /** [Config Option] (String/Ext.XTemplate) */ tpl?: any; - /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + /** [Config Option] (Boolean) */ trackOver?: bool; - /** [Property] (Ext.toolbar.Paging) A reference to the PagingToolbar instance in this view. ... */ + /** [Property] (Ext.toolbar.Paging) */ pagingToolbar?: Ext.toolbar.IPaging; /** [Method] Changes the data store bound to this view and refreshes it - * @param store Ext.data.IStore The store to bind to this view + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IStore ): void; + bindStore?( store?:any, initial?:any ): void; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; /** [Method] A method that returns the inner template for displaying items in the list * @param displayField String The displayField for the BoundList. */ getInnerTpl?( displayField?:string ): string; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ refresh?(): void; } } declare module Ext { - export interface IBoundList extends Ext.view.IView { - /** [Config Option] (String) private overrides The base CSS class to apply to this component's element. ... */ + export interface IBoundList extends Ext.view.IView,Ext.IQueryable { + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; - /** [Config Option] (Boolean) This Component is used as a popup, not part of a complex layout. ... */ + /** [Config Option] (Boolean) */ deferInitialRefresh?: bool; - /** [Config Option] (String) The field from the store to show in the view. ... */ + /** [Config Option] (String) */ displayField?: string; - /** [Config Option] (String) Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. ... */ + /** [Config Option] (String) */ itemCls?: string; - /** [Config Option] (Number) If greater than 0, a Ext.toolbar.Paging is displayed at the bottom of the list and store queries will execute with pa... */ + /** [Config Option] (Number) */ pageSize?: number; - /** [Config Option] (Ext.XTemplate/String/String[]) An XTemplate used to create the internal structure inside this Component's encapsulating Element. ... */ + /** [Config Option] (Ext.XTemplate/String/String[]) */ renderTpl?: any; - /** [Config Option] (String/Boolean) Specifies whether the floating component should be given a shadow. ... */ + /** [Config Option] (String/Boolean) */ shadow?: any; - /** [Config Option] (String/Ext.XTemplate) A String or Ext.XTemplate instance to apply to inner template. ... */ + /** [Config Option] (String/Ext.XTemplate) */ tpl?: any; - /** [Config Option] (Boolean) When true the overItemCls will be applied to rows when hovered over. ... */ + /** [Config Option] (Boolean) */ trackOver?: bool; - /** [Property] (Ext.toolbar.Paging) A reference to the PagingToolbar instance in this view. ... */ + /** [Property] (Ext.toolbar.Paging) */ pagingToolbar?: Ext.toolbar.IPaging; /** [Method] Changes the data store bound to this view and refreshes it - * @param store Ext.data.IStore The store to bind to this view + * @param store Object + * @param initial Object */ - bindStore?( store?:Ext.data.IStore ): void; + bindStore?( store?:any, initial?:any ): void; + /** [Method] Retrieves the first direct child of this container which matches the passed selector or component + * @param selector String/Ext.Component An Ext.ComponentQuery selector. If no selector is specified, the first child will be returned. + */ + child?( selector?:any ): any; + child?( selector?:string ): any; + child?( selector?:Ext.IComponent ): any; + /** [Method] Retrieves the first descendant of this container which matches the passed selector + * @param selector String/Ext.Component An Ext.ComponentQuery selector or Ext.Component. If no selector is specified, the first child will be returned. + */ + down?( selector?:any ): any; + down?( selector?:string ): any; + down?( selector?:Ext.IComponent ): any; /** [Method] A method that returns the inner template for displaying items in the list * @param displayField String The displayField for the BoundList. */ getInnerTpl?( displayField?:string ): string; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; + /** [Method] Retrieves all descendant components which match the passed selector + * @param selector String Selector complying to an Ext.ComponentQuery selector. If no selector is specified all items will be returned. + */ + query?( selector?:string ): Ext.IComponent[]; + /** [Method] Retrieves all descendant components which match the passed function + * @param fn Function The matcher function. It will be called with a single argument, the component being tested. + * @param scope Object The scope in which to run the function. If not specified, it will default to the active component. + */ + queryBy?( fn?:any, scope?:any ): Ext.IComponent[]; + /** [Method] Finds a component at any level under this container matching the id itemId + * @param id String The id to find + */ + queryById?( id?:string ): Ext.IComponent; /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ refresh?(): void; } @@ -29802,67 +37543,71 @@ declare module Ext.view { } declare module Ext.view { export interface IDragZone extends Ext.dd.IDragZone { - /** [Config Option] (Object/Boolean) True to register this container with the Scrollmanager for auto scrolling during drag operations. ... */ + /** [Config Option] (Object/Boolean) */ containerScroll?: any; /** [Method] Called when a mousedown occurs in this container - * @param e Event The mouse down event + * @param e Object */ - getDragData?( e?:Event ): any; + getDragData?( e?:any ): any; /** [Method] Called before a repair of an invalid drop to get the XY to animate to - * @param e Event The mouse up event + * @param e Object + * @param data Object */ - getRepairXY?( e?:Event ): number[]; + getRepairXY?( e?:any, data?:any ): number[]; /** [Method] Sets up the DragDrop object - * @param id String the id of the linked element - * @param sGroup String the group of related items - * @param config Object configuration attributes + * @param id Object + * @param sGroup Object + * @param config Object */ - init?( id?:string, sGroup?:string, config?:any ): void; + init?( id?:any, sGroup?:any, config?:any ): void; /** [Method] Called once drag threshold has been reached to initialize the proxy element - * @param x Number The x position of the click on the dragged object - * @param y Number The y position of the click on the dragged object + * @param x Object + * @param y Object */ - onInitDrag?( x?:number, y?:number ): bool; + onInitDrag?( x?:any, y?:any ): bool; } } declare module Ext.view { export interface IDropZone extends Ext.dd.IDropZone { + /** [Method] Destroy this DragDrop instance */ + destroy?(): void; /** [Method] Returns a custom data object associated with the DOM node that is the target of the event - * @param e Event The event + * @param e Object */ - getTargetFromEvent?( e?:Event ): any; + getTargetFromEvent?( e?:any ): any; /** [Method] Moved out of the DropZone without dropping - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop target - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag zone + * @param node Object + * @param dragZone Object + * @param e Object + * @param data Object */ - notifyOut?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): void; + notifyOut?( node?:any, dragZone?:any, e?:any, data?:any ): void; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped on it but not on any of its registered - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + * @param dd Object + * @param e Object + * @param data Object */ - onContainerDrop?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; - /** [Method] The mouse is past the end of all nodes or there are no nodes Called while the DropZone determines that a Ext dd Dr - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + onContainerDrop?( dd?:any, e?:any, data?:any ): bool; + /** [Method] The mouse is past the end of all nodes or there are no nodes + * @param dd Object + * @param e Object + * @param data Object */ - onContainerOver?( source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + onContainerOver?( dd?:any, e?:any, data?:any ): string; /** [Method] Called when the DropZone determines that a Ext dd DragSource has been dropped onto the drop node - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + * @param targetNode Object + * @param dragZone Object + * @param e Object + * @param data Object */ - onNodeDrop?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): bool; - /** [Method] The mouse is over a View node Called while the DropZone determines that a Ext dd DragSource is over a drop node that - * @param nodeData Object The custom data associated with the drop node (this is the same value returned from getTargetFromEvent for this node) - * @param source Ext.dd.IDragSource The drag source that was dragged over this drop zone - * @param e Event The event - * @param data Object An object containing arbitrary data supplied by the drag source + onNodeDrop?( targetNode?:any, dragZone?:any, e?:any, data?:any ): bool; + /** [Method] The mouse is over a View node + * @param node Object + * @param dragZone Object + * @param e Object + * @param data Object */ - onNodeOver?( nodeData?:any, source?:Ext.dd.IDragSource, e?:Event, data?:any ): string; + onNodeOver?( node?:any, dragZone?:any, e?:any, data?:any ): string; } } declare module Ext.view { @@ -29876,7 +37621,7 @@ declare module Ext.view { */ fill?( els?:HTMLElement[] ): Ext.view.INodeCache; /** [Method] Find the index of the passed element within the composite collection - * @param el any The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, or an Ext.dom.Element, or an HtmlElement to find within the composite collection. */ indexOf?( el?:any ): any; indexOf?( el?:string ): number; @@ -29884,17 +37629,18 @@ declare module Ext.view { indexOf?( el?:Ext.IElement ): number; indexOf?( el?:number ): number; /** [Method] Removes the specified element s - * @param el String The id of an element, the Element itself, the index of the element in this composite or an array of any of those. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite or an array of any of those. * @param removeDom Boolean True to also remove the element from the document */ + removeElement?( el?:any, removeDom?:any ): any; removeElement?( el?:string, removeDom?:bool ): void; removeElement?( el?:HTMLElement, removeDom?:bool ): void; removeElement?( el?:Ext.IElement, removeDom?:bool ): void; removeElement?( el?:number, removeDom?:bool ): void; /** [Method] Replaces the specified element with the passed element - * @param el any The id of an element, the Element itself, the index of the element in this composite to replace. - * @param replacement any The id of an element or the Element itself. - * @param domReplace any True to remove and replace the element in the document too. + * @param el String/HTMLElement/Ext.Element/Number The id of an element, the Element itself, the index of the element in this composite to replace. + * @param replacement String/Ext.Element The id of an element or the Element itself. + * @param domReplace Boolean True to remove and replace the element in the document too. */ replaceElement?( el?:any, replacement?:any, domReplace?:any ): any; replaceElement?( el?:string, replacement?:string, domReplace?:bool ): Ext.view.INodeCache; @@ -29906,7 +37652,7 @@ declare module Ext.view { replaceElement?( el?:Ext.IElement, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; replaceElement?( el?:number, replacement?:Ext.IElement, domReplace?:bool ): Ext.view.INodeCache; /** [Method] Appends prepends records depending on direction flag - * @param newRecords Ext.data.IModel[] Items to append/prepend + * @param newRecords Ext.data.Model[] Items to append/prepend * @param direction Number -1' = scroll up,0` = scroll down. * @param removeCount Number The number of records to remove from the end. if scrolling down, rows are removed from the top and the new rows are added at the bottom. */ @@ -29915,66 +37661,76 @@ declare module Ext.view { } declare module Ext.view { export interface ITable extends Ext.view.IView { - /** [Config Option] (String) The base CSS class to apply to this component's element. ... */ + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (String/Object) The sizing and positioning of a Component's internal Elements is the responsibility of the Component's layout manager... */ + /** [Config Option] (String/Object) */ componentLayout?: any; /** [Config Option] (Boolean) */ enableTextSelection?: bool; - /** [Config Option] (String) A CSS class to add to the first cell in every row to enable special styling for the first column. ... */ + /** [Config Option] (String) */ firstCls?: string; - /** [Config Option] (String) view item (may be a wrapper) This is a required setting. ... */ + /** [Config Option] (String) */ itemSelector?: string; - /** [Config Option] (String) A CSS class to add to the last cell in every row to enable special styling for the last column. ... */ + /** [Config Option] (String) */ lastCls?: string; - /** [Config Option] (Boolean) True to show the dirty cell indicator when a cell has been modified. ... */ + /** [Config Option] (Boolean) */ markDirty?: bool; - /** [Config Option] (String) A CSS class to apply to each item in the view on mouseover. ... */ + /** [Config Option] (String) */ overItemCls?: string; - /** [Config Option] (String) A CSS class to apply to each selected item in the view. ... */ + /** [Config Option] (String) */ selectedItemCls?: string; - /** [Config Option] (Boolean) True to stripe the rows. ... */ + /** [Config Option] (Boolean) */ stripeRows?: bool; - /** [Config Option] (Boolean) cfg docs inherited When true the overItemCls will be applied to rows when hovered over. ... */ + /** [Config Option] (Boolean) */ trackOver?: bool; /** [Method] Adds a CSS Class to a specific row - * @param rowInfo HTMLElement An HTMLElement, index or instance of a model representing this row + * @param rowInfo HTMLElement/String/Number/Ext.data.Model An HTMLElement, index or instance of a model representing this row * @param cls String */ + addRowCls?( rowInfo?:any, cls?:any ): any; addRowCls?( rowInfo?:HTMLElement, cls?:string ): void; addRowCls?( rowInfo?:string, cls?:string ): void; addRowCls?( rowInfo?:number, cls?:string ): void; addRowCls?( rowInfo?:Ext.data.IModel, cls?:string ): void; /** [Method] Sizes the passed header to fit the max content width - * @param header Ext.grid.column.IColumn The header (or index of header) to auto size. + * @param header Ext.grid.column.Column/Number The header (or index of header) to auto size. */ + autoSizeColumn?( header?:any ): any; autoSizeColumn?( header?:Ext.grid.column.IColumn ): void; autoSizeColumn?( header?:number ): void; /** [Method] Invoked before the Component is destroyed */ beforeDestroy?(): void; /** [Method] Function which can be overridden which returns the data object passed to this DataView s template to render the whole - * @param records Ext.data.IModel[] An Array of Ext.data.Models to be rendered into the DataView. - * @param startIndex Number the index number of the Record being prepared for rendering. + * @param records Object + * @param startIndex Object */ - collectData?( records?:Ext.data.IModel[], startIndex?:number ): Object[]; + collectData?( records?:any, startIndex?:any ): any[]; + /** [Method] Expands a particular header to fit the max content width + * @param header Object + */ + expandToFit?( header?:any ): void; /** [Method] Try to focus this component - * @param selectText any If applicable, true to also select the text in this component - * @param delay any Delay the focus this number of milliseconds (true for 10 milliseconds). + * @param selectText Object + * @param delay Object */ - focus?( selectText?:any, delay?:any ): any; - focus?( selectText?:bool, delay?:bool ): Ext.IComponent; - focus?( selectText?:bool, delay?:number ): Ext.IComponent; + focus?( selectText?:any, delay?:any ): Ext.IComponent; /** [Method] Focuses a particular row and brings it into view - * @param rowIdx HTMLElement An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node. + * @param row HTMLElement/String/Number/Ext.data.Model An HTMLElement template node, index of a template node, the id of a template node or the + * @param delay Boolean/Number Delay the focus this number of milliseconds (true for 10 milliseconds). record associated with the node. */ - focusRow?( rowIdx?:HTMLElement ): void; - focusRow?( rowIdx?:string ): void; - focusRow?( rowIdx?:number ): void; - focusRow?( rowIdx?:Ext.data.IModel ): void; + focusRow?( row?:any, delay?:any ): any; + focusRow?( row?:HTMLElement, delay?:bool ): void; + focusRow?( row?:string, delay?:bool ): void; + focusRow?( row?:number, delay?:bool ): void; + focusRow?( row?:Ext.data.IModel, delay?:bool ): void; + focusRow?( row?:HTMLElement, delay?:number ): void; + focusRow?( row?:string, delay?:number ): void; + focusRow?( row?:number, delay?:number ): void; + focusRow?( row?:Ext.data.IModel, delay?:number ): void; /** [Method] Returns a CSS selector which selects the outermost element s in this view */ getBodySelector?(): void; /** [Method] Returns a CSS selector which selects a particular column if the desired header is passed or a general cell selector - * @param header Ext.grid.column.IColumn The column for which to return the selector. If omitted, the general cell selector which matches ant cell will be returned. + * @param header Ext.grid.column.Column The column for which to return the selector. If omitted, the general cell selector which matches ant cell will be returned. */ getCellSelector?( header?:Ext.grid.column.IColumn ): void; /** [Method] Returns a CSS selector which selects the element s which define the width of a column @@ -29990,8 +37746,8 @@ declare module Ext.view { /** [Method] Returns a CSS selector which selects items of the view rendered by the rowTpl */ getItemSelector?(): void; /** [Method] Returns the node given the passed Record or index or node - * @param nodeInfo any The node or record - * @param dataRow any true to return the data row (not the top level row if wrapped), false to return the top level row. + * @param nodeInfo HTMLElement/String/Number/Ext.data.Model The node or record + * @param dataRow Boolean true to return the data row (not the top level row if wrapped), false to return the top level row. */ getNode?( nodeInfo?:any, dataRow?:any ): any; getNode?( nodeInfo?:HTMLElement, dataRow?:bool ): HTMLElement; @@ -30000,47 +37756,43 @@ declare module Ext.view { getNode?( nodeInfo?:Ext.data.IModel, dataRow?:bool ): HTMLElement; /** [Method] Returns a CSS selector which selects the element which contains record nodes */ getNodeContainerSelector?(): void; - /** [Method] TODO have this use the new Ext grid CellContext class Gets the current XY position of the component s underlying el - * @param local Boolean If true the element's left and top are returned instead of page XY. + /** [Method] Gets the current XY position of the component s underlying element + * @param record Object + * @param header Object */ - getPosition?( local?:bool ): number[]; + getPosition?( record?:any, header?:any ): number[]; /** [Method] Gets a record from a node - * @param node any The node to evaluate + * @param node Object */ - getRecord?( node?:any ): any; - getRecord?( node?:Ext.IElement ): Ext.data.IModel; - getRecord?( node?:HTMLElement ): Ext.data.IModel; + getRecord?( node?:any ): Ext.data.IModel; /** [Method] Override this function to apply custom CSS classes to rows during rendering - * @param record Ext.data.IModel The record corresponding to the current row. + * @param record Ext.data.Model The record corresponding to the current row. * @param index Number The row index. * @param rowParams Object DEPRECATED. For row body use the getAdditionalData method of the rowbody feature. - * @param store Ext.data.IStore The store this grid is bound to + * @param store Ext.data.Store The store this grid is bound to */ getRowClass?( record?:Ext.data.IModel, index?:number, rowParams?:any, store?:Ext.data.IStore ): string; /** [Method] Finds the index of the passed node - * @param nodeInfo any An HTMLElement template node, index of a template node, the id of a template node or a record associated with a node. + * @param node Object */ - indexOf?( nodeInfo?:any ): any; - indexOf?( nodeInfo?:HTMLElement ): number; - indexOf?( nodeInfo?:string ): number; - indexOf?( nodeInfo?:number ): number; - indexOf?( nodeInfo?:Ext.data.IModel ): number; - /** [Method] The initComponent template method is an important initialization step for a Component */ + indexOf?( node?:any ): number; + /** [Method] private */ initComponent?(): void; /** [Method] Allows addition of behavior to the destroy operation */ onDestroy?(): void; /** [Method] Refreshes the grid view */ refresh?(): void; /** [Method] Removes a CSS Class from a specific row - * @param rowInfo HTMLElement An HTMLElement, index or instance of a model representing this row + * @param rowInfo HTMLElement/String/Number/Ext.data.Model An HTMLElement, index or instance of a model representing this row * @param cls String */ + removeRowCls?( rowInfo?:any, cls?:any ): any; removeRowCls?( rowInfo?:HTMLElement, cls?:string ): void; removeRowCls?( rowInfo?:string, cls?:string ): void; removeRowCls?( rowInfo?:number, cls?:string ): void; removeRowCls?( rowInfo?:Ext.data.IModel, cls?:string ): void; /** [Method] Navigates from the passed record by the passed increment which may be ve or ve Skips hidden records - * @param startRec Ext.data.IModel The Record to start from. + * @param startRec Ext.data.Model The Record to start from. * @param distance Number The distance to move from the record. May be +ve or -ve. */ walkRecs?( startRec?:Ext.data.IModel, distance?:number ): void; @@ -30054,36 +37806,32 @@ declare module Ext.view { declare module Ext.view { export interface ITableLayout extends Ext.layout.component.IAuto { /** [Method] Called before any calculation cycles to prepare for layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - beginLayout?( ownerContext?:Ext.layout.IContextItem ): void; + beginLayout?( ownerContext?:any ): void; /** [Method] Called to perform the calculations for this layout - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. + * @param ownerContext Object */ - calculate?( ownerContext?:Ext.layout.IContextItem ): void; - /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM - * @param ownerContext Ext.layout.IContextItem The context item for the layout's owner component. - */ - finishedLayout?( ownerContext?:Ext.layout.IContextItem ): void; + calculate?( ownerContext?:any ): void; + /** [Method] This method is called after all layouts are complete and their calculations flushed to the DOM */ + finishedLayout?(): void; } } declare module Ext.view { export interface IView extends Ext.view.IAbstractView { - /** [Config Option] (Number) The number of milliseconds to buffer mouseover and mouseout event handling on view items. ... */ + /** [Config Option] (Number) */ mouseOverOutBuffer?: number; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; /** [Method] Un highlights the currently highlighted item if any */ clearHighlight?(): void; /** [Method] Focuses a node in the view - * @param rec Ext.data.IModel The record associated to the node that is to be focused. + * @param rec Ext.data.Model The record associated to the node that is to be focused. */ focusNode?( rec?:Ext.data.IModel ): void; /** [Method] Highlights a given item in the View * @param item HTMLElement The item to highlight */ highlightItem?( item?:HTMLElement ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ refresh?(): void; @@ -30091,21 +37839,19 @@ declare module Ext.view { } declare module Ext { export interface IDataView extends Ext.view.IAbstractView { - /** [Config Option] (Number) The number of milliseconds to buffer mouseover and mouseout event handling on view items. ... */ + /** [Config Option] (Number) */ mouseOverOutBuffer?: number; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; /** [Method] Un highlights the currently highlighted item if any */ clearHighlight?(): void; /** [Method] Focuses a node in the view - * @param rec Ext.data.IModel The record associated to the node that is to be focused. + * @param rec Ext.data.Model The record associated to the node that is to be focused. */ focusNode?( rec?:Ext.data.IModel ): void; /** [Method] Highlights a given item in the View * @param item HTMLElement The item to highlight */ highlightItem?( item?:HTMLElement ): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ + /** [Method] private */ initComponent?(): void; /** [Method] Refreshes the view by reloading the data from the store and re rendering the template */ refresh?(): void; @@ -30113,51 +37859,59 @@ declare module Ext { } declare module Ext.window { export interface IMessageBox extends Ext.window.IWindow { - /** [Config Option] (String) The action to take when the close header tool is clicked: 'destroy' : remove the window from the DOM and destroy i... */ + /** [Config Option] (String) */ closeAction?: string; - /** [Config Option] (String) An optional extra CSS class that will be added to this component's Element. ... */ + /** [Config Option] (String) */ cls?: string; - /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (String) hide it by offsets. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (Ext.enums.Layout/Object) Important: In order for child items to be correctly sized and positioned, typically a layout manager must be specifie... */ + /** [Config Option] (Ext.enums.Layout/Object) */ layout?: any; - /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + /** [Config Option] (Number) */ + maxHeight?: number; + /** [Config Option] (Number) */ + maxWidth?: number; + /** [Config Option] (Number) */ + minHeight?: number; + /** [Config Option] (Number) */ + minWidth?: number; + /** [Config Option] (Boolean/Object) */ resizable?: any; - /** [Config Option] (Boolean/Number) We want to shrinkWrap around all docked items Allows for this panel to include the dockedItems when trying to determ... */ + /** [Config Option] (Boolean/Number) */ shrinkWrapDock?: any; - /** [Config Option] (String) The title text to be used to display in the panel header. ... */ + /** [Config Option] (String) */ title?: string; - /** [Property] (Number) Button config that displays a single Cancel button ... */ + /** [Property] (Number) */ CANCEL?: number; - /** [Property] (String) The CSS class that provides the ERROR icon image ... */ + /** [Property] (String) */ ERROR?: string; - /** [Property] (String) The CSS class that provides the INFO icon image ... */ + /** [Property] (String) */ INFO?: string; - /** [Property] (Number) Button config that displays a single No button ... */ + /** [Property] (Number) */ NO?: number; - /** [Property] (Number) Button config that displays a single OK button ... */ + /** [Property] (Number) */ OK?: number; - /** [Property] (Number) Button config that displays OK and Cancel buttons ... */ + /** [Property] (Number) */ OKCANCEL?: number; - /** [Property] (String) The CSS class that provides the QUESTION icon image ... */ + /** [Property] (String) */ QUESTION?: string; - /** [Property] (String) The CSS class that provides the WARNING icon image ... */ + /** [Property] (String) */ WARNING?: string; - /** [Property] (Number) Button config that displays a single Yes button ... */ + /** [Property] (Number) */ YES?: number; - /** [Property] (Number) Button config that displays Yes and No buttons ... */ + /** [Property] (Number) */ YESNO?: number; - /** [Property] (Number) Button config that displays Yes, No and Cancel buttons ... */ + /** [Property] (Number) */ YESNOCANCEL?: number; - /** [Property] (Object) An object containing the default button text strings that can be overriden for localized language support. ... */ + /** [Property] (Object) */ buttonText?: any; - /** [Property] (Number) The default height in pixels of the message box's multiline textarea if displayed. ... */ + /** [Property] (Number) */ defaultTextHeight?: number; - /** [Property] (Number) The minimum width in pixels of the message box if it is a progress-style dialog. ... */ + /** [Property] (Number) */ minProgressWidth?: number; - /** [Property] (Number) The minimum width in pixels of the message box if it is a prompt dialog. ... */ + /** [Property] (Number) */ minPromptWidth?: number; /** [Method] Displays a standard read only message box with an OK button comparable to the basic JavaScript alert prompt * @param title String The title bar text @@ -30173,24 +37927,10 @@ declare module Ext.window { * @param scope Object The scope (this reference) in which the callback is executed. */ confirm?( title?:string, msg?:string, fn?:any, scope?:any ): Ext.window.IMessageBox; - /** [Method] Hides this Component setting it to invisible using the configured hideMode - * @param animateTarget any only valid for floating Components such as Windows or ToolTips, or regular Components which have been configured with floating: true.. The target to which the Component should animate while hiding. - * @param callback any A callback function to call after the Component is hidden. - * @param scope any The scope (this reference) in which the callback is executed. Defaults to this Component. - */ - hide?( animateTarget?:any, callback?:any, scope?:any ): any; - hide?( animateTarget?:string, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): Ext.IComponent; - hide?( animateTarget?:Ext.IComponent, callback?:any, scope?:any ): Ext.IComponent; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Hides this Component setting it to invisible using the configured hideMode */ + hide?(): Ext.IComponent; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Displays a message box with a progress bar * @param title String The title bar text * @param msg String The message box body text @@ -30198,12 +37938,12 @@ declare module Ext.window { */ progress?( title?:string, msg?:string, progressText?:string ): Ext.window.IMessageBox; /** [Method] Displays a message box with OK and Cancel buttons prompting the user to enter some text comparable to JavaScript s p - * @param title any The title bar text - * @param msg any The message box body text - * @param fn any The callback function invoked after the message box is closed. See show method for details. - * @param scope any The scope (this reference) in which the callback is executed. - * @param multiline any True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox/ - * @param value any Default value of the text input element + * @param title String The title bar text + * @param msg String The message box body text + * @param fn Function The callback function invoked after the message box is closed. See show method for details. + * @param scope Object The scope (this reference) in which the callback is executed. + * @param multiline Boolean/Number True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox/ + * @param value String Default value of the text input element */ prompt?( title?:any, msg?:any, fn?:any, scope?:any, multiline?:any, value?:any ): any; prompt?( title?:string, msg?:string, fn?:any, scope?:any, multiline?:bool, value?:string ): Ext.window.IMessageBox; @@ -30234,109 +37974,82 @@ declare module Ext.window { } declare module Ext.window { export interface IWindow extends Ext.panel.IPanel { - /** [Config Option] (String/Ext.Element) Id or element from which the window should animate while opening. ... */ + /** [Config Option] (String/Ext.Element) */ animateTarget?: any; - /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) Windows render to the body on first show. ... */ - autoRender?: any; - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (Boolean) */ + autoRender?: bool; + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (Boolean) True to render the window collapsed, false to render it expanded. ... */ + /** [Config Option] (Boolean) */ collapsed?: bool; - /** [Config Option] (Boolean) inherited docs, same default True to make the panel collapsible and have an expand/collapse toggle Tool added into t... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Boolean) True to constrain the window header within its containing element (allowing the window body to fall outside of its co... */ + /** [Config Option] (Boolean) */ constrainHeader?: bool; - /** [Config Option] (String/Number/Ext.Component) Specifies a Component to receive focus when this Window is focused. ... */ + /** [Config Option] (String/Number/Ext.Component) */ defaultFocus?: any; - /** [Config Option] (Boolean) True to allow the window to be dragged by the header bar, false to disable dragging. ... */ + /** [Config Option] (Boolean) */ draggable?: bool; - /** [Config Option] (Boolean) True to always expand the window when it is displayed, false to keep it in its current state (which may be collapsed)... */ + /** [Config Option] (Boolean) */ expandOnShow?: bool; - /** [Config Option] (Boolean/Function) Set to false to disable the ghost panel during dragging the window. ... */ + /** [Config Option] (Boolean/Function) */ ghost?: any; - /** [Config Option] (Boolean) Render this Window hidden. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) Windows hide using offsets in order to preserve the scroll positions of their descendants. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (Boolean) True to hide this Window's shadow when another floating item in the same z-index stack is activated. ... */ + /** [Config Option] (Boolean) */ hideShadowOnDeactivate?: bool; - /** [Config Option] (Boolean) True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and di... */ + /** [Config Option] (Boolean) */ maximizable?: bool; - /** [Config Option] (Boolean) True to initially display the window in a maximized state. ... */ + /** [Config Option] (Boolean) */ maximized?: bool; - /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its height to. ... */ + /** [Config Option] (Number) */ minHeight?: number; - /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its width to. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean) True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and di... */ + /** [Config Option] (Boolean) */ minimizable?: bool; - /** [Config Option] (Boolean) True to make the window modal and mask everything behind it when displayed, false to display it without restricting a... */ + /** [Config Option] (Boolean) */ modal?: bool; - /** [Config Option] (Function) Allows override of the built-in processing for the escape key. ... */ + /** [Config Option] (Function) */ onEsc?: any; - /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + /** [Config Option] (Boolean) */ overlapHeader?: bool; - /** [Config Option] (Boolean) True to render the window body with a transparent background so that it will blend into the framing elements, false t... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + /** [Config Option] (Boolean/Object) */ resizable?: any; - /** [Config Option] (Number) The X position of the left edge of the window on initial showing. ... */ + /** [Config Option] (Number) */ x?: number; - /** [Config Option] (Number) The Y position of the top edge of the window on initial showing. ... */ + /** [Config Option] (Number) */ y?: number; - /** [Property] (Ext.util.ComponentDragger) If this Window is configured draggable, this property will contain an instance of Ext.util.ComponentDragger (A subcla... */ + /** [Property] (Ext.util.ComponentDragger) */ dd?: Ext.util.IComponentDragger; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Window, or subclass thereof. ... */ + /** [Property] (Boolean) */ isWindow?: bool; - /** [Method] Invoked after the Panel is Collapsed - * @param animated Boolean - */ - afterCollapse?( animated?:bool ): void; - /** [Method] Invoked after the Panel is Expanded - * @param animated Boolean - */ - afterExpand?( animated?:bool ): void; - /** [Method] Invoked after the Component has been hidden - * @param callback Function - * @param scope Object - */ - afterHide?( callback?:any, scope?:any ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; + /** [Method] Invoked after the Panel is Collapsed */ + afterCollapse?(): void; + /** [Method] Invoked after the Panel is Expanded */ + afterExpand?(): void; /** [Method] Applies the state to the object - * @param state Object The state + * @param state Object */ applyState?( state?:any ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; - /** [Method] Occurs before componentLayout is run */ - beforeLayout?(): void; /** [Method] Gets the configured default focus item */ getDefaultFocus?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore * @param animate Boolean true to animate this Window to full size. */ maximize?( animate?:bool ): Ext.window.IWindow; /** [Method] Placeholder method for minimizing the window */ minimize?(): Ext.window.IWindow; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re * @param animate Object */ @@ -30347,109 +38060,82 @@ declare module Ext.window { } declare module Ext { export interface IWindow extends Ext.panel.IPanel { - /** [Config Option] (String/Ext.Element) Id or element from which the window should animate while opening. ... */ + /** [Config Option] (String/Ext.Element) */ animateTarget?: any; - /** [Config Option] (Boolean/String/HTMLElement/Ext.Element) Windows render to the body on first show. ... */ - autoRender?: any; - /** [Config Option] (String) The base CSS class to apply to this panel's element. ... */ + /** [Config Option] (Boolean) */ + autoRender?: bool; + /** [Config Option] (String) */ baseCls?: string; - /** [Config Option] (Boolean) True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow... */ + /** [Config Option] (Boolean) */ closable?: bool; - /** [Config Option] (Boolean) True to render the window collapsed, false to render it expanded. ... */ + /** [Config Option] (Boolean) */ collapsed?: bool; - /** [Config Option] (Boolean) inherited docs, same default True to make the panel collapsible and have an expand/collapse toggle Tool added into t... */ + /** [Config Option] (Boolean) */ collapsible?: bool; - /** [Config Option] (Boolean) True to constrain the window within its containing element, false to allow it to fall outside of its containing element. ... */ + /** [Config Option] (Boolean) */ constrain?: bool; - /** [Config Option] (Boolean) True to constrain the window header within its containing element (allowing the window body to fall outside of its co... */ + /** [Config Option] (Boolean) */ constrainHeader?: bool; - /** [Config Option] (String/Number/Ext.Component) Specifies a Component to receive focus when this Window is focused. ... */ + /** [Config Option] (String/Number/Ext.Component) */ defaultFocus?: any; - /** [Config Option] (Boolean) True to allow the window to be dragged by the header bar, false to disable dragging. ... */ + /** [Config Option] (Boolean) */ draggable?: bool; - /** [Config Option] (Boolean) True to always expand the window when it is displayed, false to keep it in its current state (which may be collapsed)... */ + /** [Config Option] (Boolean) */ expandOnShow?: bool; - /** [Config Option] (Boolean/Function) Set to false to disable the ghost panel during dragging the window. ... */ + /** [Config Option] (Boolean/Function) */ ghost?: any; - /** [Config Option] (Boolean) Render this Window hidden. ... */ + /** [Config Option] (Boolean) */ hidden?: bool; - /** [Config Option] (String) Windows hide using offsets in order to preserve the scroll positions of their descendants. ... */ + /** [Config Option] (String) */ hideMode?: string; - /** [Config Option] (Boolean) True to hide this Window's shadow when another floating item in the same z-index stack is activated. ... */ + /** [Config Option] (Boolean) */ hideShadowOnDeactivate?: bool; - /** [Config Option] (Boolean) True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and di... */ + /** [Config Option] (Boolean) */ maximizable?: bool; - /** [Config Option] (Boolean) True to initially display the window in a maximized state. ... */ + /** [Config Option] (Boolean) */ maximized?: bool; - /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its height to. ... */ + /** [Config Option] (Number) */ minHeight?: number; - /** [Config Option] (Number) inherit docs The minimum value in pixels which this Component will set its width to. ... */ + /** [Config Option] (Number) */ minWidth?: number; - /** [Config Option] (Boolean) True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and di... */ + /** [Config Option] (Boolean) */ minimizable?: bool; - /** [Config Option] (Boolean) True to make the window modal and mask everything behind it when displayed, false to display it without restricting a... */ + /** [Config Option] (Boolean) */ modal?: bool; - /** [Config Option] (Function) Allows override of the built-in processing for the escape key. ... */ + /** [Config Option] (Function) */ onEsc?: any; - /** [Config Option] (Boolean) True to overlap the header in a panel over the framing of the panel itself. ... */ + /** [Config Option] (Boolean) */ overlapHeader?: bool; - /** [Config Option] (Boolean) True to render the window body with a transparent background so that it will blend into the framing elements, false t... */ + /** [Config Option] (Boolean) */ plain?: bool; - /** [Config Option] (Boolean/Object) Specify as true to allow user resizing at each edge and corner of the window, false to disable resizing. ... */ + /** [Config Option] (Boolean/Object) */ resizable?: any; - /** [Config Option] (Number) The X position of the left edge of the window on initial showing. ... */ + /** [Config Option] (Number) */ x?: number; - /** [Config Option] (Number) The Y position of the top edge of the window on initial showing. ... */ + /** [Config Option] (Number) */ y?: number; - /** [Property] (Ext.util.ComponentDragger) If this Window is configured draggable, this property will contain an instance of Ext.util.ComponentDragger (A subcla... */ + /** [Property] (Ext.util.ComponentDragger) */ dd?: Ext.util.IComponentDragger; - /** [Property] (Boolean) true in this class to identify an object as an instantiated Window, or subclass thereof. ... */ + /** [Property] (Boolean) */ isWindow?: bool; - /** [Method] Invoked after the Panel is Collapsed - * @param animated Boolean - */ - afterCollapse?( animated?:bool ): void; - /** [Method] Invoked after the Panel is Expanded - * @param animated Boolean - */ - afterExpand?( animated?:bool ): void; - /** [Method] Invoked after the Component has been hidden - * @param callback Function - * @param scope Object - */ - afterHide?( callback?:any, scope?:any ): void; - /** [Method] Allows addition of behavior after rendering is complete */ - afterRender?(): void; + /** [Method] Invoked after the Panel is Collapsed */ + afterCollapse?(): void; + /** [Method] Invoked after the Panel is Expanded */ + afterExpand?(): void; /** [Method] Applies the state to the object - * @param state Object The state + * @param state Object */ applyState?( state?:any ): void; - /** [Method] Invoked before the Component is destroyed */ - beforeDestroy?(): void; - /** [Method] Occurs before componentLayout is run */ - beforeLayout?(): void; /** [Method] Gets the configured default focus item */ getDefaultFocus?(): void; - /** [Method] The initComponent template method is an important initialization step for a Component */ - initComponent?(): void; /** [Method] Fits the window within its current container and automatically replaces the maximize tool button with the restore * @param animate Boolean true to animate this Window to full size. */ maximize?( animate?:bool ): Ext.window.IWindow; /** [Method] Placeholder method for minimizing the window */ minimize?(): Ext.window.IWindow; - /** [Method] Template method called when this Component s DOM structure is created - * @param parentNode Ext.core.IElement The parent Element in which this Component's encapsulating element is contained. - * @param containerIdx Number The index within the parent Container's child collection of this Component. - */ - onRender?( parentNode?:Ext.core.IElement, containerIdx?:number ): void; - /** [Method] Allows addition of behavior to the show operation - * @param animateTarget String - * @param callback Function - * @param scope Object - */ - onShow?( animateTarget?:string, callback?:any, scope?:any ): void; - onShow?( animateTarget?:Ext.IElement, callback?:any, scope?:any ): void; + /** [Method] Allows addition of behavior to the show operation */ + onShow?(): void; /** [Method] Restores a maximized window back to its original size and position prior to being maximized and also replaces the re * @param animate Object */ @@ -30462,86 +38148,184 @@ declare module Ext { export interface IWindowManager extends Ext.IZIndexManager { } export class WindowManager { + /** [Method] Brings the specified Component to the front of any other active Components in this ZIndexManager + * @param comp String/Object The id of the Component or a Ext.Component instance + */ + static bringToFront( comp?:any ): bool; + /** [Method] Call the original method that was previously overridden with override Ext define My Cat constructor functi + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments) + */ + static callOverridden( args?:any ): any; + static callOverridden( args?:any[] ): any; + /** [Method] Call the parent method of the current method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments) + */ + static callParent( args?:any ): any; + static callParent( args?:any[] ): any; + /** [Method] This method is used by an override to call the superclass method but bypass any overridden method + * @param args Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments) + */ + static callSuper( args?:any ): any; + static callSuper( args?:any[] ): any; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + static each( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + static eachBottomUp( fn?:any, scope?:any ): void; + /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa + * @param fn Function The function to execute for each item + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the current Component in the iteration. + */ + static eachTopDown( fn?:any, scope?:any ): void; + /** [Method] Gets a registered Component by id + * @param id String/Object The id of the Component or a Ext.Component instance + */ + static get( id?:any ): Ext.IComponent; + /** [Method] Gets the currently active Component in this ZIndexManager */ + static getActive(): Ext.IComponent; + /** [Method] Returns zero or more Components in this ZIndexManager using the custom search function passed to this method + * @param fn Function The search function + * @param scope Object The scope (this reference) in which the function is executed. Defaults to the Component being tested. That gets passed to the function if not specified. + */ + static getBy( fn?:any, scope?:any ): any[]; + /** [Method] Returns the initial configuration passed to constructor when instantiating this class + * @param name String Name of the config option to return. + */ + static getInitialConfig( name?:string ): any; + /** [Method] Hides all Components managed by this ZIndexManager */ + static hideAll(): void; + /** [Method] Initialize configuration for this class + * @param config Object + */ + static initConfig( config?:any ): Ext.IBase; + /** [Method] Registers a floating Ext Component with this ZIndexManager + * @param comp Ext.Component The Component to register. + */ + static register( comp?:Ext.IComponent ): void; + /** [Method] Sends the specified Component to the back of other active Components in this ZIndexManager + * @param comp String/Object The id of the Component or a Ext.Component instance + */ + static sendToBack( comp?:any ): Ext.IComponent; + /** [Method] Get the reference to the class from which this object was instantiated */ + static statics(): Ext.IClass; + /** [Method] Unregisters a Ext Component from this ZIndexManager + * @param comp Ext.Component The Component to unregister. + */ + static unregister( comp?:Ext.IComponent ): void; + /** [Method] Add methods properties to the prototype of this class + * @param members Object + */ + static addMembers( members?:any ): void; + /** [Method] Add override static properties of this class + * @param members Object + */ + static addStatics( members?:any ): Ext.IBase; + /** [Method] Create a new instance of this Class */ + static create(): any; + /** [Method] Create aliases for existing prototype methods + * @param alias String/Object The new method name, or an object to set multiple aliases. See flexSetter + * @param origin String/Object The original method name + */ + static createAlias( alias?:any, origin?:any ): void; + /** [Method] Get the current class name in string format */ + static getName(): string; + /** [Method] Adds members to class */ + static implement(): void; + /** [Method] Override members of this class + * @param members Object The properties to add to this class. This should be specified as an object literal containing one or more properties. + */ + static override( members?:any ): Ext.IBase; } } declare module Ext { export interface IXTemplate extends Ext.ITemplate { - /** [Config Option] (String/Array) Optional. ... */ + /** [Config Option] (String/Array) */ definitions?: any; /** [Method] Appends the result of this template to the provided output array - * @param values any The template values. See apply. - * @param out Array The array to which output is pushed. + * @param values Object + * @param out Object + * @param parent Object */ - applyOut?( values?:any, out?:any[] ): any[]; + applyOut?( values?:any, out?:any, parent?:any ): any[]; /** [Method] Does nothing */ compile?(): Ext.IXTemplate; + /** [Method] Gets an XTemplate from an object an instance of an Ext define d class + * @param instance Object The object from which to get the XTemplate (must be an instance of an Ext.define'd class). + * @param name String The name of the property by which to get the XTemplate. + */ + getTpl?( instance?:any, name?:string ): Ext.IXTemplate; } } declare module Ext { export interface IXTemplateCompiler extends Ext.IXTemplateParser { /** [Method] This method is called to process lt tpl case action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object */ - doCase?( action?:string, actions?:any ): void; + doCase?( action?:any ): void; /** [Method] This method is called to process lt tpl default gt */ doDefault?(): void; /** [Method] This method is called to process lt tpl else gt */ doElse?(): void; /** [Method] This method is called to process lt tpl elseif action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object + * @param actions Object */ - doElseIf?( action?:string, actions?:any ): void; + doElseIf?( action?:any, actions?:any ): void; /** [Method] This method is called to process lt tpl gt - * @param type String The type of action that is being ended. - * @param actions Object The other actions keyed by the attribute name (such as 'exec'). + * @param type Object + * @param actions Object */ - doEnd?( type?:string, actions?:any ): void; + doEnd?( type?:any, actions?:any ): void; /** [Method] This method is called to process text - * @param text String + * @param text Object */ - doEval?( text?:string ): void; + doEval?( text?:any ): void; /** [Method] This method is called to process lt tpl exec action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name. + * @param action Object + * @param actions Object */ - doExec?( action?:string, actions?:any ): void; + doExec?( action?:any, actions?:any ): void; /** [Method] This method is called to process expressions like expr - * @param expr String The body of the expression (inside "{[" and "]}"). + * @param expr Object */ - doExpr?( expr?:string ): void; + doExpr?( expr?:any ): void; /** [Method] This method is called to process lt tpl for action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object + * @param actions Object */ - doFor?( action?:string, actions?:any ): void; + doFor?( action?:any, actions?:any ): void; /** [Method] This method is called to process lt tpl foreach action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object + * @param actions Object */ - doForEach?( action?:string, actions?:any ): void; + doForEach?( action?:any, actions?:any ): void; /** [Method] This method is called to process lt tpl if action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object + * @param actions Object */ - doIf?( action?:string, actions?:any ): void; + doIf?( action?:any, actions?:any ): void; /** [Method] This method is called to process lt tpl switch action gt - * @param action String - * @param actions Object Other actions keyed by the attribute name (such as 'exec'). + * @param action Object */ - doSwitch?( action?:string, actions?:any ): void; - /** [Method] This method is called to process simple tags like tag */ - doTag?(): void; - /** [Method] XTemplateParser callouts This method is called to process a piece of raw text from the tpl - * @param text String + doSwitch?( action?:any ): void; + /** [Method] This method is called to process simple tags like tag + * @param tag Object */ - doText?( text?:string ): void; + doTag?( tag?:any ): void; + /** [Method] XTemplateParser callouts + * @param text Object + */ + doText?( text?:any ): void; } } declare module Ext { export interface IXTemplateParser extends Ext.IBase { - /** [Property] (Number) The 'for' or 'foreach' loop context level. ... */ + /** [Property] (Number) */ level?: number; /** [Method] This method is called to process lt tpl case action gt * @param action String @@ -30608,7 +38392,7 @@ declare module Ext { declare module Ext { export interface IZIndexManager extends Ext.IBase { /** [Method] Brings the specified Component to the front of any other active Components in this ZIndexManager - * @param comp any The id of the Component or a Ext.Component instance + * @param comp String/Object The id of the Component or a Ext.Component instance */ bringToFront?( comp?:any ): bool; /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa @@ -30627,7 +38411,7 @@ declare module Ext { */ eachTopDown?( fn?:any, scope?:any ): void; /** [Method] Gets a registered Component by id - * @param id any The id of the Component or a Ext.Component instance + * @param id String/Object The id of the Component or a Ext.Component instance */ get?( id?:any ): Ext.IComponent; /** [Method] Gets the currently active Component in this ZIndexManager */ @@ -30640,15 +38424,15 @@ declare module Ext { /** [Method] Hides all Components managed by this ZIndexManager */ hideAll?(): void; /** [Method] Registers a floating Ext Component with this ZIndexManager - * @param comp Ext.IComponent The Component to register. + * @param comp Ext.Component The Component to register. */ register?( comp?:Ext.IComponent ): void; /** [Method] Sends the specified Component to the back of other active Components in this ZIndexManager - * @param comp any The id of the Component or a Ext.Component instance + * @param comp String/Object The id of the Component or a Ext.Component instance */ sendToBack?( comp?:any ): Ext.IComponent; /** [Method] Unregisters a Ext Component from this ZIndexManager - * @param comp Ext.IComponent The Component to unregister. + * @param comp Ext.Component The Component to unregister. */ unregister?( comp?:Ext.IComponent ): void; } @@ -30656,7 +38440,7 @@ declare module Ext { declare module Ext { export interface IWindowGroup extends Ext.IBase { /** [Method] Brings the specified Component to the front of any other active Components in this ZIndexManager - * @param comp any The id of the Component or a Ext.Component instance + * @param comp String/Object The id of the Component or a Ext.Component instance */ bringToFront?( comp?:any ): bool; /** [Method] Executes the specified function once for every Component in this ZIndexManager passing each Component as the only pa @@ -30675,7 +38459,7 @@ declare module Ext { */ eachTopDown?( fn?:any, scope?:any ): void; /** [Method] Gets a registered Component by id - * @param id any The id of the Component or a Ext.Component instance + * @param id String/Object The id of the Component or a Ext.Component instance */ get?( id?:any ): Ext.IComponent; /** [Method] Gets the currently active Component in this ZIndexManager */ @@ -30688,15 +38472,15 @@ declare module Ext { /** [Method] Hides all Components managed by this ZIndexManager */ hideAll?(): void; /** [Method] Registers a floating Ext Component with this ZIndexManager - * @param comp Ext.IComponent The Component to register. + * @param comp Ext.Component The Component to register. */ register?( comp?:Ext.IComponent ): void; /** [Method] Sends the specified Component to the back of other active Components in this ZIndexManager - * @param comp any The id of the Component or a Ext.Component instance + * @param comp String/Object The id of the Component or a Ext.Component instance */ sendToBack?( comp?:any ): Ext.IComponent; /** [Method] Unregisters a Ext Component from this ZIndexManager - * @param comp Ext.IComponent The Component to unregister. + * @param comp Ext.Component The Component to unregister. */ unregister?( comp?:Ext.IComponent ): void; }