How may you conditionally hide widget(s) on a dashboard?

Comments

3 comments

  • Avatar
    Nathan Giusti

    From a widget script you can use jquery to grab the widget by id

    $(''widget[widgetid="5da0d06b90d3ba21585bad2d"]')

    You can call the hide method on the widget to hide it from the dashboard. 

    You need to add this hook to the widget when it is processing the query results and check the query results to see whether or not you should hide the widget. 

    0
    Comment actions Permalink
  • Avatar
    Barry Gaffey

    Thanks Nathan Giusti

     

    That worked; however, it leaves all the whitespace from that widget on the dashboard.

    0
    Comment actions Permalink
  • Avatar
    David Hertzberg

    Hi Barry,

    did you try tabber plugin ? It may be a cleaner workaround. It is an official Sisense plugin available in the marketplace.

    Best, David.

    0
    Comment actions Permalink

Please sign in to leave a comment.