Skip to content

Instantly share code, notes, and snippets.

View mar9000's full-sized avatar

Marco Lombardo mar9000

View GitHub Profile
@mar9000
mar9000 / app.html
Last active February 28, 2017 17:41
test named slot translation (aurelia-i18n #200)
<template>
<require from="materialize/dist/css/materialize.css"></require>
<require from="./named-slots"></require>
<!-- The following require is required as a workaround for last version of materializecss. -->
<div>
<p>
<md-checkbox md-checked.bind="checked">A default checkbox</md-checkbox> with value: ${checked | stringify}
@mar9000
mar9000 / app.html
Last active August 3, 2018 06:07
bad slot projection with i18n (aurelia-i18n #197)
<template>
<!-- The following require is required as a workaround for last version of materializecss. -->
<require from="materialize/dist/css/materialize.css"></require>
<div>
<p>
<md-checkbox md-checked.bind="checked">A default checkbox</md-checkbox> with value: ${checked | stringify}
</p>
<p>
<md-checkbox md-checked="false" md-disabled="true">A disabled checkbox</md-checkbox>
</p>
@mar9000
mar9000 / app.html
Last active February 23, 2017 12:56
aurelia-materialize-bridge: i18n for checkbox
<template>
<!-- The following require is required as a workaround for last version of materializecss. -->
<require from="materialize/dist/css/materialize.css"></require>
<div>
<p>
<md-checkbox md-checked.bind="checked">A default checkbox</md-checkbox> with value: ${checked | stringify}
</p>
<p>
<md-checkbox md-checked="false" md-disabled="true">A disabled checkbox</md-checkbox>
</p>
@mar9000
mar9000 / app.html
Last active April 3, 2017 16:06
aurelia-materialize-bridge: i18n for input
<template>
<!-- The following require is required as a workaround for last version of materializecss. -->
<require from="materialize/dist/css/materialize.css"></require>
<div>
<md-input md-label="put some text here" md-value.bind="textValue" md-disabled.bind="disabledValue"></md-input><br />
You entered: ${textValue}<br />
<button md-button="flat: true;" md-waves class="accent-text" click.delegate="setText()">set text to something</button>
<button md-button="flat: true;" md-waves class="accent-text" click.delegate="setDisabled()">Toggle Input Disabling</button>
</div>
@mar9000
mar9000 / app.html
Last active February 23, 2017 11:36 — forked from Thanood/app.html
aurelia-materialize-bridge: i18n for toast
<template>
<!-- The following require is required as a workaround for last version of materializecss. -->
<require from="materialize/dist/css/materialize.css"></require>
<div>
<p><a md-button click.trigger="showDefaultToast()">default toast</a></p>
<p style="margin-top: 5px;"><a md-button click.trigger="showToastWithPromise()">toast with callback</a></p>
<p style="margin-top: 5px;"><a md-button click.trigger="showStyledToast()">toast with style</a></p>
</div>
<!-- i18n support. -->