Add multiple sort criteria to select

This commit is contained in:
2023-06-07 11:15:54 +02:00
parent 58ea1f8664
commit 404f7ada4a
4 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@@ -12,6 +12,8 @@
data-sticky-header="true"
data-sticky-header-offset-y="50"
data-sortable="true"
data-show-multi-sort="true"
data-sort-priority='[{"sortName": "date", "sortOrder": "desc"},{"sortName": "time", "sortOrder": "desc"}]'
data-search="true">
<thead>
<tr class="bg-primary text-white">

View File

@@ -15,6 +15,7 @@
{{ super() }}
<script src="https://unpkg.com/bootstrap-table@1.21.4/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.21.4/dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.21.4/dist/extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
<script src="{{ url_for('static', filename="js/select.js") }}"></script>
<script src="{{ url_for('static', filename="js/excelFiles.js") }}"></script>
{% endblock %}

View File

@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block content %}
<div class="alert alert-primary" role="alert">
<div class="alert alert-primary col-xs-12 col-sm-12 col-md-10 col-lg-6 col-xl-6 col-xxl-5"
role="alert">
<h3>Configuration</h3>
<table class="table table-stripped table-hover bg-light">
<thead>