Skip to content

Instantly share code, notes, and snippets.

@MaximBalaganskiy
Last active December 16, 2018 23:12
Show Gist options
  • Select an option

  • Save MaximBalaganskiy/7e2dfce48cc23c62a5545a7328b1b87f to your computer and use it in GitHub Desktop.

Select an option

Save MaximBalaganskiy/7e2dfce48cc23c62a5545a7328b1b87f to your computer and use it in GitHub Desktop.
tooltip
<!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>
<template>
<div>
<a md-button md-tooltip="position: left; text.bind: text;">on the left</a>
<a md-button md-tooltip="position: top; text: A am a tooltip;">on the top</a>
<a md-button md-tooltip="position: bottom; text: A am a tooltip;">on the bottom</a>
<a md-button md-tooltip="position: right; text: A am a tooltip;">on the right</a>
</div>
</template>
export class App {
text = "tyest";
}
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