Replies: 2 comments
-
Thanks @drordotan ! This is technically possible with the current plugin because the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I didn't know it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I propose adding to html-button-response the ability to define a CSS style for each button separately.
I needed this to set a different color for each response button.
My solution was to patch the code by adding to html-button-response a "button_class" parameter, which is an array of style names (one per button).
Attached is the plugin with this update, so you can add it if you want (see lines 115-118). This is how it can be used:
element = {
type: jsPsychHtmlButtonResponse,
stimulus: ".....",
choices: [list of buttons],
button_class: ['class-1', 'class-2', 'class-3'],
button_html: ''
}
plugin-html-button-response.txt
Beta Was this translation helpful? Give feedback.
All reactions