dart - Setting the label of a paper-icon-button -
previous current paper-element release 0.6.., able following
<paper-icon-button id='add-btn' class='margin-l-t-r-2' label='language' icon='menu' on-click='{{toggle}}'> </paper-icon-button>
and button contain both icon , label. label not displayed, icon on button. appreciated in how can both label , icon on button.
yeah, has been different in polymerjs while now. they're starting things child elements more often, this:
<paper-button> <core-icon icon="favorite"></core-icon> label goes here </paper-button>
docs here: https://www.polymer-project.org/docs/elements/paper-elements.html#paper-button
note <paper-icon-button>
intended used icons. if want icon , label, <paper-button>
way go, per example.
Comments
Post a Comment