anzeige der neuen DS hinzugefügt
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user