xplain.ux.widget.aggregation.Panel
An
xaggregationPanel
is a panel that depicts an aggregation. You may integrate this panel into your UI. For instance, anxaggregationWindow
uses an instance ofxaggregationPanel
to visualize an aggregation.
xaggregationPanel
extends Ext.panel.Panel. Thus, anxaggregationPanel
can be resized, has a height and width, etc.
Config Parameters
- aggregation = null
An instance of
Xplain.Db.Aggregation
(required). Thetype
may be left empty. In this case, a meaningfultype
will 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
, theCOUNTENTITY
option 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
, anattribute
and atype
. Please note that thetype
may be a string (e.g.SUM
orAVG
) or an object (e.g.{type: "COUNTDISTINCT", level: "Month"}
)