File

src/app/page-layouts/carded/right-sidenav/right-sidenav.component.ts

Implements

OnInit

Metadata

selector app-right-sidenav
styleUrls ./right-sidenav.component.scss
templateUrl ./right-sidenav.component.html

Index

Methods

Constructor

constructor()

Methods

ngOnInit
ngOnInit()
Returns : void
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-right-sidenav',
  templateUrl: './right-sidenav.component.html',
  styleUrls: ['./right-sidenav.component.scss']
})
export class RightSidenavComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

}
<stbui-sidenav-layout scrollStrategy="strategy" position="end">
    <stbui-sidenav-layout-side>
      <mat-list>
        <h3 matSubheader>Sidenav Demo</h3>
  
        <mat-list-item>
          <span>Sidenav Item 1</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 2</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 3</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 4</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 5</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 6</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 7</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 8</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 9</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 10</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 11</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 12</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 13</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 14</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 15</span>
        </mat-list-item>
  
        <mat-divider></mat-divider>
  
        <mat-list-item>
          <span>Sidenav Item 16</span>
        </mat-list-item>
  
      </mat-list>
    </stbui-sidenav-layout-side>
    <stbui-sidenav-layout-header>header</stbui-sidenav-layout-header>
    <stbui-sidenav-layout-toolbar>toolbar</stbui-sidenav-layout-toolbar>
    <app-demo-content></app-demo-content>
  </stbui-sidenav-layout>

./right-sidenav.component.scss

:host {
    display: flex;
    flex: 1;
    width: 100%;
    min-width: 100%;
    height: 100%;
  }
  
  .page-layout {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    min-width: 100%;
    position: relative;
  }
  
  .top-bg {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 200px;
    background: #c471f3;
    background-size: cover;
  }
  
  .wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 32px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    >.header {
      height: 136px;
      min-height: 136px;
      max-height: 136px;
    }
    >.card {
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 5px -2px rgba(0, 0, 0, .2), 0 7px 10px 1px rgba(0, 0, 0, .14), 0 2px 16px 1px rgba(0, 0, 0, .12);
      .content {
        display: flex;
        flex: 1;
        padding: 24px;
        overflow: auto
      }
    }
  }
  
  .toolbar {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding: 0 24px;
  }
  
  // left-sidnav
  .sidenav {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    height: auto;
    z-index: 4;
    overflow-y: hidden;
    box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
    .content {
      padding: 24px;
      overflow: auto
    }
  }
  
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""