Created
August 2, 2018 01:57
-
-
Save MaximBalaganskiy/910efa35c1ceb85376aff4dcb1694bd2 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div aurelia-app="src/configure"> | |
| Loading... | |
| </div> | |
| <script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm_packages/system.js"></script> | |
| <script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm.config.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 characters
| <template> | |
| <!--<require from="materialize/dist/css/materialize.css"></require>--> | |
| <div> | |
| <div class="fixed-action-btn" style="bottom: 45px; right: 24px;"> | |
| <a ref="tap" md-button="floating: true; large: true;" md-waves="color: light; circle: true;"> | |
| <i class="large material-icons">mode_edit</i> | |
| </a> | |
| </div> | |
| <md-tap-target ref.bind="tap" view-model.ref="tapTarget"> | |
| <h5>I'm here!</h5> | |
| I am here | |
| <p> | |
| Provide value and encourage return visits by introducing users to new features and functionality at contextually relevant moments. | |
| </p> | |
| </md-tap-target> | |
| </div> | |
| <div> | |
| <button md-button click.delegate="openTapTarget()">open tap target</button> | |
| <button md-button click.delegate="closeTapTarget()">close tap target</button> | |
| </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 characters
| import { MdTapTarget } from "aurelia-materialize-bridge"; | |
| export class App { | |
| tapTarget: MdTapTarget; | |
| openTapTarget() { | |
| this.tapTarget.open(); | |
| } | |
| closeTapTarget() { | |
| this.tapTarget.close(); | |
| } | |
| } |
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
| export async function configure(aurelia) { | |
| await aurelia.loader.loadModule("materialize-css"); | |
| aurelia.use | |
| .standardConfiguration() | |
| .developmentLogging() | |
| .plugin("aurelia-materialize-bridge", bridge => bridge.useAll()) | |
| .plugin("aurelia-validation") | |
| .globalResources("src/shared/logger"); | |
| await aurelia.start(); | |
| aurelia.setRoot("src/app"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment