Class RevealTheme

Class defining a theme to be used to render RevealView with. When instantiated it has the values for the default reveal theme. Create an instance tune it as you like and then set it to RevealSdkSettings.theme. You should set the theme before RevealView is rendered.

Hierarchy

Index

Constructors

constructor

Properties

_contextId

_contextId: string

accentColor

accentColor: string = ""

Accent color

backgroundColors

backgroundColors: string[] = []

The list of background colors displayed as the palette when selecting the background color for a visualization. This color palette could have any number of elements.

boldFont

boldFont: string = ""

Font family used for bold font style

chartColors

chartColors: string[] = []

The list of chart colors. This color palette could have any number of elements. Once the list is finished, Reveal will start auto generating shade of these colors.

theme.chartColors = ["rgb(255,0,0)","rgb(0,255,0)", "rgb(0,0,255)"];

conditionalFormatting

conditionalFormatting: RVConditionalFormatting = ...

Conditional Formatting set of colors HI, MID, LOW and NONE values.

dashboardBackgroundColor

dashboardBackgroundColor: string = ""

Main background color

fontColor

fontColor: string = ""

Font color

highlightColor

highlightColor: string = ""

Highlighting color that is used on specific scenarios for dashboards (forecast and outliers).

theme.highlightColor = "rgb(255,0,0)";

mediumFont

mediumFont: string = ""

Font family used for medium font style

regularFont

regularFont: string = ""

Font family used for regular font style

useRoundedCorners

useRoundedCorners: Boolean = false

Rounded corners in buttons, tooltips, containers, visualizations, etc. If false, squared corners will be shown

visualizationBackgroundColor

visualizationBackgroundColor: string = ""

Visualizations, modals, list-items... secondary background color

visualizationMargin

visualizationMargin: number

Gets or sets the margin around the visualization. The space around the visualization. Default is 2.

Methods

clone