Last active
June 26, 2017 18:31
-
-
Save Thanood/dbc68795d93a7b32e90c898a068a1b67 to your computer and use it in GitHub Desktop.
Revisions
-
Thanood revised this gist
Jun 26, 2017 . 1 changed file with 0 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +0,0 @@ -
Thanood revised this gist
Jun 26, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <template> <div> <input md-timepicker="value.bind: time;" placeholder="pick a date" /> </div> <div> <button md-button click.delegate="setTime()">set time</button> -
Thanood revised this gist
Jun 26, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ <template> <div> <input md-timepicker value.two-way="time" placeholder="pick a date" /> </div> <div> <button md-button click.delegate="setTime()">set time</button> </div> <div> <span if.bind="time">You selected: ${time | stringify}</span> </div> </template> -
Thanood revised this gist
Jun 26, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,6 @@ <button md-button click.delegate="setTime()">set time</button> </div> <div> <span if.bind="time">You selected (UTC time): ${time | stringify}</span> </div> </template> -
Thanood revised this gist
Jun 26, 2017 . 2 changed files with 4 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <template> <div> <input md-timepicker value.bind="time" placeholder="pick a date" /> </div> <div> <button md-button click.delegate="setTime()">set time</button> 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,7 @@ export class App { time = null; setTime() { this.time = "07:13"; } } -
Thanood revised this gist
Jun 26, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <template> <div> <input md-timepicker placeholder="pick a date" /> </div> <div> <button md-button click.delegate="setTime()">set time</button> -
Thanood created this gist
Jun 26, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #### tab targetting To enable the datepicker to become a valid tab target (as in: responds to the correct tab order), set the container to be the parent of the datepicker input. Like this: ```js <div ref="dpWrapper"> <input md-datepicker="container.bind: dpWrapper; value.two-way: selectedDate;" type="date" placeholder="pick a date" /> </div> ``` 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <template> <div> <input md-timepicker type="date" placeholder="pick a date" /> </div> <div> <button md-button click.delegate="setTime()">set time</button> </div> <div> <span if.bind="selectedTime">You selected (UTC time): ${selectedTime | stringify}</span> </div> </template> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ export class App { selectedDate = null; setDate() { let date = new Date(); this.selectedDate = date; } } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <!doctype html> <html> <head> <title>Aurelia</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body aurelia-app="main"> <h1>Loading...</h1> <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js"></script> <script src="https://rawgit.com/aurelia-ui-toolkits/aurelia-materialize-bundles/0.20.2/config2.js"></script> <script> System.import('aurelia-bootstrapper'); </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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ /******************************************************************************* * The following two lines enable async/await without using babel's * "runtime" transformer. Uncomment the lines if you intend to use async/await. * * More info here: https://github.com/jdanyow/aurelia-plunker/issues/2 */ //import regeneratorRuntime from 'babel-runtime/regenerator'; //window.regeneratorRuntime = regeneratorRuntime; /******************************************************************************/ import 'materialize'; export function configure(aurelia) { aurelia.use .standardConfiguration() .developmentLogging() .plugin('aurelia-materialize-bridge', bridge => bridge.useAll() ); aurelia.start().then(a => a.setRoot()); }