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
var arr = [{ | |
name: 'a' | |
}, { | |
name: 'b' | |
}] | |
for(var index in arr) { | |
var obj = arr[index]; | |
if(obj.name == 'a') { | |
// iets doen |
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
var arr = [{ | |
name: 'a' | |
}, { | |
name: 'b' | |
}] | |
$.each(arr, function(index, obj) { | |
if(obj.name == 'a') { | |
// iets doen | |
} |
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
$.each($("#select1 > option"), function (index, item) { | |
var found = false; | |
$.each($("#select2 > option"), function (index1, item1) { | |
if(item1.text == item.text) { | |
found = true; | |
} | |
}); | |
if(found) { | |
$(item).css("background-color", "red"); |
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> | |
<ak-chart k-title.bind="{text: 'TEST'}" | |
k-data-source.bind="datasource" | |
k-legend.bind="{position: 'bottom'}" | |
k-series.bind="series" | |
k-series-defaults.bind="seriesDefaults" | |
k-series-axis.bind="seriesValueAxis" | |
k-category-axis.bind="seriesCategoryAxis" | |
k-tooltip.bind="seriesTooltip"> | |
</ak-chart> |
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
import {logger} from 'shared/components/utilities/logger'; | |
export function withSpinner(target, key, descriptor) { | |
let ptr = descriptor.value; | |
descriptor.value = function(...args) { | |
if (this.spinner) { | |
this.spinner.setLoading(true); | |
} | |
return ptr.apply(this, args) | |
.then(() => { |
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
import {inject} from 'aurelia-framework'; | |
import {HttpClient} from 'aurelia-http-client'; | |
@inject(HttpClient) | |
export class BasicUse { | |
constructor(httpClient) { | |
this.httpClient = httpClient; | |
} |
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> | |
<router-view></router-view> | |
</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
<template> | |
<button ak-button>test</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
<template> | |
<div id="pendingChangesWindow" | |
ak-window="k-width: 525px; | |
k-title: Pending Changes; | |
k-actions.bind: actions; | |
k-visible.bind: false; | |
k-widget.bind: window" | |
k-on-close.delegate="onClose()"> | |
<div> |
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> | |
<ak-chart k-title.bind="{text: 'Spain electricity production (GWh)'}" | |
k-data-source.bind="datasource" | |
k-legend.bind="{position: 'top'}" | |
k-series.bind="series" | |
k-series-defaults.bind="{type: 'area'}" | |
k-value-axis.bind="valueAxis" | |
k-category-axis.bind="categoryAxis" | |
k-tooltip.bind="tooltip"> | |
</ak-chart> |