Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display a prompt #294

Open
fredericoregateiro opened this issue Oct 31, 2019 · 5 comments
Open

Display a prompt #294

fredericoregateiro opened this issue Oct 31, 2019 · 5 comments

Comments

@fredericoregateiro
Copy link

Is there a way to display a prompt using freshmvvm?
I think the method is in v4.3 on xamarin forms
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/pop-ups

@eclipsed4utoo
Copy link

From the CoreMethods property on the FreshBasePageModel, there is a DisplayAlert and DisplayActionSheet.

@fredericoregateiro
Copy link
Author

The DisplayAlert or the DisplayActionSheet are diferent concepts from the prompt
They allow diferent things.

@eclipsed4utoo
Copy link

eclipsed4utoo commented Nov 5, 2019

Ahh....you were referring to the DisplayPromptAsync from XF.

I use Acr.UserDialogs for prompts(and many other features of the library). I'm guessing a pull request for that change would probably be accepted.

@fredericoregateiro
Copy link
Author

The documentation on the link also referes to the new DisplayPromptAsync.
I was asking to see if I was missing something or if someone was already implementing.
If i can get some time off i will do a PR

@katstudio-global
Copy link

If you are inside PageModel (FreshBasePageModel) you can try this

var result = await CurrentPage.DisplayPromptAsync("title", "message");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants