Module Dialog Example

#foo

  • alert (Try window.alert)

    module.alert("Hello World!");
  • confirm (Try window.confirm)

    module.confirm("Are you sure?", function (result) {
        module.log(result);
    });
  • confirm (custom)

    var attr = {
        title: "Please make sure",
        content: "Are you sure to delete these files?"
    };
    module.confirm(attr, function (result) {
        module.log(result);
    });

#bar

A module with dialog:true config attribute.

You can put anything here.