Duleep
Duleep

Reputation: 587

How to add border for Container in ExtJS

I have Container look like below. I want to add border for this Container like text box border please help to add border for the Container.

MyContainer13Ui = Ext.extend(Ext.Container, {
    flex: 1,
    width: 500,
    height: 22,
    activeItem: 0,
    id: 'url',
    initComponent: function() {
        MyContainer13Ui.superclass.initComponent.call(this);
    }
});

Upvotes: 3

Views: 17928

Answers (1)

Sasha Brocato
Sasha Brocato

Reputation: 673

If you can't just set border: true in the configuration, try this:

 MyContainer13Ui = Ext.extend(Ext.Container, {
    flex: 1,
    width: 500,
    height: 22,
    border: 1,
    style: {
       borderColor: 'black',
       borderStyle: 'solid'
    },
    activeItem: 0,
    id: 'url',
    initComponent: function() {
        MyContainer13Ui.superclass.initComponent.call(this);
    }
});

Upvotes: 7

Related Questions