Closed kyparyt closed 5 years ago
@andrewtelnov Do we need to transfer this issue to the corresponding repository?
@kyparyt I have added your code into our custom widget example and it works fine. Here is the example
Thank you, Andrew
@kyparyt You are getting the error, because in your code, for some reason, this line is not executed:
Survey.JsonObject.metaData.addClass("textwithbutton", [], null, "text");
It registered a new class in the library.
Thank you, Andrew
Thank you. It helped me to find solution for my project ;)
I have an issue with adding custom widget to survey toolbox.
I'm trying to create a component with some logic. For the first i had an issue with components names, but after I've read this article I've decided to create custom widget.
Are you requesting a feature, reporting a bug or asking a question?
Asking a question.
What is the current behavior?
I've already added a widget (according to this example), but when i'm trying to select it from toolbox i have a type error
What is the expected behavior?
Understand how to add custom widgets into my toolbox, for next usage.
Provide the test code and the tested page URL (if applicable)
Test code Widget code the same as in example;
Adding to toolbar:
Specify your