@angular/flex-layout
Version:
Angular 2 Flexbox Layout
41 lines (40 loc) • 1.38 kB
TypeScript
/**
* @license
* Copyright Google Inc. 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 { ElementRef, OnInit, OnChanges, OnDestroy, Renderer, SimpleChanges } from '@angular/core';
import { BaseFxDirective } from './base';
import { MediaMonitor } from '../../media-query/media-monitor';
/**
* 'flex-offset' flexbox styling directive
* Configures the 'margin-left' of the element in a layout container
*/
export declare class FlexOffsetDirective extends BaseFxDirective implements OnInit, OnChanges, OnDestroy {
offset: any;
offsetXs: any;
offsetGtXs: any;
offsetSm: any;
offsetGtSm: any;
offsetMd: any;
offsetGtMd: any;
offsetLg: any;
offsetGtLg: any;
offsetXl: any;
constructor(monitor: MediaMonitor, elRef: ElementRef, renderer: Renderer);
/**
* For @Input changes on the current mq activation property, see onMediaQueryChanges()
*/
ngOnChanges(changes: SimpleChanges): void;
/**
* After the initial onChanges, build an mqActivation object that bridges
* mql change events to onMediaQueryChange handlers
*/
ngOnInit(): void;
protected _updateWithValue(value?: string | number): void;
protected _buildCSS(offset: any): {
'margin-left': string;
};
}