]> nmode's Git Repositories - Rnaught/blob - inst/app/templates/content/estimators/view-estimates.html
Revamp Shiny app
[Rnaught] / inst / app / templates / content / estimators / view-estimates.html
1 <h4>Estimates table</h4>
2 <!-- Estimates table. -->
3 <div class="my-3">
4 {{ DT::dataTableOutput(outputId = "estimates_table") }}
5 </div>
6 <!-- Display inactive delete button when no columns are selected. -->
7 <button type="button" class="btn btn-primary btn-sm text-white" disabled
8 data-display-if="'estimates_table_columns_selected' in input &&
9 input.estimates_table_columns_selected.length == 0">
10 <span class="glyphicon glyphicon-remove"></span> Delete column(s)
11 </button>
12 <!-- Display active delete button when at least one column is selected. -->
13 <button id="estimators_delete" type="button" class="btn btn-primary btn-sm action-button text-white"
14 data-display-if="'estimates_table_columns_selected' in input &&
15 input.estimates_table_columns_selected.length != 0">
16 <span class="glyphicon glyphicon-remove"></span> Delete column(s)
17 </button>
18 <!-- Button to export estimates table as a CSV file. -->
19 <a id="estimates_export" type="button" class="btn btn-outline-primary btn-sm shiny-download-link">
20 <span class="glyphicon glyphicon-download-alt"></span> Export table
21 </a>