Saving the file path of file selected in the file manager

I have an app that uses the native Ubuntu file chooser which I want to replace with using the Webix file manager. Currently when I use the webix file manager and click on a file or folder, it opens that file/folder. My goal is to not have the file/folder open on double click but to just save the path of the file selected and display it on my app’s UI outside of the file manager. Is there a way to accomplish this?

same way as here, just handle folders like files.