From 6e9d9490da0910e05f29874e12b01fb58653a936 Mon Sep 17 00:00:00 2001 From: DGPA684 Date: Fri, 8 Sep 2017 11:51:38 +0200 Subject: [PATCH] Added doc for tab panels --- docs/components/tab-panel/index.hbs | 32 +++++++++++++++++++ .../tab-panel/snippets/tab-panel-default.hbs | 24 ++++++++++++++ .../snippets/tab-panel-fullwidth.hbs | 24 ++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 docs/components/tab-panel/index.hbs create mode 100644 docs/components/tab-panel/snippets/tab-panel-default.hbs create mode 100644 docs/components/tab-panel/snippets/tab-panel-fullwidth.hbs diff --git a/docs/components/tab-panel/index.hbs b/docs/components/tab-panel/index.hbs new file mode 100644 index 00000000..e8aafa1e --- /dev/null +++ b/docs/components/tab-panel/index.hbs @@ -0,0 +1,32 @@ +--- +title: Tab Panel +description: Description of how to deal with tab panel in your app. +nav: side/components/tab-panel +order: 1 +toc: + - title: Default Tab Panel + slug: tab-panel-default + - title: Full-width Tab Panel + slug: tab-panel-fullwidth +--- + +{{#> page}} + {{#*inline "content"}} +

{{title}}

+

+ Tab panels can be used to segment the screens, to make a step-by-step wizard, ... +

+ + {{> table-of-contents data=toc}} + +

Default Tab panel

+ + {{> example path="/components/tab-panel/demos/tab-panel-default.html"}} + {{#code-snippet "html"}}{{#get snippets "/components/tab-panel/snippets/tab-panel-default"}}{{{.}}}{{/get}}{{/code-snippet}} + +

Full-width Tab panel

+ + {{> example path="/components/tab-panel/demos/tab-panel-fullwidth.html"}} + {{#code-snippet "html"}}{{#get snippets "/components/tab-panel/snippets/tab-panel-fullwidth"}}{{{.}}}{{/get}}{{/code-snippet}} + {{/inline}} +{{/page}} diff --git a/docs/components/tab-panel/snippets/tab-panel-default.hbs b/docs/components/tab-panel/snippets/tab-panel-default.hbs new file mode 100644 index 00000000..58dac6c4 --- /dev/null +++ b/docs/components/tab-panel/snippets/tab-panel-default.hbs @@ -0,0 +1,24 @@ +--- +title: Tab Panel - Default +layout: demo.hbs +--- +
+
+
+
Tab A
+
Tab B
+
Tab C
+
Tab D
+
Tab E
+
Tab F
+
+
+
+
Content A
+
Content B
+
Content C
+
Content D
+
Content E
+
Content F
+
+
diff --git a/docs/components/tab-panel/snippets/tab-panel-fullwidth.hbs b/docs/components/tab-panel/snippets/tab-panel-fullwidth.hbs new file mode 100644 index 00000000..226be439 --- /dev/null +++ b/docs/components/tab-panel/snippets/tab-panel-fullwidth.hbs @@ -0,0 +1,24 @@ +--- +title: Tab Panel - Full Width +layout: demo.hbs +--- +
+
+
+
Tab A
+
Tab B
+
Tab C
+
Tab D
+
Tab E
+
Tab F
+
+
+
+
Content A
+
Content B
+
Content C
+
Content D
+
Content E
+
Content F
+
+