xplain.ux.widget.aggregation.Panel
An
xaggregationPanelis a panel that depicts an aggregation. You may integrate this panel into your UI. For instance, anxaggregationWindowuses an instance ofxaggregationPanelto visualize an aggregation.
xaggregationPanelextends Ext.panel.Panel. Thus, anxaggregationPanelcan be resized, has a height and width, etc.
Config Parameters
- aggregation = null
An instance of
Xplain.Db.Aggregation(required). Thetypemay be left empty. In this case, a meaningfultypewill be computed and set as default. The aggregation to depict.
- aggregation = null
If
false, the user may not edit this aggregation (the panel will only be used to depict the aggregation).
- fixedObject = false
If set to
true, the user may not edit the Object of the aggregation. She may only edit the Dimension and/or Attribute.
- disableCountentity = false
If set to
true, theCOUNTENTITYoption will not be available to the user.
Methods
getValue
- getValue()
Returns the settings currently depicted by this UI (note that this does not necessarily have to correspond to the settings of this aggregation)
- Returns
{object} an object that consists of an
object, adimension, anattributeand atype. Please note that thetypemay be a string (e.g.SUMorAVG) or an object (e.g.{type: "COUNTDISTINCT", level: "Month"})