Hi John. I cooked up a server-side selectBigTab() function (not unlike updateTabsetPanel(...,selected=) ) to navigate to a certain tabpanel using server-side R. Can you check and see how to put it correctly in the codebase? Thanks a 1e6.
R code:
selectBigTab <- function(session, selected) {
shiny:::validate_session_object(session)
message <- shiny:::dropNulls(list(value = selected))
session$sendCustomMessage("select-tab", message)
}
JS code:
Shiny.addCustomMessageHandler('select-tab', (msg) => {
console.log('msg.value' + msg.value)
$(`.tab-trigger[data-target=${msg.value}]`).trigger('click');
});
Hi John. I cooked up a server-side
selectBigTab()function (not unlike updateTabsetPanel(...,selected=) ) to navigate to a certain tabpanel using server-side R. Can you check and see how to put it correctly in the codebase? Thanks a 1e6.R code:
JS code: