Description Usage Arguments See Also Examples
View source: R/shiny-material-tab-content.R
Use this function to place UI content within a specific tab.
1 | material_tab_content(tab_id, ...)
|
tab_id |
String. The tab id in which to place the UI content. |
... |
The UI elements to place in the tab. |
1 2 3 4 | material_tab_content(
tab_id = "example_tab_1",
shiny::tags$h1("Tab Content")
)
|
<div class="col s12 shiny-material-tab-content" id="example_tab_1" style="visibility:hidden">
<h1>Tab Content</h1>
</div>
<script>$(document).ready(function(){
//$('ul.tabs').tabs();
$(document).on("click", "li.tab a", function () {
$(this).trigger("shown");
});
$(".shiny-material-tab-content").css("visibility", "visible")
})
</script>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.