Dart js.interop callbacks

Posted by basheps on Stack Overflow See other posts from Stack Overflow or by basheps
Published on 2012-11-04T22:58:02Z Indexed on 2012/11/04 22:59 UTC
Read the original article Hit count: 128

Filed under:
|

How can I translate the following jquery code to Dart? I'm having difficulty getting the alert callback to work using js.interop.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
  $(function () {
    $('p').hide('slow', function() {
      alert("The paragraph is now hidden");
    });
  });
</script>

Any help is appreciated.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dart