Created
March 21, 2014 16:27
-
-
Save anonymous/9690052 to your computer and use it in GitHub Desktop.
title
This file contains 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> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>MFiddle</title> | |
<script type="text/montage-serialization">{ | |
"owner": { | |
"properties": { | |
"element": {"#": "component"} | |
} | |
}, | |
"toggle": { | |
"prototype": "digit/ui/checkbox.reel", | |
"properties": { | |
"element": {"#": "toggle"}, | |
"checked": true | |
} | |
}, | |
"hideBlockCondition": { | |
"prototype": "montage/ui/condition.reel", | |
"properties": { | |
"element": {"#": "block"} | |
}, | |
"bindings": { | |
"condition": {"<-": "@toggle.checked"} | |
} | |
} | |
}</script></head> | |
<body> | |
<div data-montage-id="component"> | |
<label><input type="checkbox" data-montage-id="toggle">Show</label> | |
<div data-montage-id="block"> | |
<h2>Hello, it's just me.</h2> | |
<h2>Am I the one you're looking for?</h2> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains 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 Component = require("montage/ui/component").Component; | |
exports.Owner = Component.specialize({ | |
}); |
This file contains 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
{"version":1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment