You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I try to add a new widget I get this error in the console ERROR TypeError: Cannot read property 'getType' of null.
The project is in Angular 7.
Versions:
"survey-angular": "1.1.4",
"survey-creator": "1.1.4",
"survey-knockout": "1.1.4",
"survey-pdf": "1.1.4",
"surveyjs-widgets": "1.1.4",
Could you provide us with a plunker (or other sandbox) minimal working sample? You can take this one https://plnkr.co/edit/HdnYE5?p=preview as a staring point
Hi
when I try to add a new widget I get this error in the console ERROR TypeError: Cannot read property 'getType' of null.
The project is in Angular 7.
Versions:
"survey-angular": "1.1.4",
"survey-creator": "1.1.4",
"survey-knockout": "1.1.4",
"survey-pdf": "1.1.4",
"surveyjs-widgets": "1.1.4",
My code:
export var sort = {
name: "sort",
title: "Sort",
iconName: "",
widgetIsLoaded: function () {
return true;
},
isFit: function (question) {
return question.getType() === 'sort';
},
activatedByChanged: function (activatedBy) {
Survey.JsonObject.metaData.addClass("sort", [
{
name: "width",
visible: false
},
{
name: "useDisplayValuesInTitle",
visible: false
},
{
name: "useDisplayValuesInTitle",
visible: false
},
], null, "empty");
}
and I add to my component
SurveyKo.CustomWidgetCollection.Instance.addCustomWidget(widget.sort, 'customtype');
The text was updated successfully, but these errors were encountered: