Getting Started

28 Jun 20173 minutes to read

The following section is briefly explain the things to get started with FileExplorer control.

Preparing the HTML Document

Create a new Html file and include the below code.

  • HTML
  • <!DOCTYPE html>
    <html xmlns="">
        <meta charset="utf-8">
        <title> </title>

    Adding the References

    CSS References

    Add the below CSS reference in the head section, for the default theme

  • HTML
  • <link rel="stylesheet" href="" />

    Script References

    The external script dependencies of the FileExplorer widget are,

    And the internal script dependencies of the FileExplorer widget are:




    Angular common source file


    Must be referred always before using all the JS controls.

    Used to handle data operation and should be used while binding data to JS controls.

    ej. draggable.min.js

    Used to handle the drag and drop functionality


    Used to show the scroller in the layout area


    Used to display the buttons in the toolbar


    Used to display the treeview in the navigation pane


    Used to perform the upload functionality 


    Used to showcase the waiting popup


    Used to create the alert windows 


    Used as the body section to separate the navigation and layout area


    Used to showcase the hearer section

    Used to showcase the context menu


    Used to showcase the grid layout view


    Essential Studio angular source file

    For getting started you can use the “ej.web.all.min.js” file, which encapsulates all the ej controls and frameworks in one single file.

    Essential JavaScript includes angular directives for all controls with the ej.widget.angular.min.js script file. All the Essential JS directives have been encapsulated into a single module called ejangular. To render our ej controls in angular, you need to refer the “angular.min.js” and “ej.widget.angular.min.js” in your application.

    So you can add the below Script references in the head section:

  • HTML
  • <!doctype html>
    <html lang="en" ng-app="'FileApp'">
        <title>Essential Studio for JavaScript : Angular JS Support for FileExplorer </title>
        <!-- Style sheet for default theme (flat azure) -->
        <link href="" rel="stylesheet" />
        <script src="" type="text/javascript"> </script>
        <script src="" type="text/javascript"></script>
        <script src=""></script>
        <script type="text/javascript" src=" "></script>
        <script src=""></script>
        <!--Add custom scripts here -->
        <!--Add the elements here-->

    Initialize and configure the control

    The ng-app directive explains the root element (<html> or <body> tags) of the application. You will assign a name to the ng-app directive, then you must create a module with that name. In this module, you will have to define your directives, services, filters and configurations.

    Once added the element you can initialize the control from the script section like below:

  • HTML
  • <div id="fileExplorer" ej-fileexplorer e-path="path" e-ajaxaction="ajaxaction" e-isresponsive="true" e-layout="grid" e-width="100%" ></div>
  • HTML
  • angular.module('FileCtrl', ['ejangular']).controller('FileCtrl', function ($scope) {
        $scope.path = "",
        $scope.ajaxaction = ""

    To perform the server side actions using local web API service, please refer the link

    Once you completed the above steps, you get an output like below,