Skip to content

Commit

Permalink
refac: separate content for cluster-stats from details/summary
Browse files Browse the repository at this point in the history
  • Loading branch information
russHyde committed Mar 14, 2024
1 parent afe25e4 commit cf27f45
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions R/module_cluster_stats.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
clusterStatsUI = function(id) {
ns = NS(id)

Check warning on line 2 in R/module_cluster_stats.R

View workflow job for this annotation

GitHub Actions / lint

file=R/module_cluster_stats.R,line=2,col=8,[object_usage_linter] no visible global function definition for 'NS'

# use details and summary to create expandable section
htmltools::tags$details(
# preview of expandable section
htmltools::tags$summary("Cluster statistics (click to expand)"),
box_content = tagList(

Check warning on line 4 in R/module_cluster_stats.R

View workflow job for this annotation

GitHub Actions / lint

file=R/module_cluster_stats.R,line=4,col=17,[object_usage_linter] no visible global function definition for 'tagList'
shiny::br(),

# text to print choice
Expand All @@ -15,14 +12,17 @@ clusterStatsUI = function(id) {
shiny::tabsetPanel(
id = ns("plot_tabs"),

# Tables tab
# Tabs for "Tables", "Plots" and "RDS"
tablesUI(ns("table1")),

# Plots tab
plotsUI(ns("plot1")),

# RDS tab
rdsUI(ns("rds1"))
)
)

# use details and summary to create expandable section
htmltools::tags$details(
# preview of expandable section
htmltools::tags$summary("Cluster statistics (click to expand)"),
box_content
)
}

0 comments on commit cf27f45

Please sign in to comment.