Click or drag to resize

Telogis.GeoBase.Widgets.AbstractWidget

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

Widgets.AbstractWidget inherits from AbstractDOMEntity.

A class from which elements such as maps and map controls are derived.

Constructor
NameDescription
Widgets.AbstractWidget(config, beforeAttach)

Arguments

  • config (Object) - Configuration options for the widget.

    Properties
    NameTypeDescription
    parentString

    The parent DOM node to append the Widgets.AbstractWidget to. This may be either its string ID or a reference to the element itself. This parameter is redundant if AbstractDOMEntity.config.id refers to an existing element.

  • beforeAttach (Function) - An optional callback to execute before the Widgets.AbstractWidget's main element is attached to the parent DOM.

Functions
NameDescription
destroy ()

Frees resources used by the Widgets.AbstractWidgets. Typically, one will not want to destroy widgets during the lifetime of the page, but once the page unloads, the GeoBase cleanup callback should automatically call this on every one constructed.

Properties
NameTypeDescription
KeyEventHandler

An event triggered when a key is pressed and the mouse cursor is over the widget.

MouseWheelEventHandler

An event triggered when the mouse wheel is scrolled and the mouse cursor is over the widget.