Prevent row click event in YUI Datatable -
i have yui data table. when click on row of data table, there alert box.
vtgttbl.on('rowclickevent',function(oargs){ alert("a"); }
i have checkbox. want when checkbox true row click work, , not when false. there method in yui attach , detach these events
within rowclick event handler callback can add check checkbox in following way
vtgttbl.on('rowclickevent',function(oargs){ var checkboxnode = y.one('#checkboxid'); if (checkboxnode.checked) { alert("a"); } }
hope solves problem.
Comments
Post a Comment