Hello,
I'm working for days testing some configurations and implement code for run the undo/redo feature on Angular, I can't find in the examples an angular example to run.
Somebody can show a working implementation?
Thanks in advance.
Check the following zip. It is modified Scheduler basic
demo which configures project
(mandatory for undo/redo) and adds tbar
with undo/redo widget.
Confirmed, that's a bad bug. We'll get it fixed, thanks for reporting! https://github.com/bryntum/support/issues/2880
Hello,
In the same line, the undo redo works on a tbar, but my intention is implement it on the context menu.
The problem is tbar work's but on the context menu the button's are disabled every time. I can see if click faster after remove or do somthing on the scheduler the buttons are active for few seconds and return to disabled state.
I need to add more code or someone modification?
eventMenu={
deleteEvent : false,
editEvent :false,
items : [
{
type : 'undoredo',
items : {
transactionsCombo : null
},
},
{
text:'<div>Fit Zoom</div>',
icon:'b-fa b-fa-fw fa-arrow-left',
onItem:($event)=>{this.resetZoom();}
},
{
text : '<div>Move or Copy</div>',
icon: 'b-fa b-fa-fw b-fa-plus-circle',
onItem:($event)=>{this.openActionsDialog();
// console.log($event);
},
},
{
text : '<div>Select related events</div>',
icon: 'b-fa b-fa-fw b-fa-plus-circle',
menu:[{
text : '<div>By hour</div>',
icon: 'b-fa b-fa-fw b-fa-clock',
onItem:($event)=>{this.selectEventsByHour($event);
},
},{
text : '<div>By WorkCell</div>',
icon: 'b-fa b-fa-fw b-fa-microchip',
onItem:($event)=>{this.selectEventsByWc($event);
},
},{
text : '<div>By Operator</div>',
icon: 'b-fa b-fa-fw b-fa-user',
onItem:($event)=>{this.selectEventsByOperator($event);
},
}
],
}
],
}
The current context menu implementation prevents UndoRedo widget to work properly in the context menu. I've created the feature request to make it workable: https://github.com/bryntum/support/issues/2953