mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
22 lines
603 B
TypeScript
22 lines
603 B
TypeScript
export const flexFlow = applyCss();
|
|
|
|
function applyCss() {
|
|
return function(args) {
|
|
// args.object.page.getViewById("container")[what] = args.object.text;
|
|
let boxCss = " #container { " + args.object.tag + " }" ;
|
|
// console.log(boxCss);
|
|
args.object.page.addCss(boxCss);
|
|
console.log(args.object.page.css);
|
|
}
|
|
}
|
|
|
|
export function applyStyles(args) {
|
|
// var css = "#test-element { " + args.object.tag + " }";
|
|
console.log(args.object.tag);
|
|
args.object.page.addCss(args.object.tag);
|
|
}
|
|
|
|
export function resetTap(args) {
|
|
args.object.page.css = "";
|
|
}
|