survey-creator
survey-creator copied to clipboard
Custom property editor doesn't work as expected in the itemvalue property editor (matrix)
The following code doens't work correctly. It displays strange text in the cell.
const itemValueCommentType = 'itemValueCommentType';
SurveyCreatorCore.PropertyGridEditorCollection.register({
fit: function (prop) {
return prop.type === itemValueCommentType;
},
getJSON: function (obj, prop, options) {
return {
type: 'boolean',
renderAs: 'checkbox',
};
},
});
Survey.Serializer.addProperty('itemvalue', {
name: 'o_comment',
type: itemValueCommentType,
default: false,
});
Here is the example.
I have removed displayName: '', and it works now.