mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-25 20:07:23 +02:00
methods: Add help popover
This commit is contained in:
parent
e0e92e0fcc
commit
64c616ec05
2 changed files with 18 additions and 6 deletions
|
|
@ -19,6 +19,7 @@ RoxygenNote: 7.2.0
|
|||
Depends:
|
||||
R (>= 4.1)
|
||||
Imports:
|
||||
bsicons,
|
||||
bslib,
|
||||
data.table,
|
||||
DT,
|
||||
|
|
|
|||
23
R/methods.R
23
R/methods.R
|
|
@ -23,13 +23,24 @@ methods_ui <- function(id, options) {
|
|||
),
|
||||
lapply(options$methods, function(method) {
|
||||
verticalLayout(
|
||||
checkboxInput(
|
||||
NS(id, method$id),
|
||||
span(
|
||||
method$description,
|
||||
class = "control-label"
|
||||
div(
|
||||
style = "display: flex;",
|
||||
checkboxInput(
|
||||
NS(id, method$id),
|
||||
span(
|
||||
method$description,
|
||||
class = "control-label"
|
||||
),
|
||||
value = TRUE
|
||||
),
|
||||
value = TRUE
|
||||
div(
|
||||
style = "margin-left: 5px;",
|
||||
bslib::popover(
|
||||
bsicons::bs_icon("question-circle"),
|
||||
title = method$name,
|
||||
method$help
|
||||
)
|
||||
)
|
||||
),
|
||||
sliderInput(
|
||||
NS(id, sprintf("%s_weight", method$id)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue