Skip to content

Instantly share code, notes, and snippets.

View pKrav75's full-sized avatar

rascal pavot pKrav75

  • Messages Communication Conseil
  • Paris
View GitHub Profile
@pKrav75
pKrav75 / app.html
Last active October 30, 2018 15:34 — forked from gist-master/app.html
TreeList: editing
<template>
<require from="aurelia-kendoui-bridge/treelist/treelist"></require>
<require from="aurelia-kendoui-bridge/treelist/tree-col"></require>
<ak-tree-list k-data-source.bind="dataSource" k-editable="incell" k-navigatable.bind="true" k-toolbar.bind="['create']" k-height.bind="540">
<ak-tree-col k-field="FirstName" k-expandable.bind="true" k-title="First Name" k-width.bind="280"></ak-tree-col>
<ak-tree-col k-field="LastName" k-title="Last Name" k-width.bind="100">
</ak-tree-col>
<ak-tree-col k-field="Position"></ak-tree-col>
<!--
@pKrav75
pKrav75 / app.html
Last active November 20, 2017 19:07 — forked from JeroenVinke/app.html
Grid: editing custom editor
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="category"></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" k-on-ready.delegate="onReady($event.detail)">
<ak-col k-field="ProductName" k-title="Product Name"></ak-col>
<ak-col k-field="Category" k-title="Category" k-width="230px" 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>
@pKrav75
pKrav75 / app.html
Last active April 29, 2017 09:33 — forked from gist-master/app.html
ComboBox: Basic use
<template>
<div id="example">
<div id="cap-view" class="demo-section k-content">
<ak-combobox k-data-text-field="text"
k-data-value-field="value"
k-data-source.bind="data"
k-value.two-way="fabric"
k-filter="contains"
k-suggest.bind="true"
@pKrav75
pKrav75 / app.html
Last active March 22, 2017 09:40 — forked from jdanyow/app.html
Aurelia - I18N - Locale leaks ?
<template>
<button click.delegate='addDel($event)'>Go !</button>
<p>Control memory before and after go ${cnt} </p>
<label>Count</label> <input type="text" value.bind="maxCnt"></input><p>
<label>Tempo</label> <input type="text" value.bind="tempo"></input>
<hr>
<div id="modules-container"></div>
</template>
@pKrav75
pKrav75 / app.html
Last active June 2, 2017 07:08 — forked from gist-master/app.html
Grid: datasource read
<template>
<compose view-model="app1"></compose>
</template>
@pKrav75
pKrav75 / app.html
Last active February 21, 2017 09:43
Grid: editing custom editor
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="category"></require>
<form style="width:100%">
<label >plainGrid</label>
<ak-grid id="grid2" k-data-source.bind="gridDs" k-navigatable.bind="true" k-reorderable.bind="true"
k-pageable.bind="true" k-sortable.bind="true" k-resizable.bind="true" k-editable.bind="{confirmation : false}"
k-toolbar.bind="[{name:'create', text : 'Ajouter ligne'}]">
<ak-col k-title="Id" k-field="id"></ak-col>
@pKrav75
pKrav75 / app.html
Last active February 20, 2017 17:17 — 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>
<require from="category"></require>
<require from="customAttribute"></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" book="field : col1; precision : 4"></ak-col>
<ak-col k-field="Category" k-title="Category" k-width="230px" k-editor.bind="categoryDropDownEditor" k-template.bind="categoryTemplate" book="field : col3; age : 5"></ak-col>
<ak-col k-field="UnitPrice" k-title="Unit Price" k-format="{0:c}" k-width="130px"></ak-col>
@pKrav75
pKrav75 / app.html
Last active January 27, 2017 15:23 — forked from jdanyow/app.html
Test composition
<template>
<require from="myelem"></require>
<require from="base-element"></require>
<div>Hello</div>
<!-- aValue is a bindable property of the base-element which is included in myElem -->
<myelem aValue="topLevel"></myelem>
<hr>
</template>
@pKrav75
pKrav75 / app.html
Created January 17, 2017 17:04 — forked from gist-master/app.html
Multiselect: virtualization
<template>
<require from="aurelia-kendoui-bridge/multiselect/multiselect"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<div id="example">
<div class="demo-section wide k-content">
<ak-multiselect k-placeholder="Select addresses..."
k-data-text-field="ShipName"
k-data-value-field="OrderID"
k-height.bind="520"