EntitiesPanel widget

This widget represents “entities panel” - a rectangular area of your web-page which contains the tree of entities/attributes found in your model and provides the way to add a column(s) to the columns panel and to add a condition(s) to query panel. This also includes drag-and-drop support.

Options

queryPanelId

Type:String
Default:QueryPanel
Gets or sets an ID of the query panel on the same page that will be used to add conditions to

columnsPanelId

Type:String
Default:ColumnsPanel
Gets or sets an ID of the columns panel on the same page that will be used to add columns to

showToolbar

Type:Boolean
Default:true
Gets or sets a value indicating whether entities panel should show a toolbar with buttons at the bottom

showAddColumnButton

Type:Boolean
Default:true
Gets or sets a value indicating whether entities panel should show the “Add column” button on the toolbar

showAddConditionButton

Type:Boolean
Default:true
Gets or sets a value indicating whether entities panel should show the “Add condition” button on the toolbar

showCheckboxes

Type:Boolean
Default:true
Gets or sets a value indicating whether tree nodes in entities panel should contain checkboxes that allow to select/deselect the nodes

clickableAttributes

Type:Integer
Default:0
Gets or sets a value defining what should happen when user clicks on the attribute node. Values: 0 - nothing happen. Default behaviour. 1 - attibute is added to conditions. 2 - attribute is added to columns. “draggableAttributes” option should be set to “false” in order to get values 1 and 2 worked.

draggableAttributes

Type:Boolean
Default:true
Gets or sets a value indicating whether attributes may be dragged to be droppen at query panel or columns panel

showAttributes

Type:PlainObject
Default:{ usedInConditions: true, usedInColumns: true, usedInSorting: false }
Gets or sets a value defining which attributes from the model should be shown in the tree. Each attribute in the model has “Use in conditions”, “Use in columns”, “Use in sorting” properties. This option allows to filter all the attributes by these properties values.

Methods

refresh

Re-renders the panel


Discussion

Enter your comment: