Hide/unhide widgets #29

Closed
opened 2024-10-04 04:21:09 -04:00 by cuh7b5 · 1 comment
cuh7b5 commented 2024-10-04 04:21:09 -04:00 (Migrated from github.com)

Is there a way to hide/unhide widgets from within the widget script?
Like in the built-in Player widget, when media is not playing the widget is hidden.

Thanks!

Is there a way to hide/unhide widgets from within the widget script? Like in the built-in Player widget, when media is not playing the widget is hidden. Thanks!
zobnin commented 2024-10-04 05:04:09 -04:00 (Migrated from github.com)

Yes. There are undocumented API for it:

  • ui:hide_widget()
  • ui:show_widget()
Yes. There are undocumented API for it: * `ui:hide_widget()` * `ui:show_widget()`
Sign in to join this conversation.
No description provided.