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

Class: layout.dt/js/api/ThemeAssets

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

stable API

Collection of the assets (files) that make up a theme. There are several types depending on an asset's functionality.

Version:
  • 17.1.5
Source:
See:

Members

(static) Type :String

stable API

Defines valid asset types.

Type:
  • String
Properties:
Name Type Description
STYLE String

Styling file.

Theme CSS files can include styling for elements within the theme HTML and also elements generated by ABCS, including Oracle JET components.

SCRIPT String

Javascript template file.

A theme can have custom Javascript code in files other than its ThemeProvider SPI implementation.

TEMPLATE String

HTML template file.

A theme should have one HTML file designated as its template, whose contents should be returned by ThemeProvider.getTemplate(). Further HTML files can be loaded into the theme as templates

IMAGE String

Image file.

A theme can include images which can be used within its layout and as theme preview in the theme palette.

OTHER String

Generic type for files which do not belong to any of the previous categories. Not currently used.

Version:
  • 17.1.5
Source:

Methods

addAsset(assetType, assetPath) → {layout.dt/js/api/ThemeAssets}

stable API

Adds an asset to the collection.

Parameters:
Name Type Description
assetType layout.dt/js/api/ThemeAssets.Type

The type of the asset

assetPath String

The path and filename of the asset, relative to the asset path declared by the ThemeProvider.

Version:
  • 17.1.5
Source:
See:
Returns:

a reference to this object to allow method chaining

Type
layout.dt/js/api/ThemeAssets