mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 03:07:24 +01:00
methods: Add help popover
This commit is contained in:
parent
e0e92e0fcc
commit
64c616ec05
2 changed files with 18 additions and 6 deletions
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