UNPKG

@nativescript-community/ui-drawer

Version:

Easily add a side drawer (side menu) to your projects.

85 lines (84 loc) 3.8 kB
import { ElementRef, EmbeddedViewRef, TemplateRef, ViewContainerRef } from '@angular/core'; import { Drawer } from '@nativescript-community/ui-drawer'; import * as i0 from "@angular/core"; export interface ItemEventArgs { object: any; view: EmbeddedViewRef<any>; returnValue?: boolean; } /** * This is the SideDrawer component. It separates your mobile app's screen * into a main part and a menu part whereby the menu part is shown upon a swipe * gesture using a transition effect. */ export declare class DrawerComponent { elementRef: ElementRef; private viewContainer; drawer: Drawer; mainTemplate: TemplateRef<ElementRef>; drawerTemplate: TemplateRef<ElementRef>; private _gestureEnabled; constructor(elementRef: ElementRef, viewContainer: ViewContainerRef); get nativeElement(): Drawer; set gestureEnabled(value: boolean); private updateGestureEnabled; static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "Drawer", never, {}, {}, never, ["*"], false, never>; } /** * Directive identifying the left drawer */ export declare class LeftDrawerDirective { private _elementRef; constructor(_elementRef: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration<LeftDrawerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<LeftDrawerDirective, "[leftDrawer]", never, {}, {}, never, never, false, never>; } /** * Directive identifying the right drawer */ export declare class RightDrawerDirective { private _elementRef; constructor(_elementRef: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration<RightDrawerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<RightDrawerDirective, "[rightDrawer]", never, {}, {}, never, never, false, never>; } /** * Directive identifying the right drawer */ export declare class TopDrawerDirective { private _elementRef; constructor(_elementRef: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration<TopDrawerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TopDrawerDirective, "[topDrawer]", never, {}, {}, never, never, false, never>; } /** * Directive identifying the right drawer */ export declare class BottomDrawerDirective { private _elementRef; constructor(_elementRef: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration<BottomDrawerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<BottomDrawerDirective, "[bottomDrawer]", never, {}, {}, never, never, false, never>; } /** * Directive identifying the main content. */ export declare class MainContentDirective { private _elementRef; constructor(_elementRef: ElementRef); static ɵfac: i0.ɵɵFactoryDeclaration<MainContentDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MainContentDirective, "[mainContent]", never, {}, {}, never, never, false, never>; } /** * Directives identifying the Drawer. */ export declare const SIDEDRAWER_DIRECTIVES: (typeof LeftDrawerDirective | typeof RightDrawerDirective | typeof TopDrawerDirective | typeof BottomDrawerDirective | typeof MainContentDirective)[]; /** * NgModule containing all of the RadSideDrawer directives. */ export declare class DrawerModule { static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective], never, [typeof DrawerComponent, typeof LeftDrawerDirective, typeof RightDrawerDirective, typeof TopDrawerDirective, typeof BottomDrawerDirective, typeof MainContentDirective]>; static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>; }