Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
JeroenVinke / app.html
Created April 19, 2017 15:23
Aurelia KendoUI component - problem report
<template>
<require from="aurelia-kendoui-bridge/multiselect/multiselect"></require>
<div id="example">
<div class="demo-section wide k-content">
<ak-multiselect k-placeholder="Select products..."
k-on-data-bound.delegate="onDataBound()"
k-data-text-field="ProductName"
k-data-value-field="ProductID"
k-auto-bind.bind="false"
@JeroenVinke
JeroenVinke / app.html
Last active April 18, 2017 13:35 — forked from johntom/app.html
Grid: frozen columns
<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>
<require from="aurelia-kendoui-bridge/grid/grid-command"></require>
<h1>Forked frozed columns</h1>
<button ak-button click.delegate="showSelection()">Show selection</button>
@JeroenVinke
JeroenVinke / app.html
Created April 18, 2017 13:03 — forked from ronaksbhavsar/app.html
enforce minimum column width grid
<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>
<require from="aurelia-kendoui-bridge/button/button"></require>
<div id="example">
<div class="demo-section k-content">
<ak-grid k-height="300" k-widget.bind="grid" k-on-ready.delegate="onReady($event.detail)" k-resizable.bind="true" k-data-source.bind="datasource" k-pageable.bind="pageable" k-sortable.bind="true">
</ak-grid>
@JeroenVinke
JeroenVinke / app.html
Created April 14, 2017 13:30 — forked from gist-master/app.html
Grid: editing custom editor
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<div id="example">
<ak-grid k-pageable.bind="true" k-height.bind="500" k-toolbar.bind="['create']" k-editable.bind="true" k-data-source.bind="dataSource">
<ak-col k-field="ProductName" k-title="Product Name"></ak-col>
<ak-col k-field="Category" k-title="Category" k-width="180px" k-editor.bind="categoryDropDownEditor" k-template.bind="categoryTemplate"></ak-col>
<ak-col k-field="UnitPrice" k-title="Unit Price" k-format="{0:c}" k-width="130px"></ak-col>
<ak-col k-command="destroy" k-title=" " k-width="150px"></ak-col>
@JeroenVinke
JeroenVinke / app.html
Last active April 14, 2018 20:41 — forked from gist-master/app.html
k-on-ready
<template>
<h1>Kendo controls cannot be used from bind() or attached().</h1>
<p>When you would like to use the control as soon as it has been initialized, we recommend using the k-on-ready event, shown below. Read <a href="https://aurelia-ui-toolkits.gitbooks.io/kendoui-bridge-docs/content/what_you_need_to_know.html#595-how-to-get-to-the-kendo-control">this chapter</a> for other solutions</p>
<require from="aurelia-kendoui-bridge/datetimepicker/datetimepicker"></require>
<require from="aurelia-kendoui-bridge/pager/pager"></require>
<ak-pager></ak-pager>
<div id="example">
using Assets.Scripts.DataStructures;
using System;
using UnityEngine;
namespace Assets.Scripts.SteeringBehaviours
{
public class ObstacleAvoidanceBehavior : SteeringBehaviour
{
private const int MinDetectionBoxLength = 2;
@JeroenVinke
JeroenVinke / app.html
Created April 8, 2017 19:40 — forked from gist-master/app.html
Scatter charts: basic use
<template>
<require from="aurelia-kendoui-bridge/chart/chart"></require>
<ak-chart k-title.bind="{text: 'Rainfall - Wind Speed'}"
k-legend.bind="{position: 'bottom'}"
k-series-defaults.bind="{type: 'scatter'}"
k-series.bind="series"
k-x-axis.bind="xAxis"
k-y-axis.bind="yAxis">
</ak-chart>
</template>
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Metadata;
namespace Carmel.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
@JeroenVinke
JeroenVinke / app.html
Last active April 5, 2017 12:01
Aurelia KendoUI component - problem report
<template>
<require from="./basic-use.css"></require>
<require from="aurelia-kendoui-bridge/window/window"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<div id="example">
<div id="window"
ak-window="k-no-init.bind: true; k-width: 600px; k-title: About Alvar Aalto; k-visible.bind: false; k-actions.bind: actions; k-widget.bind: window"
ak-window.ref="windowVM"
k-on-close.delegate="onClose()">
<div class="armchair" if.bind="visible">
@JeroenVinke
JeroenVinke / app.html
Last active June 2, 2017 06:46 — forked from len-ro/app.html
Datepicker: basic usage
<template>
<button type="button" click.delegate="add()">add</button>
<button type="button" click.delegate="del()">del</button>
Iteration ${cnt}
<div id="modules-container">
</div>
<div if.bind="show">
<compose view.bind="formName" model.bind="this"></compose>
</div
</template>