ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > HtmlRendererImplementationStaticProperties > getCssRules

HtmlRendererImplementationStaticProperties.getCssRules property

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'}}.

Signature:

getCssRules?: (palette: Palette) => CssRules;
  • HtmlRendererImplementationStaticProperties.getCssRules property
Copyright © 2023 ActiveViam