Resizing

28 Jun 20172 minutes to read

The FileExplorer has the resize support through the resize handle which appears at right-bottom corner of footer. By clicking the resize handle the user can resize the FileExplorer through the UI. While resizing the dimension of the FileExplorer is automatically adjusted.

The resize behavior can be enabled through the enableResize property.

  • HTML
  • <div id="fileExplorer" ej-fileexplorer e-path="path" e-ajaxaction="ajaxaction" e-enableresize="true" ></div>
  • JAVASCRIPT
  • angular.module('FileCtrl', ['ejangular']).controller('FileCtrl', function ($scope) {
            $scope.path = "http://js.syncfusion.com/demos/ejServices/Content/FileBrowser/",
            $scope.ajaxaction = "http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations"
        });

    Responsiveness

    By enabling the isResponsive property, you can make the FileExplorer as responsive. While resizing the FileExplorer component, the inner content and toolbar items are automatically adjusted to equalize the size. The toolbar items are displayed within Dropdown on enabling the responsive. Otherwise it floated to the next line to equalize the space.

  • HTML
  • <div id="fileExplorer" ej-fileexplorer e-path="path" e-ajaxaction="ajaxaction" e-isresponsive="true" e-enableresize="true" ></div>
  • JAVASCRIPT
  • angular.module('FileCtrl', ['ejangular']).controller('FileCtrl', function ($scope) {
            $scope.path = "http://js.syncfusion.com/demos/ejServices/Content/FileBrowser/",
            $scope.ajaxaction = "http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations"
        });

    Restriction on Resize

    You can restrict the dimension of the FileExplorer by setting the minHeight, maxHeight and minWidth,maxWidth properties while resizing the FileExplorer.

  • HTML
  • <div id="fileExplorer" ej-fileexplorer e-path="path" e-ajaxaction="ajaxaction" e-isresponsive="true" e-enableresize="true" minHeight="200px" maxHeight= "400px" minWidth="300px" maxWidth= "1200px"></div>
  • JAVASCRIPT
  • angular.module('FileCtrl', ['ejangular']).controller('FileCtrl', function ($scope) {
            $scope.path = "http://js.syncfusion.com/demos/ejServices/Content/FileBrowser/",
            $scope.ajaxaction = "http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations"
        });