User Tools

Site Tools


hide_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
hide_widget [2020/12/05 20:35] justinhide_widget [2023/11/06 14:31] (current) justin
Line 2: Line 2:
 ---- ----
  
-Hides the widget with the specified widget ID.+Hides the widget with the specified widget ID (with an optional fade out over a duration of time).
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-hide_widget(widget_id)+hide_widget(widget_id, fade_out_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_out_length|Length of the fade out effect (in seconds).|[[Number]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-hide_widget("my_widget")+hide_widget("my_widget", 1);
 </code> </code>
-//Results:// The widget with an ID of "my_widget" will be hidden.+//Results:// The widget with an ID of "my_widget" will be hidden, fading out over 1 second.
  
 ---- ----
hide_widget.1607229348.txt.gz · Last modified: 2020/12/05 20:35 by justin