EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on January 07, 2012, 03:01:32 AM



Title: How to apply "overflow:hidden" style to dinamically created Tab?
Post by: mzeddd on January 07, 2012, 03:01:32 AM
Question in the subject.

I think it should look like in code below but with some updates :)
Code:
$('#myTab').tabs('add',{
    title:title,
    href:address,
    closable:true,
    style:[{overflow:'hidden'}]
});

Thanks


Title: Re: How to apply "overflow:hidden" style to dinamically created Tab?
Post by: stworthy on January 08, 2012, 07:15:45 PM
Define the hidden class that will be apply to the panel body:

.hidden{
   overflow:hidden;
}

Code:
$('#myTab').tabs('add',{
    title:title,
    href:address,
    closable:true,
    bodyCls:'hidden'
});