I have a tab view and want to double-click on a tab to close it.
The code below should log when the double-click happens, in console.log, but
doesn't.
What am I doing wrong?
Thanks!
Scott
this.__mapTabView = new qx.ui.tabview.TabView();
this.__mapTab = this._createMapTab ("Map");
this.__mapTabView.add(this.__mapTab);
// Add MapTab to right side of splitpane
this.__horizontalSplitPane.add(this.__mapTabView, 1);
var that = this;
this.__mapTab.addListener("dblclick", // I tried this in __mapTab and
__mapTabView. Same result.
function (e) {
console.log("double click on tab");
var tabItem = e.getTarget();
that.__mapTabView.remove(tabItem);
}
,this);
_createMapTab : function(label) {
var __mapPage = new qx.ui.tabview.Page(label);
__mapPage.setLayout(new qx.ui.layout.VBox());
var __googleMap = new test1.GoogleMap();
var __mapContainer = new qx.ui.container.Composite();
__mapContainer.setLayout(new qx.ui.layout.Basic());
__mapContainer.add(__googleMap);
__mapPage.add(__mapContainer);
return __mapPage;
},
The content of this email does not necessarily represent the views/opinions of
my employer, Masco Corporation. If you are not the intended recipient of this
email, please let me know since that means it got to you in error. Please
delete it from your computer system since it may contain privileged or
confidential information intended for someone else.
Masco does its best to eliminate viruses and other malicious software in emails
and attachments coming through its servers and so cannot be held responsible if
malicious software is inadvertently imbedded in this communication.------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel