kendo-ui-core
kendo-ui-core copied to clipboard
TaskBoard | Unable to change the labels of the card menu buttons
Description;
I am trying to change the labels of the card menu buttons to 'Edit Task' or "Edit" and "Delete Task" or "Delete", but have been unsuccessful so far. As a workaround, I tried defining custom card menu buttons, but after doing that, my edit panel stopped working, and I received console errors indicating 'undefined'.
Sample Code:
cardMenu: [
{text: "Edit", icon: "pencil", command: "customEdit"},
{text: "Delete", icon: "trash", command: "customDelete"},
{text: "History", icon: "clock", command: "customHistory"}
]
kendo.ui.taskboard.commands["customEdit"] = kendo.ui.taskboard.Command.extend({
exec: function () {
var taskboard = this.taskboard, options = this.options, column=options.column, card = options.card;
if(!card){
card=taskboard.dataSource._createNewModel();
card.startDate=new Date();
card.status=column.status;
}
that.kTaskBoard.editCard(card)
}
});
Reproduction of the problem
- Open the Dojo
- Edit a card and inspect console error
I tried debugging the issue and found that the code reaches up to that.kTaskBoard.editCard(card), but there seems to be an issue with data binding inside the editCard function.