redmine_bootstrap_kit icon indicating copy to clipboard operation
redmine_bootstrap_kit copied to clipboard

stuck getting jqueryfiletree to work

Open a2b-alb opened this issue 8 years ago • 0 comments
trafficstars

I am trying to get jqueryfiletree to work. But I'm stuck figuring out what parameters go into your helper functions: create_doc_tree(id, tree_url, content_url, opts = {}) and render_doc_tree(parent, dir)

Could you please help me out on how to use the two helper functions in your JqueryFileTree::DocTreeHelper and maybe given example on how to setup the jqueryfiletree in redmine_bootstrap_kit ?

I think it should look something like this, but how does the 'parent' and the 'dir'- array parameter have to look like?

<% content_for :header_tags do %> <%= bootstrap_load_base %> <%= jquery_file_tree_load_base %> <% end %> <%= create_doc_tree('mytree', '/tree_base_dir/', '/tree_base_dir/', opts = {}) %> <%= render_doc_tree(parent, dir) %>

Many Thanks!

a2b-alb avatar Sep 04 '17 04:09 a2b-alb