Hi Silvio,
Syncfusion greetings.
Yes, we have prepared the below sample to change the theme based on the drop down selection in toolbar.
template: Vue.component('DropDownListComponent', {
template: '<ejs-dropdownlist :dataSource="sportsData" :change="onTheamChange" ></ejs-dropdownlist >',
data() { return { sportsData: ['material', 'fabric', 'highcontrast', 'bootstrap'], }},
methods: {
onTheamChange: function (e) {
var dropDownObj = document.querySelector('.e-dropdownlist').ej2_instances[0];
if (dropDownObj.value === "material") {
document.getElementsByTagName('link')[0].rel='nofollow' href = "https://cdn.syncfusion.com/ej2/material.css";
} else if (dropDownObj.value === "fabric") {
document.getElementsByTagName('link')[0].rel='nofollow' href = "https://cdn.syncfusion.com/ej2/fabric.css";
} else if (dropDownObj.value === "highcontrast") {
document.getElementsByTagName('link')[0].rel='nofollow' href = "https://cdn.syncfusion.com/ej2/highcontrast.css";
} else if (dropDownObj.value === "bootstrap") {
document.getElementsByTagName('link')[0].rel='nofollow' href = "https://cdn.syncfusion.com/ej2/bootstrap.css";
}
}
}
})
Regards,
Karthi