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
show_widget [2021/04/21 18:52] justinshow_widget [2023/11/06 14:32] (current) justin
Line 2: Line 2:
 ---- ----
  
-Shows the widget with the specified widget ID.+Shows the widget with the specified widget ID (with an optional fade in over a duration of time).
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-show_widget(widget_id)+show_widget(widget_id, fade_in_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|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.1619056375.txt.gz · Last modified: 2021/04/21 18:52 by justin