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
Last revisionBoth sides next revision
hide_widget [2020/12/05 20:35] justinhide_widget [2023/11/02 20:16] 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_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_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.txt · Last modified: 2023/11/06 14:31 by justin