how to hide Navigation Sidebar by using function node?

You cannot.
Function nodes run server side (in the nodejs runtime)
Dashboard runs client side (in a remote browser)
What you could probably do:
msg.topic (or payload or whatever) matches some criteria you determine means "close the sidebar), simulate a click on the menu element (not tested, not guaranteed to work)click event to avoid getting out-of-stepIf you need this level of feature built in, then please raise an issue on the dashboard repository. I suspect this would be somthing that ui_control would have to have programmed support for.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.