smoke.js icon indicating copy to clipboard operation
smoke.js copied to clipboard

Limitation to 3 quiz buttons

Open Falseclock opened this issue 7 years ago • 0 comments

Just simply replace button_1, button_2, button_3 with array:

		buttons: [
						{value : '11', name: "Option 33"},
						{value : '20', name: "Option 66"},
						{value : '61', name: "Option 91"},
						{value : '42', name: "Option 55"},
						{value : '99', name: "Option 42"}
					]

callback handler returns reference to the button. value can be accessed by reading data-quiz-value property

Falseclock avatar Mar 16 '17 04:03 Falseclock