Scale elements let you add one-line multi-button scales to the screen. The buttons can be radio buttons or text buttons. Only one button in the line can be selected at a time.
Creation:
[js]newScale(“id”, 5)[/js]
or [js]newScale(“id”, “left button”, ” middle button”, “right button”)[/js]
Example:
[js try=”true”]
newScale(“hunger”, 5)
.settings.before( newText(“left”, “Right now, I am… very hungry “) )
.settings.after( newText(“right”, ” not hungry at all”) )
.print()
.wait()
[/js]
The code above adds a 5-point radio scale to the screen, preceded by the text Right now, I am… very hungry to its left, and followed by the text not hungry at all to its right, and waits for a click on one of its buttons.
Actions
[yadawiki-list category=”Action command,Scale element”]
Settings
[yadawiki-list category=”Settings command,Scale element”]
Tests
[yadawiki-list category=”Test command,Scale element”]
Index
- Installing PennController
- Ontology
- Aesthetics
- Preloading resources
- ZIPped resources
- Spreadsheet (CSV)
- Canvas creation
- Setup for audio recordings collection
- Commands by element categories
- Standard Element Commands
- Audio element
- Button element
- Canvas element
- Function element
- Html element
- Image element
- Key element
- Scale element
- Selector element
- Text element
- TextInput element
- Tooltip element
- Timer element
- Var element
- Video element
- VoiceRecorder element
- Youtube element
- Special clear command
- Special end command
- Global PennController Commands
- PennController
- PennController.AddHost
- PennController.AddTable
- PennController.CheckPreloaded
- PennController.DownloadVoiceButton
- PennController.FeedItems
- PennController.Footer
- PennController.GetTable
- PennController.GetURLParameter
- PennController.Header
- PennController.InitiateRecorder
- PennController.PreloadZip
- PennController.ResetPrefix
- PennController.Template