UNPKG

ionic-framework

Version:
45 lines (44 loc) 1.45 kB
import { NgZone } from 'angular2/core'; import { Platform } from '../../platform/platform'; export declare class DisplayWhen { constructor(conditions: any, platform: any, ngZone: any); orientation(): boolean; } /** * * The `show-when` attribute takes a string that represents a plaform or screen orientation. * The element the attribute is added to will only be shown when that platform or screen orientation is active. * Complements the [hide-when attribute](../HideWhen). * @usage * ```html * <div show-when="ios">I am only visible on iOS!</div> * ``` * @demo /docs/v2/demos/show-when/ * @see {@link ../HideWhen HideWhen API Docs} */ export declare class ShowWhen extends DisplayWhen { constructor(showWhen: string, platform: Platform, ngZone: NgZone); /** * @private */ hidden: boolean; } /** * * The `hide-when` attribute takes a string that represents a plaform or screen orientation. * The element the attribute is added to will only be hidden when that platform or screen orientation is active. * Complements the [show-when attribute](../ShowWhen). * @usage * ```html * <div hide-when="android">I am hidden on Android!</div> * ``` * @demo /docs/v2/demos/hide-when/ * @see {@link ../ShowWhen ShowWhen API Docs} */ export declare class HideWhen extends DisplayWhen { constructor(hideWhen: string, platform: Platform, ngZone: NgZone); /** * @private */ hidden: any; }