File

src/app/appwrap.ts

Extends

Compbaser

Metadata

template
<div id="appWrapComp" class="row" style="margin-left: 0; margin-right: 0;">
    <ng-menu class="col-md-1" [routePrefix]="'App1'" [fileMenuMode]="true">
        <ng-menu-item  i18n-title [fontawesome]="'fa-dashboard'" name="Dashboard" title="Dashboard"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-navicon'" name="Campaigns" title="Campaigns"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-certificate'" name="Resources" title="Resources"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-crosshairs'" name="Scenes" title="Scenes" class="wizardHookScene"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-laptop'" name="Stations" title="Stations"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-group'" name="Fasterq" title="Fasterq"></ng-menu-item>
        <!--<ng-menu-item i18n-title [fontawesome]="'fa-cog'" name="Settings" title="'Settings'"></ng-menu-item>-->
        <ng-menu-item i18n-title [fontawesome]="'fa-cloud-upload'" name="Studiopro" title="Studiopro"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-heart'" name="Help" title="Help"></ng-menu-item>
        <ng-menu-item i18n-title *ngIf="isBrandingDisabled | async" [fontawesome]="'fa-rocket'" name="Install" title="Install"></ng-menu-item>
        <ng-menu-item i18n-title [fontawesome]="'fa-power-off'" name="Logout" title="Logout"></ng-menu-item>
    </ng-menu>
    <div class="col-md-11" id="mainPanelWrapWasp" >
        <router-outlet></router-outlet>
    </div>
</div>

Constructor

constructor(router: Router, yp: YellowPepperService)

Properties

isBrandingDisabled
isBrandingDisabled: Observable<boolean>
import {Component} from "@angular/core";
import {Router} from "@angular/router";
import {Compbaser} from "ng-mslib";
import {Observable} from "rxjs/Observable";
import {YellowPepperService} from "../services/yellowpepper.service";

@Component({
    template: `
        <div id="appWrapComp" class="row" style="margin-left: 0; margin-right: 0;">
            <ng-menu class="col-md-1" [routePrefix]="'App1'" [fileMenuMode]="true">
                <ng-menu-item  i18n-title [fontawesome]="'fa-dashboard'" name="Dashboard" title="Dashboard"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-navicon'" name="Campaigns" title="Campaigns"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-certificate'" name="Resources" title="Resources"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-crosshairs'" name="Scenes" title="Scenes" class="wizardHookScene"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-laptop'" name="Stations" title="Stations"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-group'" name="Fasterq" title="Fasterq"></ng-menu-item>
                <!--<ng-menu-item i18n-title [fontawesome]="'fa-cog'" name="Settings" title="'Settings'"></ng-menu-item>-->
                <ng-menu-item i18n-title [fontawesome]="'fa-cloud-upload'" name="Studiopro" title="Studiopro"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-heart'" name="Help" title="Help"></ng-menu-item>
                <ng-menu-item i18n-title *ngIf="isBrandingDisabled | async" [fontawesome]="'fa-rocket'" name="Install" title="Install"></ng-menu-item>
                <ng-menu-item i18n-title [fontawesome]="'fa-power-off'" name="Logout" title="Logout"></ng-menu-item>
            </ng-menu>
            <div class="col-md-11" id="mainPanelWrapWasp" >
                <router-outlet></router-outlet>
            </div>
        </div>
    `
})
export class Appwrap extends Compbaser {

    isBrandingDisabled: Observable<boolean>

    constructor(private router: Router, private yp:YellowPepperService) {
        super();
        jQuery(".navbar-header .navbar-toggle").trigger("click");
        jQuery('.navbar-nav').css({
            display: 'block'
        });
        this.isBrandingDisabled = this.yp.isBrandingDisabled()
    }

    // public listenMenuChanges() {
    // var unsub = self.commBroker.onEvent(Consts.Events().MENU_SELECTION).subscribe((e: IMessage) => {
    //     if (!this.routerActive)
    //         return;
    //     let screen = (e.message);
    //     self.router.navigate([`/App1/${screen}`]);
    // });
    // }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""