不知道怎么排列页面上的元素,让tabBox在box下面(文件上传),table占据了右边的所有空间
编码
fluidRow(
box(width = 3,
fileInput(NS(id,"file"), "Загрузить файл",
buttonLabel = 'Загрузить', placeholder = 'Файл не выбран')),
box(width = 9,dataTableOutput(NS(id,'outTable'))),
tabBox(width = 3,
tabPanel('column',
useShinyjs(),
hidden(checkboxGroupInput(NS(id,"select_column"),'Колонки', choices = ''))),
tabPanel('drop',h2('drop value in table'))
)
)
您需要使用 column 函数限制列数,并在其中 box() / tabBox() 12 - 使用 column 中指定的所有空间。
得到了想要的结果