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

No way to display new lines in dialog #6

Open
danon opened this issue Mar 28, 2019 · 2 comments
Open

No way to display new lines in dialog #6

danon opened this issue Mar 28, 2019 · 2 comments

Comments

@danon
Copy link

danon commented Mar 28, 2019

When I do

this.$dialog.alert(`One
two
three`);

obviously are displayed in one line in the alert :/ Using html entities (like <p>) to introduce new lines won't work either, because they're encoded.

Is there any way to add white-space: pre-wrap to the dialog?

@TDola
Copy link

TDola commented Apr 1, 2019

I am looking for this too. Needs option to have the message be a v-html="rawHtml"

This fork seems to have the needed feature
https://github.com/akhoury/v-slim-dialog

-Edit
Tried it, works perfect.

@dsdeoli
Copy link

dsdeoli commented Jun 24, 2020

v-html="rawHtml"
how can i use this.

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