X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.grid.PropertyGrid.html diff --git a/docs/output/Ext.grid.PropertyGrid.html b/docs/output/Ext.grid.PropertyGrid.html index 2a48b221..17e930a1 100644 --- a/docs/output/Ext.grid.PropertyGrid.html +++ b/docs/output/Ext.grid.PropertyGrid.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Container Panel GridPanel EditorGridPanel PropertyGrid
Package: | Ext.grid |
Defined In: | PropertyGrid.js |
Class: | PropertyGrid |
Extends: | EditorGridPanel |
Observable Component BoxComponent Container Panel GridPanel EditorGridPanel PropertyGrid
Package: | Ext.grid |
Defined In: | PropertyGrid.js |
Class: | PropertyGrid |
Extends: | EditorGridPanel |
var grid = new Ext.grid.PropertyGrid({
@@ -22,18 +22,18 @@ based layout manager, for example:
See Ext.layout.AnchorLayout.anchor also.
true
to animate the transition when the panel is collapsed, false
to skip the
-animation (defaults to true
if the Ext.Fx class is available, otherwise false
).The id of a column in -this grid that should expand to fill unused space. This value specified here can not -be 0.
-Note: If the Grid's view is configured with -forceFit=true the autoExpandColumn -is ignored. See Ext.grid.Column.width -for additional details.
-See autoExpandMax and autoExpandMin also.
true
if the Ext.Fx class is available, otherwise false
).The id of a column in +this grid that should expand to fill unused space. This value specified here can not +be 0.
+Note: If the Grid's view is configured with +forceFit=true the autoExpandColumn +is ignored. See Ext.grid.Column.width +for additional details.
+See autoExpandMax and autoExpandMin also.
true
to use height:'auto', false
to use fixed height (defaults to false
).
Note: Setting autoHeight: true
means that the browser will manage the panel's height
@@ -108,9 +108,9 @@ Warning: This will override any size manag...The maxi Warning: This will override any size mana...
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. +
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'
).false
to render it last (
false
).'x-panel-collapsed'
).An optional extra CSS class that will be added to this component's container. This can be useful for adding customized styles to the container or any of its children using standard CSS rules. See @@ -193,14 +193,14 @@ that it will render. Example usage: Available: true } });
tpl
to
-update the content area of the Component.ddText : '{0} selected row{1}'
-{0} is replaced with the number of selected rows.Defaults to true to enable deferred row rendering.
-This allows the GridPanel to be initially rendered empty, with the expensive update of the row -structure deferred so that layouts with GridPanels appear more quickly.
true to disable selections in the grid. Defaults to false.
+update the content area of the Component.ddText : '{0} selected row{1}'
+{0} is replaced with the number of selected rows.Defaults to true to enable deferred row rendering.
+This allows the GridPanel to be initially rendered empty, with the expensive update of the row +structure deferred so that layouts with GridPanels appear more quickly.
true to disable selections in the grid. Defaults to false.
Ignored if a SelectionModel is specified.
false
). An important note when using the disabled
config on panels is that IE will often fail to initialize the disabled mask element correectly if
@@ -258,17 +258,17 @@ added by implementing the interface methods of PanelEnables dragging of the selected rows of the GridPanel. Defaults to false.
-Setting this to true causes this GridPanel's GridView to -create an instance of Ext.grid.GridDragZone. Note: this is available only after -the Grid has been rendered as the GridView's dragZone -property.
-A cooperating DropZone must be created who's implementations of -onNodeEnter, onNodeOver, -onNodeOut and onNodeDrop are able +}).show();
Enables dragging of the selected rows of the GridPanel. Defaults to false.
+Setting this to true causes this GridPanel's GridView to +create an instance of Ext.grid.GridDragZone. Note: this is available only after +the Grid has been rendered as the GridView's dragZone +property.
+A cooperating DropZone must be created who's implementations of +onNodeEnter, onNodeOver, +onNodeOut and onNodeDrop are able to process the data which is provided.
false
.Note: this config is only used when this BoxComponent is rendered
by a Container which has been configured to use the BorderLayout
@@ -674,12 +674,12 @@ only applies when 4
). Note that this
option only applies when floating = true
.
false
to disable the iframe shim in browsers which need one (defaults to true
).
-Note that this option only applies when floating = true
.stateEvents: ['columnmove', 'columnresize', 'sortchange', 'groupchange']
-These can be any types of events supported by this component, including browser or -custom events (e.g., ['click', 'customerchange']).
-See Ext.Component.stateful for an explanation of saving and restoring
+Note that this option only applies when floating = true
.
stateEvents: ['columnmove', 'columnresize', 'sortchange', 'groupchange']
+These can be any types of events supported by this component, including browser or +custom events (e.g., ['click', 'customerchange']).
+See Ext.Component.stateful for an explanation of saving and restoring Component state.
You can perform extra processing on state save and restore by attaching handlers to the beforestaterestore, staterestore, -beforestatesave and statesave events.
This causes the CSS class x-grid3-row-alt to be added to alternate rows of -the grid. A default CSS rule is provided which sets a background colour, but you can override this -with a rule which either overrides the background-color style using the '!important' +beforestatesave and statesave events.
This causes the CSS class x-grid3-row-alt to be added to alternate rows of +the grid. A default CSS rule is provided which sets a background colour, but you can override this +with a rule which either overrides the background-color style using the '!important' modifier, or which uses a CSS selector of higher specificity.
The Ext.(X)Template method to use when
updating the content area of the Component. Defaults to 'overwrite'
-(see Ext.XTemplate.overwrite
).
Ext.XTemplate.overwrite
).String/Array events
)
:
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
-this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -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:
Ext.override(Ext.form.Field, {
- // Add functionality to Field's initComponent to enable the change event to bubble
- initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
- }),
-
- // We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget : function() {
- if (!this.formPanel) {
- this.formPanel = this.findParentByType('form');
- }
- return this.formPanel;
- }
-});
-
-var myForm = new Ext.formPanel({
- title: 'User Details',
- items: [{
- ...
- }],
- listeners: {
- change: function() {
- // Title goes red if form has been modified.
- myForm.header.setStyle('color', 'red');
- }
- }
+ 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
+this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
+This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default
+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:
Ext.override(Ext.form.Field, {
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
+ }),
+
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
+ if (!this.formPanel) {
+ this.formPanel = this.findParentByType('form');
+ }
+ return this.formPanel;
+ }
+});
+
+var myForm = new Ext.formPanel({
+ title: 'User Details',
+ items: [{
+ ...
+ }],
+ listeners: {
+ change: function() {
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
+ }
+ }
});
Parameters:events
: String/ArrayThe event name to bubble, or an Array of event names.
Returns:- void
Boolean animate
)
:
Ext.Panelnew Ext.Panel({
},
single: true // Remove the listener after first invocation
}
-});
Ext.Element
Ext.Element
<input>
Element (which is what would be return
by its getEl
method, and the trigger button Element.
This Element is returned as the resizeEl
.Ext.Element
selModel
-configuration option. If no selection model was configured, this will create
+ SelectionModelselModel
+configuration option. If no selection model was configured, this will create
and return a RowSelectionModel.SelectionModel
Object
this
reference) in which the handler function is exec
:
voidExt.data.Store store
, Ext.grid.ColumnModel colModel
)
:
- voidReconfigures the grid to use a different Store and Column Model -and fires the 'reconfigure' event. The View will be bound to the new -objects and refreshed.
-Be aware that upon reconfiguring a GridPanel, certain existing settings may become -invalidated. For example the configured autoExpandColumn may no longer exist in the -new ColumnModel. Also, an existing PagingToolbar will still be bound -to the old Store, and will need rebinding. Any plugins might also need reconfiguring + void
Reconfigures the grid to use a different Store and Column Model +and fires the 'reconfigure' event. The View will be bound to the new +objects and refreshed.
+Be aware that upon reconfiguring a GridPanel, certain existing settings may become +invalidated. For example the configured autoExpandColumn may no longer exist in the +new ColumnModel. Also, an existing PagingToolbar will still be bound +to the old Store, and will need rebinding. Any plugins might also need reconfiguring with the new data.
store
: Ext.data.StorecolModel
: Ext.grid.ColumnModelObject o
, Array events
)
:
voido
: Objectevents
: ArrayBoolean autoDestroy
] )
@@ -1297,10 +1299,10 @@ event...Boolean scroll
)
:
- Ext.BoxComponentscroll
: BooleanExt.BoxComponent
Number height
)
+ Ext.BoxComponentscroll
: BooleanExt.BoxComponent
Mixed height
)
:
- Ext.BoxComponentheight
: Numberheight
: MixedExt.BoxComponent
String cls
)
@@ -1353,10 +1355,10 @@ In order to be able to set the title, a header eleme...Boolean visible
)
:
- Ext.Componentvisible
: BooleanExt.Component
Number width
)
+ Ext.Componentvisible
: BooleanExt.Component
Mixed width
)
:
- Ext.BoxComponentwidth
: Numberwidth
: MixedExt.BoxComponent
scrollLeft
: NumberscrollTop
: NumberGrid this
, Number rowIndex
, Number columnIndex
, Ext.EventObject e
)
- function(grid, rowIndex, columnIndex, e) {
- var record = grid.getStore().getAt(rowIndex); // Get the Record
- var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
- var data = record.get(fieldName);
+ Fires when a cell is clicked.
+The data for the cell is drawn from the Record
+for this row. To access the data in the ...Fires when a cell is clicked.
+The data for the cell is drawn from the Record
+for this row. To access the data in the listener function use the
+following technique:
+function(grid, rowIndex, columnIndex, e) {
+ var record = grid.getStore().getAt(rowIndex); // Get the Record
+ var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
+ var data = record.get(fieldName);
}
Listeners will be called with the following arguments:this
: GridrowIndex
: NumbercolumnIndex
: Numbere
: Ext.EventObject
Grid this
, Number rowIndex
, Number cellIndex
, Ext.EventObject e
)
this
: GridrowIndex
: NumbercellIndex
: Numbere
: Ext.EventObject