![]() For example, to add a click listener to a Panel's body: new Ext.panel. Will exist only after the Component is rendered. This option is useful during Component construction to add DOM event listeners to elements of Components which The name of a Component property which references an element to add a listener to. This option is only valid for listeners bound to Components. Any resulting objectįrom that call is then applied to the item as default properties.įor example, to automatically apply padding to the body of each of a set ofĬontained items, you could pass: defaults: Scope ( this reference) and passing the added item as the first parameter. Set column name, width, height, title for. If the defaults option is specified as a function, then the function will be called using this Container as the The Grid demonstrates the use of creation of derived fields in a Record created using a custom convert function, and the use of column renderers. If the added item is an instantiated Component, then the default properties areĪpplied conditionally so as not to override existing properties in the item. If an added item is a config object, and not an instantiated Component, then the default properties are This option is a means of applying default settings to all added items whether added through the items RemoveDocked removeListener removeManagedListener resumeEvents sequenceFx setActive setAutoScroll setDisabled setDocked setHeight setIconClass setLoading setPagePosition setPosition setSize setTitle setVisible setWidth show stopFx suspendEvents syncFx toBack toFront toggleCollapse True to make the panel collapsible and have an expand/collapse toggle Tool added into the header tool button area. GetPosition getSize getWidth getXType getXTypes hasActiveFx hasListener insert insertDocked isDisabled isDraggable isDroppable isFloating isHidden isVisible isXType move nextSibling on previousSibling query relayEvents remove removeAll removeCls A CSS class to add to the panel's element after it has been collapsed (defaults to 'x-panel-collapsed' ). add addCls addDocked addEvents addListener addManagedListener afterComponentLayout alignTo animate applyToMarkup bubble center child clearListeners clearManagedListeners cloneConfig close collapse constructor destroy disable doAutoRenderĭoComponentLayout doConstrain doLayout down enable enableBubble expand findLayoutController findParentBy findParentByType fireEvent focus getBox getBubbleTarget getChildByElement getComponent getDockedComponent getDockedItems getEl getHeight getId getInsertPosition getLayout getLoader getPlugin
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |