X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.grid.EditorGridPanel.html?ds=sidebyside diff --git a/docs/output/Ext.grid.EditorGridPanel.html b/docs/output/Ext.grid.EditorGridPanel.html index e8b4eeed..b26632f4 100644 --- a/docs/output/Ext.grid.EditorGridPanel.html +++ b/docs/output/Ext.grid.EditorGridPanel.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Container Panel GridPanel EditorGridPanel
Package: | Ext.grid |
Defined In: | EditorGrid.js |
Class: | EditorGridPanel |
Subclasses: | PropertyGrid |
Extends: | GridPanel |
xtype: | editorgrid |
This class extends the GridPanel Class to provide cell editing +
Observable Component BoxComponent Container Panel GridPanel EditorGridPanel
Package: | Ext.grid |
Defined In: | EditorGrid.js |
Class: | EditorGridPanel |
Subclasses: | PropertyGrid |
Extends: | GridPanel |
This class extends the GridPanel Class to provide cell editing on selected columns. The editable columns are specified by providing an editor in the column configuration.
Editability of columns may be controlled programatically by inserting an implementation @@ -100,8 +100,18 @@ styling applied.
An array of events that, when fired, should be bubbled to any parent container. -Defaults to [].
The maximum value in pixels which this BoxComponent will set its height to.
+Warning: This will override any size management applied by layout managers.
The maximum value in pixels which this BoxComponent will set its width to.
+Warning: This will override any size management applied by layout managers.
The minimum value in pixels which this BoxComponent will set its height to.
+Warning: This will override any size management applied by layout managers.
The minimum value in pixels which this BoxComponent will set its width to.
+Warning: This will override any size management applied by layout managers.
An array of events that, when fired, should be bubbled to any parent container. +See Ext.util.Observable.enableBubble. +Defaults to [].
'right'
,
'left'
and 'center'
(defaults to 'right'
).buttons
will be used as items
for the toolbar in
@@ -148,7 +158,8 @@ which assigns a value by default:
ctCls: 'x-box-layout-ct custom-class'
-tpl
to
+update the content area of the Component.ddText : '{0} selected row{1}'
@@ -286,8 +297,8 @@ will be created automatically if ...false
by default to render with plain 1px square borders. true
to render with
9 elements, complete with custom rounded corners (also see Ext.Element.boxWrap).
@@ -555,7 +566,10 @@ when it is disabled, but masking the panel can provide an additional visual cue
disabled.75
)A path specification, relative to the Component's ownerCt specifying into which -ancestor Container to place a named reference to this Component.
+take advantage of lazy instantiation and rendering.A path specification, relative to the Component's ownerCt
+specifying into which ancestor Container to place a named reference to this Component.
The ancestor axis can be traversed by using '/' characters in the path. For example, to put a reference to a Toolbar Button into the Panel which owns the Toolbar:
var myGrid = new Ext.grid.EditorGridPanel({
title: 'My EditorGridPanel',
@@ -590,9 +604,10 @@ For example, to put a reference to a Toolbar Button into the Panel which owns
}
}
});
-In the code above, if the ref had been 'saveButton'
the reference would
-have been placed into the Toolbar. Each '/' in the ref moves up one level from the
-Component's ownerCt.
Note: this config is only used when this BoxComponent is rendered by a Container which has been configured to use the BorderLayout layout manager (e.g. specifying layout:'border').
data
and
+tplWriteMode
configurations.Ext.XTemplate.overwrite
).Note: see the Note for el
also.
Method | Defined By | |||
---|---|---|---|---|
EditorGridPanel( Object config )
- Parameters:
| EditorGridPanel | |||
addButton( String/Object config , Function handler , Object scope )
+Note: to access items within the Container see itemId. | Component | |||
refOwner : Ext.Container The ancestor Container into which the ref reference was inserted if this Component
+is a child of a Container, and has... The ancestor Container into which the ref reference was inserted if this Component
+is a child of a Container, and has been configured with a ref . | Component | |||
rendered : Boolean True if this component has been rendered. Read-only. | Component |
Method | Defined By | |
---|---|---|
EditorGridPanel( Object config )
+ Parameters:
| EditorGridPanel | |
addButton( String/Object config , Function handler , Object scope )
:
Ext.ButtonAdds a button to this panel. Note that this method must be called prior to rendering. The preferred
approach is to ... Adds a button to this panel. Note that this method must be called prior to rendering. The preferred
approach is to add buttons via the buttons config. Parameters:
| Panel | |
addClass( string cls )
+button config, an object will be treated as a button config object.handler : FunctionThe function to be called on button Ext.Button.click scope : ObjectThe scope ( this reference) in which the button handler function is executed. Defaults to the Button.
| Panel | |
addClass( string cls )
:
Ext.ComponentAdds a CSS class to the component's underlying element. Adds a CSS class to the component's underlying element. Parameters:
| Component | |
addEvents( Object|String o , string Optional. )
:
@@ -937,10 +963,14 @@ Or a shorthand syntax:scope: this });Returns:
| Observable | |
bubble( Function fn , [Object scope ], [Array args ] )
:
- Ext.ContainerBubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of... Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of
-function call will be the scope provided or the current component. The arguments to the function
-will be the args provided or the current component. If the function returns false at any point,
-the bubble is stopped. Parameters:
| Container | |
cloneConfig( Object overrides )
+ Ext.ContainerBubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of... Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of
+function call will be the scope provided or the current component. The arguments to the function
+will be the args provided or the current component. If the function returns false at any point,
+the bubble is stopped. Parameters:
| Container | |
canLayout()
+ :
+ void We can only lay out if there is a view area in which to layout.
+display:none on the layout target, *or any of its par... We can only lay out if there is a view area in which to layout.
+display:none on the layout target, *or any of its parent elements* will mean it has no view area. Parameters:
| Container | |
cloneConfig( Object overrides )
:
Ext.ComponentClone the current component using the original config values passed into this instance by default. Clone the current component using the original config values passed into this instance by default. Parameters:
| Component | |
collapse( Boolean animate )
@@ -954,7 +984,7 @@ cancel the collapse action if it returns false.Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its Ext.Container (if applicable) and unregistering it from
Ext.ComponentMgr. Destruction is generally handled automatically by the framework and this method
-should usually not need to be called directly. Parameters:
| Component | |
enableBubble( Object events )
+should usually not need to be called directly.Parameters:
| Component | |
enableBubble( String/Array events )
:
voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling @@ -963,13 +993,13 @@ this.getBubbleTarget() if present... Enables events fi implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to access the required target more quickly. Example:
Parameters:
| Observable | |
expand( Boolean animate )
+});Parameters:
| Observable | |
expand( Boolean animate )
:
Ext.PanelExpands the panel body so that it becomes visible. Fires the beforeexpand event which will
cancel the expand action ... Expands the panel body so that it becomes visible. Fires the beforeexpand event which will
@@ -1068,17 +1098,17 @@ id is returned using g... | Component | |
getLayoutTarget()
:
- Ext.Element Returns the Element to be used to contain the child Components of this Container.
-An implementation is provided whic... Returns the Element to be used to contain the child Components of this Container. -An implementation is provided which returns the Container's Element, but -if there is a more complex structure to a Container, this may be overridden to return + Ext.Element Returns the Element to be used to contain the child Components of this Container.
+An implementation is provided which... Returns the Element to be used to contain the child Components of this Container. +An implementation is provided which returns the Container's Element, but +if there is a more complex structure to a Container, this may be overridden to return the element into which the layout renders child Components. Parameters:
| Container | |
getOuterSize()
:
Object Gets the current size of the component's underlying element, including space taken by its margins. Gets the current size of the component's underlying element, including space taken by its margins. Parameters:
| BoxComponent | |
getPosition( [Boolean local ] )
:
ArrayGets the current XY position of the component's underlying element. Gets the current XY position of the component's underlying element. Parameters:
| BoxComponent | |
getResizeEl()
:
- void Returns the outermost Element of this Component which defines the Components overall size.
+ Ext.Element Returns the outermost Element of this Component which defines the Components overall size.
Usually this will return t... Returns the outermost Element of this Component which defines the Components overall size. Usually this will return the same Element as An example is a ComboBox. It is encased in a wrapping Element which
contains both the Parameters:
| BoxComponent | |
getSelectionModel()
+This Element is returned as the resizeEl .Parameters:
| BoxComponent | |
getSelectionModel()
:
SelectionModel Returns the grid's selection model configured by the selModel
configuration option. If no selection model was config... Returns the grid's selection model configured by the selModel
@@ -1141,7 +1171,26 @@ to participate in determination of inherited xtypes.
var isText = t.isXType('textfield'); // true
var isBoxSubclass = t.isXType('box'); // true, descended from BoxComponent
var isBoxInstance = t.isXType('box', true); // false, not a direct BoxComponent instanceParameters:
| Component | |
nextSibling()
+the default), or true to check whether this Component is directly of the specified xtype.Returns:
| Component | |
mon( Observable|Element item , Object|String ename , Function fn , Object scope , Object opt )
+ :
+ voidAdds listeners to any Observable object (or Elements) which are automatically removed when this Component
+is destroye... Adds listeners to any Observable object (or Elements) which are automatically removed when this Component +is destroyed. Usage:
+or:
Parameters:
| Component | |
mun( Observable|Element item , Object|String ename , Function fn , Object scope )
+ :
+ voidRemoves listeners that were added by the mon method. Removes listeners that were added by the mon method. Parameters:
| Component | |
nextSibling()
:
Ext.Component Returns the next component in the owning container Returns the next component in the owning container Parameters:
| Component | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
:
@@ -1164,7 +1213,7 @@ with the new data.Parameters: Relays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. Parameters:
| Observable | |
removeAll( [Boolean autoDestroy ] )
:
- ArrayRemoves all components from this container. Removes all components from this container. Parameters:
| Container | |
removeClass( string cls )
:
Ext.ComponentRemoves a CSS class from the component's underlying element. Removes a CSS class from the component's underlying element. Parameters:
| Component | |
removeListener( String eventName , Function handler , [Object scope ] )
@@ -1199,7 +1248,9 @@ which this component will be inserted (defaults to appending to the end of the c
If events were suspended using the queueSuspended parameter, then all
event...Resume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
-events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |
setHeight( Number height )
+events fired during event suspension will be sent to any listeners now.Parameters:
| Observable | |
setAutoScroll( Boolean scroll )
+ :
+ Ext.BoxComponentSets the overflow on the content element of the component. Sets the overflow on the content element of the component. Parameters:
| BoxComponent | |
setHeight( Number height )
:
Ext.BoxComponentSets the height of the component. This method fires the resize event. Sets the height of the component. This method fires the resize event. Parameters:
| Panel | |
un( String eventName , Function handler , [Object scope ] )
:
- voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
updateBox( Object box )
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
update( Mixed htmlOrData , [Boolean loadScripts ], [Function callback ] )
+ :
+ voidUpdate the content area of a component. Update the content area of a component. Parameters:
| Component | |
updateBox( Object box )
:
Ext.BoxComponentSets the current box measurements of the component's underlying element. Sets the current box measurements of the component's underlying element. Parameters:
| BoxComponent |
Event | Defined By | |
---|---|---|
activate :
( Ext.Panel p )
@@ -1271,7 +1327,9 @@ after the Fires after the Panel has been visually activated.
Note that Panels do not directly support being activated, but some Panel subclasses
do (like Ext.Window). Panels which are child Components of a TabPanel fire the
-activate and deactivate events under the control of the TabPanel.Listeners will be called with the following arguments:
| Panel | |
afteredit :
+activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments:
| Panel | |
added :
+ ( Ext.Component this , Ext.Container ownerCt , number index )
+ Fires when a component is added to an Ext.Container Fires when a component is added to an Ext.Container Listeners will be called with the following arguments:
| Component | |
afteredit :
( Object e )
Fires after a cell is edited. The edit event object has the following properties <br />
<ul style="padding:5px;paddin... Fires after a cell is edited. The edit event object has the following properties @@ -1289,9 +1347,7 @@ activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments:
| EditorGridPanel | |
afterlayout :
- ( Ext.Container this , ContainerLayout layout )
- Fires when the components in this container are arranged by the associated layout manager. Fires when the components in this container are arranged by the associated layout manager. Listeners will be called with the following arguments:
| Container | |
afterrender :
+}; Listeners will be called with the following arguments:
| EditorGridPanel | |
afterrender :
( Ext.Component this )
Fires after the component rendering is finished.
The afterrender event is fired after this Component has been rendere... Fires after the component rendering is finished. @@ -1377,7 +1433,15 @@ Panel subclasses do (like (Number oldIndex , Number newIndex )
Fires when the user moves a column Fires when the user moves a column Listeners will be called with the following arguments:
| GridPanel | |
columnresize :
( Number columnIndex , Number newSize )
- Fires when the user resizes a column Fires when the user resizes a column Listeners will be called with the following arguments:
| GridPanel | |
contextmenu :
+ Fires when the user resizes a column Fires when the user resizes a column Listeners will be called with the following arguments:
| GridPanel | |
containerclick :
+ ( Grid this , Ext.EventObject e )
+ Fires when the container is clicked. The container consists of any part of the grid body that is not covered by a row... Fires when the container is clicked. The container consists of any part of the grid body that is not covered by a row. Listeners will be called with the following arguments:
| GridPanel | |
containercontextmenu :
+ ( Grid this , Ext.EventObject e )
+ Fires when the container is right clicked. The container consists of any part of the grid body that is not covered by... Fires when the container is right clicked. The container consists of any part of the grid body that is not covered by a row. Listeners will be called with the following arguments:
| GridPanel | |
containerdblclick :
+ ( Grid this , Ext.EventObject e )
+ Fires when the container is double clicked. The container consists of any part of the grid body that is not covered b... Fires when the container is double clicked. The container consists of any part of the grid body that is not covered by a row. Listeners will be called with the following arguments:
| GridPanel | |
containermousedown :
+ ( Grid this , Ext.EventObject e )
+ Fires before the container is clicked. The container consists of any part of the grid body that is not covered by a r... Fires before the container is clicked. The container consists of any part of the grid body that is not covered by a row. Listeners will be called with the following arguments:
| GridPanel | |
contextmenu :
( Ext.EventObject e )
The raw contextmenu event for the entire grid. The raw contextmenu event for the entire grid. Listeners will be called with the following arguments:
| GridPanel | |
dblclick :
( Ext.EventObject e )
@@ -1395,7 +1459,15 @@ activate and deactivate events under the control of the TabPanel.Fires after the component is enabled. Fires after the component is enabled. Listeners will be called with the following arguments:
| Component | |
expand :
( Ext.Panel p )
- Fires after the Panel has been expanded. Fires after the Panel has been expanded. Listeners will be called with the following arguments:
| Panel | |
headerclick :
+ Fires after the Panel has been expanded. Fires after the Panel has been expanded. Listeners will be called with the following arguments:
| Panel | |
groupclick :
+ ( Grid this , String groupField , String groupValue , Ext.EventObject e )
+ Fires when group header is clicked. Only applies for grids with a GroupingView. Fires when group header is clicked. Only applies for grids with a GroupingView. Listeners will be called with the following arguments:
| GridPanel | |
groupcontextmenu :
+ ( Grid this , String groupField , String groupValue , Ext.EventObject e )
+ Fires when group header is right clicked. Only applies for grids with a GroupingView. Fires when group header is right clicked. Only applies for grids with a GroupingView. Listeners will be called with the following arguments:
| GridPanel | |
groupdblclick :
+ ( Grid this , String groupField , String groupValue , Ext.EventObject e )
+ Fires when group header is double clicked. Only applies for grids with a GroupingView. Fires when group header is double clicked. Only applies for grids with a GroupingView. Listeners will be called with the following arguments:
| GridPanel | |
groupmousedown :
+ ( Grid this , String groupField , String groupValue , Ext.EventObject e )
+ Fires before a group header is clicked. Only applies for grids with a GroupingView. Fires before a group header is clicked. Only applies for grids with a GroupingView. Listeners will be called with the following arguments:
| GridPanel | |
headerclick :
( Grid this , Number columnIndex , Ext.EventObject e )
Fires when a header is clicked Fires when a header is clicked Listeners will be called with the following arguments:
| GridPanel | |
headercontextmenu :
( Grid this , Number columnIndex , Ext.EventObject e )
@@ -1425,11 +1497,21 @@ Fires after the component is hidden when calling the Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | |
reconfigure :
( Grid this , Ext.data.Store store , Ext.grid.ColumnModel colModel )
- Fires when the grid is reconfigured with a new store and/or column model. Fires when the grid is reconfigured with a new store and/or column model. Listeners will be called with the following arguments:
| GridPanel | |
render :
+ Fires when the grid is reconfigured with a new store and/or column model. Fires when the grid is reconfigured with a new store and/or column model. Listeners will be called with the following arguments:
| GridPanel | |
removed :
+ ( Ext.Component this , Ext.Container ownerCt )
+ Fires when a component is removed from an Ext.Container Fires when a component is removed from an Ext.Container Listeners will be called with the following arguments:
| Component | |
render :
( Ext.Component this )
Fires after the component markup is rendered. Fires after the component markup is rendered. Listeners will be called with the following arguments:
| Component | |
resize :
( Ext.Component this , Number adjWidth , Number adjHeight , Number rawWidth , Number rawHeight )
- Fires after the component is resized. Fires after the component is resized. Listeners will be called with the following arguments:
| BoxComponent | |
rowclick :
+ Fires after the component is resized. Fires after the component is resized. Listeners will be called with the following arguments:
| BoxComponent | |
rowbodyclick :
+ ( Grid this , Number rowIndex , Ext.EventObject e )
+ Fires when the row body is clicked. Only applies for grids with enableRowBody configured. Fires when the row body is clicked. Only applies for grids with enableRowBody configured. Listeners will be called with the following arguments:
| GridPanel | |
rowbodycontextmenu :
+ ( Grid this , Number rowIndex , Ext.EventObject e )
+ Fires when the row body is right clicked. Only applies for grids with enableRowBody configured. Fires when the row body is right clicked. Only applies for grids with enableRowBody configured. Listeners will be called with the following arguments:
| GridPanel | |
rowbodydblclick :
+ ( Grid this , Number rowIndex , Ext.EventObject e )
+ Fires when the row body is double clicked. Only applies for grids with enableRowBody configured. Fires when the row body is double clicked. Only applies for grids with enableRowBody configured. Listeners will be called with the following arguments:
| GridPanel | |
rowbodymousedown :
+ ( Grid this , Number rowIndex , Ext.EventObject e )
+ Fires before the row body is clicked. Only applies for grids with enableRowBody configured. Fires before the row body is clicked. Only applies for grids with enableRowBody configured. Listeners will be called with the following arguments:
| GridPanel | |
rowclick :
( Grid this , Number rowIndex , Ext.EventObject e )
Fires when a row is clicked Fires when a row is clicked Listeners will be called with the following arguments:
| GridPanel | |
rowcontextmenu :
( Grid this , Number rowIndex , Ext.EventObject e )
@@ -1478,4 +1560,6 @@ in the Record directly:
e.cancel = true;
e.record.data[e.field] = e.value;
}
-});Listeners will be called with the following arguments:
| EditorGridPanel |
e
: ObjectGrid this
)
+ this
: Grid