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 24, 2016 15:38
Aurelia-Materialize bridge select and datepicker issue #301
<template>
<require from="materialize/dist/css/materialize.css"></require>
<require from="./my-form"></require>
<my-form></my-form>
</template>
@Thanood
Thanood / app.html
Created October 24, 2016 16:55 — forked from niedarek/app.html
Aurelia-Materialize carousel -> md-slider="true" error
<template>
<require from="materialize/dist/css/materialize.css"></require>
<h5>when md-slider is set to "true" nothing happen and in console log you can find errors. When md-slider i set to "false" everthing is ok. </h5>
<md-carousel md-indicators="false" md-slider="true" class="center" style="height: 600px;">
<md-carousel-item class="red white-text" style="background-color: #f99cb1;width: 80%">
<h2>SOME BOOKS <br/>
@Thanood
Thanood / app.html
Created October 26, 2016 16:06
Aurelia-Materialize theming
<template>
<require from="materialize/dist/css/materialize.css"></require>
<md-colors md-primary-color.bind="primaryColor" md-accent-color.bind="accentColor"></md-colors>
<div>
<md-pagination md-pages="6" md-active-page.bind="activePage"></md-pagination>
</div>
<div>
active page: ${activePage}
</div>
<button md-button md-waves="color: light;" click.delegate="setToFive()">set to 5</button>
@Thanood
Thanood / app.html
Created November 2, 2016 18:35
Aurelia-Materialize bridge time input
<template>
<require from="materialize/dist/css/materialize.css"></require>
<div>
<md-input md-type="time" md-label="start time" md-value.bind="startTime"></md-input>
</div>
</template>
@Thanood
Thanood / app.html
Created November 4, 2016 10:09
md-label on md-input not rendered good in mobile
<template>
<require from="materialize/dist/css/materialize.css"></require>
<require from="./my-form"></require>
<my-form></my-form>
</template>
@Thanood
Thanood / app.html
Last active November 4, 2016 11:44
Aurelia-Materialize bridge inline input field
<template>
<style>
md-input.inline .input-field {
display: inline-block;
vertical-align: middle;
margin-left: 5px;
}
</style>
<require from="materialize/dist/css/materialize.css"></require>
<div>
@Thanood
Thanood / app.html
Created November 16, 2016 06:23
Aurelia repeat refs
<template>
<require from="./fake-id"></require>
<h1>${message}</h1>
<div repeat.for="c of 20">
<span fake-id="ref.bind: referenced">${c}</span>
<span ref="referenced">${c}</span>
</div>
</template>
@Thanood
Thanood / app.html
Created November 26, 2016 17:11 — forked from jdanyow/app.html
Aurelia Accessible Autocomplete with Filtering
<template>
<require from="./autocomplete"></require>
<form>
<label class="form-component">
Country:<br/>
<autocomplete service.bind="suggestionService.country"
value.bind="model.country"
placeholder="Enter country..."
change.delegate="model.city = null">
</autocomplete>
@Thanood
Thanood / app.html
Created November 28, 2016 16:13
Aurelia-Materialize bridge disabled waves
<template>
<require from="materialize/dist/css/materialize.css"></require>
<button md-button md-waves disabled.bind="isDisabled">set to 5</button>
<button md-button md-waves click.delegate="toggleDisabled()">disable</button>
</template>
@Thanood
Thanood / app.html
Created November 28, 2016 20:38
Aurelia-Materialize bridge button basic use
<template>
<style>
div.button-row {
padding: 5px 0;
}
</style>
<div>
<div class="button-row">
<button md-button="disabled.bind: !firstButtonEnabled; flat.bind: !firstButtonRaised"><i class="left material-icons">mode_edit</i>I'm a basic button</button>
<button md-button="flat: true;">I'm a flat button</button>