Type class
Defines a class for a CSS rule.
Can be used to dynamically add CSS to the document.
Sources
StyleRule can be used (imported) via one of the following packages.
// StyleRule is available in all of the following modules. // You only need to import one of them. /** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.StyleRule * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
// StyleRule is available in all of the following modules. // You only need to import one of them. /** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.StyleRule * -------------------------------------------------------- */
Inheritance
StyleRule extends Disposer
.
StyleRule is not extended by any other symbol.
Properties
selector # |
Type A CSS selector text. E.g.: |
---|
Methods
constructor( element: ) |
Returns Constructor. |
---|---|
dispose() |
Returns Inherited from Disposes the object. |
isDisposed() |
Returns Inherited from Checks if object is disposed. |
setStyle( name: ) |
Returns Sets a value for specific style attribute. |
There are 2 inherited items currently hidden from this list. |
Events
StyleRule does not have any events.
Adapters
StyleRule does not have any adapters.