]> nmode's Git Repositories - Rnaught/blob - inst/app/templates/content/data/view-data.html
52f1e855fb0caf16c6c71cbeb81f5a46019c76ca
[Rnaught] / inst / app / templates / content / data / view-data.html
1 <h4>Data table</h4>
2 <!-- Data table. -->
3 <div class="my-3">
4 {{ DT::dataTableOutput(outputId = "data_table") }}
5 </div>
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)
10 </button>
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)
15 </button>
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
19 </a>