From 50dedd7931956fab04bb913d1e5b810d14ca03a0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 9 Jul 2018 16:18:22 -0400 Subject: [PATCH] docs(components): add usage examples for components missing them --- core/src/components/card/usage/angular.md | 48 +++++ .../components/chip-button/usage/angular.md | 26 +++ core/src/components/chip/usage/angular.md | 48 +++++ .../components/fab-button/usage/angular.md | 23 +++ core/src/components/fab-list/usage/angular.md | 16 ++ core/src/components/fab/usage/angular.md | 81 ++++++++ core/src/components/grid/usage/angular.md | 179 ++++++++++++++++++ core/src/components/icon/usage/angular.md | 18 ++ core/src/components/icon/usage/javascript.md | 2 +- .../components/item-divider/usage/angular.md | 40 ++++ .../components/item-group/usage/angular.md | 103 ++++++++++ core/src/components/reorder/usage/angular.md | 88 +++++++++ core/src/components/spinner/usage/angular.md | 25 +++ 13 files changed, 696 insertions(+), 1 deletion(-) create mode 100644 core/src/components/card/usage/angular.md create mode 100644 core/src/components/chip-button/usage/angular.md create mode 100644 core/src/components/chip/usage/angular.md create mode 100644 core/src/components/fab-button/usage/angular.md create mode 100644 core/src/components/fab-list/usage/angular.md create mode 100644 core/src/components/fab/usage/angular.md create mode 100644 core/src/components/grid/usage/angular.md create mode 100644 core/src/components/icon/usage/angular.md create mode 100644 core/src/components/item-divider/usage/angular.md create mode 100644 core/src/components/item-group/usage/angular.md create mode 100644 core/src/components/reorder/usage/angular.md create mode 100644 core/src/components/spinner/usage/angular.md diff --git a/core/src/components/card/usage/angular.md b/core/src/components/card/usage/angular.md new file mode 100644 index 0000000000..094bfc7f87 --- /dev/null +++ b/core/src/components/card/usage/angular.md @@ -0,0 +1,48 @@ +```html + + + Card Subtitle + Card Title + + + + Keep close to Nature's heart... and break clear away, once in awhile, + and climb a mountain or spend a week in the woods. Wash your spirit clean. + + + + + + + ion-item in a card, icon left, button right + View + + + + This is content, without any paragraph or header tags, + within an ion-card-content element. + + + + + + + Card Link Item 1 .activated + + + + + Card Link Item 2 + + + + + Card Button Item 1 .activated + + + + + Card Button Item 2 + + +``` \ No newline at end of file diff --git a/core/src/components/chip-button/usage/angular.md b/core/src/components/chip-button/usage/angular.md new file mode 100644 index 0000000000..964ea06b3c --- /dev/null +++ b/core/src/components/chip-button/usage/angular.md @@ -0,0 +1,26 @@ +```html + + Button Chip + + + + + + + + Icon Chip + + + + + + + + + + Avatar Chip + + + + +``` diff --git a/core/src/components/chip/usage/angular.md b/core/src/components/chip/usage/angular.md new file mode 100644 index 0000000000..7eaabb19bd --- /dev/null +++ b/core/src/components/chip/usage/angular.md @@ -0,0 +1,48 @@ +```html + + Default + + + + Secondary Label + + + + Secondary w/ Dark label + + + + + Default + + + + + Default + + + + Button Chip + + + + + + + + Icon Chip + + + + + + + + + + Avatar Chip + + + + +``` diff --git a/core/src/components/fab-button/usage/angular.md b/core/src/components/fab-button/usage/angular.md new file mode 100644 index 0000000000..21aa6270f9 --- /dev/null +++ b/core/src/components/fab-button/usage/angular.md @@ -0,0 +1,23 @@ +```html + + + + + Button + + + + Default + + + Mini + + + Primary + Secondary + Danger + Light + Dark + + +``` diff --git a/core/src/components/fab-list/usage/angular.md b/core/src/components/fab-list/usage/angular.md new file mode 100644 index 0000000000..feb7aafeac --- /dev/null +++ b/core/src/components/fab-list/usage/angular.md @@ -0,0 +1,16 @@ +```html + + Share + + + Facebook + Twitter + Youtube + + + + Vimeo + + + +``` diff --git a/core/src/components/fab/usage/angular.md b/core/src/components/fab/usage/angular.md new file mode 100644 index 0000000000..3645f979ea --- /dev/null +++ b/core/src/components/fab/usage/angular.md @@ -0,0 +1,81 @@ +```html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/core/src/components/grid/usage/angular.md b/core/src/components/grid/usage/angular.md new file mode 100644 index 0000000000..310eb8d938 --- /dev/null +++ b/core/src/components/grid/usage/angular.md @@ -0,0 +1,179 @@ +```html + + + + ion-col + + + ion-col + + + ion-col + + + ion-col + + + + + + ion-col [size="6"] + + + ion-col + + + ion-col + + + + + + ion-col [size="3"] + + + ion-col + + + ion-col [size="3"] + + + + + + ion-col [size="3"] + + + ion-col [size="3"] [offset="3"] + + + + + + ion-col + + + ion-col +
# +
+ + ion-col +
# +
# +
+ + ion-col +
# +
# +
# +
+
+ + + + ion-col [start] + + + ion-col [center] + + + ion-col [end] + + + ion-col +
# +
# +
+
+ + + + [start] ion-col + + + [start] ion-col + + + [start] ion-col [end] + + + ion-col +
# +
# +
+
+ + + + [center] ion-col + + + [center] ion-col + + + [center] ion-col + + + ion-col +
# +
# +
+
+ + + + [end] ion-col + + + [end] ion-col [start] + + + [end] ion-col + + + ion-col +
# +
# +
+
+ + + + ion-col [size="12"] [size-sm] + + + ion-col [size="12"] [size-sm] + + + ion-col [size="12"] [size-sm] + + + ion-col [size="12"] [size-sm] + + + + + + ion-col [size="12"] [size-md] + + + ion-col [size="12"] [size-md] + + + ion-col [size="12"] [size-md] + + + ion-col [size="12"] [size-md] + + + + + + ion-col [size="6"] [size-lg] [offset="3"] + + + ion-col [size="3"] [size-lg] + + +
+``` \ No newline at end of file diff --git a/core/src/components/icon/usage/angular.md b/core/src/components/icon/usage/angular.md new file mode 100644 index 0000000000..97d37c9b7c --- /dev/null +++ b/core/src/components/icon/usage/angular.md @@ -0,0 +1,18 @@ +```html + + + + + + + + + + + + + + + + +``` diff --git a/core/src/components/icon/usage/javascript.md b/core/src/components/icon/usage/javascript.md index 8737eafdfe..97d37c9b7c 100644 --- a/core/src/components/icon/usage/javascript.md +++ b/core/src/components/icon/usage/javascript.md @@ -2,7 +2,7 @@ - + diff --git a/core/src/components/item-divider/usage/angular.md b/core/src/components/item-divider/usage/angular.md new file mode 100644 index 0000000000..0f5d7326fe --- /dev/null +++ b/core/src/components/item-divider/usage/angular.md @@ -0,0 +1,40 @@ +```html + + + Basic Item Divider + + + + + + Secondary Item Divider + + + + + + + + Section A + + + + A1 + A2 + A3 + A4 + A5 + + + + Section B + + + + B1 + B2 + B3 + B4 + B5 + +``` diff --git a/core/src/components/item-group/usage/angular.md b/core/src/components/item-group/usage/angular.md new file mode 100644 index 0000000000..48932bae80 --- /dev/null +++ b/core/src/components/item-group/usage/angular.md @@ -0,0 +1,103 @@ +```html + + + A + + + + Angola + + + Argentina + + + Armenia + + + + + + B + + + + Bangladesh + + + Belarus + + + Belgium + + + + + + + + + Fruits + + + + + + +

