The NGClient utilizes unprocessed CSS (3.0) to do all styling of solutions.
All possible CSS properties can now be used, like:
- All types of selectors
- Pseudo-classes
Solution StyleSheet
The stylesheet can be specified at solution level, it has to be stored in the media, for usage of images from media library do use relative URL's.
CSS Selectors
StyleSheets for the Servoy Smart and Web Client could make use of Servoy specific type selectors. In the NGClient, where the stylesheets are interpreted by the browser, these Servoy specific type selectors are not available. Below a conversion table from the Servoy specific type selectors to their NGClient equivalent.
Smart/Web Client Type Selector | NGClient Selector |
---|---|
body | [ng-style="bodyStyle"] |
button | button[svy-model] |
check | |
combobox | |
even | .ngRow.even |
field | .svy-field |
footer | [ng-style="footerStyle"] |
form | [svy-formstyle] |
header | [ng-style="headerStyle"] |
label | |
listbox | select[svy-model][size] |
odd | .ngRow.odd |
portal | |
radio | |
selected | .ngRow.selected |
grid_header | |
spinner | |
tabpanel | |
title_header | [ng-style="titleheaderStyle"] |
title_footer | N/A |
Also NGClient will output special classes for default components that can be used from solution css to easily style all components of same time. The name of the class is svy-componentName (so svy-label, svy-button, svy-calendar, svy-textfield...). If you set another value for styleClass property this default value will not be present anymore and must be specified among styleClass values (as this should be already present in solution css, otherwise has no effect).