Click or drag to resize

Telogis.GeoBase.Widgets.DockSkin

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

Widgets.DockSkin inherits from Skin.

A near-trivial skin wrapper describing the customizable appearance of a Widgets.Dock. Since such a dock is skinned merely by an unsized background image and a border style, it is not necessary to wait for this skin to load before use.

Constructor
NameDescription
Widgets.DockSkin(config)

Arguments

  • config (Object) - The configuration options for the dock skin.

    Properties
    NameTypeDescription
    backgroundSrcString

    The URL of the image to use as the background of filled areas of the dock.

    Defaults to "".
    borderString

    The CSS border style to apply to the dock's inner edge -- that is, the opposite edge to the one it is aligned at.

    Defaults to "".
Functions
NameDescription
applyBorder (Element elem, String edge)

Applies the border style that the skin was configured with to the dock's container element, such that the border is shown on a single specified edge of this element.

Arguments
  • elem (Element) - The label DOM element to style as a scale indicator.

  • edge (String) - The CSS name of the edge of Widgets.DockSkin.applyBorder.elem to place the border on, e.g. "left".

createFill (String id)

Creates a div element, displaying with the appropriate background image, to use to fill empty space in the Widgets.Dock.

Arguments
  • id (String) - The string to identify the created element by.

Returns

Element - The new fill element.