Component: ojThematicMap

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

Options


Binding Attributes
Context Objects
Sub-ID's

oj. ojThematicMap extends oj.dvtBaseComponent

Version:
  • 3.2.0
Since:
  • 0.7

JET Thematic Map Component

Thematic maps are used to display data corresponding to geographic locations or regions, such as election data for a state or sales by territory for a product. Applications are required to supply a basemap and an area layer for a valid Thematic Map.

This component should be bound to an HTML div element, and the SVG DOM that it generates should be treated as a black box, as it is subject to change. This component should not be extended.


<div data-bind="ojComponent: {
  component: 'ojThematicMap',
  basemap: 'usa',
  areaLayers: [{
    layer: 'states',
    areaDataLayer: {
      areas: [{color:'#003366', location:'FL'},
              {color:'#CC3300', location:'TX'},
              {color:'#99CC33', location:'CA'}]
    }
  }]
}"/>

Accessibility

The application is responsible for populating the shortDesc value in the component options object with meaningful descriptors when the component does not provide a default descriptor. Since component terminology for keyboard and touch shortcuts can conflict with those of the application, it is the application's responsibility to provide these shortcuts, possibly via a help popup.

Touch End User Information

Target Gesture Action
Data Item Tap Select when selectionMode is enabled.
Press & Hold Display tooltip.
Display context menu on release.
Component Drag Pan when panning is auto.
Pinch-close Zoom out when zooming is auto.
Spread-open Zoom in when zooming is auto.

Keyboard End User Information

