Tabs.Options.create().tabTemplate("<li><a href=\"#{href}\">#{label}</a> <span class=\"ui-icon ui-icon-close\">Remove Tab</span></li>")) //
.bind(Tabs.Event.add, new Function() {
@Override
public boolean f(Event e, Object data) {
final Tabs.Event event = ((JavaScriptObject) data).cast();
String tab_content = tab_content_input.val();
if(tab_content == null || tab_content.isEmpty()) {
tab_content = "Tab " + tab_counter + " content.";
}
$(event.panel()).append("<p>" + tab_content + "</p>");