Files
NativeScript/ui/styling/style-scope.d.ts
Hristo Deshev 9daa948887 Allow updates to application CSS rules.
Expose an `application.addCss` method and hide `application.cssSelectors`
from end-user typings. Update StyleScope's with new application selectors
on style application.

NOT updating existing controls/views unless reloaded, or forced (via a
change to className, etc).
2016-03-24 14:45:20 +02:00

21 lines
778 B
TypeScript

//@private
declare module "ui/styling/style-scope" {
import view = require("ui/core/view");
import cssSelector = require("ui/styling/css-selector");
import cssParser = require("css");
export class StyleScope {
public css: string;
public addCss(cssString: string, cssFileName: string): void;
public static createSelectorsFromCss(css: string, cssFileName: string): cssSelector.CssSelector[];
public static createSelectorsFromImports(tree: cssParser.SyntaxTree): cssSelector.CssSelector[];
public ensureSelectors(): boolean;
public applySelectors(view: view.View): void
public getVisualStates(view: view.View): Object;
}
export function applyInlineSyle(view: view.View, style: string): void;
}