Created
January 16, 2016 12:54
-
-
Save andyli/0522bc0213a2e1cd3571 to your computer and use it in GitHub Desktop.
Demo extern of jQuery Impromptu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@:native("$.prompt") | |
extern class Impromptu { | |
@:selfCall // @:selfCall avoid generation of `new` | |
public function new(msg:Dynamic, ?options:Dynamic):Void; | |
static public function setDefaults(options:Dynamic):Void; | |
static public function open(states:Dynamic, ?options:Dynamic):Impromptu; | |
} | |
class Test { | |
static function main():Void { | |
var prompt = new Impromptu("test"); // var prompt = $.prompt("test"); | |
Impromptu.setDefaults({opacity:1.0}); // $.prompt.setDefaults({ opacity : 1.0}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment