on_dblclick

attaches a dblclick behavior for component items with the specified CSS class

EventHash on_dblclick;

Example

webix.protoUI({
    name:"mylist",
    defaults:{
        template:"#value# <div class='webix_remove_upload'>Del</div>"
    },
    on_dblclick:{
        "webix_remove_upload":function(ev, id){
              this.remove(id);
        }
    }
}, webix.ui.list);

Details
  • "on_dblclick" behavior is defined for component items rather than for the whole component
  • Use the 'onItemDblClick' handler to attach function to item clicking regardless of the CSS class;
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of javascript menu library product.