xplain.ux.widget.selection.Panel
An
xselectionPanelis a panel that depicts an selection. You may integrate this panel into your UI.
xselectionPanelextends Ext.panel.Panel. Thus, anxselectionPanelcan be resized, has a height and width, etc.
Config Parameters
- selections = null
An instance of
Xplain.Db.SelectionsorXplain.Db.Selectionor an array of instances ofXplain.Db.Selectionthat this panel should depict. Alternatively you may also pass a JSON Array as returned by the backend. If you skip this parameter, the selections currently defined via the selectionSet parameter will be depicted by this panel. Defaults tonull.
- selectionSet = undefined
The set of selections that will be shown in this panel. If not set, the
selectionsparameter has to be used to pass the selections used.
- selectMode = select
Defines what should be done if the user adds a selection using this dialog. If this parameter is set to
select, a regular selection will be sent to the backend. If this parameter is set tocausalDiscConfig, asetCausalDiscoveryConfigwill be sent to the backend instead.
- selectionSetColors: {background: '#ffc65b', color: '#000000', inlineColor
An object that defines all colors used to depict this panel and its states.
- hasCloseButton = true
If set to
truethis panel will consist of a close button to close the panel. Defaults totrue.
- hasPinButton = true
If set to
trueeach object part has a pin button which fires anxplainUXUserPinsSelectionevent when the user clicks it. Defaults totrue.
- maxStateNameLength = 35
Maximum number of characters available for a state. When this number is reached, the state name is abbreviated.
- showHidden = false
If set to
falseselections which belong to hidden attributes, will NOT be shown. Otherwise, they will be depicted.
- autoCloseCombobox = true
If set to
truethe combobox used for selecting new states / attributes closes after each selection. Otherwise it will stay opened thus allowing the user to select multiple states / attributes.
- enableObjects = null
A set of Xplain.Db.Object instances. When editing a selection, the user may add attributes from these objects. If not set, all attributes from all objects are allowed.