Documentation

onBeforeTabClick

fires before a segment is clicked

void onBeforeTabClick(){ ... };

Example

segmented.attachEvent("onBeforeTabClick", function(id, e){
    //code
});

Details

Unlike the onItemClick event this one watches clicks over separate tabs and passes the ID of a clicked tab into its handler.

See also

Back to top