egenn commited on
Commit
284391c
·
1 Parent(s): 26a24b9

update help

Browse files
Files changed (1) hide show
  1. app.R +27 -30
app.R CHANGED
@@ -415,37 +415,27 @@ seqvizlive <- function(
415
 
416
  # UI a3 tooltip ----
417
  output$ui_a3_tooltip <- shiny::renderUI({
418
- if (clicked()) {
419
- bslib::tooltip(
420
- trigger = span(
421
- "Plot help", bsicons::bs_icon("info-circle", class = "text-info"),
422
- style = "text-align: right;",
423
- class = "rtanihi"
 
 
 
 
 
 
 
 
 
 
424
  ),
425
- div(
426
- # HTML(
427
- # paste0(
428
- # "<ul>",
429
- # "<li>Hover over plot to see annotations.",
430
- # "<li>Click on legend items to toggle visibility of annotations.",
431
- # "<li>Double-click on legend items to isolate a single annotation type.",
432
- # "<li>Click on top-right gear icon to change plot settings.",
433
- # "</ul>"
434
- # )
435
- # ),
436
- rhelplist(
437
- c(
438
- "Hover over plot to see annotations.",
439
- "Click on legend items to toggle visibility of annotations.",
440
- "Double-click on legend items to isolate a single annotation type.",
441
- "Click on top-right gear icon to change plot settings."
442
- )
443
- ),
444
- style = "text-align: left;"
445
- ), # /div rt-tooltip
446
- placement = "bottom"
447
- ) # /tooltip
448
- }
449
  }) # /ui_a3_tooltip
450
 
451
  # UI a3 popover ----
@@ -486,6 +476,13 @@ seqvizlive <- function(
486
  placement = "auto"
487
  # options = list(trigger = "hover focus click")
488
  ) # /popover
 
 
 
 
 
 
 
489
  }
490
  }) # /ui_a3_popover
491
 
 
415
 
416
  # UI a3 tooltip ----
417
  output$ui_a3_tooltip <- shiny::renderUI({
418
+ bslib::tooltip(
419
+ trigger = span(
420
+ "Plot help", bsicons::bs_icon("info-circle", class = "text-info"),
421
+ style = "text-align: right;",
422
+ class = "rtanihi"
423
+ ),
424
+ div(
425
+ rhelplist(
426
+ c(
427
+ "Select Data Source (built-in or upload)",
428
+ "Click 'Plot dataset' to render the plot - repeat after changing datasets.",
429
+ "Hover over plot to see annotations.",
430
+ "Click on legend items to toggle visibility of annotations.",
431
+ "Double-click on legend items to isolate a single annotation type.",
432
+ "Click on top-right gear icon to change plot settings."
433
+ )
434
  ),
435
+ style = "text-align: left;"
436
+ ), # /div rt-tooltip
437
+ placement = "bottom"
438
+ ) # /tooltip
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  }) # /ui_a3_tooltip
440
 
441
  # UI a3 popover ----
 
476
  placement = "auto"
477
  # options = list(trigger = "hover focus click")
478
  ) # /popover
479
+ } else {
480
+ popover(
481
+ trigger = bsicons::bs_icon("gear", class = "ms-auto"),
482
+ HTML(
483
+ "Please select dataset from the left sidebar and click 'Plot dataset'.<br>Plot settings will appear here after the plot is rendered."
484
+ )
485
+ )
486
  }
487
  }) # /ui_a3_popover
488