Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

extjs buttons in toolbar appearance

Hey, i have a small question really but something i cant seem to find out.

when i place a button in a extjs toolbar, it appears with a default apperance (like any windows toolbar options)

how do i make it look like a button in a form ??

like image 631
GumaTerror Avatar asked Oct 13 '10 13:10

GumaTerror


2 Answers

Try like this :

tbar: [
  { xtype: 'button', text: 'Button 1', cls:'x-btn-default-small' }
]
like image 91
fakelbst Avatar answered Sep 18 '22 16:09

fakelbst


You have to wrap it in a panel, here is solution for Extjs 4.2.5

{
    xtype: 'panel',
    items: {
        xtype: 'button',
        text : 'My button'
    }
}
like image 20
Yuriy Kvartsyanyy Avatar answered Sep 22 '22 16:09

Yuriy Kvartsyanyy