From 3bce14e99ab12d3c95bb3aab7df0eda4bbaded1b Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Mon, 4 Nov 2024 12:20:09 -0500 Subject: [PATCH] first working radio buttons --- groups/home/bootstrap3/src/main5.js | 33 +++++++++++++++-------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/groups/home/bootstrap3/src/main5.js b/groups/home/bootstrap3/src/main5.js index 4ec29fb..0737f85 100644 --- a/groups/home/bootstrap3/src/main5.js +++ b/groups/home/bootstrap3/src/main5.js @@ -58,7 +58,7 @@ const onesearchComponent = { enctype="application/x-www-form-urlencoded; charset=utf-8" > -
+
@@ -132,12 +132,25 @@ const onesearchComponent = { @click.stop.prevent="submitSearch" />
+
+ + + + +
`, methods: { - selectdropdown(item, itemName) { - this.displayeditem = itemName; // swap in current item at the top of the dropdown - this.selecteditem = item; // store the data from the dropdown selection + selectradio(radiooutput) { + this.selecteditem = ""; // store the data from the dropdown selection }, submitSearch() { this.$refs.primoQueryString.value = `any,contains,${this.$refs.primoQueryTempString.value.replace( @@ -152,18 +165,6 @@ const onesearchComponent = { selecteditem: {}, // initialize the data from the dropdown selection searchstring: "", // initialize an empty search string displayeditem: "Define Your Search", // the text displayed a the top of the OneSearch dropdown - materialtype: { - Books: { - input: - '', - id: 1, - }, - Articles: { - input: - '', - id: 2, - }, - }, }; }, };