Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Angular FileManager for custom use

I am interested in using a great JavaScript-based UI framework for file management called Angular FileManager. You can follow the link to peruse the GitHub page for this project, you can also access a running demo of the framework by clicking here.

The problem I face is that there appears to be very little documentation or support for configuring this framework for custom use. Specifically, I would like to modify the file config.js to specify my own server-side endpoints for the web services which the file manager uses. I tried adapting the demo, available at the link, but my browser simply hangs.

Ideally, I would be looking for either a link to a good tutorial on how to configure Angular FileManager or a user who has successfully worked with this framework before and has something to say.

like image 802
Tim Biegeleisen Avatar asked Sep 09 '15 05:09

Tim Biegeleisen


1 Answers

you can extend the config doing something like:

  <script type="text/javascript">
    //example to override angular-filemanager default config
    angular.module('FileManagerApp').config(['fileManagerConfigProvider', function (fileManagerConfig) {
      var defaults = fileManagerConfig.$get();

      fileManagerConfig.set({
        appName: 'my own angular-filemanager',
        sidebar: false,
        allowedActions: angular.extend(defaults.allowedActions, {
          remove: false,
          copy: false
        })
      });

    }]);
  </script>
like image 70
Jonas Sciangula Street Avatar answered Sep 20 '22 23:09

Jonas Sciangula Street