|
1 |
| -<section> |
2 |
| - <h2>Button elements</h2> |
3 |
| - <button md-button>check</button> |
4 |
| - <button md-raised-button>raised</button> |
5 |
| - <button md-fab aria-label="Activate floating action style button"> |
6 |
| - <md-icon class="md-24">check</md-icon> |
7 |
| - </button> |
8 |
| - <button md-mini-fab aria-label="Activate mini floating action style button"> |
9 |
| - <md-icon class="md-24">check</md-icon> |
10 |
| - </button> |
11 |
| - <button md-icon-button aria-label="Activate icon style button"> |
12 |
| - <md-icon class="md-24">check</md-icon> |
13 |
| - </button> |
14 |
| -</section> |
| 1 | +<div class="demo-button"> |
| 2 | + <section> |
| 3 | + <h2>Button elements</h2> |
| 4 | + <p>Click on the buttons to increase the button counter.</p> |
| 5 | + <p>Current number of clicks: {{counter}}</p> |
| 6 | + <button md-button (click)="increase()">Check</button> |
| 7 | + <button md-raised-button (click)="increase()">Pitch</button> |
| 8 | + <button md-fab (click)="increase()" |
| 9 | + aria-label="Activate floating action style button to increase the button counter"> |
| 10 | + <md-icon class="md-24">plus_one</md-icon> |
| 11 | + </button> |
| 12 | + <button md-mini-fab (click)="increase()" |
| 13 | + aria-label="Mini floating action button to increase the button counter by 1"> |
| 14 | + <md-icon class="md-24">plus_one</md-icon> |
| 15 | + </button> |
| 16 | + <button md-icon-button (click)="increase()" |
| 17 | + aria-label="Icon button to increase the button counter by 1"> |
| 18 | + <md-icon class="md-24">plus_one</md-icon> |
| 19 | + </button> |
| 20 | + </section> |
15 | 21 |
|
16 |
| -<section> |
17 |
| - <h2>Anchor elements</h2> |
18 |
| - <a href="http://www.google.com" md-button color="primary">Google search</a> |
19 |
| - <a href="http://www.google.com" md-raised-button>Google search</a> |
20 |
| - <a href="http://www.google.com" md-fab aria-label="Activate floating action style link"> |
21 |
| - <md-icon class="md-24">check</md-icon> |
22 |
| - </a> |
23 |
| - <a href="http://www.google.com" md-mini-fab aria-label="Activate mini floating action style link"> |
24 |
| - <md-icon class="md-24">check</md-icon> |
25 |
| - </a> |
26 |
| - <a md-icon-button aria-label="Activate icon style link"> |
27 |
| - <md-icon class="md-24">check</md-icon> |
28 |
| - </a> |
29 |
| -</section> |
| 22 | + <section> |
| 23 | + <h2>Anchor elements</h2> |
| 24 | + <a href="http://www.google.com" md-button color="primary">Google search</a> |
| 25 | + <a href="https://www.youtube.com/" md-raised-button>YouTube</a> |
| 26 | + <a href="http://www.google.com" md-fab |
| 27 | + aria-label="Activate floating action style google search link"> |
| 28 | + <md-icon class="md-24">search</md-icon> |
| 29 | + </a> |
| 30 | + <a href="http://www.google.com" md-mini-fab |
| 31 | + aria-label="Activate mini floating action style google search link"> |
| 32 | + <md-icon class="md-24">search</md-icon> |
| 33 | + </a> |
| 34 | + <a href="http://www.google.com" md-icon-button |
| 35 | + aria-label="Activate icon style google search link"> |
| 36 | + <md-icon class="md-24">search</md-icon> |
| 37 | + </a> |
| 38 | + </section> |
| 39 | + |
| 40 | + <section> |
| 41 | + <h2>Buttons in different colors</h2> |
| 42 | + <button md-button color="primary">Primary</button> |
| 43 | + <button md-button color="accent">Accent</button> |
| 44 | + <button md-button color="warn">Warn</button> |
| 45 | + </section> |
| 46 | + |
| 47 | + <section> |
| 48 | + <h2>Disabled button</h2> |
| 49 | + <p>The following "cancel" button is disabled</p> |
| 50 | + <button md-button [disabled]="true">Cancel</button> |
| 51 | + </section> |
| 52 | +</div> |
0 commit comments