anzeige der neuen DS hinzugefügt

This commit is contained in:
2026-03-19 14:28:46 +01:00
parent 8e2b4932ab
commit d757a61cdb
4 changed files with 124 additions and 94 deletions
+19
View File
@@ -0,0 +1,19 @@
##
## Datum : 2026-03-19_14-26
## Name : Christian Oswald
## Datei : scroll_to_Row.R
## Projekt : gemfin-shiny
## Kommentar: Springt zur gewünschten Reactable Zeile
##
scroll_to_row <- function(table_id, row_idx, delay_ms = 200) {
shinyjs::delay(delay_ms, {
runjs(sprintf("
const rows = document.querySelectorAll('#%s .rt-tr-group');
const idx = %d - 1;
if (rows[idx]) {
rows[idx].scrollIntoView({behavior: 'smooth', block: 'center'});
}
", table_id, row_idx))
})
}