Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
JeroenVinke / app.html
Created May 26, 2017 13:46 — forked from AubieDawg92/app.html
Grid: command
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/grid/grid-command"></require>
<ak-grid k-no-init.bind="true" k-sortable.bind="true" k-scrollable.bind="true" k-allow-copy.bind="true" k-pageable.bind="{ refresh: true, pageSize: 5}" k-filterable.bind="true" k-scrollable.bind="true" k-selectable.bind="true" k-data-source.bind="datasource" view-model.ref="testgrid" k-on-data-bound.delegate="onDataBound($event.detail)">
<ak-col k-title="Details" k-width.bind="300">
<ak-grid-command k-name="details" k-text="Details" k-click.call="details($event)"></ak-grid-command>
</ak-col>
<ak-col k-field.bind="column.field" repeat.for="column of columns" k-width.bind="column.width"></ak-col>
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HL4PBHU76AGA": An unhandled exception was thrown by the application.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.IO.Stream.<CopyToAsyncInternal>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<PerformProxyRequest>d__7.MoveNext()
for(unsigned int i = 0; i < 1; i++) {
sdl_image_data *building_data = new sdl_image_data{ "castle.png"};
SDL_ImageRenderObject* building_render_object = new SDL_ImageRenderObject({ building_size * 1, buildings_panel.get_position()->clone().y}, {building_size, building_size},
building_data);
SDLPanel unit_panel1(building_render_object);
buildings_panel.add_component(&unit_panel1);
}
@JeroenVinke
JeroenVinke / app.html
Last active May 10, 2017 21:33
Grid: basic usage
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<require from="./row-template-one"></require>
<require from="./row-template-two"></require>
<ak-grid k-data-source.bind="datasource">
@JeroenVinke
JeroenVinke / app.html
Created May 10, 2017 21:30
Grid: basic usage
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<require from="./row-template-one"></require>
<require from="./row-template-two"></require>
<ak-grid k-data-source.bind="datasource">
@JeroenVinke
JeroenVinke / app.html
Created May 10, 2017 21:13 — forked from gist-master/app.html
Grid: basic usage
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<require from="./row-template"></require>
<ak-grid k-data-source.bind="datasource">
<ak-col k-field="ContactName"></ak-col>
@JeroenVinke
JeroenVinke / app.html
Created May 8, 2017 18:03
Aurelia KendoUI component - problem report
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="true"
k-filterable.bind="true"
k-sortable.bind="true"
k-on-page.delegate="page($event)"
k-on-sort.delegate="sort($event)">
@JeroenVinke
JeroenVinke / app.html
Created May 4, 2017 21:21
Aurelia KendoUI component - problem report
<template>
<router-view></router-view>
<a route-href="route: about">go to page 2</a>
</template>
@JeroenVinke
JeroenVinke / app.html
Created May 4, 2017 21:20
Aurelia KendoUI component - problem report
<template>
<router-view></router-view>
<a route-href="route: about">go to page 2</a>
</template>
@JeroenVinke
JeroenVinke / app.html
Created May 4, 2017 21:13
Aurelia KendoUI component - problem report
<template>
<require from="aurelia-kendoui-bridge/button/button"></require>
<button ak-button>This is a button</button>
</template>