Hey guys,
I’m trying to trigger event which opens “rename folder/file” editor. But cannot see the editor.
I have filemanager instance:
this.ui = window.webix.ui({
view: ‘filemanager’,
id: ‘files’,
on: {
onSuccessResponse: this.onSuccessResponseHandler
},
…
On onSuccessResponse
event handler I’m trying to trigger onItemRename
but nothing happens even callEvent
returns true
:
onSuccessResponseHandler = ({ action, id, source }) => {
if (action === ‘create’ && source === ‘newFolder’ && id){
//a
is true
const a = this.ui.callEvent(‘onItemRename’, [id]);
}
Am I using wrong event? Which event emitter and event should I use for it?
Thanks