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
@vegarringdal
vegarringdal / app.html
Created November 18, 2016 10:40
aurelia-v-grid - Demo: Row Repeat
<template>
<require from="valueConverters"></require>
<div class="row">
<v-grid
class="col-sm-12"
style="height:780px"
v-header-height="40"
v-row-height=40"
v-resizable-headers="true"
export class ArrayGrouping {
constructor() {
this.gID = 0;
}
//@params grouping : ["attribute", "attribute2" etc etc ])
@vegarringdal
vegarringdal / app.html
Last active October 18, 2016 19:06
Aurelia custom attribute : testing
<template>
<div class="col-md-3">
</div>
<form style="width:300px">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<select choise></select>
@vegarringdal
vegarringdal / app.html
Last active December 17, 2017 14:51
Aurelia custom attribute :tiny-mce
<template>
<textarea onsave.delegate="printToConsole($event.detail)" value.bind="myText" tiny-mce></textarea>
</template>
@vegarringdal
vegarringdal / app.html
Last active February 5, 2017 14:56
Aurelia custom attribute : choises
<template>
<style>
/*dummy style so it looks better with bootstrap*/
.choices__inner {
height: 34px;
min-height:34px;
}
.choices__list--single{
padding:initial;
@vegarringdal
vegarringdal / app.html
Last active October 14, 2016 16:30
Aurelia custom attribute : flatpickr
<template>
<require from="./flatpickr.min.css"></require>
<input flatpickr.bind="mydate">
<button click.delegate="setDate(2016, 5, 8)">set date</button>
</template>
@vegarringdal
vegarringdal / app.html
Created September 27, 2016 14:48 — forked from Thanood/app.html
Aurelia ViewCompiler issue
<template>
<require from="./my-element"></require>
<require from="./my-template"></require>
<h1>Aurelia has been loaded</h1>
<my-element>
<my-template model.bind="appModel">
element property: ${elementProperty}<br/>
model title: ${title}
</my-template>
</my-element>
@vegarringdal
vegarringdal / app.html
Last active September 17, 2016 19:27
aurelia-v-grid - Demo: bug test
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<button click.trigger="back()">back</button>
<div class="row">
<compose view-model="./composed" myGrid.bind="myGrid"></compose>
<!-- Form to the right -->
<v-grid-control-form show.bind="hidden" entity.bind="myCurrentEntity"></v-grid-control-form>
@vegarringdal
vegarringdal / app.html
Created September 17, 2016 16:54
aurelia-v-grid - Demo: master detail test
<template>
<require from="valueConverters"></require>
<require from="v-grid-control-form.html"></require>
<button show.bind="hidden" click.trigger="back()">back</button>
<div class="row">
<v-grid
show.bind="!hidden"
class="col-md-6"
style="height:350px"
@vegarringdal
vegarringdal / app.html
Last active September 15, 2016 17:26
aurelia-v-grid - Demo: Remote data -virtual loading when bottom reached
<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="0"