Selector elements let you create a group of existing elements out of which to make a selection, by clicking them or pressing a key.
Creation:
newSelector("mySelector")
Example:
[js try=”true”]newCanvas(“two shapes”, 820, 400)
.settings.add( 0, 0, newImage(“square”, “square.png”) )
.settings.add( 420, 0, newImage(“triangle”, “triangle.png”) )
.print()
,
newSelector(“shape”)
.settings.add( getImage(“square”) , getImage(“triangle”) )
.wait()
[/js]
The code above adds two images side by side and waits for a click on either one of them.
Actions
[yadawiki-list category=”Action command,Selector element”]
Settings
[yadawiki-list category=”Settings command,Selector element”]
Tests
[yadawiki-list category=”Test command,Selector 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