redmine_bootstrap_kit
redmine_bootstrap_kit copied to clipboard
stuck getting jqueryfiletree to work
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!