Created
April 25, 2017 20:36
-
-
Save JeroenVinke/9a0f277f2deca78f6d80dde2ca30a2a9 to your computer and use it in GitHub Desktop.
Aurelia KendoUI component - problem report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="aurelia-kendoui-bridge/multiselect/multiselect"></require> | |
<ak-multiselect id="testMulti1" | |
k-auto-close.bind="false" | |
k-data-source.bind="data" | |
k-data-text-field="text" | |
k-data-value-field="value" | |
k-tag-mode="single" | |
k-widget.two-way="multiselect" | |
k-on-change.delegate="change()" | |
k-on-data-bound.delegate="databound()" | |
k-on-ready.delegate="ready()"> | |
</ak-multiselect> | |
<button click.delegate="filter()">filter</button> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class App { | |
data = [ | |
{ text: 'Africa', value: '1' }, | |
{ text: 'Europe', value: '2' }, | |
{ text: 'Asia', value: '3' }, | |
{ text: 'North America', value: '4' }, | |
{ text: 'South America', value: '5' }, | |
{ text: 'Antarctica', value: '6' }, | |
{ text: 'Australia', value: '7' } | |
] | |
filterData = { | |
logic: "or", | |
filters: [ | |
{ field: "text", operator: "eq", value: "Africa" }, | |
{ field: "text", operator: "eq", value: "Europe" }, | |
{ field: "text", operator: "eq", value: "Australia" }] | |
}; | |
constructor() { | |
} | |
filter() { | |
console.log('filter'); | |
this.multiselect.dataSource.filter(this.filterData); | |
this.multiselect.listView.setDSFilter(this.multiselect.dataSource.filter()); | |
this.multiselect.value(1); | |
} | |
databound() { | |
console.log('databound'); | |
} | |
ready() { | |
console.log('ready'); | |
} | |
change() { | |
console.log('change'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Aurelia KendoUI bridge</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.118/styles/kendo.common.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.118/styles/kendo.rtl.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.118/styles/kendo.default.min.css"> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.118/styles/kendo.mobile.all.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.0/bluebird.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/1.2.1/chroma.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2017.1.118/js/jquery.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2017.1.118/js/jszip.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2017.1.118/js/kendo.all.min.js"></script> | |
</head> | |
<body aurelia-app="main"> | |
<h1>Loading...</h1> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.6/system.js"></script> | |
<script src="https://rawgit.com/aurelia-ui-toolkits/aurelia-kendoui-bundles/1.2.2/config2.js"></script> | |
<script> | |
System.import('aurelia-bootstrapper'); | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function configure(aurelia) { | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging() | |
.plugin('aurelia-kendoui-bridge', kendo => kendo.pro()); | |
aurelia.start().then(a => a.setRoot()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment