mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add flexbox test pages
This commit is contained in:
21
apps/app/ui-tests-app/flexbox/flexbox-css.ts
Normal file
21
apps/app/ui-tests-app/flexbox/flexbox-css.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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 = "";
|
||||
}
|
||||
Reference in New Issue
Block a user