I have a button:
{
xtype:'button',
text:'2',
ui: 'orange',
style: 'font-size:14px;',
height:20
}
I want the text of the button to be loaded dynamically depending on the number of priority values in the store.
If the priority value is 0 for ten values i want the button text as 10. Can anyone help me regarding this?
You need to use
setText()method ofExt.Button. That will dynamically set thetextfor your button.First, set the
idproperty on your buttonThen do like this,
*
validConditionis the condition that you want to set before changing the text.