Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Values for customWidgets in json #140

Open
kazu93 opened this issue Sep 3, 2019 · 1 comment
Open

[Question] Values for customWidgets in json #140

kazu93 opened this issue Sep 3, 2019 · 1 comment

Comments

@kazu93
Copy link

kazu93 commented Sep 3, 2019

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.

@andrewtelnov andrewtelnov transferred this issue from surveyjs/survey-library Sep 11, 2019
@tsv2013
Copy link
Member

tsv2013 commented Sep 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants