ContentBox widget v7 - nodeGame/nodegame GitHub Wiki
- status : complete
- version : 7.x
The ContentBox is a simple container for text, specially suited to be used as a widget step.
-
mainText: a text to be displayed above the content.
-
content: some content to be displayed (support HTML tags).
-
hint: a hint text below content (support HTML tags).
None.
None.
// A widget step introducing a new stage.
stager.extendStep('donesurvey', {
name: 'The real task begins',
widget: {
name: 'ContentBox',
options: {
mainText: 'You have now finished Part 1.',
hint: 'Relax a bit before Part 2',
className: 'centered'
}
}
});