4 {{ DT::dataTableOutput(outputId = "data_table") }}
6 <!-- Display inactive delete button when no rows are selected. -->
7 <button type=
"button" class=
"btn btn-primary btn-sm text-white" disabled
8 data-display-if=
"'data_table_rows_selected' in input && input.data_table_rows_selected.length == 0">
9 <span class=
"glyphicon glyphicon-remove"></span> Delete row(s)
11 <!-- Display active delete button when at least one row is selected. -->
12 <button id=
"data_delete" type=
"button" class=
"btn btn-primary btn-sm action-button text-white"
13 data-display-if=
"'data_table_rows_selected' in input && input.data_table_rows_selected.length != 0">
14 <span class=
"glyphicon glyphicon-remove"></span> Delete row(s)
16 <!-- Button to export data table as a CSV file. -->
17 <a id=
"data_export" type=
"button" class=
"btn btn-outline-primary btn-sm shiny-download-link">
18 <span class=
"glyphicon glyphicon-download-alt"></span> Export table