From 1657c19cc4d4d8e4c8e14e2bbce6c9c4bf61215a Mon Sep 17 00:00:00 2001 From: Zeni Kim Date: Tue, 29 Oct 2024 12:30:05 -0500 Subject: [PATCH] add ID to dropdown item --- template/components/content_dropdown.go | 1 + template/components/content_dropdown.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/template/components/content_dropdown.go b/template/components/content_dropdown.go index 1040060..78c41c7 100644 --- a/template/components/content_dropdown.go +++ b/template/components/content_dropdown.go @@ -10,6 +10,7 @@ type ContentDropdown struct { type ContentDropdownItem struct { Text string Link string + ID string IsDisabled bool IsActive bool } diff --git a/template/components/content_dropdown.html b/template/components/content_dropdown.html index ce83a26..458a423 100644 --- a/template/components/content_dropdown.html +++ b/template/components/content_dropdown.html @@ -1,5 +1,5 @@ {{define "content_dropdown_item"}} -
  • {{.Text}}
  • +
  • {{.Text}}
  • {{end}} {{define "content_dropdown"}}