React UI Components Documentation

Styling and Appearance

jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file.

Below is the list of CSS classes used by jqxTooltip.
  • jqx-widget - applied to the tooltip.
  • jqx-tooltip - applied to the tooltip.
  • jqx-fill-state-normal - applied to the tooltip. Adds border and background.
  • jqx-tooltip-main - applied to the tooltip body (sans arrow).
  • jqx-tooltip-text - applied to the tooltip content (text).
  • jqx-tooltip-arrow - applied to the tooltip arrow.
  • jqx-tooltip-arrow-t-b - applied to the tooltip arrow when it is shown at the top or bottom. In this class you can only edit the following css parameters to change the color of the tooltip arrow: border-top-color and border-bottom-color.
  • jqx-tooltip-arrow-l-r - applied to the tooltip arrow when it is shown at the left or right. In this class you can only edit the following css parameters to change the color of the tooltip arrow: border-left-color and border-right-color.
When you create a custom style with colors and backgrounds for jqxTooltip, you need to do the following:
  • Add the above CSS classes related to jqxTooltip
  • After each CSS class, add your theme name.
    For example:
    jqx-tooltip-shinyblack
  • To apply your custom style to jqxTooltip, you need to set its 'theme' property(option) to point to your theme name string.