StyleKey
Description
The StyleKey
class is a helper class that exposes functions to create style keys assignable in StyleDefinition
key and basedOn properties. Different types of style keys exist, each having its own purpose.
Functions
Function |
Parameter |
Type |
Description |
---|---|---|---|
defaultKey |
component |
|
|
|
part? |
string |
|
|
[output] |
object |
Returns a style key targeting a component or a component part’s default style. |
stateKey |
component |
|
|
|
part? |
string |
|
|
state |
string |
|
|
[output] |
object |
Returns a style key targeting a component or a component part’s state style. |
baseKey |
[output] |
object |
Returns a style key to put in the |
Examples
See the example section of StyleDefinition
.