JavaScript Extension Development API for Oracle Visual Builder Cloud Service - Classic Applications

Class: layout.dt/js/api/ThemeComponentMap

new layout.dt/js/api/ThemeComponentMap()

stable API

Content map of a theme. It identifies specific element IDs within the theme's template that should have dynamic content inserted by ABCS.

Version:
  • 17.1.5
Source:
See:

Methods

addCopyright(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a copyright message. The copyright element will be replaced by ABCS with the copyright message configured for the application in the property inspector.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addFavicon(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a favicon. A favicon element will be replaced by ABCS with an image showing the favicon configured for the application in application settings.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addLanguageSwitcher(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a language switcher area. A language switcher is an element that ABCS will apply knockout bindings to allow the access to the locales for which translations are available.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.2.3
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

stable API

Adds a logo. A logo element will be replaced by ABCS with an image showing the logo configured for the application in the property inspector.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addMenuArea(elementId, optionsopt) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a menu area. A menu area is an element that ABCS will apply knockout bindings to to allow the structure of the main application menu to be accessed.

Parameters:
Name Type Attributes Description
elementId String

The element ID within the theme

options Object <optional>

Structure for passing additional options, as follows:

Properties
Name Type Description
boundIds Array.<String>

Alternative IDs within the theme to bind the menu model to

alternateIds Array.<String>

Alternative IDs within the theme used, for example, to display an alternative version of the menu for other device formats

maxDepth number

Maximum depth of menu that this theme can support

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addThemeArea(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a theme area. A theme area is an element that, when clicked by the user, will open the theme property inspector in the ABCS designer.

Parameters:
Name Type Description
elementId String

The element ID within the theme template

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addTitle(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a title. A title element will be replaced by ABCS with an element containing the title configured for the application in the property inspector.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap

addUserArea(elementId) → {layout.dt/js/api/ThemeComponentMap}

stable API

Adds a user area. A user area is an element that ABCS will apply knockout bindings to to allow the current user and help link to be accessed.

Parameters:
Name Type Description
elementId String

The element ID within the theme

Version:
  • 17.1.5
Source:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeComponentMap