Skip to content

Instantly share code, notes, and snippets.

@xenod
xenod / app.html
Created December 9, 2020 08:19 — forked from gist-master/app.html
Grid: binding to local data
<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-selectable="row"
k-widget.bind="grid">
<ak-col k-title="ProductName" k-field="ProductName"></ak-col>
<ak-col k-title="Unit Price" k-field="UnitPrice" k-format="{0:c}" k-width="130px"></ak-col>
@xenod
xenod / app.html
Last active November 19, 2016 11:40
Grid: editing custom editor
<template>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="aurelia-kendoui-bridge/datetimepicker/datetimepicker"></require>
<require from="aurelia-kendoui-bridge/scheduler/scheduler"></require>
<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/splitter/splitter"></require>
<require from="aurelia-kendoui-bridge/tooltip/tooltip"></require>
<require from="./my-element"></require>
@xenod
xenod / app.html
Last active October 27, 2016 07:46
DropDownList: basic usage
<template>
<require from="aurelia-kendoui-bridge/dropdownlist/dropdownlist"></require>
<div id="example">
<compose view.bind="currentView"></compose>
<div>
<button click.delegate="setView(1)"> View1</button>
<button click.delegate="setView(2)">View2 </button>
</div>
@xenod
xenod / app.html
Created October 27, 2016 07:42 — forked from gist-master/app.html
DropDownList: basic usage
<template>
<require from="aurelia-kendoui-bridge/dropdownlist/dropdownlist"></require>
<div id="example">
<compose view.bind="currentView"></compose>
<button click.delegate="setView(1)"> View1</button>
<button click.delegate="setView(2)">View2 </button>
</div>
<style>
@xenod
xenod / app.html
Last active October 22, 2016 15:41
Numeric textbox: basic usage
<template>
<require from="./basic-usage.css!css"></require>
<require from="aurelia-kendoui-bridge/numerictextbox/numerictextbox"></require>
<div id="example">
<div id="add-product" class="demo-section k-content">
<p class="title">Add new product</p>
<ul id="fieldlist">
<li>
<label for="currency">Aurelia approach:</label>
@xenod
xenod / app.html
Created October 22, 2016 15:35 — forked from gist-master/app.html
Numeric textbox: basic usage
<template>
<require from="./basic-usage.css!css"></require>
<require from="aurelia-kendoui-bridge/numerictextbox/numerictextbox"></require>
<div id="example">
<div id="add-product" class="demo-section k-content">
<p class="title">Add new product</p>
<ul id="fieldlist">
<li>
<label for="currency">Price:</label>
@xenod
xenod / app.html
Last active October 19, 2016 08:24
Scheduler: timeline view
<template>
<require from="aurelia-kendoui-bridge/scheduler/scheduler"></require>
<button type="input/button" click.delegate="readDataSource()">datassource.read()</button>
<div id="example" class="k-content">
<ak-scheduler k-date.bind="date"
k-start-time.bind="startTime"
k-event-height.bind="50"
k-major-tick.bind="60"
k-views.bind="views"
k-widget.bind="scheduler"
@xenod
xenod / app.html
Created October 19, 2016 07:56 — forked from gist-master/app.html
Scheduler: timeline view
<template>
<require from="aurelia-kendoui-bridge/scheduler/scheduler"></require>
<div id="example" class="k-content">
<ak-scheduler k-date.bind="date"
k-start-time.bind="startTime"
k-event-height.bind="50"
k-major-tick.bind="60"
k-views.bind="views"
k-timezone="Etc/UTC"
@xenod
xenod / app.html
Created October 4, 2016 08:32
DropDownList:customizing templates
<template>
<require from="./customizing-templates.css"></require>
<div id="example">
<div class="demo-section k-content">
<h4>Customers</h4>
<ak-drop-down-list
k-height="400"
k-data-source.bind="dataSource"
style="width: 100%">
<ak-template>
@xenod
xenod / app.html
Created October 4, 2016 08:31 — forked from adriatic/app.html
DropDownList:customizing templates
<template>
<require from="./customizing-templates.css"></require>
<div id="example">
<div class="demo-section k-content">
<h4>Customers</h4>
<ak-drop-down-list
k-height="400"
k-data-source.bind="dataSource"
style="width: 100%">
<ak-template>