Created
February 6, 2025 14:50
-
-
Save pstorozenko/d7f36b2b059ce420d60ea6717c727927 to your computer and use it in GitHub Desktop.
Generated by Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Interactive Table Components | |
# Created by RGistGenerator | |
flow.module <- local({ | |
# Required Libraries | |
require(shiny) | |
require(DT) | |
# Component Functions | |
list( | |
interactiveTableUI_flow = function(id) { | |
tagList( | |
DTOutput(NS(id, "table")) | |
) | |
}, | |
interactiveTableServer_flow = function(id, data) { | |
moduleServer(id, function(input, output, session) { | |
output$table <- renderDT({ | |
datatable(data(), options = list( | |
pageLength = 10, | |
autoWidth = TRUE, | |
searching = TRUE, | |
ordering = TRUE, | |
lengthChange = TRUE | |
)) | |
}) | |
}) | |
} | |
) | |
}) | |
flow.module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment