From 852d647f097b8d9fea3cf4f4b2e9a0ff57bbcb0a Mon Sep 17 00:00:00 2001 From: Diana Date: Tue, 29 Oct 2024 10:00:24 -0500 Subject: [PATCH] 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}} -- 2.39.2