docs(button): update example code to match image (#801)

This commit is contained in:
Jesper Håkansson
2016-07-04 22:23:35 +02:00
committed by Kara
parent cbf3b6b0b0
commit 4e9f74604b
+5 -4
View File
@@ -80,12 +80,13 @@ Output:
### Disabling
You can disable any button type through the native `disabled` property. You can add it directly, or bind it to a property on your
component class.
component class by adding `[disabled]="isDisabled"` given that the `isDisabled`
property exists.
```html
<button md-button disabled>off</button>
<button md-raised-button [disabled]="isDisabled">off</button>
<button md-mini-fab [disabled]="isDisabled">check circle</button>
<button md-button disabled>OFF</button>
<button md-raised-button [disabled]="isDisabled">OFF</button>
<button md-mini-fab [disabled]="isDisabled"><md-icon>check</md-icon></button>
```
Output: