Last active
August 29, 2015 14:02
-
-
Save jmafc/800a0c05fc2d2fd71e91 to your computer and use it in GitHub Desktop.
hello_component - update http://smalljs.org/package-managers/component-part-1/ to work with [email protected]
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
{ | |
"name": "hello_component", | |
"dependencies": { | |
"component/dialog": "~0.2.0" | |
}, | |
"scripts": ["index.js"] | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Hello Dialog</title> | |
<link href="build/build.css" rel="stylesheet"> | |
</head> | |
<body> | |
<h1>Hello Dialog</h1> | |
<button onclick="openDialog()">Open</button> | |
<script src="build/build.js"></script> | |
<script>var openDialog = require("hello_component");</script> | |
</body> | |
</html> |
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
var Dialog = require('dialog'); | |
module.exports = function () { | |
var dialog = new Dialog('Hello World', 'Welcome human!') | |
.closable() | |
.modal(); | |
dialog.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@timaschew That is the intended behavior, as per the original post.