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