Key Action
Tab Move focus to map and then to next component.
Shift + Tab Move focus to map and then to previous component.
= or + Zoom in one level if zooming is enabled.
- or _ Zoom out one level if zooming is enabled.
0 Zoom to fit map if zooming is enabled.
Ctrl + Alt + 0 Zoom to fit region with focus.
Ctrl + 0 Zoom to fit selected regions.
Ctrl + Shift + 0 Reset map.
PageUp Pan up.
PageDown Pan down.
Shift + PageUp Pans left in left to right locales. Pans right in right to left locales.
Shift + PageDown Pans right in left to right locales. Pans left in right to left locales.
LeftArrow or RightArrow Move focus and selection to the left or right nearest data item in the collection (e.g. areas, markers, links) or the left link end marker if the focus is on a link and Alt + < or Alt + > was used to move there.
UpArrow or DownArrow Move focus and selection to the above or below nearest data item in the collection (e.g. areas, markers, links) or to the next link above that is associated with the previous data item, if the focus is on a link and Alt + < or Alt + > was used to move there.
Shift + LeftArrow or Shift + RightArrow Move focus and multi-select the left or right nearest data item in the collection (e.g. areas, markers, links).
Shift + UpArrow or Shift + DownArrow Move focus and multi-select the nearest data item above or below in the collection (e.g. areas, markers, links).
Ctrl + LeftArrow or Ctrl + RightArrow Move focus to the left or right nearest data item in the collection (e.g. areas, markers, links), without changing the current selection.
Ctrl + UpArrow or Ctrl + DownArrow Move focus to nearest data item above or below in the collection (e.g. areas, markers, links), without changing the current selection.
] or [ Move focus and selection to nearest data item in the next data layer above or below.
Shift + ] or Shift + [ Move focus to nearest data item in the next data layer above or below and multi-select.
Ctrl + ] or Ctrl + [ Move focus to nearest data item in the next data layer above or below, without changing the current selection.
Alt + < or Alt + > Move focus from a data item to an associated link. Note that the link must have been created referencing the data item's ID in its start/endLocation objects for an association to exist.
Ctrl + Spacebar Multi-select base map region or marker with focus.

Performance

Animation

Animation should only be enabled for visualizations of small to medium data sets. Alternate visualizations should be considered if identifying data changes is important, since all data items will generally move and resize on any data change.

Style Attributes

Use the highest level options property available. For example, consider using attributes on styleDefaults.dataAreaDefaults or styleDefaults.dataMarkerDefaults, instead of attributes on the individual items. The component can take advantage of these higher level attributes to apply the style properties on containers, saving expensive DOM calls.

Tracking Resize

By default, the component will track resizes and render at the new size. This functionality adds a small overhead to the initial render for simple components like gauges or spark charts, which become noticable when using large numbers of these simple components. To disable resize tracking, set trackResize to off. The application can manually request a re-render at any time by calling the refresh function.

Reading direction

As with any JET component, in the unusual case that the directionality (LTR or RTL) changes post-init, the component must be refresh()ed.

Built-in Maps

Thematic map has several built-in maps which can be chosen using the basemap and layer attributes in the options object.

To use one of the built-in maps, set the basemap attribute to one of the supported values:

  • africa
  • asia
  • australia
  • europe
  • northAmerica
  • southAmerica
  • usa
  • world

Create an area layer object and pass it in an array to the areaLayers attribute and set the area layer object's layer attribute to one of the supported values for that basemap.

Applications are responsible for loading the necessary maps for a particular ojThematicMap component. This can be done via RequireJS with the following module syntax 'basemaps/ojthematicmap-[basemap]-[layer]', e.g. 'basemaps/ojthematicmap-world-countries'.

  • usa
    • states
    • counties
  • africa, asia, australia, europe, northAmerica, southAmerica, world
    • countries
    • continents (world basemap)
    • continent (all other basemaps)

Each built-in map layer has a list of supported location IDs that should be set as the value for an area or marker object's location attribute.

Continent basemaps support the following IDs:

  • Africa: AF
  • Asia: AS
  • Australia: AU
  • Europe: EU
  • North America: NA
  • South America: SA

All other basemaps support the following IDs. See the Thematic Map Basemap Demo for an example.

Built-in Cities

Thematic map also supports a set of built-in cities for each basemap that can be used in a marker object's location attribute instead of passing in longitude and latitude coordinates. See the Thematic Map Points Demo for an example.

Applications are responsible for loading the required cities basemap if needed. This can be done via RequireJS with the following module syntax 'basemaps/ojthematicmap-[basemap]-cities', e.g. 'basemaps/ojthematicmap-world-cities'.

Custom Maps

Instead of a built-in map, an application can specify a custom map using GeoJSON formatted geo data with the mapProvider option. When using a custom map, the basemap and layer options are still required.

Currently only GeoJSON objects of "type" Feature or FeatureCollection are supported. Each Feature object contains the information to render a map area including the area id, coordinates, and optional short and long labels. Only Feature "geometry" objects of "type" Polygon and MutliPolgyon will be used for defining area boundaries. All other "type" values will be skipped. The Feature "properties" object is where the Thematic Map component will look up area info like id, short label, and long label using the key mappings provided in the propertiesKeys option. See the Thematic Map Map Provider Demo for an example.

If longitude/latitude coordinate data need to be rendered, the application should using a projection library like Proj4JS to project the coordinates to the map projection. The Thematic Map component will not project x/y values passed in to the data markers option for custom maps.

Initializer

.ojThematicMap()

Creates a JET Thematic Map.
Source:
Examples

Initialize the Thematic Map with no options specified:

$(".selector").ojThematicMap();

Initialize the Thematic Map with some options:

$(".selector").ojThematicMap({basemap: 'usa'});

Initialize the Thematic Map via the JET ojComponent binding:

<div data-bind="ojComponent: {component: 'ojThematicMap'}">

Options

animationDuration :number|string

The duration of the animations in milliseconds. Also accepts CSS strings such as 0.5s and 500ms.
Default Value:
  • null
Deprecated:
  • The string type is deprecated in 2.1.0.
    Source:

    animationOnDisplay :string

    The type of animation to apply when the component is initially displayed
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    animationOnMapChange :string

    The type of animation to apply when the value of the basemap changes.
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    areaLayers :Array.<object>

    An array of objects with the following properties that define an area layer. At least one area layer object is required for a valid Thematic Map.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer :object

    An object with the following properties, used to define an area data layer.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.animationOnDataChange :string

    The type of animation to apply when the data for the layer is updated.
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    areaLayers[].areaDataLayer.areas :Array.<object>|Promise|function<object>

    An array of objects with the following properties that define a row of data for an area data layer. Also accepts a Promise or callback function for deferred data rendering. Regardless of type, we will wrap and return a Promise when accessing the areas option. The function takes a single argument, provided by the component, with the following properties:
    • basemap: The basemap name.
    • layer: The layer name or 'cities' if rendering a point data layer.
    • ids: The map of built-in ids to area or city name for the layer.
    The function should return one of the following:
    • Promise: A Promise that will resolve with An array of data items. No data will be rendered if the Promise is rejected.
    • Array: An array of data items.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].categories :Array.<string>

    An array of category strings corresponding to this area. This allows highlighting and filtering of areas.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].className :string

    The CSS style class to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].color :string

    The data object color.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].id :string

    The identifier for this data object.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].label :string

    Text used for the area's label.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].labelStyle :string

    The CSS style defining the label style for this area.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].location :string

    The id of the state or country this area is associated with.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].opacity :number

    The data object opacity.
    Default Value:
    • 1.0
    Source:

    areaLayers[].areaDataLayer.areas[].selectable :string

    Specifies whether or not the area will be selectable.
    Supported Values:
    Name Type
    "off" string
    "auto" string
    Default Value:
    • "auto"
    Source:

    areaLayers[].areaDataLayer.areas[].shortDesc :string

    The text that displays in the area's tooltip.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.areas[].style :object

    The inline style to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.focusRenderer :function(object)

    An optional callback function to update the data item in response to changes in keyboard focus state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.hoverRenderer :function(object)

    An optional callback function to update the node in response to changes in hover state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.id :string

    The identifier for this data layer.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.isolatedItem :string

    The id for the isolated area of this area data layer. If set, only the isoalted area will be displayed.
    Default Value:
    • null
    Source:
    An array of objects with the following properties that define the data for links. Also accepts a Promise or callback function for deferred data rendering. Regardless of type, we will wrap and return a Promise when accessing the links option. The function takes a single argument, provided by the component, with the following properties:
    • basemap: The basemap name.
    • layer: The layer name or 'cities' if rendering a point data layer.
    • ids: The map of built-in ids to area or city name for the layer.
    The function should return one of the following:
    • Promise: A Promise that will resolve with An array of data items. No data will be rendered if the Promise is rejected.
    • Array: An array of data items.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].categories :Array.<string>

    An array of category strings corresponding to this link. This allows highlighting and filtering of links.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].className :string

    The CSS style class to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].color :string

    The link color.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].endLocation :object

    An object with the following key/value pairs used to determine the end point of the link:
    • id: The marker or area id to be used as the end point.
    • location: The string location name of a built-in city or area.
    • x: The x coordinate which can represent latitude.
    • y: The y coordinate which can represent longitude.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].id :string

    The identifier for this data object.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].selectable :string

    Specifies whether or not the area will be selectable.
    Supported Values:
    Name Type
    "off" string
    "auto" string
    Default Value:
    • "auto"
    Source:

    areaLayers[].areaDataLayer.links[].shortDesc :string

    The text that displays in the area's tooltip.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].startLocation :object

    An object with the following key/value pairs used to determine the start point of the link:
    • id: The marker or area id to be used as the start point.
    • location: The string location name of a built-in city or area.
    • x: The x coordinate which can represent latitude.
    • y: The y coordinate which can represent longitude.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].style :object

    The inline style to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.links[].width :number

    The link width in pixels.
    Default Value:
    • 2
    Source:

    areaLayers[].areaDataLayer.markers :Array.<object>|Promise|function<object>

    An array of objects with the following properties that define a row of data for a data layer. Also accepts a Promise or callback function for deferred data rendering. Regardless of type, we will wrap and return a Promise when accessing the markers option. The function takes a single argument, provided by the component, with the following properties:
    • basemap: The basemap name.
    • layer: The layer name or 'cities' if rendering a point data layer.
    • ids: The built-in ids for the layer.
    The function should return one of the following:
    • Promise: A Promise that will resolve with an array of data items. No data will be rendered if the Promise is rejected.
    • Array: An array of data items.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].borderColor :string

    The border color.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].borderStyle :string

    The border style.
    Supported Values:
    Name Type
    "none" string
    "solid" string
    Default Value:
    • "solid"
    Source:

    areaLayers[].areaDataLayer.markers[].borderWidth :number

    The border width in pixels.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].categories :Array.<string>

    An array of category strings corresponding to this marker. This allows highlighting and filtering of markers.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].className :string

    The CSS style class to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].color :string

    The marker color.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].height :number

    The pixel height for this marker. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].id :string

    The identifier for this data object.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].label :string

    Text used for the marker's label.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].labelPosition :string

    Determines the position relative to the marker that the label should be displayed.
    Supported Values:
    Name Type
    "top" string
    "bottom" string
    "center" string
    Default Value:
    • "center"
    Source:

    areaLayers[].areaDataLayer.markers[].labelStyle :string

    The CSS style defining the label style for this marker.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].location :string

    The id of the area this marker is associated with.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].opacity :number

    The marker opacity.
    Default Value:
    • 1.0
    Source:

    areaLayers[].areaDataLayer.markers[].rotation :number

    The angle to rotate the marker in clockwise degrees around the center of the image.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].selectable :string

    Specifies whether or not the marker will be selectable.
    Supported Values:
    Name Type
    "off" string
    "auto" string
    Default Value:
    • "auto"
    Source:

    areaLayers[].areaDataLayer.markers[].shape :string

    Specifies the shape of a marker. Can take the name of a built-in shape or the svg path commands for a custom shape.
    Supported Values:
    Name Type
    "square" string
    "plus" string
    "diamond" string
    "triangleUp" string
    "triangleDown" string
    "human" string
    "rectangle" string
    "star" string
    "circle" string
    Default Value:
    • "circle"
    Source:

    areaLayers[].areaDataLayer.markers[].shortDesc :string

    The text that displays in the marker's tooltip.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].source :string

    Specifies an URI specifying the location of the image resource to use for the marker instead of a built-in shape. The shape attribute is ignored if the source image is defined.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].sourceHover :string

    An optional URI specifying the location of the hover image resource. If not defined, the source image will be used.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].sourceHoverSelected :string

    An optional URI specifying the location of the selected image resource on hover. If not defined, the sourceSelected image will be used. If sourceSelected is not defined, then the source image will be used.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].sourceSelected :string

    An optional URI specifying the location of the selected image. If not defined, the source image will be used.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].style :object

    The inline style to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].value :number

    A data value used to calculate the marker dimensions based on the range of all the data values and the component size. Markers with negative or zero data values will not be rendered. If specified, this value takes precedence over the width and height options.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.markers[].width :number

    The pixel width for this marker. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.renderer :function(object)

    A callback function used to stamp custom SVG elements for a data layer. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    areaLayers[].areaDataLayer.selectionMode :string

    The type of selection behavior that is enabled on the thematic map.
    Supported Values:
    Name Type
    "single" string
    "multiple" string
    "none" string
    Default Value:
    • "none"
    Source:

    areaLayers[].areaDataLayer.selectionRenderer :function(object)

    An optional callback function to update the data item in response to changes in selection state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    areaLayers[].areaStyle :string|object

    The CSS style string/object defining the style of the area layer areas.
    Default Value:
    • null
    Source:

    areaLayers[].labelDisplay :string

    Determines how labels for this layer should be displayed.
    Supported Values:
    Name Type
    "on" string
    "off" string
    "auto" string
    Default Value:
    • "auto"
    Source:

    areaLayers[].labelStyle :string

    The CSS style for the area label.
    Default Value:
    • null
    Source:

    areaLayers[].labelType :string

    Determines which of the basemap labels to display
    Supported Values:
    Name Type
    "long" string
    "short" string
    Default Value:
    • "short"
    Source:

    areaLayers[].layer :string

    The required name of a built-in or custom basemap layer.
    Default Value:
    • null
    Source:

    basemap :string

    The required name of a built-in or custom basemap.
    Default Value:
    • null
    Source:

    contextMenu :Element|Array.<Element>|string|jQuery|NodeList

    Identifies the JET Menu that the component should launch as a context menu on right-click, Shift-F10, Press & Hold, or component-specific gesture. If specified, the browser's native context menu will be replaced by the specified JET Menu.

    The value can be an HTML element, JQ selector, JQ object, NodeList, or array of elements. In all cases, the first indicated element is used.

    To specify a JET context menu on a DOM element that is not a JET component, see the ojContextMenu binding.

    To make the page semantically accurate from the outset, applications are encouraged to specify the context menu via the standard HTML5 syntax shown in the below example. When the component is initialized, the context menu thus specified will be set on the component.

    There is no restriction on the order in which the JET Menu and the referencing component are initialized. However, when specifying the Menu via the HTML attribute, the referenced DOM element must be in the document at the time that the referencing component is initialized.

    After create time, the contextMenu option should be set via this API, not by setting the DOM attribute.

    The application can register a listener for the Menu's beforeOpen event. The listener can cancel the launch via event.preventDefault(), or it can customize the menu contents by editing the menu DOM directly, and then calling refresh() on the Menu.

    To help determine whether it's appropriate to cancel the launch or customize the menu, the beforeOpen listener can use component API's to determine which table cell, chart item, etc., is the target of the context menu. See the JSDoc and demos of the individual components for details. Keep in mind that any such logic must work whether the context menu was launched via right-click, Shift-F10, Press & Hold, or component-specific touch gesture.

    Default Value:
    • null
    Inherited From:
    Source:
    Examples

    Initialize a JET component with a context menu:

    // via recommended HTML5 syntax:
    <div id="myComponent" contextmenu="myMenu" data-bind="ojComponent: { ... }>
    
    // via JET initializer (less preferred) :
    // Foo is the component, e.g., InputText, InputNumber, Select, etc.
    $( ".selector" ).ojFoo({ "contextMenu": "#myMenu" });

    Get or set the contextMenu option, after initialization:

    // getter
    // Foo is the component, e.g., InputText, InputNumber, Select, etc.
    var menu = $( ".selector" ).ojFoo( "option", "contextMenu" );
    
    // setter
    // Foo is the component, e.g., InputText, InputNumber, Select, etc.
    $( ".selector" ).ojFoo( "option", "contextMenu", ".my-marker-class" );

    Set a JET context menu on an ordinary HTML element:

    <a href="#" id="myAnchor" contextmenu="myMenu" data-bind="ojContextMenu: {}">Some text

    hiddenCategories :Array.<string>

    An array of category strings used for category filtering. Data items with a category in hiddenCategories will be filtered.
    Default Value:
    • null
    Source:

    highlightMatch :string

    The matching condition for the highlightedCategories option. By default, highlightMatch is 'all' and only items whose categories match all of the values specified in the highlightedCategories array will be highlighted. If highlightMatch is 'any', then items that match at least one of the highlightedCategories values will be highlighted.
    Supported Values:
    Name Type
    "any" string
    "all" string
    Default Value:
    • "all"
    Source:

    highlightedCategories :Array.<string>

    An array of category strings used for category highlighting. Data items with a category in highlightedCategories will be highlighted.
    Default Value:
    • null
    Source:

    hoverBehavior :string

    Defines the behavior applied when hovering over data items.
    Supported Values:
    Name Type
    "dim" string
    "none" string
    Default Value:
    • "none"
    Source:

    initialZooming :string

    Specifies whether the map will zoom to fit the data objects on initial render.
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    mapProvider :object

    An object with the following properties, used to define a custom basemap.
    Default Value:
    • null
    Source:

    mapProvider.geo :object

    The GeoJSON object containing custom area coordinates. Only GeoJSON objects of "type" Feature or FeatureCollection and Feature "geometry" objects of "type" Polygon or MultiPolygon are currently supported. Each Feature object will contain a Thematic Map area and each Feature's "properties" object will at a minimum need to contain a key, which can be defined in the propertiesKeys object, that will be used as the ID of the area.
    Default Value:
    • null
    Source:

    mapProvider.propertiesKeys :object

    The object specifying the GeoJSON Feature "properties" object keys to use for the custom area id, short label, and long label mappings.
    • id: The required name of the "properties" key to use as the location id that will map a data item to a map area.
    • shortLabel: The optional name of the "properties" key to use for rendering area labels when areaLayers[].labelType is set to "short".
    • longLabel: The optional name of the "properties" key to use for rendering area labels when areaLayers[].labelType is set to "long".
    Default Value:
    • null
    Source:

    markerZoomBehavior :string

    Specifies marker behavior on zoom.
    Supported Values:
    Name Type
    "zoom" string
    "fixed" string
    Default Value:
    • "fixed"
    Source:

    maxZoom :number

    Specifies the maximum zoom level for this component. This can be any number greater than 1.0 which indicates the maximum point to which the map can be scaled. A value of 2.0 implies that the map can be zoomed in until it reaches twice the viewport size. A maxZoom of 1.0 indicates that the user cannot zoom the map beyond the viewport size.
    Default Value:
    • 6.0
    Source:

    panning :string

    Determines whether component panning is allowed.
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    pointDataLayers :Array.<object>

    An array of objects with the following properties that define point data layers that will always be shown.
    Default Value:
    • null
    Source:

    pointDataLayers[].animationOnDataChange :string

    The type of animation to apply when the data for the layer is updated.
    Supported Values:
    Name Type
    "auto" string
    "none" string
    Default Value:
    • "none"
    Source:

    pointDataLayers[].focusRenderer :function(object)

    An optional callback function to update the data item in response to changes in keyboard focus state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    pointDataLayers[].hoverRenderer :function(object)

    An optional callback function to update the node in response to changes in hover state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    pointDataLayers[].id :string

    The identifier for this data layer.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers :Array.<object>|Promise|function<object>

    An array of objects with the following properties that define a row of data for a this data layer. Also accepts a Promise or callback function for deferred data rendering. Regardless of type, we will wrap and return a Promise when accessing the markers option. The function takes a single argument, provided by the component, with the following properties:
    • basemap: The basemap name.
    • layer: The layer name or 'cities' if rendering a point data layer.
    • ids: The built-in ids for the layer .
    The function should return one of the following:
    • Promise: A Promise that will resolve with an array of data items. No data will be rendered if the Promise is rejected.
    • Array: An array of data items.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].borderColor :string

    The border color.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].borderStyle :string

    The border style.
    Supported Values:
    Name Type
    "none" string
    "solid" string
    Default Value:
    • "solid"
    Source:

    pointDataLayers[].markers[].borderWidth :number

    The border width in pixels.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].categories :Array.<string>

    An array of category strings corresponding to this marker. This allows highlighting and filtering of markers.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].className :string

    The CSS style class to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].color :string

    The marker color.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].height :number

    The pixel height for this marker. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].id :string

    The identifier for this data object.
    Supported Values:
    Name Type
    "" string
    "" string
    Default Value:
    • ""
    Source:

    pointDataLayers[].markers[].label :string

    Text used for the marker's label
    Supported Values:
    Name Type
    "" string
    "" string
    Default Value:
    • ""
    Source:

    pointDataLayers[].markers[].labelPosition :string

    Determines the position relative to the marker that the label should be displayed.
    Supported Values:
    Name Type
    "top" string
    "bottom" string
    "center" string
    Default Value:
    • "center"
    Source:

    pointDataLayers[].markers[].labelStyle :string

    The CSS style defining the label style for this marker.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].location :string

    The id of the city this marker is associated with.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].opacity :number

    The marker opacity.
    Default Value:
    • 1.0
    Source:

    pointDataLayers[].markers[].rotation :number

    The angle to rotate the marker in clockwise degrees around the center of the image
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].selectable :string

    Specifies whether or not the marker will be selectable.
    Supported Values:
    Name Type
    "off" string
    "auto" string
    Default Value:
    • "auto"
    Source:

    pointDataLayers[].markers[].shape :string

    Specifies the shape of a marker. Can take the name of a built-in shape or the svg path commands for a custom shape.
    Supported Values:
    Name Type
    "square" string
    "plus" string
    "diamond" string
    "triangleUp" string
    "triangleDown" string
    "human" string
    "rectangle" string
    "star" string
    "circle" string
    Default Value:
    • "circle"
    Source:

    pointDataLayers[].markers[].shortDesc :string

    The text that displays in the marker's tooltip.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].source :string

    The URI specifying the location of the image source. The shape attribute is ignored if the source image is defined. Specifies an image to use for the marker instead of a built-in shape.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].sourceHover :string

    An optional URI specifying the location of the hover image resource. If not defined, the source image will be used.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].sourceHoverSelected :string

    An optional URI specifying the location of the selected image resource on hover. If not defined, the sourceSelected image will be used. If sourceSelected is not defined, then the source image will be used. sourceSelected
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].sourceSelected :string

    An optional URI specifying the location of the selected image. If not defined, the source image will be used.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].style :object

    The inline style to apply to the data item. The style class and inline style will override any other styling specified through the options. For tooltips and hover interactivity, it's recommended to also pass a representative color to the item color attribute.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].value :number

    A data value used to calculate the marker radius. If specified, the marker size is auto calculated based on this option, ignoring the width and height options.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].width :number

    The pixel width for this marker. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].x :number

    The x coordinate for the center of the marker. If using a built-in map the base map projection will be applied and will be interpreted as the longitude.
    Default Value:
    • null
    Source:

    pointDataLayers[].markers[].y :number

    The y coordinate for the center of the marker. If using a built-in map the base map projection will be applied and will be interpreted as the latitude.
    Default Value:
    • null
    Source:

    pointDataLayers[].renderer :function(object)

    A callback function used to stamp custom SVG elements for a data layer. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    pointDataLayers[].selectionMode :string

    The type of selection behavior that is enabled on for this data layer.
    Supported Values:
    Name Type
    "single" string
    "multiple" string
    "none" string
    Default Value:
    • "none"
    Source:

    pointDataLayers[].selectionRenderer :function(object)

    An optional callback function to update the data item in response to changes in selection state. The function takes a single argument, provided by the component, with the following properties:
    • component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
    • data: The data object for a stamped data visualization in the data layer.
    • parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
    • rootElement: Null on initial rendering or the current data item SVG element.
    • state: An object that reflects the current state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • previousState: An object that reflects the previous state of the data item with the following parameters:
      • hovered: hovered state, boolean.
      • selected: selected state, boolean.
      • focused: focused state, boolean.
    • id: The id of the hovered item.
    • label: The data label of the hovered item.
    • color: The color of the hovered item.
    • location: The location id of the hovered item which can be null if x/y are set instead.
    • x: The x coordinate of the hovered item which can be null if location is set instead.
    • y: The y coordinate of the hovered item which can be null if location is set instead.
    The function should return one of the following:
    • SVGElement: The SVG DOM element to be used as the data item.
    • Null: Indicates that the node content should be removed.
    Default Value:
    • null
    Source:

    rootAttributes :Object

    Attributes specified here will be set on the component's root DOM element at creation time. This is particularly useful for components like Dialog that wrap themselves in a new root element at creation time.

    The supported attributes are id, which overwrites any existing value, and class and style, which are appended to the current class and style, if any.

    Setting this option after component creation has no effect. At that time, the root element already exists, and can be accessed directly via the widget method, per the second example below.

    Default Value:
    • null
    Inherited From:
    Source:
    Examples

    Initialize a JET component, specifying a set of attributes to be set on the component's root DOM element:

    // Foo is the component, e.g., Menu, Button, InputText, InputNumber, Select, etc.
    $( ".selector" ).ojFoo({ "rootAttributes": {
      "id": "myId",
      "style": "max-width:100%; color:blue;",
      "class": "my-class"
    }});

    After initialization, rootAttributes should not be used. It is not needed at that time, as attributes of the root DOM element can simply be set directly, using widget:

    // Foo is the component, e.g., Menu, Button, InputText, InputNumber, Select, etc.
    $( ".selector" ).ojFoo( "widget" ).css( "height", "100px" );
    $( ".selector" ).ojFoo( "widget" ).addClass( "my-class" );

    selection :object

    Map with data layer ids for keys and arrays of selected data item ids as values.
    Default Value:
    • null
    Source:

    styleDefaults :object

    An object defining the style defaults for this thematic map.
    Default Value:
    • null
    Source:

    styleDefaults.areaStyle :string|object

    The CSS style string/object defining the style of the area layer areas.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults :object

    An object defining the default styles for data areas. Properties specified on this object may be overridden by specifications on the data object.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.borderColor :string

    The area stroke color for the area data layer.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.drilledInnerColor :string

    The inner drilled data area border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.drilledOuterColor :string

    The outer drilled data area border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.hoverColor :string

    The hover data area border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.selectedInnerColor :string

    The outer selected data area border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataAreaDefaults.selectedOuterColor :string

    The outer selected data area border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults :object

    An object defining the default styles for data markers. Properties specified on this object may be overridden by specifications on the data object.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.borderColor :string

    The border color.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.borderStyle :string

    The border style.
    Supported Values:
    Name Type
    "none" string
    "solid" string
    Default Value:
    • "solid"
    Source:

    styleDefaults.dataMarkerDefaults.borderWidth :number

    The border width in pixels. Also accepts CSS strings such as 0.5px.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.color :string

    The fill color of a marker.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.height :number

    The default marker pixel height. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.labelStyle :string

    The CSS style for a marker label.
    Default Value:
    • null
    Source:

    styleDefaults.dataMarkerDefaults.opacity :number

    The default marker opacity.
    Default Value:
    • 1.0
    Source:

    styleDefaults.dataMarkerDefaults.shape :string

    The default marker shape. Can take the name of a built-in shape or the svg path commands for a custom shape.
    Supported Values:
    Name Type
    "square" string
    "plus" string
    "diamond" string
    "triangleUp" string
    "triangleDown" string
    "human" string
    "rectangle" string
    "star" string
    "circle" string
    Default Value:
    • "circle"
    Source:

    styleDefaults.dataMarkerDefaults.width :number

    The default marker pixel width. Note that this option will be ignored if a value is provided to calculate marker sizes.
    Default Value:
    • null
    Source:

    styleDefaults.hoverBehaviorDelay :number|string

    Specifies initial hover delay in ms for highlighting data items. Also accepts CSS strings such as 1s and 1000ms.
    Default Value:
    • null
    Deprecated:
    • The string type is deprecated in 2.1.0.
      Source:

      styleDefaults.labelStyle :string

      The CSS style for the area layer labels.
      Default Value:
      • null
      Source:

      styleDefaults.linkDefaults :object

      An object defining the default styles for data areas. Properties specified on this object may be overridden by specifications on the data object.
      Default Value:
      • null
      Source:

      styleDefaults.linkDefaults.color :string

      The stroke color for links.
      Default Value:
      • null
      Source:

      styleDefaults.linkDefaults.width :number

      The stroke width for links in pixels.
      Default Value:
      • 2
      Source:

      tooltip :object

      An object containing an optional callback function for tooltip customization.
      Default Value:
      • null
      Source:

      tooltip.renderer :function(object)

      A function that returns a custom tooltip. The function takes a dataContext argument, provided by the thematic map, with the following properties:
      • color: The color of the hovered item or null if the hovered item if not associated with any data.
      • component: The widget constructor for the thematic map. The 'component' is bound to the associated jQuery element so can be called directly as a function.
      • data: The data object of the hovered item or null if the hovered item if not associated with any data.
      • id: The id of the hovered item or null if the hovered item if not associated with any data.
      • label: The data label of the hovered item or null if the hovered item if not associated with any data.
      • location: The location id of the hovered item which can be null if x/y are set instead.
      • locationName: The location name of the hovered item if location id is set.
      • parentElement: The tooltip element. This can be used to change the tooltip border or background color.
      • tooltip: The default tooltip string constructed by the component if any.
      • x: The x coordinate of the hovered item which can be null if location is set instead.
      • y: The y coordinate of the hovered item which can be null if location is set instead.
      The function may return an HTML element, which will be appended to the tooltip, or a tooltip string.
      Default Value:
      • null
      Source:

      tooltipDisplay :string

      Specifies the tooltip behavior of the thematic map.
      Supported Values:
      Name Type
      "none" string
      "shortDesc" string
      "labelAndShortDesc" string
      "auto" string
      Default Value:
      • "auto"
      Source:

      touchResponse :string

      Data visualizations require a press and hold delay before triggering tooltips and rollover effects on mobile devices to avoid interfering with page panning, but these hold delays can make applications seem slower and less responsive. For a better user experience, the application can remove the touch and hold delay when data visualizations are used within a non scrolling container or if there is sufficient space outside of the visualization for panning. If touchResponse is touchStart the component will instantly trigger the touch gesture and consume the page pan events if the component does not require an internal feature that requires a touch start gesture like panning or zooming. If touchResponse is auto, the component will behave like touchStart if it determines that it is not rendered within scrolling content and if component panning is not available for those components that support the feature.
      Supported Values:
      Name Type
      "touchStart" string
      "auto" string
      Default Value:
      • "auto"
      Source:

      trackResize :string

      Defines whether the component will automatically render in response to changes in size. If set to off, then the application is responsible for calling refresh to render the component at the new size.
      Supported Values:
      Name Type
      "on" string
      "off" string
      Default Value:
      • "on"
      Inherited From:
      Source:

      translations :Object

      A collection of translated resources from the translation bundle, or null if this component has no resources. Resources may be accessed and overridden individually or collectively, as seen in the examples.

      If this component has (or inherits) translations, their documentation immediately follows this doc entry.

      Default Value:
      • an object containing all resources relevant to the component and all its superclasses, or null if none
      Inherited From:
      Source:
      Examples

      Initialize the component, overriding some translated resources. This syntax leaves the other translations intact at create time, but not if called after create time:

      // Foo is InputDate, InputNumber, etc.
      $( ".selector" ).ojFoo({ "translations": { someKey: "someValue",
                                                 someOtherKey: "someOtherValue" } });

      Get or set the translations option, after initialization:

      // Get one.  (Foo is InputDate, InputNumber, etc.)
      var value = $( ".selector" ).ojFoo( "option", "translations.someResourceKey" );
      
      // Get all.  (Foo is InputDate, InputNumber, etc.)
      var values = $( ".selector" ).ojFoo( "option", "translations" );
      
      // Set one, leaving the others intact.  (Foo is InputDate, InputNumber, etc.)
      $( ".selector" ).ojFoo( "option", "translations.someResourceKey", "someValue" );
      
      // Set many.  Any existing resource keys not listed are lost.  (Foo is InputDate, InputNumber, etc.)
      $( ".selector" ).ojFoo( "option", "translations", { someKey: "someValue",
                                                          someOtherKey: "someOtherValue" } );

      translations.componentName :string

      Used to describe the data visualization type for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Thematic Map"
      Source:

      translations.labelAndValue :string

      Used to display a label and its value.

      See the translations option for usage examples.

      Default Value:
      • "{0}: {1}"
      Inherited From:
      Source:

      translations.labelClearSelection :string

      Text shown for clearing multiple selection on touch devices.

      See the translations option for usage examples.

      Default Value:
      • "Clear Selection"
      Inherited From:
      Source:

      translations.labelCountWithTotal :string

      Used to display a count out of a total.

      See the translations option for usage examples.

      Default Value:
      • "{0} of {1}"
      Inherited From:
      Source:

      translations.labelDataVisualization :string

      Label for data visualizations used for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Data Visualization"
      Inherited From:
      Source:

      translations.labelInvalidData :string

      Text shown when the component receives invalid data.

      See the translations option for usage examples.

      Default Value:
      • "Invalid data"
      Inherited From:
      Source:

      translations.labelNoData :string

      Text shown when the component receives no data.

      See the translations option for usage examples.

      Default Value:
      • "No data to display"
      Inherited From:
      Source:

      translations.stateCollapsed :string

      Used to describe the collapsed state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Collapsed"
      Inherited From:
      Source:

      translations.stateDrillable :string

      Used to describe a drillable object for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Drillable"
      Inherited From:
      Source:

      translations.stateExpanded :string

      Used to describe the expanded state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Expanded"
      Inherited From:
      Source:

      translations.stateHidden :string

      Used to describe the hidden state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Hidden"
      Inherited From:
      Source:

      translations.stateIsolated :string

      Used to describe the isolated state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Isolated"
      Inherited From:
      Source:

      translations.stateMaximized :string

      Used to describe the maximized state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Maximized"
      Inherited From:
      Source:

      translations.stateMinimized :string

      Used to describe the minimized state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Minimized"
      Inherited From:
      Source:

      translations.stateSelected :string

      Used to describe the selected state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Selected"
      Inherited From:
      Source:

      translations.stateUnselected :string

      Used to describe the unselected state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Unselected"
      Inherited From:
      Source:

      translations.stateVisible :string

      Used to describe the visible state for accessibility.

      See the translations option for usage examples.

      Default Value:
      • "Visible"
      Inherited From:
      Source:

      zooming :string

      Determines whether component zooming is allowed.
      Supported Values:
      Name Type
      "auto" string
      "none" string
      Default Value:
      • "none"
      Source:

      Binding Attributes

      Binding attributes are similar to component options, but are exposed only via the ojComponent binding.

      areaLayers.areaDataLayer.template :string|null

      The knockout template used for stamping other data visualizations within a data layer. Only a single SVG element or DVT is supported when using knockout templates at this time. The markers.location or markers.x and markers.y options will be used to determine the stamp placement within the Thematic Map. No other existing marker options will be used by the Thematic Map when a knockout template is provided. This attribute is only exposed via the ojComponent binding, and is not a component option.
      Default Value:
      • null
      Source:

      pointDataLayers.template :string|null

      The knockout template used for stamping other data visualizations within a data layer. Only a single SVG element or DVT is supported when using knockout templates at this time. The markers.location or markers.x and markers.y options will be used to determine the stamp placement within the Thematic Map. No other existing marker options will be used by the Thematic Map when a knockout template is provided. This attribute is only exposed via the ojComponent binding, and is not a component option.
      Default Value:
      • null
      Source:

      tooltip.template :string|null

      The knockout template used to render the content of the tooltip. This attribute is only exposed via the ojComponent binding, and is not a component option. The following variables are also passed into the template:
      • color: The color of the hovered item or null if the hovered item if not associated with any data.
      • component: The widget constructor for the thematic map. The 'component' is bound to the associated jQuery element so can be called directly as a function.
      • data: The data object of the hovered item or null if the hovered item if not associated with any data.
      • id: The id of the hovered item or null if the hovered item if not associated with any data.
      • label: The data label of the hovered item or null if the hovered item if not associated with any data.
      • location: The location id of the hovered item which can be null if x/y are set instead.
      • locationName: The location name of the hovered item if location id is set.
      • parentElement: The tooltip element. This can be used to change the tooltip border or background color.
      • tooltip: The default tooltip string constructed by the component if any.
      • x: The x coordinate of the hovered item which can be null if location is set instead.
      • y: The y coordinate of the hovered item which can be null if location is set instead.
      Default Value:
      • null
      Source:

      Context Objects

      Each context object contains, at minimum, a subId property, whose value is a string that identifies a particular DOM node in this component. It can have additional properties to further specify the desired node. See getContextByNode for more details.

      Properties:
      Name Type Description
      subId string Sub-id string to identify a particular dom node.

      Following are the valid subIds:

      oj-thematicmap-area

      Context for an area in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the area within the specified data layer.
      Source:

      Context for a link in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the link within the specified data layer.
      Source:

      oj-thematicmap-marker

      Context for a marker in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the marker within the specified data layer.
      Source:

      Sub-ID's

      Each subId locator object contains, at minimum, a subId property, whose value is a string that identifies a particular DOM node in this component. It can have additional properties to further specify the desired node. See getNodeBySubId and getSubIdByNode methods for more details.

      Properties:
      Name Type Description
      subId string Sub-id string to identify a particular dom node.

      Following are the valid subIds:

      oj-thematicmap-area

      Sub-ID for an area in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the area within the specified data layer.
      Source:
      Example

      Get the first area in the collection (e.g. areas, markers, links) with id 'states':

      var nodes = $( ".selector" ).ojThematicMap( "getNodeBySubId", {'subId': 'oj-thematicmap-area', 'dataLayer': 'states', 'index' : 0} );

      Sub-ID for a link in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the link within the specified data layer.
      Source:
      Example

      Get the first link in the collection (e.g. areas, markers, links) with id 'states':

      var nodes = $( ".selector" ).ojThematicMap( "getNodeBySubId", {'subId': 'oj-thematicmap-link', 'dataLayer': 'states', 'index' : 0} );

      oj-thematicmap-marker

      Sub-ID for a marker in the specified data layer.

      Properties:
      Name Type Description
      dataLayer string The id of the data layer.
      index number The index of the marker within the specified data layer.
      Source:
      Example

      Get the first marker in the collection (e.g. areas, markers, links) with id 'states':

      var nodes = $( ".selector" ).ojThematicMap( "getNodeBySubId", {'subId': 'oj-thematicmap-marker', 'dataLayer': 'states', 'index' : 0} );

      oj-thematicmap-tooltip

      Sub-ID for the the thematic map tooltip.

      Source:
      Example

      Get the tooltip object of the thematic map, if displayed:

      var nodes = $( ".selector" ).ojThematicMap( "getNodeBySubId", {'subId': 'oj-thematicmap-tooltip'} );

      Events

      destroy

      Triggered before the component is destroyed. This event cannot be canceled; the component will always be destroyed regardless.

      Inherited From:
      Source:
      Examples

      Initialize component with the destroy callback

      // Foo is Button, InputText, etc.
      $(".selector").ojFoo({
        'destroy': function (event, data) {}
      });

      Bind an event listener to the destroy event

      $(".selector").on({
        'ojdestroy': function (event, data) {
            // verify that the component firing the event is a component of interest
            if ($(event.target).is(".mySelector")) {
                window.console.log("The DOM node id for the destroyed component is : %s", event.target.id);
            }
        };
      });

      load

      Triggered after thematic map resources are loaded and the component has rendered.
      Deprecated:
      Source:
      Examples

      Initialize the component with the load callback specified:

      $(".selector").ojThematicMap({
        "load": function(){}
      });

      Bind an event listener to the ojload event:

      $(".selector").on("ojload", function(){});

      optionChange

      Fired whenever a supported component option changes, whether due to user interaction or programmatic intervention. If the new value is the same as the previous value, no event will be fired. The event listener will receive two parameters described below:
      Properties:
      Name Type Description
      event Event jQuery event object
      ui Object event payload
      Properties
      Name Type Argument Description
      option string the name of the option that changed.
      previousValue Object an Object holding the previous value of the option. When previousValue is not a primitive type, i.e., is an Object, it may hold the same value as the value property.
      value Object an Object holding the current value of the option.
      subproperty Object <nullable>
      an Object holding information about the subproperty that changed.
      Properties
      Name Type Description
      path string the subproperty path that changed.
      previousValue Object an Object holding the previous value of the subproperty.
      value Object an Object holding the current value of the subproperty.
      optionMetadata Object information about the option that changed
      Properties
      Name Type Description
      writeback string "shouldWrite" or "shouldNotWrite". For use by the JET writeback mechanism; 'shouldWrite' indicates that the value should be written to the observable.
      Inherited From:
      Source:
      Examples

      Initialize component with the optionChange callback

      // Foo is Button, InputText, etc.
      $(".selector").ojFoo({
        'optionChange': function (event, ui) {}
      });

      Bind an event listener to the ojoptionchange event

      $(".selector").on({
        'ojoptionchange': function (event, ui) {
            // verify that the component firing the event is a component of interest
            if ($(event.target).is(".mySelector")) {
                window.console.log("option that changed is: " + ui['option']);
            }
        };
      });

      Methods

      getArea(dataLayerId, index) → {Object|null}

      Returns an object with the following properties for automation testing verification of the area with the specified data layer id and index.
      Parameters:
      Name Type Description
      dataLayerId string
      index number
      Properties:
      Name Type
      color string
      label string
      selected boolean
      tooltip string
      Source:
      Returns:
      An object containing properties for the area, or null if none exists.
      Type
      Object | null

      getContextByNode(node) → {Object|null}

      Returns an object with context for the given child DOM node. This will always contain the subid for the node, defined as the 'subId' property on the context object. Additional component specific information may also be included. For more details on returned objects, see context objects.
      Parameters:
      Name Type Description
      node Element The child DOM node
      Source:
      Returns:
      The context for the DOM node, or null when none is found.
      Type
      Object | null
      Example
       // Foo is ojInputNumber, ojInputDate, etc.
      // Returns {'subId': oj-foo-subid, 'property1': componentSpecificProperty, ...}
      var context = $( ".selector" ).ojFoo( "getContextByNode", nodeInsideComponent );
      Returns an object with the following properties for automation testing verification of the link with the specified data layer id and index.
      Parameters:
      Name Type Description
      dataLayerId string
      index number
      Properties:
      Name Type
      color string
      label string
      selected boolean
      tooltip string
      Source:
      Returns:
      An object containing properties for the link, or null if none exists.
      Type
      Object | null

      getMarker(dataLayerId, index) → {Object|null}

      Returns an object with the following properties for automation testing verification of the marker with the specified data layer id and index.
      Parameters:
      Name Type Description
      dataLayerId string
      index number
      Properties:
      Name Type
      color string
      label string
      selected boolean
      tooltip string
      Source:
      Returns:
      An object containing properties for the marker, or null if none exists.
      Type
      Object | null

      getNodeBySubId(locator) → {Element|null}

      Returns the component DOM node indicated by the locator parameter.

      If the locator or its subId is null, then this method returns the element on which this component was initialized.

      If a non-null subId is provided but no corresponding node can be located, then this method returns null.

      This method is intended for use in test automation only, and should not be used in a production environment.

      Parameters:
      Name Type Description
      locator Object An Object containing, at minimum, a subId property, whose value is a string that identifies a particular DOM node in this component.

      If this component has (or inherits) any subIds, then they are documented in the Sub-ID's section of this document.

      Some components may support additional fields of the locator Object, to further specify the desired node.

      Inherited From:
      Source:
      Returns:
      The DOM node located by the locator, or null if none is found.
      Type
      Element | null
      Example

      Get the node for a certain subId:

      // Foo is ojInputNumber, ojInputDate, etc.
      var node = $( ".selector" ).ojFoo( "getNodeBySubId", {'subId': 'oj-some-sub-id'} );

      getSubIdByNode(node) → {Object|null}

      Returns the subId string for the given DOM node in this component. For details, see getNodeBySubId and the Sub-ID's section of this document.

      This method is intended for use in test automation only, and should not be used in a production environment.

      Parameters:
      Name Type Description
      node Element DOM node in this component
      Inherited From:
      Source:
      Returns:
      The subId for the DOM node, or null if none is found.
      Type
      Object | null
      Example

      Get the subId for a certain DOM node:

      // Foo is ojInputNumber, ojInputDate, etc.
      var locator = $( ".selector" ).ojFoo( "getSubIdByNode", nodeInsideComponent );

      option(optionName, value) → {Object|undefined}

      This method has several overloads, which get and set component options and their fields. The functionality is unchanged from that provided by JQUI. See the examples for details on each overload.

      Parameters:
      Name Type Argument Description
      optionName string | Object <optional>
      the option name (string, first two overloads), or the map (Object, last overload). Omitted in the third overload.
      value Object <optional>
      a value to set for the option. Second overload only.
      Inherited From:
      Source:
      Returns:
      The getter overloads return the retrieved value(s). When called via the public jQuery syntax, the setter overloads return the object on which they were called, to facilitate method chaining.
      Type
      Object | undefined
      Examples

      First overload: get one option:

      This overload accepts a (possibly dot-separated) optionName param as a string, and returns the current value of that option.

      var isDisabled = $( ".selector" ).ojFoo( "option", "disabled" ); // Foo is Button, Menu, etc.
      
      // For object-valued options, dot notation can be used to get the value of a field or nested field.
      var startIcon = $( ".selector" ).ojButton( "option", "icons.start" ); // icons is object with "start" field

      Second overload: set one option:

      This overload accepts two params: a (possibly dot-separated) optionName string, and a new value to which that option will be set.

      $( ".selector" ).ojFoo( "option", "disabled", true ); // Foo is Button, Menu, etc.
      
      // For object-valued options, dot notation can be used to set the value
      // of a field or nested field, without altering the rest of the object.
      $( ".selector" ).ojButton( "option", "icons.start", myStartIcon ); // icons is object with "start" field

      Third overload: get all options:

      This overload accepts no params, and returns a map of key/value pairs representing all the component options and their values.

      var options = $( ".selector" ).ojFoo( "option" ); // Foo is Button, Menu, etc.

      Fourth overload: set one or more options:

      This overload accepts a single map of option-value pairs to set on the component. Unlike the first two overloads, dot notation cannot be used.

      $( ".selector" ).ojFoo( "option", { disabled: true, bar: 42 } ); // Foo is Button, Menu, etc.

      refresh()

      Refreshes the component.

      Inherited From:
      Source:
      Returns:
      When called via the public jQuery syntax, this method returns the object on which it was called, to facilitate method chaining.

      renderDefaultFocus(context)

      Renders the default focus effect for a data item.
      Parameters:
      Name Type Description
      context Object A context object with the following properties:
      • {Function} component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
      • {Object} data: The data object for a stamped data visualization in the data layer.
      • {SVGElement} parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
      • {SVGElement} rootElement: Null on initial rendering or the current data item SVG element.
      • {Object} state: An object that reflects the current state of the data item with the following boolean properties: hovered, selected, focused.
      • {Object} previousState: An object that reflects the previous state of the data item with the following boolean properties: hovered, selected, focused.
      • {string} id: The id of the hovered item.
      • {string} label: The data label of the hovered item.
      • {string} color: The color of the hovered item.
      • {string} location: The location id of the hovered item which can be null if x/y are set instead.
      • {string} x: The x coordinate of the hovered item which can be null if location is set instead.
      • {string} y: The y coordinate of the hovered item which can be null if location is set instead.
      Source:
      Returns:
      When called via the public jQuery syntax, this method returns the object on which it was called, to facilitate method chaining.

      renderDefaultHover(context)

      Renders the default hover effect for a data item.
      Parameters:
      Name Type Description
      context Object A context object with the following properties:
      • {Function} component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
      • {Object} data: The data object for a stamped data visualization in the data layer.
      • {SVGElement} parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
      • {SVGElement} rootElement: Null on initial rendering or the current data item SVG element.
      • {Object} state: An object that reflects the current state of the data item with the following boolean properties: hovered, selected, focused.
      • {Object} previousState: An object that reflects the previous state of the data item with the following boolean properties: hovered, selected, focused.
      • {string} id: The id of the hovered item.
      • {string} label: The data label of the hovered item.
      • {string} color: The color of the hovered item.
      • {string} location: The location id of the hovered item which can be null if x/y are set instead.
      • {string} x: The x coordinate of the hovered item which can be null if location is set instead.
      • {string} y: The y coordinate of the hovered item which can be null if location is set instead.
      Source:
      Returns:
      When called via the public jQuery syntax, this method returns the object on which it was called, to facilitate method chaining.

      renderDefaultSelection(context)

      Renders the default selection effect for a data item.
      Parameters:
      Name Type Description
      context Object A context object with the following properties:
      • {Function} component: A reference to the Thematic Map widget constructor so non public methods cannot be called.
      • {Object} data: The data object for a stamped data visualization in the data layer.
      • {SVGElement} parentElement: An element that is part of a displayed subtree on the DOM. Modifications of the parentElement are not supported.
      • {SVGElement} rootElement: Null on initial rendering or the current data item SVG element.
      • {Object} state: An object that reflects the current state of the data item with the following boolean properties: hovered, selected, focused.
      • {Object} previousState: An object that reflects the previous state of the data item with the following boolean properties: hovered, selected, focused.
      • {string} id: The id of the hovered item.
      • {string} label: The data label of the hovered item.
      • {string} color: The color of the hovered item.
      • {string} location: The location id of the hovered item which can be null if x/y are set instead.
      • {string} x: The x coordinate of the hovered item which can be null if location is set instead.
      • {string} y: The y coordinate of the hovered item which can be null if location is set instead.
      Source:
      Returns:
      When called via the public jQuery syntax, this method returns the object on which it was called, to facilitate method chaining.

      whenReady() → {Promise}

      Returns a promise that is resolved when the component is finished rendering. This can be used to determine when it is okay to call automation and other APIs on the component.
      Inherited From:
      Source:
      Returns:
      Type
      Promise

      Non-public Methods

      Note: Extending JET components is not currently supported. Thus, non-public methods are for internal use only.

      <protected> _AddActiveable(options)

      Add touch and mouse listeners to toggle oj-active class
      Parameters:
      Name Type Description
      options !Object | !jQuery This parameter can either be the element (convenience syntax for callers needing to specify only the element(s) that would otherwise have been passed as options.element) or an object supporting the following fields:
      Properties
      Name Type Argument Description
      element jQuery The element(s) to receive the oj-active class on active Required if afterToggle is specified.
      afterToggle function(string) <nullable>
      Optional callback function called each time the active classes have been toggled, after the toggle. The event.type string is passed and indicates whether the classes were added or removed. The active classes are added on "touchstart" or "mousedown" or "mouseenter" and the active classes are removed on "touchend" or "touchcancel" or "mouseup" or "mouseleave". Components with consistency requirements, such as "oj-default must be applied iff no state classes such as oj-active are applied," can enforce those rules in this callback.
      Inherited From:
      Source:
      See:

      <protected> _AddHoverable(options)

      Add mouse listners to toggle oj-hover class
      Parameters:
      Name Type Description
      options !Object | !jQuery This param can either be the element (convenience syntax for callers needing to specify only the element(s) that would otherwise have been passed as options.element) or an object supporting the following fields:
      Properties
      Name Type Argument Description
      element jQuery The element(s) to receive the oj-hover class on hover Required if afterToggle is specified.
      afterToggle function(string) <nullable>
      Optional callback function called each time the hover classes have been toggled, after the toggle. The string "mouseenter" or "mouseleave" is passed, indicating whether the classes were added or removed. Components with consistency requirements, such as "oj-default must be applied iff no state classes such as oj-hover are applied," can enforce those rules in this callback.
      Inherited From:
      Source:
      See:

      <protected> _AfterCreate()

      This method is called after _ComponentCreate, but before the create event is fired. The JET base component does tasks here that must happen after the component (subclass) has created itself in its override of _ComponentCreate. Notably, the base component handles the rootAttributes and contextMenu options here, since those options operate on the component root node, which for some components is created in their override of _ComponentCreate.

      Subclasses should override this method only if they have tasks that must happen after a superclass's implementation of this method, e.g. tasks that must happen after the context menu is set on the component.

      Overrides of this method should call this._super first.

      Inherited From:
      Source:

      <protected> _AfterCreateEvent()

      This method is called after the create event is fired. Components usually should not override this method, as it is rarely correct to wait until after the create event to perform a create-time task.

      An example of a correct usage of this method is Dialog's auto-open behavior, which needs to happen after the create event.

      Only behaviors (like Dialog auto-open behavior) should occur in this method. Component initialization must occur earlier, before the create event is fired, so that create listeners see a fully inited component.

      Overrides of this method should call this._super first.

      Do not confuse this method with the _AfterCreate method, which is more commonly used.

      Inherited From:
      Source:

      <protected> _CompareOptionValues(option, value1, value2) → {boolean}

      Compares 2 option values for equality and returns true if they are equal; false otherwise.

      Parameters:
      Name Type Description
      option String the name of the option
      value1 Object first value
      value2 Object another value
      Inherited From:
      Source:
      Returns:
      Type
      boolean

      <protected> _ComponentCreate()

      All component create-time initialization lives in this method, except the logic that specifically needs to live in _InitOptions, _AfterCreate, or _AfterCreateEvent, per the documentation for those methods. All DOM creation must happen here, since the intent of _AfterCreate, which is called next, is to contain superclass logic that must run after that DOM is created.

      Overrides of this method should call this._super first.

      Summary of create-time methods that components can override, in the order that they are called:

      1. _InitOptions
      2. _ComponentCreate (this method)
      3. _AfterCreate
      4. (The create event is fired here.)
      5. _AfterCreateEvent

      For all of these methods, the contract is that overrides must call this._super first, so e.g., the _ComponentCreate entry means baseComponent._ComponentCreate, then _ComponentCreate in any intermediate subclasses, then _ComponentCreate in the leaf subclass.

      Inherited From:
      Source:

      <protected> _ConvertLocatorToSubId(locator) → {string|null}

      Converts the specified locator object into a subId string.
      Parameters:
      Name Type Description
      locator Object
      Inherited From:
      Source:
      Returns:
      Type
      string | null

      <protected> _ConvertSubIdToLocator(subId) → {Object|null}

      Converts the specified subId string into a locator object.
      Parameters:
      Name Type Description
      subId string
      Inherited From:
      Source:
      Returns:
      Type
      Object | null

      <protected> _create()

      This method is final in JET. Components should instead override one or more of the overridable create-time methods listed in _ComponentCreate.

      Inherited From:
      Source:

      <protected> _CreateDvtComponent(context, callback, callbackObj)

      Called by _create to instantiate the specific DVT component instance. Subclasses must override.
      Parameters:
      Name Type Description
      context dvt.Context
      callback Function
      callbackObj Object
      Inherited From:
      Source:

      <protected> _FixRendererContext(context) → {Object}

      Prepares a custom renderer context object for either the JQuery or custom element syntax, removing and exposing keys as needed.
      Parameters:
      Name Type Description
      context Object The renderer context object.
      Inherited From:
      Source:
      Returns:
      The cleaned up renderer context.
      Type
      Object

      <protected> _focusable(options)

      Sets JET's "focus" CSS classes when the element is focused and removes them when focus is lost.

      The oj-focus class is set on all focuses.

      Some components additionally have an oj-focus-highlight class, which applies a focus indicator that is appropriate on a subset of the occasions that oj-focus is appropriate. Those components should pass true for the applyHighlight param, in which case the oj-focus-highlight class is set if appropriate given the current focus highlight policy.

      Focus highlight policy

      The focus highlight policy supports the 3 values listed below. By default, it is retrieved from the $focusHighlightPolicy SASS variable, shared by many components and patterns. Components with different needs, including those exposing a component-specific SASS variable or other API for this, should see the getFocusHighlightPolicy parameter below. Valid focus highlight policies:

      Policy Description
      "nonPointer" Indicates that the component should apply the oj-focus-highlight class only for focuses not resulting from pointer (touch or mouse) interaction. (In the built-in themes, the SASS variable defaults to this value.)
      "all" Indicates that the component should apply the class for all focuses.
      "none" Indicates that the component should never apply the class, because the application has taken responsibility for applying the class when needed for accessibility.
      Toggling the classes

      Components that toggle these focus classes outside of this API must maintain the invariant that oj-focus-highlight is applied to a given element in a (not necessarily strict) subset of cases that oj-focus is applied to that element.

      Typically the specified element should be within the component subtree, in which case the classes will automatically be removed from the element when the component is destroyed, when its disabled option is set to true, and when _NotifyDetached() is called.

      As a minor exception, for components that wrap themselves in a new root node at create time, if the specified element is within the root node's subtree but not within the init node's subtree, then at destroy time only, the classes will not be removed, since destroy() is expected to remove such nodes.

      If the element is NOT in the component subtree, then the caller is responsible for removing the classes at the times listed above.

      Listeners

      If setupHandlers is not passed, or if setupHandlers is passed and uses _on to register its listeners as seen in the example, then the listeners are not invoked when the component is disabled, and the listeners are automatically cleaned up when the component is destroyed. Otherwise, the caller is responsible for ensuring that the disabled state is handled correctly, and removing the listeners at destroy time.

      Related API's

      Non-component internal callers should see oj.DomUtils.makeFocusable(). Per its JSDoc (unpublished; see the source), it has a couple of additional usage considerations.

      Parameters:
      Name Type Description
      options !Object | !jQuery This param can either be the element (convenience syntax for callers needing to specify only the element(s) that would otherwise have been passed as options.element) or an object supporting the following fields:
      Properties
      Name Type Argument Description
      element jQuery The element(s) to receive the oj-focus classes on focus. Required if setupHandlers not passed; ignored otherwise.
      applyHighlight boolean true if the oj-focus-highlight class should be applied when appropriate. false or omitted if that class should never be applied.
      afterToggle function(string) <nullable>
      Optional callback function called each time the focus classes have been toggled, after the toggle. The string "focusin" or "focusout" is passed, indicating whether the classes were added or removed. Components with consistency requirements, such as "oj-default must be applied iff no state classes such as oj-focus are applied," can enforce those rules in this callback.
      getFocusHighlightPolicy function() <nullable>
      Optional if applyHighlight is true; ignored otherwise. Components with a component-specific focus policy mechanism should pass a function that always returns one of the three valid values listed above, keeping in mind that this method can be called on every focus. See the example.
      recentPointer function() <nullable>
      Relevant iff applyHighlight is true and the focus highlight policy is "nonPointer"; ignored otherwise. Recent pointer activity is considered to have occurred if (a) a mouse button or finger has recently been down or up, or (b) this optional callback function returns true. Components wishing to additionally take into account (say) recent pointer movements can supply a function returning true if those movements have been detected, keeping in mind that this method can be called on every focus. See the example.
      setupHandlers function(function(!jQuery),function(!jQuery)) <nullable>
      Can be omitted by components whose focus classes need to be added and removed on focusin and focusout, respectively. Components needing to add/remove those classes in response to other events should specify this parameter, which is called once, immediately. See the examples.
      Inherited From:
      Source:
      Examples

      Opt into the highlight behavior, and specify a function to be called every time the classes are toggled:

      var self = this;
      this._focusable({
          'element': this.element, 
          'applyHighlight': true, 
          'afterToggle' : function() {
              self._toggleDefaultClasses();
          }
      });

      Arrange for mouse movement to be considered in addition to mouse/finger up/down. Also supply a component-specific focusHighlightPolicy:

      var self = this;
      this._focusable({
          'element': someElement, 
          'applyHighlight': true, 
          'recentPointer' : function() {
              // A timestamp-based approach avoids the risk of getting stuck in an inaccessible 
              // state if (say) mouseenter is not followed by mouseleave for some reason.
              var millisSincePointerMove = Date.now() - _myPointerMoveTimestamp;
              var isRecent = millisSincePointerMove < myThreshold;
              return isRecent;
          },
          'getFocusHighlightPolicy' : function() {
              // Return the value of a component-specific SASS $variable, component option, or other 
              // component-specific mechanism, either "all", "none", or "nonPointer".  SASS variables
              // should be pulled into JS once statically on load, not per-instance or per-focus.
          }
      });

      Add/remove the focus classes in response to events other than focusin/focusout:

      var self = this;
      this._focusable({
          'applyHighlight': myBooleanValue, 
          'setupHandlers': function( focusInHandler, focusOutHandler) {
              self._on( self.element, {
                  // This example uses focus/blur listeners, which don't bubble, rather than the 
                  // default focusin/focusout (which bubble).  This is useful when one focusable  
                  // element is a descendant of another.
                  focus: function( event ) {
                      focusInHandler($( event.currentTarget ));
                  },
                  blur: function( event ) {
                      focusOutHandler($( event.currentTarget ));
                  }
              });
          }
      });

      Alternate usage of setupHandlers, which simply stashes the handlers so they can be called from the component's existing handlers:

      var self = this;
      this._focusable({
          'applyHighlight': myBooleanValue, 
          'setupHandlers': function( focusInHandler, focusOutHandler) {
              self._focusInHandler = focusInHandler;
              self._focusOutHandler = focusOutHandler;
          }
      });

      <protected> _GetChildStyleClasses() → {Object}

      Returns a map of the style classes associated with a component's children.
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _GetComponentDeferredDataPaths() → {Object}

      Returns an object containing the top level options key and subkeys for deferred data options. 'root' is used for top level keys. For example, {'areaLayers': ['areaDataLayer/areas', 'areaDataLayer/markers'] indicates that we should check this.options['areaLayers'][i]['areaDataLayer']['areas'] and this.options['areaLayers'][i]['areaDataLayer']['markers']. To indicate a top level option, use the options key 'root', i.e. {'root': ['items']}.
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _GetComponentNoClonePaths() → {Object}

      Returns an object containing the no clone paths for a component. For example, {'areaLayers': {'areaDataLayer': {'areas': true, 'markers': true}}} indicates that we should check this.options['areaLayers'][i]['areaDataLayer']['areas'] and this.options['areaLayers'][i]['areaDataLayer']['markers']. The base implementation will handle the basic case where the deferred data path contains only top level data options.
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _GetComponentStyleClasses() → {Array}

      Returns the style classes associated with the component.
      Inherited From:
      Source:
      Returns:
      Type
      Array

      <protected> _getCreateOptions()

      This method is not used in JET. Components should instead override _InitOptions.

      Inherited From:
      Source:

      <protected> _GetDataContext(options) → {Object}

      Returns the data context passed to data function callbacks.
      Parameters:
      Name Type Description
      options Object The options to retrieve the data context for
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _GetDvtComponent(element) → {Object}

      Returns a DVT component associated with a DOMElement
      Parameters:
      Name Type Description
      element Element The DOMElement to get the DVT component from.
      Inherited From:
      Source:
      Returns:
      The DVT component associated with the DOMElement or null
      Type
      Object

      <protected> _GetEventForSyntax(event) → {Object}

      Given an event, returns the appropriate event for the component syntax. For custom elements, if the event is a JQuery event, this method will return the unwrapped original event.
      Parameters:
      Name Type Description
      event Object [description]
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _GetEventTypes() → {Array}

      Returns an array of supported event types. Used in conjunction with _setOptions to skip unnecessary rendering when event listeners are bound. Subclasses must override to return supported event types.
      Inherited From:
      Source:
      Returns:
      Type
      Array

      <protected> _GetFirstBracketedString(subId) → {string}

      Returns the first bracketed substring in the specified string.
      Parameters:
      Name Type Description
      subId string
      Inherited From:
      Source:
      Returns:
      Type
      string

      <protected> _GetFirstIndex(subId) → {number}

      Converts a string containing a single index in the form '[index]' into the numerical index.
      Parameters:
      Name Type Description
      subId string
      Inherited From:
      Source:
      Returns:
      Type
      number

      <protected> _GetIndexPath(subId) → {Array}

      Converts a string containing indices in the form '[index0][index1]...[indexN]' to an array of indices.
      Parameters:
      Name Type Description
      subId string
      Inherited From:
      Source:
      Returns:
      The resulting array to be used for locator indexPath.
      Type
      Array

      <protected> _GetReadingDirection() → {string}

      Determines whether the component is LTR or RTL.

      Component responsibilities:

      • All components must determine directionality exclusively by calling this protected superclass method. (So that any future updates to the logic can be made in this one place.)
      • Components that need to know the directionality must call this method at create-time and from refresh(), and cache the value.
      • Components should not call this at other times, and should instead use the cached value. (This avoids constant DOM queries, and avoids any future issues with component reparenting (i.e. popups) if support for directional islands is added.)

      App responsibilities:

      • The app specifies directionality by setting the HTML "dir" attribute on the <html> node. When omitted, the default is "ltr". (Per-component directionality / directional islands are not currently supported due to inadequate CSS support.)
      • As with any DOM change, the app must refresh() the component if the directionality changes dynamically. (This provides a hook for component housekeeping, and allows caching.)
      Default Value:
      • "ltr"
      Inherited From:
      Source:
      Returns:
      the reading direction, either "ltr" or "rtl"
      Type
      string

      <protected> _GetSavedAttributes(element) → {Object|null}

      Gets the saved attributes for the provided element.

      If you don't override _SaveAttributes and _RestoreAttributes, then this will return null.

      If you override _SaveAttributes to call _SaveAllAttributes, then this will return all the attributes. If you override _SaveAttributes/_RestoreAttributes to do your own thing, then you may also have to override _GetSavedAttributes to return whatever you saved if you need access to the saved attributes.

      Parameters:
      Name Type Description
      element Object jQuery selection, should be a single entry
      Inherited From:
      Source:
      Returns:
      savedAttributes - attributes that were saved for this element in _SaveAttributes, or null if none were saved.
      Type
      Object | null

      <protected> _GetStringFromIndexPath(indexPath) → {string}

      Converts an indexPath array to a string of the form '[index0][index1]...[indexN]'.
      Parameters:
      Name Type Description
      indexPath Array
      Inherited From:
      Source:
      Returns:
      The resulting string.
      Type
      string

      <protected> _GetTranslationMap() → {Object}

      Returns a map containing keys corresponding to the string ids in ojtranslations.js and values corresponding to the toolkit constants for the DvtBundle objects. This map must be guaranteed to be a new instance so that subclasses can add their translations to it.
      Inherited From:
      Source:
      Returns:
      Type
      Object

      <protected> _HandleEvent(event)

      Called by the component to process events. Subclasses should override to delegate DVT component events to their JQuery listeners.
      Parameters:
      Name Type Description
      event Object
      Inherited From:
      Source:

      <protected> _init()

      JET components should almost never implement this JQUI method. Please consult an architect if you believe you have an exception. Reasons:

      • This method is called at create time, after the create event is fired. It is rare for that to be the appropriate time to perform a create-time task. For those rare cases, we have the _AfterCreateEvent method, which is preferred over this method since it is called only at that time, not also at re-init time (see next).
      • This method is also called at "re-init" time, i.e. when the initializer is called after the component has already been created. JET has not yet identified any desired semantics for re-initing a component.
      Inherited From:
      Source:

      <protected> _InitOptions(originalDefaults, constructorOptions)

      This method is called before _ComponentCreate, at which point the component has not yet been rendered. Component options should be initialized in this method, so that their final values are in place when _ComponentCreate is called.

      This includes getting option values from the DOM, where applicable, and coercing option values (however derived) to their appropriate data type if needed.

      No work other than setting options should be done in this method. In particular, nothing should be set on the DOM until _ComponentCreate, e.g. setting the disabled DOM attribute from the disabled option.

      A given option (like disabled) appears in the constructorOptions param iff the app set it in the constructor:

      • If it appears in constructorOptions, it should win over what's in the DOM (e.g. disabled DOM attribute). If for some reason you need to tweak the value that the app set, then enable writeback when doing so: this.option('foo', bar, {'_context': {writeback: true, internalSet: true}}).
      • If it doesn't appear in constructorOptions, then that option definitely is not bound, so writeback is not needed. So if you need to set the option (e.g. from a DOM attribute), use this.option('foo', bar, {'_context': {internalSet: true}}).

      Overrides of this method should call this._super first.

      Parameters:
      Name Type Argument Description
      originalDefaults Object original default options defined on the component and its ancestors
      constructorOptions Object <nullable>
      options passed into the widget constructor
      Inherited From:
      Source:

      <protected> _IsCustomElement() → {boolean}

      Determines whether the component is being rendered as a custom element.
      Inherited From:
      Source:
      Returns:
      True if the component is being rendered as a custom element
      Type
      boolean

      <protected> _IsEffectivelyDisabled() → {boolean}

      Determines whether this component is effectively disabled, i.e. it has its 'disabled' attribute set to true or it has been disabled by its ancestor component.

      Inherited From:
      Source:
      Returns:
      true if the component has been effectively disabled, false otherwise
      Type
      boolean

      <protected> _IsFlowingLayoutSupported() → {boolean}

      Returns whether flowing layout is supported for the component. If this returns true, the component will render at the preferred size of the component if the user doesn't specify the width and height in the div. If this returns false, the component will always render at the browser- computed width and height.
      Inherited From:
      Source:
      Returns:
      Type
      boolean

      <protected> _LoadResources()

      Called once during component creation to load resources.
      Inherited From:
      Source:

      <protected> _MakeReady()

      Called by component to declare rendering is finished. This method currently handles the ready state for the component whenReady API, the page level BusyContext, and the static whenReady API for the custom element version of this component.
      Inherited From:
      Source:

      <protected> _NotifyAttached()

      Notifies the component that its subtree has been connected to the document programmatically after the component has been created.

      Inherited From:
      Source:

      <protected> _NotifyContextMenuGesture(menu, event, eventType)

      When the contextMenu option is set, this method is called when the user invokes the context menu via the default gestures: right-click, Press & Hold, and Shift-F10. Components should not call this method directly.

      The default implementation simply calls this._OpenContextMenu(event, eventType). Overrides of this method should call that same method, perhaps with additional params, not menu.open().

      This method may be overridden by components needing to do things like the following:

      • Customize the launcher or position passed to _OpenContextMenu(). See that method for guidance on these customizations.
      • Customize the menu contents. E.g. some components need to enable/disable built-in commands like Cut and Paste, based on state at launch time.
      • Bail out in some cases. E.g. components with UX approval to use PressHoldRelease rather than Press & Hold can override this method to say if (eventType !== "touch") this._OpenContextMenu(event, eventType);. When those components detect the alternate context menu gesture (e.g. PressHoldRelease), that separate listener should call this._OpenContextMenu(), not this method (_NotifyContextMenuGesture()), and not menu.open().

      Components needing to do per-launch setup like the above tasks should do so in an override of this method, not in a beforeOpen listener or an _OpenContextMenu() override. This is discussed more fully here.

      Parameters:
      Name Type Description
      menu Object The JET Menu to open as a context menu. Always non-null.
      event Event What triggered the menu launch. Always non-null.
      eventType string "mouse", "touch", or "keyboard". Never null.
      Inherited From:
      Source:

      <protected> _NotifyDetached()

      Notifies the component that its subtree has been removed from the document programmatically after the component has been created.

      Inherited From:
      Source:

      <protected> _NotifyDetached()

      Notifies the component that its subtree has been removed from the document programmatically after the component has been created.

      Inherited From:
      Source:

      <protected> _NotifyHidden()

      Notifies the component that its subtree has been made hidden programmatically after the component has been created.

      Inherited From:
      Source:

      <protected> _NotifyShown()

      Notifies the component that its subtree has been made visible programmatically after the component has been created.

      Inherited From:
      Source:

      <protected> _NotReady()

      Called by component to declare rendering is not finished. This method currently handles the ready state for the component whenReady API, the page level BusyContext, and the static whenReady API for the custom element version of this component.
      Inherited From:
      Source:

      <protected> _OpenContextMenu(event, eventType, openOptions, submenuOpenOptions, shallow)

      The only correct way for a component to open its context menu is by calling this method, not by calling Menu.open() or _NotifyContextMenuGesture(). This method should be called in two cases:

      • This method is called by _NotifyContextMenuGesture() and its overrides. That method is called when the baseComponent detects the default context menu gestures: right-click, Press & Hold, and Shift-F10.
      • Components with UX-approved support for alternate context menu gestures like PressHoldRelease should call this method directly when those gestures are detected.

      Components needing to customize how the context menu is launched, or do any per-launch setup, should do so in the caller of this method, (which is one of the two callers listed above), often by customizing the params passed to this method (_OpenContextMenu) per the guidance below. This setup should not be done in the following ways:

      • Components should not perform setup in a beforeOpen listener, as this can cause a race condition where behavior depends on who got their listener registered first: the component or the app. The only correct component use of a beforeOpen listener is when there's a need to detect whether something else launched the menu.
      • Components should not override this method (_OpenContextMenu), as this method is final. Instead, customize the params that are passed to it.

      Guidance on setting OpenOptions fields:

      Launcher:

      Depending on individual component needs, any focusable element within the component can be the appropriate launcher for this launch.

      Browser focus returns to the launcher on menu dismissal, so the launcher must at least be focusable. Typically a tabbable (not just focusable) element is safer, since it just focuses something the user could have focused on their own.

      By default (i.e. if openOptions is not passed, or if it lacks a launcher field), the component init node is used as the launcher for this launch. If that is not focusable or is suboptimal for a given component, that component should pass something else. E.g. components with a "roving tabstop" (like Toolbar) should typically choose the current tabstop as their launcher.

      The :focusable and :tabbable selectors may come in handy for choosing a launcher, e.g. something like this.widget().find(".my-class:tabbable").first().

      Position:

      By default, this method applies positioning that differs from Menu's default in the following ways: (The specific settings are subject to change.)

      • For mouse and touch events, the menu is positioned relative to the event, not the launcher.
      • For touch events, "my" is set to "start>40 center", to avoid having the context menu obscured by the user's finger.

      Usually, if position needs to be customized at all, the only thing that needs changing is its "of" field, and only for keyboard launches (since mouse/touch launches should almost certainly keep the default "event" positioning). This situation arises anytime the element relative to which the menu should be positioned for keyboard launches is different than the launcher element (the element to which focus should be returned upon dismissal). For this case, { "position": {"of": eventType==="keyboard" ? someElement : "event"} } can be passed as the openOptions param.

      Be careful not to clobber useful defaults by specifying too much. E.g. if you only want to customize "of", don't pass other fields like "my", since your value will be used for all modalities (mouse, touch, keyboard), replacing the modality-specific defaults that are usually correct. Likewise, don't forget the eventType==="keyboard" check if you only want to customize "of" for keyboard launches.

      InitialFocus:

      This method forces initialFocus to "menu" for this launch, so the caller needn't specify it.

      Parameters:
      Name Type Argument Description
      event Event What triggered the context menu launch. Must be non-null.
      eventType string "mouse", "touch", or "keyboard". Must be non-null. Passed explicitly since caller knows what it's listening for, and since events like contextmenu and click can be generated by various input modalities, making it potentially error-prone for this method to determine how they were generated.
      openOptions Object <optional>
      Options to merge with this method's defaults, which are discussed above. The result will be passed to Menu.open(). May be null or omitted. See also the shallow param.
      submenuOpenOptions Object <optional>
      Options to be passed through to Menu.open(). May be null or omitted.
      shallow boolean <optional>
      Whether to perform a deep or shallow merge of openOptions with this method's default value. The default and most commonly correct / useful value is false.
      • If true, a shallow merge is performed, meaning that the caller's position object, if passed, will completely replace this method's default position object.
      • If false or omitted, a deep merge is performed. For example, if the caller wishes to tweak position.of while keeping this method's defaults for position.my, position.at, etc., it can pass {"of": anOfValue} as the position value.

      The shallow param is n/a for submenuOpenOptions, since this method doesn't apply any defaults to that. (It's a direct pass-through.)

      Inherited From:
      Source:

      <protected> _ProcessStyles()

      Create dummy divs for style classes and merge style class values with json . options object
      Inherited From:
      Source:

      <protected> _ReleaseResources()

      Release resources held by this component, for example, remove listeners. This is called during destroy. _SetupResources will set up resources needed by this component, and is called during _create.

      This base class default implementation does nothing.

      Component subclasses can opt in by overriding _SetupResources and _ReleaseResources.
      Inherited From:
      Source:

      <protected> _RemoveActiveable(element)

      Remove touch and mouse listeners that were registered in _AddActiveable
      Parameters:
      Name Type Description
      element jQuery The same element passed to _AddActiveable
      Inherited From:
      Source:
      See:

      <protected> _RemoveHoverable(element)

      Remove mouse listners that were registered in _AddHoverable
      Parameters:
      Name Type Description
      element jQuery The same element passed to _AddHoverable
      Inherited From:
      Source:
      See:

      <protected> _Render(isResize)

      Called to render the component at the current size.
      Parameters:
      Name Type Description
      isResize boolean (optional) Whether it is a resize rerender.
      Inherited From:
      Source:

      <protected> _RestoreAllAttributes()

      Restores all the element's attributes which were saved in _SaveAllAttributes. This method is final in JET.

      If a subclass wants to save/restore all attributes on create/destroy, then the subclass can override _SaveAttributes and call _SaveAllAttributes and also override _RestoreAttributes and call _RestoreAllAttributes.

      Inherited From:
      Source:

      <protected> _RestoreAttributes()

      Restore the attributes saved in _SaveAttributes.

      _SaveAttributes is called during _create. And _RestoreAttributes is called during _destroy.

      This base class default implementation does nothing.

      We also have _SaveAllAttributes and _RestoreAllAttributes methods that save and restore all the attributes on an element. Component subclasses can opt into these _SaveAllAttributes/_RestoreAllAttributes implementations by overriding _SaveAttributes and _RestoreAttributes to call _SaveAllAttributes/_RestoreAllAttributes. If the subclass wants a different implementation (like save only the 'class' attribute), it can provide the implementation itself in _SaveAttributes/_GetSavedAttributes/_RestoreAttributes.

      Inherited From:
      Source:

      <protected> _SaveAllAttributes(element)

      Saves all the element's attributes within an internal variable. _RestoreAllAttributes will restore the attributes from this internal variable.

      This method is final in JET. Subclasses can override _RestoreAttributes and call _RestoreAllAttributes.

      The JSON variable will be held as:

      [
        {
        "element" : element[i],
        "attributes" :
          {
            attributes[m]["name"] : {"attr": attributes[m]["value"]
          }
        }
      ]
      
      Parameters:
      Name Type Description
      element Object jQuery selection to save attributes for
      Inherited From:
      Source:

      <protected> _SaveAttributes(element)

      Saves the element's attributes. This is called during _create. _RestoreAttributes will restore all these attributes and is called during _destroy.

      This base class default implementation does nothing.

      We also have _SaveAllAttributes and _RestoreAllAttributes methods that save and restore all the attributes on an element. Component subclasses can opt into these _SaveAllAttributes/_RestoreAllAttributes implementations by overriding _SaveAttributes and _RestoreAttributes to call _SaveAllAttributes/_RestoreAllAttributes. If the subclass wants a different implementation (like save only the 'class' attribute), it can provide the implementation itself in _SaveAttributes/_RestoreAttributes.

      Parameters:
      Name Type Description
      element Object jQuery selection to save attributes for
      Inherited From:
      Source:

      <protected> _SetRootAttributes()

      Reads the rootAttributes option, and sets the root attributes on the component's root DOM element. See rootAttributes for the set of supported attributes and how they are handled.

      Inherited From:
      Source:
      Throws:
      if unsupported attributes are supplied.

      <protected> _SetupResources()

      Sets up needed resources for this component, for example, add listeners. This is called during _create. _ReleaseResources will release resources help by this component, and is called during destroy.

      This base class default implementation does nothing.

      Component subclasses can opt in by overriding _SetupResources and _ReleaseResources.
      Inherited From:
      Source:

      <protected> _UnregisterChildNode()

      Remove all listener references that were attached to the element.
      Inherited From:
      Source:

      <protected> _UserOptionChange(key, value, optionMetadata)

      Sets an option change that was driven by user gesture. Used in conjunction with _setOption to ensure that the correct optionMetadata flag for writeback is set.
      Parameters:
      Name Type Description
      key string The name of the option to set.
      value Object The value to set for the option.
      optionMetadata Object The optionMetadata for the optionChange event
      Inherited From:
      Source: