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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -