Skip to content

Instantly share code, notes, and snippets.

@oneillci
oneillci / app.html
Created May 8, 2019 23:38 — forked from bigopon/app.html
Converter signal
<template>
<require from='./value-converter'></require>
<require from='./clock.html'></require>
<div>
Change locale to
<div>
<button
repeat.for='locale of locales'
click.delegate='changeLocale(locale.locale)'>${locale.name}</button>
@oneillci
oneillci / app.html
Created October 15, 2017 22:00 — forked from JeroenVinke/app.html
Grid: detail template
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="pageable"
k-sortable.bind="true"
k-on-data-bound.delegate="onDataBound($event.detail)"
k-on-detail-init.delegate="detailInit($event.detail)">
@oneillci
oneillci / app.html
Last active October 15, 2017 22:00 — forked from JeroenVinke/app.html
Grid: detail template
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="pageable"
k-sortable.bind="true"
k-on-detail-init.delegate="detailInit($event.detail)">
<ak-col k-title="First Name" k-field="FirstName"></ak-col>
@oneillci
oneillci / TreeViewCustomAttribute.ts
Created March 22, 2017 21:13 — forked from seesharper/TreeViewCustomAttribute.ts
An Aurelia TreeView Custom Attribute Wrapper
import {inject, customAttribute, bindable} from 'aurelia-framework';
import 'jquery';
import 'npm:bootstrap-treeview@1.2.0/dist/bootstrap-treeview.min.js';
import {Test} from './treenode';
@customAttribute('treeview')
@inject(Element)
export class TreeViewCustomAttribute {
element: Element;
@oneillci
oneillci / app.html
Created March 16, 2016 13:49 — forked from opcodewriter/app.html
Aurelia If Bind test on template part
<template>
<require from="./click-to-edit"></require>
<click-to-edit>
<template replace-part='item-template'>
This text node is in DOM only after click
</template>
</click-to-edit>
</template>