当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript sidebar.service.FuseSidebarService类代码示例

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


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

示例1: ngOnInit

    // -----------------------------------------------------------------------------------------------------
    // @ Lifecycle hooks
    // -----------------------------------------------------------------------------------------------------

    /**
     * On init
     */
    ngOnInit(): void
    {
        // Load the contacts
        this._chatPanelService.loadContacts().then(() => {

            this.contacts = this._chatPanelService.contacts;
            this.user = this._chatPanelService.user;
        });

        // Subscribe to the foldedChanged observable
        this._fuseSidebarService.getSidebar('chatPanel').foldedChanged
            .pipe(takeUntil(this._unsubscribeAll))
            .subscribe((folded) => {
                this.sidebarFolded = folded;
            });
    }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:23,代码来源:chat-panel.component.ts

示例2: toggleSidebar

    // -----------------------------------------------------------------------------------------------------
    // @ Public methods
    // -----------------------------------------------------------------------------------------------------

    /**
     * Toggle sidebar
     *
     * @param name
     */
    toggleSidebar(name): void
    {
        this._fuseSidebarService.getSidebar(name).toggleOpen();
    }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:13,代码来源:left-sidebar-tabbed-1.component.ts

示例3: toggleSidebarOpen

 /**
  * Toggle sidebar opened status
  */
 toggleSidebarOpen(): void
 {
     this._fuseSidebarService.getSidebar('chatPanel').toggleOpen();
 }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:7,代码来源:chat-panel.component.ts

示例4: unfoldSidebarTemporarily

 /**
  * Unfold the sidebar temporarily
  */
 unfoldSidebarTemporarily(): void
 {
     this._fuseSidebarService.getSidebar('chatPanel').unfoldTemporarily();
 }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:7,代码来源:chat-panel.component.ts

示例5: toggleSidebarFolded

 /**
  * Toggle sidebar folded status
  */
 toggleSidebarFolded(): void
 {
     this._fuseSidebarService.getSidebar('navbar').toggleFold();
 }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:7,代码来源:style-1.component.ts

示例6: toggleSidebarOpened

    // -----------------------------------------------------------------------------------------------------
    // @ Public methods
    // -----------------------------------------------------------------------------------------------------

    /**
     * Toggle sidebar opened status
     */
    toggleSidebarOpened(): void
    {
        this._fuseSidebarService.getSidebar('navbar').toggleOpen();
    }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:11,代码来源:style-1.component.ts

示例7:

 .subscribe(() => {
         if ( this._fuseSidebarService.getSidebar('navbar') )
         {
             this._fuseSidebarService.getSidebar('navbar').close();
         }
     }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:6,代码来源:style-1.component.ts

示例8: toggleSidebarOpen

    // -----------------------------------------------------------------------------------------------------
    // @ Public methods
    // -----------------------------------------------------------------------------------------------------

    /**
     * Toggle sidebar open
     *
     * @param key
     */
    toggleSidebarOpen(key): void
    {
        this._fuseSidebarService.getSidebar(key).toggleOpen();
    }
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:13,代码来源:toolbar.component.ts


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