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

NonValue widget example #166

Open
xxxKOTxxx opened this issue Apr 1, 2020 · 2 comments
Open

NonValue widget example #166

xxxKOTxxx opened this issue Apr 1, 2020 · 2 comments
Labels

Comments

@xxxKOTxxx
Copy link

Hi!

Have you any example, how to correct implement nonvalue custom widet (like html widget)?

I want to create customizable link widget (to add redirecr url automatically).
Also it can be used for glossary creation.

@tsv2013 tsv2013 transferred this issue from surveyjs/survey-creator Apr 1, 2020
@tsv2013
Copy link
Member

tsv2013 commented Apr 1, 2020

Transferred the issue in the corresponding repo

@tsv2013
Copy link
Member

tsv2013 commented Apr 1, 2020

Custom widget ant this moment can be instantiated from the question with value. Because the base custom widget support is resides in the Question class, which is already a value holder.
Nothing bad will happens and the value will be undefined and will not appear in survey results.

The example will be absolutely the same - https://plnkr.co/edit/HdnYE5?p=preview&preview

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

No branches or pull requests

2 participants