• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript page.Page类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中tns-core-modules/ui/page.Page的典型用法代码示例。如果您正苦于以下问题:TypeScript Page类的具体用法?TypeScript Page怎么用?TypeScript Page使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Page类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: Page

        create: () => {
            const page = new Page();
            page.content = stack;
            messageContainer.focus();
            page.style.fontSize = 11;
            if (platform.isAndroid) {
                page.on('navigatedTo', () => {
                    messageContainer.focus();
                    setTimeout(() => messageContainer.dismissSoftInput());
                });
            }

            return page;
        },
开发者ID:slavchev,项目名称:NativeScript,代码行数:14,代码来源:testRunner.ts


示例2: createPage

export function createPage() {

    // https://github.com/NativeScript/cross-platform-modules/issues/61

    var stackPanel = new panelModule.StackLayout();
    stackPanel.id = "stackPanel";

    var btn = new button.Button();
    btn.text = "getViewById";

    var page = new pages.Page();
    page.content = stackPanel;
    page.getViewById<panelModule.StackLayout>("stackPanel").addChild(btn);

    return page;
}
开发者ID:NathanWalker,项目名称:NativeScript,代码行数:16,代码来源:i61.ts


示例3: exectuteOnAll

function exectuteOnAll(page: Page, callback: (txt: TextView | TextField) => void) { 
    page.getViewById("container").eachChild((child) => {
        if(child instanceof TextView || child instanceof TextField) {
            callback(child);
        }
        return true;
    })
}
开发者ID:sitefinitysteve,项目名称:NativeScript,代码行数:8,代码来源:hint-text-color.ts


示例4: createPage

export function createPage() {

    var stackLayout = new stackLayoutModule.StackLayout();
    var label = new labelModule.Label();
    label.text = "CONSOLE MODULE";
    var textView = new textViewModule.TextView();
    textView.text = "Check out the console output.";
    stackLayout.addChild(label);
    stackLayout.addChild(textView);

    var page = new pageModule.Page();
    page.on(pageModule.Page.loadedEvent, function () {
        pageLoaded();
    });

    page.content = stackLayout;
    return page;
}
开发者ID:NathanWalker,项目名称:NativeScript,代码行数:18,代码来源:console.ts


示例5: waitUntilNavigatedTo

export function waitUntilNavigatedTo(page: Page, action: Function) {
    let completed = false;
    function navigatedTo(args) {
        args.object.page.off("navigatedTo", navigatedTo);
        completed = true;
    }

    page.on("navigatedTo", navigatedTo);
    action();
    TKUnit.waitUntilReady(() => completed, 5);
}
开发者ID:m-abs,项目名称:NativeScript,代码行数:11,代码来源:helper.ts


示例6: constructor

    constructor(private page: Page) {
        if (this.page) {
            this.page.actionBarHidden = true;

            this.page.on("loaded", () => {
                if (this.pageRouterOutlet && this.page.frame) {
                    this.pageRouterOutlet.setActionBarVisibility(this.page.frame.actionBarVisibility);
                }
            });
        }
    }
开发者ID:NativeScript,项目名称:nativescript-angular,代码行数:11,代码来源:ns-empty-outlet.component.ts


示例7: constructor

 constructor(private _page: Page, private _router: Router, private _optionsService: OptionsService) {
     super();
     if (applicationModule.ios) {
         this._page.on("navigatingTo", this.onNavigatingTo, this);
         this._optionsParamName = "selectionMode";
         this._optionsService.paramName = this._optionsParamName;
         this.router = _router;
         this.navigationParameters = { selectedIndex: 0, paramName: this._optionsParamName, items: ["None", "Single", "Multiple", "Range"] };
     }
     this._selectionMode = CalendarSelectionMode.None;
 }
开发者ID:telerik,项目名称:nativescript-ui-samples-angular,代码行数:11,代码来源:calendar-selection-modes.component.ts


示例8: constructor

 constructor(private _page: Page,
     private _optionsService: OptionsService, private _router: Router) {
     super();
     if (applicationModule.ios) {
         this._page.on("navigatingTo", this.onNavigatingTo, this);
         this._optionsParamName = "eventsViewMode";
         this._optionsService.paramName = this._optionsParamName;
         this.router = _router;
         this.navigationParameters = { selectedIndex: 1, paramName: this._optionsParamName, items: ["Week", "Month", "Month names", "Year", "Day"] };
     }
     this._viewMode = CalendarViewMode.Month;
 }
开发者ID:telerik,项目名称:nativescript-ui-samples-angular,代码行数:12,代码来源:calendar-view-modes.component.ts


示例9: constructor

 constructor(private _page: Page,
     private _optionsService: OptionsService, private _router: Router, private _changeDetectionRef: ChangeDetectorRef, private _dataService: DataService) {
     super();
     if (applicationModule.ios) {
         this._page.on("navigatingTo", this.onNavigatingTo, this);
         this._optionsParamName = "stackMode";
         this._optionsService.paramName = this._optionsParamName;
         this.router = _router;
         this._optionsItems = ["Stack", "Stack 100", "None"];
         this.navigationParameters = { selectedIndex: 1, paramName: this._optionsParamName, items: this._optionsItems };
     }
 }
开发者ID:haylahi,项目名称:mobile-app,代码行数:12,代码来源:chart-series-stacked-bar.component.ts


示例10: constructor

 constructor(private _page: Page, private _calendarService: CalendarEventsService,
     private _optionsService: OptionsService, private _router: Router) {
     super();
     if (applicationModule.ios) {
         this._page.on("navigatingTo", this.onNavigatingTo, this);
         this._optionsParamName = "eventsViewMode";
         this._optionsService.paramName = this._optionsParamName;
         this.router = _router;
         this.navigationParameters = { selectedIndex: 0, paramName: this._optionsParamName, items: ["None", "Inline", "Popover (iPad only)"] };
     }
     this._eventsViewMode = CalendarEventsViewMode.None;
 }
开发者ID:telerik,项目名称:nativescript-ui-samples-angular,代码行数:12,代码来源:calendar-events-view-modes.component.ts



注:本文中的tns-core-modules/ui/page.Page类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript css-selector-parser.parse函数代码示例发布时间:2022-05-25
下一篇:
TypeScript stack-layout.StackLayout类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap