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 jqxNavigationBar.
- jqx-widget - applied to the jqxNavigationBar widget.
- jqx-navigationbar - applied to the jqxNavigationBar.
- jqx-expander-header - applied to the expander's header.
- jqx-widget-header - applied to the header elements.
- jqx-fill-state-normal - applied to the header elements.
- jqx-expander-content - applied to the content elements.
- jqx-widget-content - applied to the content elements.
- jqx-expander-arrow - applied to the header's expand/collapse button.
- jqx-expander-arrow-top - applied to the expander's expand/collapse button and displays
arrow icon.
- jqx-expander-arrow-bottom - applied to the expander's expand/collapse button and
displays arrow icon.
- jqx-expander-header-hover - applied to a hovered header element.
- jqx-fill-state-hover - applied to a hovered header element.
- jqx-fill-state-pressed - applied to an expanded header element.
- jqx-fill-state-focus - applied to focused Content or Header elements.
- jqx-fill-state-disabled - applied to the jqxNavigationBar when it is disabled.
When you create a custom style with colors and backgrounds for jqxNavigationBar,
you need to do the following:
- Add the above CSS classes related to jqxnavigationbar
- After each CSS class, add your theme name.
For example:
jqx-navigationbar-summer
- To apply your custom style to jqxnavigationbar, you need to set its 'theme' property(option)
to point to your theme name string.
- The sample below demonstrates how to set the 'Summer' theme to jqxNavigationBar.