I am new in ExtJS environment. My problem is how can I set magins and paddings in our form.
Below I have provided my code: I have created a panel with some items :
{
xtype: 'panel',
margin: '20px;' // this margin is not working for me
items: [
{
boxLabel: 'First Check',
xtype: 'checkbox'
}, {
boxLabel: 'Second Check',
xtype: 'checkbox'
}]
}
I tried using margins and padding but none of them is working for me.
Please provide me the solution.
Thank you.
Tarun Kumar
13-May-2016{I hope it will be helpful for you.xtype: 'panel',
bodyStyle: 'margin: 10px; padding: 10px 5px;',
items: [
{
boxLabel: 'First Check',
xtype: 'checkbox'
}, {
boxLabel: 'Second Check',
xtype: 'checkbox'
}]
}