Home > @activeviam/activeui-sdk > HtmlRendererImplementationStaticProperties
HtmlRendererImplementationStaticProperties interface
Signature:
export interface HtmlRendererImplementationStaticProperties
Properties
Property | Type | Description |
---|---|---|
getClassName | () => string | Returns a CSS class name that you want to add to your output. This can be useful if the underlying rendering library provides its own stylesheet. |
getCssRules | (palette: Palette) => CssRules | Returns a map of CSS in JS rules to be applied to the rendered output. The keys of the map are CSS selectors that will be prefixed by a custom class so that they stay isolated to the div containing the rendered output. The values of the map are regular CSS properties expressed in JavaScript such as {color: 'blue'} . The CSS properties will be "autoprefixed" in order to work well in the different browsers. Example of map that can be returned: {p: {fontSize: '13px'}} . |