mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 11:17: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
|
|
@ -19,6 +19,7 @@ RoxygenNote: 7.2.0
|
||||||
Depends:
|
Depends:
|
||||||
R (>= 4.1)
|
R (>= 4.1)
|
||||||
Imports:
|
Imports:
|
||||||
|
bsicons,
|
||||||
bslib,
|
bslib,
|
||||||
data.table,
|
data.table,
|
||||||
DT,
|
DT,
|
||||||
|
|
|
||||||
11
R/methods.R
11
R/methods.R
|
|
@ -23,6 +23,8 @@ methods_ui <- function(id, options) {
|
||||||
),
|
),
|
||||||
lapply(options$methods, function(method) {
|
lapply(options$methods, function(method) {
|
||||||
verticalLayout(
|
verticalLayout(
|
||||||
|
div(
|
||||||
|
style = "display: flex;",
|
||||||
checkboxInput(
|
checkboxInput(
|
||||||
NS(id, method$id),
|
NS(id, method$id),
|
||||||
span(
|
span(
|
||||||
|
|
@ -31,6 +33,15 @@ methods_ui <- function(id, options) {
|
||||||
),
|
),
|
||||||
value = TRUE
|
value = TRUE
|
||||||
),
|
),
|
||||||
|
div(
|
||||||
|
style = "margin-left: 5px;",
|
||||||
|
bslib::popover(
|
||||||
|
bsicons::bs_icon("question-circle"),
|
||||||
|
title = method$name,
|
||||||
|
method$help
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
sliderInput(
|
sliderInput(
|
||||||
NS(id, sprintf("%s_weight", method$id)),
|
NS(id, sprintf("%s_weight", method$id)),
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue