I want to create shinydashboard with plots&tables but when using tabPanels, dataTable is always outside the box. I tried to specify panel width with column and width parameter, but it only affects the plot.
Is there a way to restrict datatable so that it is displayed only within the tabPanel?
Thanks
Tab is rendered using this code:
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "dashboard_total_results",
fluidRow(
column(width = 15,
tabBox(
title = "Total deal results",
id = "deal_res_tabset_1", height = "250px",
tabPanel("Total revenue",
plotlyOutput("total_revenue_plot"),
DT::dataTableOutput("total_revenue_table")),
tabPanel("Total orders",
plotlyOutput("total_orders_plot"),
DT::dataTableOutput("total_orders_table")),
tabPanel("Total margin",
plotlyOutput("total_margin_plot"),
DT::dataTableOutput("total_margin_table"))
)
)
)
)
