mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
feat(core): allow removal of specific CSS variables (#9896)
This commit is contained in:
@ -56,6 +56,14 @@ export class Style extends Observable implements StyleDefinition {
|
||||
this.unscopedCssVariables.set(varName, value);
|
||||
}
|
||||
|
||||
public removeScopedCssVariable(varName: string): void {
|
||||
this.scopedCssVariables.delete(varName);
|
||||
}
|
||||
|
||||
public removeUnscopedCssVariable(varName: string): void {
|
||||
this.unscopedCssVariables.delete(varName);
|
||||
}
|
||||
|
||||
public getCssVariable(varName: string): string | null {
|
||||
const view = this.view;
|
||||
if (!view) {
|
||||
|
Reference in New Issue
Block a user