From e5bcf06c7f85098dc8c5c81044bd4fae010cadcb Mon Sep 17 00:00:00 2001 From: Brian Whitton Date: Sun, 9 Apr 2017 21:24:43 -0400 Subject: [PATCH] add brick layout link to dummy app --- tests/dummy/app/templates/application.hbs | 3 +++ tests/dummy/app/templates/card.hbs | 3 +++ tests/dummy/app/templates/multi-card.hbs | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs index 46ad382d..268481c3 100644 --- a/tests/dummy/app/templates/application.hbs +++ b/tests/dummy/app/templates/application.hbs @@ -6,6 +6,9 @@
  • {{link-to 'nypr-multi-card' 'multi-card'}}
  • +
  • + {{link-to 'nypr-brick-layout' 'brick'}} +
  • {{outlet}} diff --git a/tests/dummy/app/templates/card.hbs b/tests/dummy/app/templates/card.hbs index 16a0e2ff..005bf0ad 100644 --- a/tests/dummy/app/templates/card.hbs +++ b/tests/dummy/app/templates/card.hbs @@ -1,3 +1,6 @@ +{{md-text text=" +# `nypr-card` +"}}

    basic usage

    {{code-snippet name="basic.hbs"}} diff --git a/tests/dummy/app/templates/multi-card.hbs b/tests/dummy/app/templates/multi-card.hbs index 276a7c19..24f350da 100644 --- a/tests/dummy/app/templates/multi-card.hbs +++ b/tests/dummy/app/templates/multi-card.hbs @@ -1,10 +1,10 @@ {{md-text text=" -## Multi card +# `nypr-multi-card` The `nypr-multi-card` component can be used to create simple links between cards by using the yielded `panel` component. At minimum, each `panel` takes a `to` attribute, which points to another panel by its index in the DOM tree. -### Basic Usage +## Basic Usage Use the exposed `button` property on the yielded `panel` to place the button that will switch to another panel. ```htmlbars {{#nypr-multi-card as |m|}} @@ -38,7 +38,7 @@ Use the exposed `button` property on the yielded `panel` to place the button tha {{md-text text=" -### Advanced +## Advanced `panels` are actually just `nypr-card` components under the hood, and they expose the same API on the `header` property, so you can open up `panel.header` to add a title or even pu the control button in there. "