A singleton instance of this class available via atom.styles
,
which you can use to globally query and observe the set of active style
sheets. The StyleManager
doesn’t add any style elements to the DOM on its
own, but is instead subscribed to by individual <atom-styles>
elements,
which clone and attach style elements in different contexts.
This section only has Extended methods.
Invoke callback
for all current and future style elements.
Argument | Description |
---|---|
|
Function that is called with style elements. |
|
An |
|
A String containing the path from which the style element was loaded. |
|
A String indicating the target context of the style element. |
Return values |
---|
Returns a Disposable on which |
Invoke callback
when a style element is added.
Argument | Description |
---|---|
|
Function that is called with style elements. |
|
An |
|
A String containing the path from which the style element was loaded. |
|
A String indicating the target context of the style element. |
Return values |
---|
Returns a Disposable on which |
Invoke callback
when a style element is removed.
Argument | Description |
---|---|
|
Function that is called with style elements. |
|
An |
Return values |
---|
Returns a Disposable on which |
Invoke callback
when an existing style element is updated.
Argument | Description |
---|---|
|
Function that is called with style elements. |
|
An |
|
A String containing the path from which the style element was loaded. |
|
A String indicating the target context of the style element. |
Return values |
---|
Returns a Disposable on which |
This section only has Extended methods.
Get all loaded style elements.
This section only has Extended methods.