From 3ea39841c8049525e31e9f4d6300f0c60cdb42de Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 24 Jan 2023 13:33:51 +0100 Subject: Adding upstream version 5.2.3+dfsg. Signed-off-by: Daniel Baumann --- site/layouts/shortcodes/js-dismiss.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 site/layouts/shortcodes/js-dismiss.html (limited to 'site/layouts/shortcodes/js-dismiss.html') diff --git a/site/layouts/shortcodes/js-dismiss.html b/site/layouts/shortcodes/js-dismiss.html new file mode 100644 index 0000000..45d72d0 --- /dev/null +++ b/site/layouts/shortcodes/js-dismiss.html @@ -0,0 +1,15 @@ +{{- /* Usage: js-dismiss "ComponentName" */ -}} + +{{- $name := .Get 0 -}} + +Dismissal can be achieved with the `data` attribute on a button **within the {{ $name }}** as demonstrated below: + +```html + +``` + +or on a button **outside the {{ $name }}** using the `data-bs-target` as demonstrated below: + +```html + +``` -- cgit v1.2.3