There is a CSS attribue ".tabs-closebutton" that create a close button
for tabs, The https://developer.mozilla.org/En/XUL/Tabs indicate that
it is possible to add new button by ".tabs-closebutton", but it
doesn't work, any idea?
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="data:text/css,
.tabs-closebutton {
list-style-image: url(http://mozilla.org/favicon.ico);
}
" type="text/css"?>
<window id="yourwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tabbox flex="1">
<tabs closebutton="true" onclosetab="alert('Close')" >
<tab label="one"/>
<tab label="one"/>
<tab label="one"/>
</tabs>
<tabpanels>
<box flex="1"/>
<box flex="1"/>
<box flex="1"/>
</tabpanels>
</tabbox>
</window>
When I put your code in the RealTime XUL Editor of the Extension Developer
Extension, it looks fine, no?
http://img690.imageshack.us/i/screenshot2nn.png/
Eric
Replace CSS part with this one:
.tabs-newbutton{
list-style-image: url(http://mozilla.org/favicon.ico);
}
https://developer.mozilla.org/En/XUL/Tabs indicates that new button
shoud work the same, but it doesnt!
Any idea?
On Dec 27, 5:17 pm, Eric Jung <eric.j...@yahoo.com> wrote:
> On Sun, Dec 27, 2009 at 3:33 PM, DjBoo <belav...@gmail.com> wrote:
> > Hi,
>
> > There is a CSS attribue ".tabs-closebutton" that create a close button
> > for tabs, Thehttps://developer.mozilla.org/En/XUL/Tabsindicate that
> Eric- Hide quoted text -
>
> - Show quoted text -
Please update the MDC doc accordingly if this works.
~ Gijs
My problem is that I can not even see the new tab button for Tabbox
when I add foregoing CSS, did you test it?