Widgets specific variables
This section lists the theme variables that are specific to widgets.
About widgets
- Genero form items, such as buttons and comboboxes
- GBC layout elements, such as the chromebar and application launcher
- Application host elements, such as session sidebar, main container widget, and log player
You can see examples of widgets using the demos application. Enter the URL http://localhost:6394/ua/r/gwc-demo and navigate to .
gbc-*Widget-*
variables apply only to GBC widgets. For example,
gbc-ButtonWidget-*
variables only apply to Button widgets as defined on a Genero
form, while mt-button-*
variables apply to all buttons in the application.
For variables that apply to non-GBC as well as GBC components, see Material variables.
Widget CSS class naming pattern
GBC widget CSS classes comply with a structured naming convention based on BEM notation.
BEM, which stands for block, element, modifier, is a methodology for naming and organizing CSS classes in a way that makes it clearer what widget each CSS class represents and how it relates to other classes.
Class | BEM naming convention | Example | ||||||
---|---|---|---|---|---|---|---|---|
Block |
The notation for classes that represent blocks (widgets) follow these patterns:
|
The gbc_ListDropDownWidget class. |
||||||
Element |
The notation for classes that represent elements and sub-parts of the block follow these patterns:
|
|
||||||
Modifier |
Modifiers change the appearance or behavior of the block or element. The notation for classes
that represent modifiers of blocks and elements follow these patterns:
|
|