Theme dialog web component <cq-theme-dialog>.
Enables creation of custom chart themes.
Example
<cq-dialog>
<cq-theme-dialog>
<h4 class="title">Create Custom Theme</h4>
<cq-close></cq-close>
<cq-scroll cq-no-maximize>
<cq-section>...</cq-section>
<cq-action>...</cq-action>
</cq-scroll>
</cq-theme-dialog>
</cq-dialog>
Methods
-
close()
-
Closes the theme dialog box.
-
open(params)
-
Opens the theme dialog box.
Parameters:
Name Type Description paramsobject Dialog box parameters.
Properties
Name Type Argument Description contextCIQ.UI.Context The chart user interface context.
initiatingMenuobject The menu that contains the user interface control that opened the theme dialog box.
themeNamestring <optional>
Hint text for the name of the custom theme. Used in the theme name input field of the theme dialog box.
- Since:
-
6.2.0
basecolorof mountain chart can be configured with "mb" piece.
-
save()
-
Saves the custom theme and closes the theme dialog box.
-
setValue(obj, field, value)
-
Sets a theme property, such as candle color, and applies the new property to all charts on the screen.
Parameters:
Name Type Description objobject Contains the properties of a theme element.
fieldstring The property for which the new value is set.
valuestring The new value for the theme property.
