Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/content/shortcodes/collapse.md')
-rw-r--r--exampleSite/content/shortcodes/collapse.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/exampleSite/content/shortcodes/collapse.md b/exampleSite/content/shortcodes/collapse.md
new file mode 100644
index 0000000..4986013
--- /dev/null
+++ b/exampleSite/content/shortcodes/collapse.md
@@ -0,0 +1,23 @@
++++
+title = "Collapse"
+description = ""
+weight = 5
++++
+
+Feel like hiding some content from your visitor in a collapsible element? The collapse shortcode does exactly that. It creates a button that shows or hides the content in the shortcode on request.
+
+{{< collapse title="Click me to show content" >}}
+Hi there, I'm the hidden content. Didn't see that one coming, huh?
+{{< /collapse >}}
+
+## Usage
+Simply place the following shortcode on the page
+{{< code lang="html" >}}
+{{</* collapse title="TITLE" */>}} [content] {{</* /collapse */>}}
+{{< /code >}}
+
+
+### Parameters
+#### *title*
+The lang parameter defines the text to show in the button that toggles the collapse content.
+Example: <code>title="Click me to show content"</code>.