forum

Home / DeveloperSection / Forums / Extjs - How to set items margins and paddings?

Extjs - How to set items margins and paddings?

Anonymous User 2827 04-May-2016
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.

Updated on 13-May-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By