Grapes

+
+
+ + + Favorite + + +
+ + + + +

Apples

+
+
+ + + Favorite + + +
+
+ + + + + Vegetables + + + + + + +

Carrots

+
+
+ + + Favorite + + +
+ + + + +

Celery

+
+
+ + + Favorite + + +
+
+``` diff --git a/core/src/components/reorder/usage/angular.md b/core/src/components/reorder/usage/angular.md new file mode 100644 index 0000000000..be27939097 --- /dev/null +++ b/core/src/components/reorder/usage/angular.md @@ -0,0 +1,88 @@ +```html + + + + + + + Item 1 + + + + + + + Item 2 + + + + + + + Item 3 (default ion-reorder slot="start") + + + + + + + Item 4 (default ion-reorder slot="start") + + + + + + + Item 5 (custom ion-reorder) + + + + + + + + + Item 6 (custom ion-reorder) + + + + + + + + + Item 7 (custom ion-reorder slot="start") + + + + + + + + + + Item 8 (the whole item can be dragged) + + + + + + + + Item 9 (the whole item can be dragged) + + + + + + + + Item 10 (the whole item can be dragged) + + + + + + + +``` diff --git a/core/src/components/spinner/usage/angular.md b/core/src/components/spinner/usage/angular.md new file mode 100644 index 0000000000..058ba97b54 --- /dev/null +++ b/core/src/components/spinner/usage/angular.md @@ -0,0 +1,25 @@ +```html + + + + + + + + + + + + + + + + + + + + + + + +```