FileManager, call action on open folder

1 Answer 52 Views
FileManager
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
Alessandro asked on 23 Sep 2024, 09:52 AM

Hello,

I was wondering if there is a way, in FileManager, to call an action when a directory is browsed.

My scenario is the following:

I have a FileManager and an iFrame that shows the link to each file in target directory (root), each file has a button to copy his path to clipboard.

Now, what I want to achieve is to change the directory content listed in iFrame according to what I browse in the FileManager.

something like:

action: refreshIFrame(targetIframeID, pathToBrowse)

Is that possible?

Thank you.

Alessandro

1 Answer, 1 is accepted

Sort by
0
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
answered on 24 Sep 2024, 09:00 AM

ok, I found in the api reference the event

navigate: function(e) {
refreshIFrame(targetIFrame, e.path);
},
Now it works!
Tags
FileManager
Asked by
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or