Skip to content

EasyGridWidget class

Grid


The default constructor. ⊕ new EasyGridWidget(slot: HTMLElement): EasyGridWidget

  • slot: HTMLElement - The html element.


● id: string



● context: EqContext


● group: WidgetGroup


The html element.

● slot: HTMLElement



▸ addColumn(column: QueryColumn): QueryColumn

Returns QueryColumn


▸ addNewColumn(attrId: string): QueryColumn

  • attrId: string

Returns QueryColumn


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

▸ belongsToGroup(groups?: WidgetGroup): boolean

Returns boolean


▸ clear(): void

Returns void


▸ destroy(): void

Returns void


Returns current context (the one this widget belongs to)

▸ getContext(): EqContext

Returns EqContext


▸ getModel(): DataModel

Returns DataModel


▸ getQuery(): Query

Returns Query


▸ getWidgetType(): string

Returns string


Initialize widget.

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

  • context: EqContext - The context.
  • options: any, Optional - The options.

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



▸ addColumnClickHandler(ev: AddColumnClickEvent): void

  • ev: AddColumnClickEvent

Returns void


▸ applyDisplayFormats(): void

Returns void


▸ attachQueryObserver(): void

Returns void


▸ columnMovedHandler(ev: ColumnMovedEvent): void

  • ev: ColumnMovedEvent

Returns void


▸ createEntitiesMenu(): 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


▸ updateTotalsSettings(): void

Returns void