Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (49 sloc) 1.071 kB
<!DOCTYPE html>
<html>
<head>
<title>Sample App</title>
<script src="src/lib/curl.js"></script>
<script>
var config = {
baseUrl: "src",
paths: {
"curl": "lib/curl.js",
},
preloads: [
"src/lib/polyfills"
]
};
curl(config, [
"lib/jquery",
"lib/jquery-nohtml",
"ui/stack/stack",
"ui/card/card",
"ui/button/button",
"ui/abstractwidget/abstractwidget",
"ui/fields/textfield",
"lib/model",
"link!app.css" ]
).then(function( $, create, Stack, Card, Button, AbstractWidget, TextField, Model ) {
var App = AbstractWidget.extend({
init: function() {
var stack = new Stack({ parent: "body" });
var model = window.model = new Model({
data: {
value1: "oh yeh!"
}
});
stack.push(new Card({
title: "Field Test",
children: [
new TextField({ id: "test", model: model, modelField: "value1" }),
new Button({ id: "button", label: "Validate" })
]
}));
}
});
new App({});
});
</script>
</head>
<body></body>
</html>
Jump to Line
Something went wrong with that request. Please try again.