Constructor
new StyletronCore(optsopt)
- Source:
Create a new StyletronCore instance
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
An object containing options Properties
|
Methods
injectDeclaration(decl) → {string|undefined}
- Source:
Injects a declaration (if not already injected) and returns a class name
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
decl |
object | The CSS declaration object Properties
|
Returns:
The class name for the declaration
- Type
- string | undefined