Skip to content

QueryPanel class

The query panel wiget, implemented without JQuery.

Widget


The default constructor. ⊕ new QueryPanel(slot: HTMLElement,customQuery?: Query): QueryPanel

  • slot: HTMLElement - The html element.

  • customQuery: Query, Optional



● id: string



● context: EqContext


● group: WidgetGroup


● slot: HTMLElement



⇄ get cssPrefix(): string

Returns string



Returns true if the widget belongs to one of the groups specified in the parameter

▸ belongsToGroup(groups?: WidgetGroup): boolean

Returns boolean


▸ destroy(): void

Returns void


▸ getAddRowRenderer(slot?: HTMLDivElement): BaseElementRenderer | null

  • slot: HTMLDivElement, Optional

Returns BaseElementRenderer | null


▸ getConditionGroupMenu(isRoot?: boolean): PopupMenu

  • isRoot: boolean, Default value = false

Returns PopupMenu


▸ getConditionMenu(): PopupMenu

Returns PopupMenu


▸ getConditionRenderer(condition: Condition,slot?: HTMLDivElement): ConditionRenderer | null

  • condition: Condition
  • slot: HTMLDivElement, Optional

Returns ConditionRenderer | null


Returns current context (the one this widget belongs to)

▸ getContext(): EqContext

Returns EqContext


▸ getEntitiesMenu(): PopupMenu

Returns PopupMenu


▸ getExpressionRenderer(expression: Expression,slot?: HTMLDivElement): ExpressionRenderer | null

  • expression: Expression
  • slot: HTMLDivElement, Optional

Returns ExpressionRenderer | null


▸ getLinkTypeMenu(): PopupMenu

Returns PopupMenu


▸ getOperatorRenderer(condition: Condition,text: string,slot?: HTMLDivElement): BaseElementRenderer | null

  • condition: Condition
  • text: string
  • slot: HTMLDivElement, Optional

Returns BaseElementRenderer | null


▸ getQuery(): Query

Returns Query


▸ getWidgetType(): string

Returns string


Initialize widget.

▸ init(context: EqContext,options?: QueryPanelOptions): void

Returns void


This function is called on the end of some process this widget participates in. For example, some widgets should be updated on model loading or after the execution of the current query

▸ onProcessEnd(): void

Returns void


This function is called on the start of some process this widget participates in. For example, some widgets can show a spinner or a progress bar at the beginning of some long process (e.g. model loading).

▸ onProcessStart(): void

Returns void


Refreshes the widget’s content

▸ refresh(): void

Returns void


▸ showEntitiesMenu(options: PopupMenuOptions): void

Returns void


▸ toggleConditionPicked(condition: Condition,force?: boolean): void

  • condition: Condition
  • force: boolean, Default value = undefined

Returns void



▸ clear(): void

Returns void


▸ destroyCore(): void

Returns void


This function is called from onProcessEnd function. It does nothing in the base Widget class but can be overridden in derived classes to implement the functionality specific for a particular widget.

▸ onProcessEndCore(): void

Returns void


This function is called from onProcessStart function. It does nothing in the base Widget class but can be overridden in derived classes to implement the functionality specific for a particular widget.

▸ onProcessStartCore(): void

Returns void


▸ refreshCore(): void

Returns void


▸ render(): void

Returns void


▸ setOptions(options?: QueryPanelOptions): void

Returns void