Skip to content

Commit

Permalink
docs(demos): update demos to use ion-grid
Browse files Browse the repository at this point in the history
references #6238
  • Loading branch information
brandyscarney committed Apr 26, 2016
1 parent a0c0228 commit 6f525d1
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 77 deletions.
50 changes: 26 additions & 24 deletions demos/hide-when/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,32 @@
<h5 margin>Hide Icon Per Platform</h5>
<p margin>In this example we're using the <code>hideWhen</code> directive to decide whether to hide an icon based on the platform.</p>

<ion-row>
<ion-col text-center>
<ion-icon name="logo-apple" hideWhen="android,windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-apple" hideWhen="android,windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-android" hideWhen="ios,windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-android" hideWhen="ios,windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-windows" hideWhen="ios,android"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-windows" hideWhen="ios,android"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-grid>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-apple" hideWhen="android,windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-apple" hideWhen="android,windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-android" hideWhen="ios,windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-android" hideWhen="ios,windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-windows" hideWhen="ios,android"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-windows" hideWhen="ios,android"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>

<style>
Expand Down
1 change: 0 additions & 1 deletion demos/icon/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

.icon-demo ion-row {
height: 100%;
padding: 0;
flex-wrap: wrap;
}

Expand Down
58 changes: 30 additions & 28 deletions demos/platform/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,36 @@
<ion-content class="platform-demo">
<p margin class="note">Change devices to see the platform values change.</p>

<ion-row>
<ion-col><b>Name</b></ion-col>
<ion-col><b>Value</b></ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('ios')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isIos ? 'platform-true' : 'platform-false'">{{isIos}}</pre>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('android')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isAndroid ? 'platform-true' : 'platform-false'">{{isAndroid}}</pre>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('windows')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isWindows ? 'platform-true' : 'platform-false'">{{isWindows}}</pre>
</ion-col>
</ion-row>
<ion-grid>
<ion-row>
<ion-col><b>Name</b></ion-col>
<ion-col><b>Value</b></ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('ios')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isIos ? 'platform-true' : 'platform-false'">{{isIos}}</pre>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('android')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isAndroid ? 'platform-true' : 'platform-false'">{{isAndroid}}</pre>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<pre>platform.is('windows')</pre>
</ion-col>
<ion-col>
<pre [ngClass]="isWindows ? 'platform-true' : 'platform-false'">{{isWindows}}</pre>
</ion-col>
</ion-row>
</ion-grid>

</ion-content>

Expand Down
50 changes: 26 additions & 24 deletions demos/show-when/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,32 @@
<h5 margin>Show Icon Per Platform</h5>
<p margin>In this example we're using the <code>showWhen</code> directive to decide whether to show an icon based on the platform.</p>

<ion-row>
<ion-col text-center>
<ion-icon name="logo-apple" showWhen="ios"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-apple" showWhen="ios"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-android" showWhen="android"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-android" showWhen="android"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-windows" showWhen="windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-windows" showWhen="windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-grid>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-apple" showWhen="ios"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-apple" showWhen="ios"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-android" showWhen="android"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-android" showWhen="android"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
<ion-row>
<ion-col text-center>
<ion-icon name="logo-windows" showWhen="windows"></ion-icon>
</ion-col>
<ion-col>
<code> &lt;ion-icon name="logo-windows" showWhen="windows"&gt;&lt;/ion-icon&gt; </code>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>

<style>
Expand Down

0 comments on commit 6f525d1

Please sign in to comment.