UNPKG

ng2-responsive

Version:

Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 2

30 lines (29 loc) 1.19 kB
import { EventEmitter, TemplateRef, ViewContainerRef, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core'; import { ResponsiveState } from '../config/index'; export declare abstract class RESPONSIVE_BASE<T> implements OnInit, OnDestroy { private templateRef; private viewContainer; private _responsiveState; private cd; private _noRepeat; private _sizes_grid_state; private _others_grid_state; private _directive; private _subscription_Bootstrap; private _subscription_Browser; private _subscription_Pixel_Ratio; private _subscription_Device; private _subscription_Orientation; private _subscription_Standard; private _subscription_IE_Version; private _subscription_custom_sizes; protected _showWhenTrue: boolean; private set_active_subscriptions; constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, _responsiveState: ResponsiveState, cd: ChangeDetectorRef); protected eventChanges: EventEmitter<any>; protected setGrid(grid_state: any, directive: string): void; ngOnInit(): void; ngOnDestroy(): void; private showHide(show); private updateView(value); }