View Full Version : Toolbar buttons with close ability?

23 Jun 2010, 6:53 AM
Hi folks... I wanted to see if anyone had done this already and was willing to share before I put in the time to code it myself, or open a feature request...

Has anyone create a toolbar with buttons that have a little close icon (an X usually) that, when clicked, calls a callback function and, it if returns true, the button is removed from the toolbar?

I have an app where multiple accounts can be opened and we previously were using another library and I'm not converting it to ExtJS and this is one feature we need. It's probably not a huge effort to do it myself, but I figured if it was available somewhere already that would be great. I looked around a bit and didn't see anything, either as built-in functionality or as an extension.