24 lines
729 B
R
24 lines
729 B
R
f_reactable <- function(daten, coldefs = NULL, selection = "single", defaultSelected = NULL) {
|
|
reactable(
|
|
daten,
|
|
selection = selection,
|
|
defaultSelected = defaultSelected, # Ermöglicht das Wiederherstellen der Auswahl
|
|
pagination = TRUE,
|
|
defaultPageSize = 17,
|
|
showPageSizeOptions = TRUE,
|
|
filterable = TRUE,
|
|
highlight = TRUE,
|
|
bordered = TRUE,
|
|
striped = FALSE,
|
|
compact = TRUE,
|
|
# Styling
|
|
theme = reactableTheme(
|
|
highlightColor = "#e6f7ff", # Etwas dezenter als knallgrün, optional
|
|
# borderColor = "#dfe2e5",
|
|
rowSelectedStyle = list(backgroundColor = "#98F5FF")
|
|
),
|
|
rowStyle = list(cursor = "pointer"),
|
|
onClick = "select",
|
|
columns = coldefs
|
|
)
|
|
} |