Skip to content

Instantly share code, notes, and snippets.

View MT-PL-SWF-Dev's full-sized avatar

MT SWF MT-PL-SWF-Dev

View GitHub Profile
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / native_js_drag_and_drop_helper.js
Created April 3, 2018 10:07 — forked from druska/native_js_drag_and_drop_helper.js
Create the `simulateDragDrop` function which can be used to simulate clicking and dragging one DOM Node onto another
function simulateDragDrop(sourceNode, destinationNode) {
var EVENT_TYPES = {
DRAG_END: 'dragend',
DRAG_START: 'dragstart',
DROP: 'drop'
}
function createCustomEvent(type) {
var event = new CustomEvent("CustomEvent")
event.initCustomEvent(type, true, true, null)
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / chart.html
Last active November 28, 2017 19:24
Kendo chart bug repro
<template>
<require from="aurelia-kendoui-bridge/chart/chart"></require>
<a route-href="route.bind: 'welcome'">Go to somewhere else</a>
<ak-chart
k-title.bind="{text: 'Gross Domestic product growth GDP annual %'}"
k-legend.bind="{position: 'bottom'}"
k-series-defaults.bind="seriesDefaults"
k-series.bind="series"
k-value-axis.bind="valueAxis"
k-category-axis.bind="categoryAxis"
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / app.html
Last active June 7, 2017 14:36
Aurelia Gist
<template>
<h1>${message}</h1>
<button click.delegate="changeApp()">App2</button>
<button click.delegate="known()">Known</button>
</template>
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / app.html
Created June 7, 2017 11:52
Aurelia Gist
<template>
<h1>${message}</h1>
<button click.delegate="changeApp()">App2</button>
</template>
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / app.html
Last active October 14, 2016 09:37 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>Main Page</h1>
<router-view></router-view>
</template>
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / app.html
Created October 11, 2016 12:57
Aurelia KendoUI component - problem report
<!-- put your view here -->
<template>
<p>Loaded</p>
<ak-grid k-data-source.bind="dataSource">
<ak-col k-field="name">
<ak-template for="headerTemplate">
Name
</ak-template>
</ak-col>
<ak-col k-field="lastName">
@MT-PL-SWF-Dev
MT-PL-SWF-Dev / app.html
Created October 11, 2016 12:55 — forked from JeroenVinke/app.html
Aurelia KendoUI component - problem report
<!-- put your view here -->
<template>
<p>Loaded</p>
<ak-grid k-data-source.bind="dataSource">
<ak-col k-field="name">
<ak-template for="headerTemplate">
Name
</ak-template>
</ak-col>
<ak-col k-field="lastName">