0

Hello everyone good day, I have a running angular project that uses the angular material bottomsheet component

my question now is; how to implement same behaviour in nativescript angular.

Thank you for replying

2 Answers 2

1

You may use nativescript-cfalert-dialog

tns plugin add nativescript-cfalert-dialog

and set the dialogStyle to CFAlertStyle.BOTTOM_SHEET

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you very much. Just what i needed But is there anyway i can achieve the open from component like this
Later found out that the api doesnt do what i needed
0
"nativescript-material-bottomsheet": "2.5.4", //package.json

import { MenuBottomSheet } from "../bottomsheet/menu.bottomsheet";
import { BottomSheetOptions, BottomSheetService } from 'nativescript-material-bottomsheet/angular';


fabTap(){
        const options: BottomSheetOptions = {
            viewContainerRef: this.containerRef,
            context: ['Facebook', 'Google', 'Twitter'],
        };

        this.bottomSheet.show(MenuBottomSheet, options).subscribe(result => {
            console.log('Option selected:', result);
        });
    }

It acts as a modal in nativescript

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.