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

Class: layout.dt/js/api/ThemeDescriptor

new layout.dt/js/api/ThemeDescriptor(descriptor)

stable API

Theme description holder. This object contains pairs of strings that will be used to present information about a theme to the user (e.g. in the theme palette and in the new application wizard).

Parameters:
Name Type Description
descriptor Object

Object literal describing a theme.

Properties
Name Type Attributes Description
id String

Theme's identifier.

title String

Theme's display name.

description String <optional>

Theme's description.

preview String <optional>

Path to theme's preview image.

Version:
  • 17.1.5
Source:
See:
Example

An example of a basic theme descriptor.

return new ThemeDescriptor({
  id: 'myTheme',
  title: 'My Theme',
  description: 'My theme created on purpose for this example',
  preview: 'myTheme/theme/preview.png'
});

Methods