GroupSummary HybridSummary
Package: | Ext.ux.grid |
Defined In: | GroupSummary.js |
Class: | HybridSummary |
Extends: | GroupSummary |
{
data: [
{
projectId: 100, project: 'House',
taskId: 112, description: 'Paint',
estimate: 6, rate: 150,
due:'06/24/2007'
},
...
],
summaryData: {
'House': {
description: 14, estimate: 9,
rate: 99, due: new Date(2009, 6, 29),
cost: 999
}
}
}
Config Options | Defined By | |
---|---|---|
summaryRenderer : Function Renderer example:summaryRenderer: function(v, params, data){
return ((v === 0 || v > 1) ? '(' + v +' Tasks)' : '(... Renderer example:
| GroupSummary | |
summaryType : String The type of
calculation to be used for the column. For options available see
Calculations. | GroupSummary |
Property | Defined By | |
---|---|---|
Calculations : Object Calculation types for summary row:<div class="mdetail-params">
sum : <div class="sub-desc">
count : <div class="sub-d... Calculation types for summary row:
Custom calculations may be implemented. An example of
custom
| GroupSummary |
Method | Defined By | |
---|---|---|
getSummaryData( String groupValue )
:
ObjectReturns the summaryData for the specified groupValue or null. Returns the summaryData for the specified groupValue or null. Parameters:
| HybridSummary | |
setActiveTab( String/Panel tab )
:
voidSets the specified tab as the active tab. This method fires the beforetabchange event which
can return false to cance... Sets the specified tab as the active tab. This method fires the beforetabchange event which
can return false to cancel the tab change. Parameters:
| HybridSummary | |
showSummaryMsg( String groupValue , String msg )
:
voidShow a message in the summary row.
grid.on('afteredit', function(){
var groupValue = 'Ext Forms: Field Anchoring'... Show a message in the summary row.
Parameters:
| GroupSummary | |
toggleSummaries( Boolean visible )
:
voidToggle the display of the summary row on/off Toggle the display of the summary row on/off Parameters:
| GroupSummary | |
updateSummaryData( String groupValue , Object data , [Boolean skipRefresh ] )
:
voidgrid.on('afteredit', function(){
var groupValue = 'Ext Forms: Field Anchoring';
summary.showSummaryMsg(groupV...
Parameters:
| HybridSummary |