mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Rename a flexbox test page
Fix a typo.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { EventData } from "data/observable";
|
||||
import { MianPageViewModel } from "../mainPage";
|
||||
import { MainPageViewModel } from "../mainPage";
|
||||
import { WrapLayout } from "ui/layouts/wrap-layout";
|
||||
import { Page } from "ui/page";
|
||||
import { getViewById } from "ui/core/view"
|
||||
@@ -9,14 +9,14 @@ export function pageLoaded(args: EventData) {
|
||||
let wrapLayout = <WrapLayout>getViewById(page, "wrapLayout");
|
||||
let examples = new Map<string, string>();
|
||||
|
||||
examples.set("flexbox", "flexbox/flexbox");
|
||||
examples.set("flexboxall", "flexbox/flexbox");
|
||||
examples.set("flexrepeat", "flexbox/flexbox-repeater");
|
||||
|
||||
let viewModel = new FlexboxMainPageViewModel(wrapLayout, examples);
|
||||
page.bindingContext = viewModel;
|
||||
}
|
||||
|
||||
export class FlexboxMainPageViewModel extends MianPageViewModel {
|
||||
export class FlexboxMainPageViewModel extends MainPageViewModel {
|
||||
constructor(container: WrapLayout, examples: Map<string, string>) {
|
||||
super(container, examples);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user