Skip to content

Instantly share code, notes, and snippets.

View vegarringdal's full-sized avatar
💭
Having fun with lit-html

Vegar Ringdal vegarringdal

💭
Having fun with lit-html
View GitHub Profile
import {inject, customAttribute} from 'aurelia-framework';
import pikaday from 'pikaday';
@customAttribute('datepicker')
@inject(Element)
export class DatePicker {
constructor(element) {
this.element = element;
}
@vegarringdal
vegarringdal / app.html
Last active December 7, 2016 00:11
aurelia-v-grid - Demo: Simple Column HTML
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
v-multi-select="true"
@vegarringdal
vegarringdal / app.html
Last active June 22, 2016 19:05
aurelia-v-grid - Demo:Custom Column HTML
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
@vegarringdal
vegarringdal / app.html
Last active June 22, 2016 19:04
aurelia-v-grid - Demo:Column.bind
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
@vegarringdal
vegarringdal / app.html
Last active July 6, 2016 18:40
test filter bug
<template>
<require from="valueConverters"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-current-entity.bind=myCurrentEntity
v-collection.bind="myCollection| selected:'isSelected':showOnlySelected"
v-grid-context.bind=myGrid>
@vegarringdal
vegarringdal / app.html
Last active July 22, 2016 10:43
aurelia-v-grid - Demo: Row Repeat
<template>
<require from="valueConverters"></require>
<div class="row">
<v-grid
class="col-sm-12"
style="height:780px"
v-row-height="200"
v-resizable-headers="true"
v-sortable-headers="true"
@vegarringdal
vegarringdal / app.html
Last active July 22, 2016 10:42
aurelia-v-grid - Demo: Remote data
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
v-footer-height="50"
@vegarringdal
vegarringdal / app.html
Last active July 22, 2016 10:41
aurelia-v-grid - Collection modifications
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-buttons"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
v-multi-select="true"
@vegarringdal
vegarringdal / app.html
Last active July 22, 2016 10:40
aurelia-v-grid - Demo: Custom pager
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"
style="height:350px"
v-row-height="25"
v-header-height="50"
v-footer-height="50"
@vegarringdal
vegarringdal / app.html
Last active July 22, 2016 10:39
aurelia-v-grid - Demo: empty
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<div class="row">
<v-grid
class="col-md-6"