2

Below is the JQuery tree plugin which i used in previous project

http://www.abeautifulsite.net/jquery-file-tree/

Now i am in need to convert it to the Angularjs Directive.

Can any one help me how to achieve this please?

2
  • Ask a question about a specific problem. Don't ask ppl to do your work for you Commented Oct 24, 2014 at 9:53
  • 1
    @cathal I am just asking how to achieve this If you know any simple tutorial link just share it would be much helpful for me Commented Oct 24, 2014 at 9:56

1 Answer 1

2

Finally got an solution and that too pretty simple one

App.directive('filetree', function () {
    return {
        restrict: 'A',
        replace: 'true',
        link: function (scope, element, attrs, ngModelCtrl) {
            $(function () {
                $('#container_id').fileTree({
                        root: '/',
                        script: '/Exm/source/vendors/couple/jqueryFileTree.jsp',
                        expandSpeed: 1,
                        collapseSpeed: 1,
                        multiFolder: false
                }, function(file) {
                        alert(file);
                }); 
            });
        }
    }
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.