Gihan Lasita
Gihan Lasita

Reputation: 3053

How to show a link with Extjs 4?

This is the href i have set to display none

<a href="#" target="_self" alt="" id="company"><div></div></a>

#company div {
    position: relative;
    width: 450px;
    height: 50px;
    background-image: url(../images/logo.gif);
    background-repeat: no-repeat;
    display: none;
}

i want to show this with extjs once the application is loaded.

so i try something like this but doesnt seems to work

var el = Ext.get('company');
el.show();

any idea how to show this once needed?

Regards

solved: by removing display: none; from this and added display: none; to

#company{
display: none;
}

Upvotes: 2

Views: 902

Answers (1)

Gihan Lasita
Gihan Lasita

Reputation: 3053

Remove display: none; from current css

and add display none to the href instead of div

#company{
display: none;
}

then with extjs call below line when you want to display link

Ext.get('company').show();

Upvotes: 1

Related Questions