YUI().use('console', 'dd-plugin', function(Y) { var console1 = new Y.Console({collapsed: true}); console1.plug(Y.Plugin.Drag); console1.before("entry", function(e){ if(!confirm("Do you really want to add the msg: "+e.message.message+" ? ")) { alert("preventing"); e.preventDefault(); } }); console1.render(); console1.log("using Console.log()", "info", "myapp"); });@author sg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|