surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 78 forks source link

Custom Widget on Survey #152

Open anapao07 opened 5 years ago

anapao07 commented 5 years ago

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 commented 5 years ago

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.

anapao07 commented 5 years ago

Showing code

https://repl.it/repls/PristineWrathfulScreenscraper

tsv2013 commented 5 years ago

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);