This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
show_widget [2021/04/21 18:52] – justin | show_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) |
</ | </ | ||
^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(" | + | show_widget(" |
</ | </ | ||
- | // | + | // |
---- | ---- |