Created
April 23, 2014 08:02
-
-
Save Nav4e/11206322 to your computer and use it in GitHub Desktop.
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
| /* Put your CSS here */ | |
| html, body { | |
| margin: 20px; | |
| font-size:0.5em; | |
| } |
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> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.common.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.rtl.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.default.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
| <script src="http://cdn.kendostatic.com/2013.2.716/js/kendo.all.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>Ember Starter Kit</title> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css"> | |
| <script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script> | |
| <script src="http://builds.emberjs.com/tags/v1.5.0/ember.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/x-handlebars" data-template-name='components/x-combobox'> | |
| {{yield}} | |
| </script> | |
| <script type="text/x-handlebars" data-template-name='components/x-datepicker'> | |
| </script> | |
| <script type="text/x-handlebars"> | |
| <h2> Welcome to Ember.js</h2> | |
| {{outlet}} | |
| </script> | |
| <script type="text/x-handlebars" data-template-name="index"> | |
| <ul> | |
| {{#each item in model}} | |
| <li>{{item}}</li> | |
| {{/each}} | |
| </ul> | |
| {{x-datepicker value='2011-11-11'}} | |
| {{#x-combobox conf=conf}} | |
| <select id="size" placeholder="Select size..."> | |
| <option>X-Small</option> | |
| <option>Small</option> | |
| <option>Medium</option> | |
| <option>Large</option> | |
| <option>X-Large</option> | |
| <option>2X-Large</option> | |
| </select> | |
| {{/x-combobox}} | |
| </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
| App = Ember.Application.create(); | |
| App.Router.map(function() { | |
| // put your routes here | |
| }); | |
| App.IndexRoute = Ember.Route.extend({ | |
| model: function() { | |
| return ['red', 'yellow', 'blue']; | |
| } | |
| }); | |
| App.XComboboxComponent=Ember.Component.extend({ | |
| _transitionToCombobox:function(){ | |
| //todo wrap on the afterRender stack | |
| this.$('select').kendoComboBox(); | |
| }.on('didInsertElement') | |
| }); | |
| App.XDatepickerComponent=Ember.Component.extend({ | |
| tagName:'input', | |
| _transitionToDatePicker:function(){ | |
| this.$().kendoDatePicker(); | |
| }.on('didInsertElement') | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment