Telogis.GeoBase.Widgets.SliderSkin |
A small class collecting all the customizable appearance information for a zoom / slider map control and presenting some simple methods to help apply it.
Name | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Widgets.SliderSkin(config) | Arguments
|
Name | Description |
---|---|
createCells (String id, Element tbody, Number tickCount) | Creates and performs basic initializations for all of the cells that will be displayed in the slider widget's table element. These may be created in either a horizontal or vertical layout, depending on the configuration the skin was created with. Once created, each cell is adjusted to display an appropriate image, and returned in an array. Arguments
Array - The list of table cells that constitute the slider -- the left and right buttons, and the zoom-tick cells in-between. |
getSize (Number tickCount) | Finds the dimensions of a slider widget using this skin, which depend on the number of zoom ticks it displays. Arguments
Size - The pixel width and height of sliders that use this skin, with a given number of zoom ticks. |
isFlipped () | Gets the flipped state of the sliderskin. Returnsboolean - Returns true if the sliderskin is flipped. |
selectTick (Element elem) | Sets the CSS properties of a table cell so that it will display the skin's selected tick image. Should only be called once the skin has loaded. Arguments
|
unselectTick (Element elem) | Sets the CSS properties of a table cell so that it will display the skin's unselected tick image. Should only be called once the skin has loaded. Arguments
|
Name | Type | Description |
---|---|---|
FLIPPED | Number | An enumerated value representing a layout that is not flipped for a scale widget. |
HORIZONTAL | Number | An enumerated value representing horizontal layout for a scale widget. |
NOT_FLIPPED | Number | An enumerated value representing the flipped layout for a scale widget. |
VERTICAL | Number | An enumerated value representing vertical layout for a scale widget. |