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 params
object Dialog box parameters.
Properties
Name Type Argument Description context
CIQ.UI.Context The chart user interface context.
initiatingMenu
object The menu that contains the user interface control that opened the theme dialog box.
themeName
string <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
basecolor
of 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 obj
object Contains the properties of a theme element.
field
string The property for which the new value is set.
value
string The new value for the theme property.