nativescript-nbmaterial-bottomsheet
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Nativescript implementation of the Material Bottom Sheet

The module implement Bottom Sheet Layout on both iOS and Android.
There is an animation effect on open and on close.

bottomSheet = page.getViewById("bottomsheet");
export function showBS() { 
    bottomSheet.show();
}
export function hideBS() {
    bottomSheet.hide();
}
<Page xmlns="http://schemas.nativescript.org/tns.xsd" 
xmlns:bnav="nativescript-nbmaterial-bottomnav">
	<bs:BottomSheetModal id="bottomsheet">
			<bs:BottomSheetModal.template>
				<GridLayout rows="auto" columns="auto">
					<StackLayout>
						<Label text="Ready?" textWrap="true" />
						<Label text="Steady?" textWrap="true" />
						<Label text="Go!" textWrap="true" />
						<Label text="Cool" textWrap="true" />
						<Button text="HIDE BS" tap="hideBS" class="btn btn-primary btn-active"/> 
					</StackLayout>
				</GridLayout>
			</bs:BottomSheetModal.template>
		</bs:BottomSheetModal>
</Page>

}

See all modules here

Package Sidebar

Install

npm i nativescript-nbmaterial-bottomsheet

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

20.4 kB

Total Files

11

Last publish

Collaborators

  • nabil_mansouri