onActionBegin(args) {
if (args.requestType === "toolbarItemRendering") {
let userIconItem = { template: '<input type="text" tabindex="1" id="dropdown" />', type: 'Input' }
args.items.push(userIconItem);
}
}
onActionComplete(args) {
let dropdowns = this.scheduleObj.element.querySelector('#dropdown');
if (args.requestType === 'toolBarItemRendered') {
let dropdown = new DropDownList({
popupHeight: '200px',
value: 'Week',
change: function (event) {
var view = document.querySelector(".e-schedule").ej2_instances[0];
view.currentView = event.value;
},
fields: { text: 'text', value: 'value' },
dataSource: [
{ text: 'Day', value: 'Day' },
{ text: 'Week', value: 'Week' },
{ text: 'WorkWeek', value: 'WorkWeek' },
{ text: 'Month', value: 'Month' }
]
});
dropdown.appendTo(dropdowns);
}
} |
ThanksThat is great ..
Hi Amatressa,
Thanks for the update.
You are most welcome.
Regards,
Vengatesh