DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

Hide tooltip option

Open krfurlong opened this issue 4 years ago • 4 comments

Love the package!

Usually I'm all for adding tooltips in my diagrams, but for some Shiny Apps, they can be distracting/unnecessary. I might just not be looking in the right places of the docs, but it would be super helpful to have the option of removing/hiding the default HTML tooltips on the Nodes, Edges, edge labels, etc.

krfurlong avatar Jul 19 '19 14:07 krfurlong

Thanks for the feature request! It's a good idea. I'll take a look into whether tooltips can be suppressed at the Graphviz level or during a post process render stage (which really needs to be developed).

rich-iannone avatar Jul 19 '19 15:07 rich-iannone

Solid - thanks! Some poking around on SO led me to a temporary fix w/ CSS: svg { pointer-events: none; }

krfurlong avatar Jul 19 '19 18:07 krfurlong

@krfurlong I'm running into a similar problem with a project at work right now. Where in the code did you put svg { pointer-events: none; } ?

chrisjohnholiday avatar Mar 28 '20 16:03 chrisjohnholiday

Hey @chrisjohnholiday - sorry for not responding sooner. So in the UI section of my app.R file, I have included some CSS style code. If you add this somewhere in the tags$head(), should should be able to suppress them from the CSS: ex.

ui <- navbarPage(title="example UI",
  tabPanel(title="first Tab",
    tags$head(
      tags$style("svg { pointer-events: none;}")
      #any other elements in the <head>
    )
  #any other elements in the tab UI
  )
)

krfurlong avatar Mar 31 '20 14:03 krfurlong