I am developing a project using the devextreme framework. It is a web based work. JS side knockout js. I have been using. I met a problem like this. I want to run the javascript code when the page is first loaded. Devexpression prevents me from running the code. My goal is to make the color of the filtered data blue. If you have any idea about the solution, can you help?
PlanOfisCalismasi = function () {
//console.log(planTanimlari());
for (var i = 0; i < planTanimlari().length; i++) {
if (planTanimlari()[i].servisturu === 3) {
//console.log(planTanimlari()[i].servisturu)
//$("#planlanan").addClass('secildi');
$("#planlanan").css("color", "blue");
}
}
}
PlanOfisCalismasi();
Aucun commentaire:
Enregistrer un commentaire