Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search input box position #25

Open
ghost opened this issue Oct 5, 2015 · 1 comment
Open

Search input box position #25

ghost opened this issue Oct 5, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 5, 2015

In case of large tree, search input box positioning before tree-view is better.

I want position search input box before jstree. I have tried to change position, but not worked.
from :
e.after(<input type="text" placeholder="Search Tree" class="ng-tree-search"/>)
to:
e.before(<input type="text" placeholder="Search Tree" class="ng-tree-search"/>)

@NomadCoding02
Copy link

In case if someone needs the input box to be positioned before the tree, simply replace the following:

  • e.after(<input type="text" placeholder="Search Tree" class="ng-tree-search"/>) with e.before(<input type="text" placeholder="Search Tree" class="ng-tree-search"/>);
  • On the next line: .next() with $('.ng-tree-search')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant