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

Error in Readme #54

Open
leon-wolf opened this issue May 7, 2019 · 0 comments
Open

Error in Readme #54

leon-wolf opened this issue May 7, 2019 · 0 comments

Comments

@leon-wolf
Copy link

When using the Prompt example from the documentation you encounter following:

You can set the prompt helptext to whatever you want it will always display the default text.

What fixed it for me is setting the first parametet null like this:

      const message = `Wohin soll Objekt ${id} verschoben werden?`;
      const help = 'Hier die neue Position eintragen:';
      this.$dialog
        .prompt(message, {
          promptHelp: help,
        })
        .then((dialog) => {
          // Triggered when proceed button is clicked
          // Show an alert with the user's input as the message
          this.$dialog.alert(dialog.data || '[empty]');
        })
        .catch(() => {
          // Triggered when dialog is dismissed by user

          console.log('Prompt dismissed');
        });
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

1 participant