custom-widgets icon indicating copy to clipboard operation
custom-widgets copied to clipboard

[Question] Values for customWidgets in json

Open kazu93 opened this issue 6 years ago • 1 comments

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.

kazu93 avatar Sep 03 '19 21:09 kazu93

I've added these options to emotion widget The functionality will be available in the nearest update

tsv2013 avatar Sep 13 '19 11:09 tsv2013