From 852d647f097b8d9fea3cf4f4b2e9a0ff57bbcb0a Mon Sep 17 00:00:00 2001 From: Diana Date: Tue, 29 Oct 2024 10:00:24 -0500 Subject: [PATCH 1/2] href add target --- template/components/content_href.go | 1 + template/components/content_href.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/template/components/content_href.go b/template/components/content_href.go index 143ca80..99cc6be 100644 --- a/template/components/content_href.go +++ b/template/components/content_href.go @@ -3,6 +3,7 @@ package components type ContentHref struct { Text string Link string + Target string // _blank _parent _self _top Icon string IsButton bool TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, link diff --git a/template/components/content_href.html b/template/components/content_href.html index f4980ac..8537874 100644 --- a/template/components/content_href.html +++ b/template/components/content_href.html @@ -1,5 +1,6 @@ {{define "content_href"}} - {{.Text}} From 1657c19cc4d4d8e4c8e14e2bbce6c9c4bf61215a Mon Sep 17 00:00:00 2001 From: Zeni Kim Date: Tue, 29 Oct 2024 12:30:05 -0500 Subject: [PATCH 2/2] 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"}}