表格标题出现在错误的地方

问题描述 投票:0回答:0

我正在使用 DT 0.28,当我指定标题参数时:

    DT::datatable (
      gps$summary[], extension = "Buttons",
      caption = tagList(h1("Caption")),
      options = list(
        autoWidth = TRUE, buttons = c('csv', 'excel'), dom = 'Bfrtip',
        pagingType = "full_numbers", processing = TRUE, scrollX = TRUE,
        stateSave = TRUE),
      selection = list(mode = current_table_selection(), selected = 1, target = 'row'))
  })

它没有出现在列标题上方,如此处的示例(在第 2.7 节中) 而是标题显示在我的列标题和表格数据行之间!

有人知道问题是什么吗?

shiny dt caption
© www.soinside.com 2019 - 2024. All rights reserved.