Skip to content

Instantly share code, notes, and snippets.

View adriatic's full-sized avatar
💭
I may be slow to respond.

Nikolaj Ivancic adriatic

💭
I may be slow to respond.
  • Congral, LLC
  • Ann Arbor, MI
  • 17:12 (UTC -04:00)
View GitHub Profile
@adriatic
adriatic / app.html
Last active July 20, 2016 06:33
TreeList: drag and drop
<template>
<require from="./drag-and-drop.css"></require>
<ak-tree-list k-data-source.bind="dataSource" k-height.bind="540" k-editable.bind="{move: true}">
<ak-tree-col k-field="FirstName" k-title="First Name" k-width.bind="280">
<ak-template>
<div class="employee-photo" style="background-image: url(http://demos.telerik.com/kendo-ui/content/web/treelist/people/${EmployeeID}.jpg);"></div>
<div class="employee-name">${FirstName}</div>
</ak-template>
</ak-tree-col>
<ak-tree-col k-field="LastName" k-title="Last Name" k-width.bind="160"></ak-tree-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:33
TreeList: binding to remote data
<template>
<ak-tree-list k-data-source.bind="dataSource">
<ak-tree-col k-field="FirstName" k-expandable.bind="true" k-title="First Name" k-width.bind="250"></ak-tree-col>
<ak-tree-col k-field="LastName" k-title="Last Name"></ak-tree-col>
<ak-tree-col k-field="Position"></ak-tree-col>
<ak-tree-col k-field="Extension" k-title="Ext" k-format="{0:#}"></ak-tree-col>
</ak-tree-list>
</template>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:33
TreeList: binding to local data
<template>
<ak-tree-list k-data-source.bind="dataSource" k-height.bind="540">
<ak-tree-col k-field="Position"></ak-tree-col>
<ak-tree-col k-field="Name"></ak-tree-col>
<ak-tree-col k-field="Phone"></ak-tree-col>
</ak-tree-list>
</template>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:33
TreeList: basic usage
<template>
<require from="./basic-use.css"></require>
<ak-tree-list k-data-source.bind="dataSource" k-filterable.bind="true" k-sortable.bind="true" k-height.bind="540">
<ak-tree-col k-field="FirstName" k-title="First Name" k-width.bind="280">
<ak-template>
<div class="employee-photo" style="background-image: url(http://demos.telerik.com/kendo-ui/content/web/treelist/people/${EmployeeID}.jpg);"></div>
<div class="employee-name">${FirstName}</div>
</ak-template>
</ak-tree-col>
<ak-tree-col k-field="LastName" k-title="Last Name" k-width.bind="160"></ak-tree-col>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:34
Tooltip: Api
<template>
<div id="example" style="min-height: 360px">
<div class="box wide">
<ul class="options">
<li>
Show at
<ak-drop-down-list k-on-change.delegate="onChange()" k-value.two-way="selector">
<select id="selector">
<option value="1">Target 1</option>
@adriatic
adriatic / app.html
Last active July 20, 2016 06:34
Tooltip: events
<template>
<require from="./logger.js"></require>
<div id="example">
<div class="demo-section k-content">
<span id="autohide-true"
class="k-button wider"
ak-tooltip="k-content: Hello!; k-position: top"
k-on-show.delegate="logger.log('show button 1')"
k-on-hide.delegate="logger.log('hide button 1')">Hover me!</span>
@adriatic
adriatic / app.html
Last active July 19, 2016 18:49
Tooltip: content template
<template>
<require from="./content-template.css"></require>
<div id="example">
<div class="demo-section k-content wide">
<ul id="products"
class="dairy-photos"
ak-tooltip="k-filter: a; k-content.call: getTemplate($event); k-width.bind: 400; k-height.bind: 200; k-position: top">
<li>
<a href="#" data-id="11" title="A cheese made in the artisan tradition by rural dairy farmers in the north of Spain"><img src="http://demos.telerik.com/kendo-ui/content/web/foods/11.jpg" /> Queso de Cabrales</a>
@adriatic
adriatic / app.html
Last active April 17, 2016 20:42
Tooltip: content template
<!-- app.html -->
@adriatic
adriatic / ajax.css
Last active July 20, 2016 06:34
Tooltip: ajax
.dairy-photos {
list-style-type: none;
margin: 0;
padding: 0;
line-height: 0;
}
.dairy-photos li {
display: inline-block;
margin: 0;
padding: 0;
@adriatic
adriatic / app.html
Last active July 19, 2016 18:49
Tooltip: basic use
<template>
<require from="./basic-use.css"></require>
<div id="example"
ak-tooltip="k-filter: a;
k-width.bind: 120;
k-position: top;
k-widget.bind: tooltip">
<div class="demo-section k-content wide">
<div id="agglomerations">
<a href="#" title="Canton - 26,300,000" ref="canton" id="canton"></a>