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

Custom Widget on Survey #152

Open
anapao07 opened this issue Nov 7, 2019 · 3 comments
Open

Custom Widget on Survey #152

anapao07 opened this issue Nov 7, 2019 · 3 comments
Labels

Comments

@anapao07
Copy link

anapao07 commented Nov 7, 2019

Are you requesting a feature, reporting a bug or asking a question?
Question: Hello I'm trying to create a custom widget, I've been looking at several examples specially this one https://next.plnkr.co/edit/FTNXuTmI9RwgCRjc?preview , however the widget is not visible on the survey toolbar. Could you please help me please? thanks.

What is the current behavior?
Custom widget not visible on toolbar

What is the expected behavior?
Custom widget visible on toolbar

How would you reproduce the current behavior (if this is a bug)?

Showing code

https://repl.it/repls/PristineWrathfulScreenscraper

Specify your:
browser: Google Chrome
browser version:78.0.3904.70 (Official Build) (64-bit)
surveyjs platform: react
surveyjs version: latest

@tsv2013
Copy link
Member

tsv2013 commented Nov 8, 2019

Custom widgets are registered in toolbar automatically.
The plunker you've provided (it's our sample) looks ok for me.
Please provide a working sample illustrating your issue.

@tsv2013 tsv2013 transferred this issue from surveyjs/survey-library Nov 8, 2019
@anapao07
Copy link
Author

anapao07 commented Nov 8, 2019

@tsv2013
Copy link
Member

tsv2013 commented Nov 9, 2019

SurveyCreator uses survey-knockout library

I've updated your sample - https://repl.it/repls/InferiorSeparateRobot

import * as SurveyKo from "survey-knockout";
import init from './widget';
init(SurveyKo);

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