Skip to content

Commit

Permalink
Expose the 'disabled' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ankon committed Aug 1, 2016
1 parent abeb0b2 commit eaa8c4b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion paper-bottom-sheet-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
```html
<paper-bottom-sheet-item text="Star" icon="icons:star-border" on-tap="star"></paper-bottom-sheet-item>
<paper-bottom-sheet-item text="Delete" icon="icons:delete" warning on-tap="delete"></paper-bottom-sheet-item>
<paper-bottom-sheet-item text="Fullscreen" icon="icons:fullscreen" disabled"></paper-bottom-sheet-item>
```
Expand All @@ -42,7 +43,7 @@
}
</style>

<paper-icon-item class="item">
<paper-icon-item class="item" disabled$="[[disabled]]">
<paper-ripple fit></paper-ripple>
<iron-icon icon="[[icon]]" item-icon></iron-icon>
<span>[[text]]</span>
Expand Down Expand Up @@ -78,6 +79,15 @@
type: Boolean,
value: false,
reflectToAttribute: true
},

/**
* True if the item is disabled
*/
disabled: {
type: Boolean,
value: false,
reflectToAttribute: true
}
}
});
Expand Down

0 comments on commit eaa8c4b

Please sign in to comment.