@@ -285,7 +294,7 @@
@@ -302,9 +311,15 @@
>
Copyright © HfT Stuttgart 2021
diff --git a/public/js/dropDownList.js b/public/js/dropDownList.js
index 14cde18483aee2fcd315418d6d4a356b770ee77a..b3526dec37b3f890434f087c7ff1103f3d03414c 100644
--- a/public/js/dropDownList.js
+++ b/public/js/dropDownList.js
@@ -52,7 +52,10 @@ const styleLevelOneDropDown = function () {
const styleLevelTwoDropDown = function () {
// Create our dropdown list using `vanillaSelectBox`
new vanillaSelectBox("#drop-down--aggregation-type", {
+ "disableSelectAll": true,
+ "maxSelect": 1,
"placeHolder": "--Select--",
+ "search": false,
});
};
@@ -64,7 +67,10 @@ const styleLevelTwoDropDown = function () {
const styleLevelThreeDropDown = function () {
// Create our dropdown list using `vanillaSelectBox`
new vanillaSelectBox("#drop-down--sampling-rate", {
+ "disableSelectAll": true,
+ "maxSelect": 1,
"placeHolder": "--Select--",
+ "search": false,
});
};
@@ -76,7 +82,10 @@ const styleLevelThreeDropDown = function () {
const styleLevelFourDropDown = function () {
// Create our dropdown list using `vanillaSelectBox`
new vanillaSelectBox("#drop-down--chart-type", {
+ "disableSelectAll": true,
+ "maxSelect": 1,
"placeHolder": "--Select--",
+ "search": false,
});
};
@@ -94,24 +103,118 @@ const afterDocumentLoads = function () {
};
/**
- * Get the values from the currently selected options in the linked drop dpwn lists
- * @returns {Array} An array containing the values of the selected options
+ * Get the selected option(s) from a dropdown list
+ *
+ * @param {String} selectorStr A CSS selector string representing the dropdown list
+ * @returns {Array} An array of string(s) representing the value(s) of the selected `