Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/polymer/paper-button/paper-button.ht ml"> | |
|
michaelpg
2015/04/23 02:16:29
import core-icon as well
stevenjb
2015/04/24 01:25:26
Done.
| |
| 3 | |
| 4 <polymer-element name="cr-expand-button"> | |
| 5 <template> | |
| 6 <paper-button id="expand" disabled="{{disabled}}" | |
|
michaelpg
2015/04/23 02:16:29
If there's no need to give the button an ID, let's
michaelpg
2015/04/23 02:16:29
paper-button (through CoreFocusable) has a "toggle
Jeremy Klein
2015/04/23 18:21:15
It seems like core-icon-button or paper-icon-butto
stevenjb
2015/04/24 01:25:26
paper-icon-button only has a single icon.
Using '
michaelpg
2015/04/24 19:35:37
Yeah, you have to click through the whole inherita
Jeremy Klein
2015/04/27 22:36:10
I'm not suggesting we get rid of this wrapper, jus
stevenjb
2015/04/28 01:05:02
Ah. Yes, that works, and we get a cute round hilig
| |
| 7 on-click="{{toggleExpanded}}"> | |
| 8 <core-icon icon="{{expanded ? 'expand-less' : 'expand-more'}}"> | |
| 9 </core-icon> | |
| 10 </paper-button> | |
| 11 </template> | |
| 12 <script src="cr_expand_button.js"></script> | |
| 13 </polymer-element> | |
| OLD | NEW |