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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: slot **BeforeStart** #222

Closed
nikolaysm opened this issue Dec 6, 2021 · 4 comments
Closed

Feature request: slot **BeforeStart** #222

nikolaysm opened this issue Dec 6, 2021 · 4 comments

Comments

@nikolaysm
Copy link

nikolaysm commented Dec 6, 2021

Hi 馃憢 ,

Thanks for creating and sharing this great project!

It will be useful to add a slot BeforeStart or allow for QuestionType.SectionBreak > content to use html (v-html)?

@nikolaysm
Copy link
Author

<span class="f-section-text">{{ question.content }}</span>

Instead we can use

<span class="f-section-text" v-html="question.content"></span>

@spinn
Copy link
Contributor

spinn commented Dec 7, 2021

Hi @nikolaysm,

we already had a similar request and decided against it, you can see our reasoning here:

#108 (comment)

For now we don't plan on adding HTML support but we'll consider adding this in a future version.

@spinn spinn closed this as completed Dec 7, 2021
@nikolaysm
Copy link
Author

nikolaysm commented Dec 7, 2021

Hi @spinn ,

Thanks for your reply!

How about slot BeforeStart similar as:

<!-- Complete/Submit screen slots -->

<slot name="complete">

@spinn
Copy link
Contributor

spinn commented Dec 7, 2021

Questions can be defined both via the questions prop or as components so we'd need a solution that works in both cases. But as I said, we'll definitely take this into consideration and try to find a solution for a future release.

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

2 participants