methods: Add help popover

This commit is contained in:
Elias Projahn 2024-01-31 12:20:07 +01:00
parent e0e92e0fcc
commit 64c616ec05
2 changed files with 18 additions and 6 deletions

View file

@ -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,

View file

@ -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,