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

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