ipsos-components
Version:
Material Design components for Angular
32 lines (28 loc) • 933 B
text/typescript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component, ViewEncapsulation} from '@angular/core';
export class SidenavDemo {
isLaunched = false;
fillerContent = Array(30);
fixed = false;
coverHeader = false;
showHeader = false;
showFooter = false;
modeIndex = 0;
get mode() { return ['side', 'over', 'push'][this.modeIndex]; }
get fixedTop() { return this.fixed && this.showHeader && !this.coverHeader ? 64 : 0; }
get fixedBottom() { return this.fixed && this.showFooter && !this.coverHeader ? 64 : 0; }
}