User Tools

Site Tools


show_widget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
show_widget [2023/11/02 19:45] justinshow_widget [2023/11/02 20:16] justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-show_widget(widget_id, fade_in_length)+show_widget(widget_id, fade_length)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |widget_id|ID of the widget (as defined in the [[Widget Editor]]).|[[String]]|Yes| |widget_id|ID of the widget (as defined in the [[Widget Editor]]).|[[String]]|Yes|
-|fade_in_length|ID of the widget (as defined in the [[Widget Editor]]).|[[String]]|No|+|fade_length|Length of the fade in effect (in seconds).|[[Number]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-show_widget("my_widget");+show_widget("my_widget", 1);
 </code> </code>
-//Results:// The widget with an ID of "my_widget" will be shown.+//Results:// The widget with an ID of "my_widget" will be shown, fading in over 1 second.
  
 ---- ----
show_widget.txt · Last modified: 2023/11/06 14:32 by justin