fires before a segment is clicked
id | number|string | the id of the segment |
ev | Event | the click event object |
boolean | returns false, if the event handler returns false, returns true by default |
segmented.attachEvent("onBeforeTabClick", function(id,ev){
//code
});
Unlike the onItemClick event this one watches clicks over separate segments and passes the ID of a clicked segment into its handler.
You can block clicking by returning false from the event handler.