custom-widgets
custom-widgets copied to clipboard
[Question] Values for customWidgets in json
I can't find any extra information in the documentation regarding custom widgets. I want to use emotionsrating type and the NoUiSlider, but the settings from the custom-widgets themselves won't work. As an example in emotionsrating you can't change the number of emotions. They always stay at 5. Also in the source-widget you got the option to define the emotions yourself + custom emojis. Same options won't work in here.
Example code:
var emotionsArray = ['angry','angry', 'meh', 'inLove'];
var json = {
questions: [
{
type: "emotionsratings",
name: "emotionsratings-widget",
title: "Please rate the movie you've just watched",
emotions: emotionsArray,
bgEmotion: 'angry'
}
]
};
The amount of emojis doesn't change, also the type of emojis doesn't change and the background emoji doesn't change.
Is there only 1 default option for every custom widget?
If there are different options for every widget it would be nice if you would document them also.
I've added these options to emotion widget The functionality will be available in the nearest update