Skip to content

Instantly share code, notes, and snippets.

View Thanood's full-sized avatar

Daniel Bendel Thanood

  • Cologne, Germany
View GitHub Profile
@Thanood
Thanood / app.html
Last active October 9, 2017 18:28
Aurelia-Materialize bridge tabs select
<template>
<style>
div.tab-content {
padding: 10px;
}
</style>
<require from="./logger"></require>
<div class="row">
<ul md-tabs="on-show.call: onShow(element)" md-on-selected.delegate="onTabSelected($event)" class="z-depth-1">
@Thanood
Thanood / app.html
Created August 18, 2017 12:46
Aurelia-Materialize bridge modal options no id, v0.30.0
<template>
<div>
<div>
<p>This demonstrates a modal which is not closable by clicking the overlay, with some ridiculously long transition durations, changed opacity and positioning.</p>
<p>The following options are used:</p>
<code>
<pre>
{
dismissible: false,
in-duration: 1000,
@Thanood
Thanood / app.html
Created August 17, 2017 14:57 — forked from vbornand/app.html
Aurelia-Materialize bridge card actions
<template>
<div class="row">
<md-card class="col s4" md-title="Card title" md-actions="true">
<div>
This card has some actions.
</div>
<div slot="action">
<a href="#">This is a link 1</a>
<a href="#">This is a link 2</a>
</div>
@Thanood
Thanood / materialize.amd.js
Created July 19, 2017 05:19
Materialize AMD
// Required for Meteor package, the use of window prevents export by Meteor
(function(window){
if(window.Package){
Materialize = {};
} else {
window.Materialize = {};
}
})(window);
@Thanood
Thanood / app.html
Last active August 14, 2017 09:28
Aurelia-Materialize bridge sidenav events
<template>
<require from="./logger"></require>
<a md-sidenav-collapse="ref.bind: sideNav;" md-button md-waves>Toggle SideNav</a>
<div>
<logger class="z-depth-1" view-model.ref="logger"></logger>
</div>
<md-sidenav
md-on-sidenav-show.delegate="onShow($event)"
md-on-sidenav-hide.delegate="onHide($event)"
@Thanood
Thanood / app.html
Created July 4, 2017 12:31
Aurelia-Materialize bridge chips editor events
<template>
<require from="./logger"></require>
<div md-chips="data.bind: chips; placeholder:+tag;" change.delegate="logChange($event.detail)" selected.delegate="logSelect($event.detail)"></div>
<div>
<!-- chip data: ${chips|stringify} -->
chip data:
<ul>
<li repeat.for="chip of chips">
${chip.tag}
</li>
@Thanood
Thanood / app.html
Last active June 26, 2017 18:31
Aurelia-Materialize bridge timepicker basic use
<template>
<div>
<input md-timepicker="value.bind: 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>
@Thanood
Thanood / app.html
Created June 22, 2017 08:35 — forked from HIRANO-Satoshi/app.html
Aurelia-Materialize bridge RTL demo edited
<template>
<require from="./materialize_rtl.css"></require>
<div class="row">
<div class="col m6">
<p>Hello, world!</p>
</div>
<div class="col m6">
<md-checkbox md-checked.bind="true">check box example</md-checkbox>
</div>
<button md-button click.delegate="toggleDirection()">Toggle Direction</button>
@Thanood
Thanood / app.html
Created June 13, 2017 07:17
Aurelia-Materialize bridge tooltip 0.20.6
<template>
<div>
<a md-button md-tooltip="position: left; text: A am a tooltip;">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>
@Thanood
Thanood / app.html
Created June 1, 2017 21:15
Aurelia-Materialize bridge input fields binding button disabled
<template>
<require from="./au-input"></require>
<md-colors></md-colors>
<au-input label="A" value.bind="foo.a" percent.bind="foo.percent" salary.bind="foo.salary"></au-input>
<au-input label="B" value.bind="foo.b" percent.bind="foo.percent" salary.bind="foo.salary"></au-input>
<md-input md-label="Test" md-value.bind="foo.a & validate" md-validate="true"
md-validate-success="good">