How to change the dimension for a button in Sencha Touch
-
29-06-2021 - |
Pergunta
I have this button in Sencha Touch 2, I would need to resize to "small"I need change its height. Could you please provide me a sample of code? thanks
navigationBar: {
items:[{
xtype: 'button',
text: 'Settings',
itemId: 'settingsButton',
align: 'right',
iconMask: true,
iconCls: 'settings9'
}],
ui: 'custom-toolbar-top-1L'
},
Solução
Good practice to do this with css, or more precise with Sencha Theming.
Start point to your question is Sencha Kitchen sink samples
In short you have to add ui: 'small' to button's configuration
Cheers, Oleg
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow