@nativescript-community/ui-persistent-bottomsheet
Version:
NativeScript plugin that allows you to easily add a persistent bottomsheet to your projects.
61 lines (58 loc) • 2.82 kB
TypeScript
import * as i0 from '@angular/core';
import { ElementRef, TemplateRef, ViewContainerRef, EmbeddedViewRef } from '@angular/core';
import { PersistentBottomSheet } from '@nativescript-community/ui-persistent-bottomsheet';
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.
*/
declare class BottomSheetComponent {
elementRef: ElementRef;
private viewContainer;
pbs: PersistentBottomSheet;
bottomSheetTemplate: TemplateRef<ElementRef>;
private _gestureEnabled;
private _stepIndex;
constructor(elementRef: ElementRef, viewContainer: ViewContainerRef);
get nativeElement(): PersistentBottomSheet;
get gestureEnabled(): boolean;
set gestureEnabled(value: boolean);
get stepIndex(): number;
set stepIndex(value: number);
get backdropColor(): any;
set backdropColor(value: any);
get scrollViewId(): string;
set scrollViewId(value: string);
get panGestureOptions(): any;
set panGestureOptions(value: any);
static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheetComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<BottomSheetComponent, "BottomSheet", never, { "gestureEnabled": { "alias": "gestureEnabled"; "required": false; }; "stepIndex": { "alias": "stepIndex"; "required": false; }; "backdropColor": { "alias": "backdropColor"; "required": false; }; "scrollViewId": { "alias": "scrollViewId"; "required": false; }; "panGestureOptions": { "alias": "panGestureOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
}
/**
* Directive identifying the left drawer
*/
declare class BottomSheetDirective {
private _elementRef;
constructor(_elementRef: ElementRef);
static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheetDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<BottomSheetDirective, "[bottomSheet]", never, {}, {}, never, never, false, never>;
}
/**
* Directives identifying the Drawer.
*/
declare const PERSISTENTBOTTOMSHEET_DIRECTIVES: (typeof BottomSheetDirective)[];
/**
* NgModule containing all of the RadSideDrawer directives.
*/
declare class BottomSheetModule {
static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheetModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<BottomSheetModule, [typeof BottomSheetComponent, typeof BottomSheetDirective], never, [typeof BottomSheetComponent, typeof BottomSheetDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<BottomSheetModule>;
}
export { BottomSheetComponent, BottomSheetDirective, BottomSheetModule, PERSISTENTBOTTOMSHEET_DIRECTIVES };
export type { ItemEventArgs };