aboutsummaryrefslogtreecommitdiff
path: root/inst/app/templates/content/data/view-data.html
blob: 52f1e855fb0caf16c6c71cbeb81f5a46019c76ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h4>Data table</h4>
<!-- Data table. -->
<div class="my-3">
  {{ DT::dataTableOutput(outputId = "data_table") }}
</div>
<!-- Display inactive delete button when no rows are selected. -->
<button type="button" class="btn btn-primary btn-sm text-white" disabled
        data-display-if="'data_table_rows_selected' in input && input.data_table_rows_selected.length == 0">
  <span class="glyphicon glyphicon-remove"></span> Delete row(s)
</button>
<!-- Display active delete button when at least one row is selected. -->
<button id="data_delete" type="button" class="btn btn-primary btn-sm action-button text-white"
        data-display-if="'data_table_rows_selected' in input && input.data_table_rows_selected.length != 0">
  <span class="glyphicon glyphicon-remove"></span> Delete row(s)
</button>
<!-- Button to export data table as a CSV file. -->
<a id="data_export" type="button" class="btn btn-outline-primary btn-sm shiny-download-link">
  <span class="glyphicon glyphicon-download-alt"></span> Export table
</a>