Skip to content

Commit

Permalink
Start a new example
Browse files Browse the repository at this point in the history
  • Loading branch information
sartak committed Feb 27, 2013
1 parent 80aab93 commit 39c4077
Show file tree
Hide file tree
Showing 6 changed files with 6,208 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/002-templates/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
padding: 1em !important;
}
19 changes: 19 additions & 0 deletions examples/002-templates/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Oryx ♥ Sales</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="app.css">
</head>
<body>
</body>

<script src="../../shared/jquery.js"></script>
<script src="app.js"></script>
<script type="text/javascript">
$(document).ready(function () {
new OrderController().bind();
});
</script>
</html>
28 changes: 28 additions & 0 deletions examples/002-templates/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/// <reference path="../../shared/jquery.d.ts" />
/// <reference path="../../lib/Oryx.ts" />

class OrderController {

public view = Oryx.UI.Panel.inflate({
outlets : {
},
actions : {
}
});

public table = new Oryx.UI.DataTable ({
table_body : 'tbody',
row_selector : 'tr',
binding_spec : {
}
});

constructor() {
}

bind() {
this.view.set_responder( this );
// this.table.set_data_source( this.order.get("products") );
}

}
Loading

0 comments on commit 39c4077

Please sign in to comment.