Skip to content

[Question] Values for customWidgets in json #140

Open
@kazu93

Description

@kazu93

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions