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
|
- Version:
- 17.1.5
- Source:
- See:
-
- Example of a complete ThemeProvider which generates its descriptor from a JSON file
Example
return new ThemeDescriptor({
id: 'myTheme',
title: 'My Theme',
description: 'My theme created on purpose for this example',
preview: 'myTheme/theme/preview.png'
});