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

nested items #5

Closed
manlioma opened this issue Sep 22, 2015 · 5 comments
Closed

nested items #5

manlioma opened this issue Sep 22, 2015 · 5 comments
Labels

Comments

@manlioma
Copy link

Hello, I have 20 accordion style Items, each one has 3 sub-items, and each one has minimum other 3 sub-sub-items.

Now I would to search 1 word inside all list, and if result is in 3° level, I need to show the dependance, like this:

1° level - items
- 2° level - items
- 3° level items - search word

Do you think is it possibile with your script ?
Thank you very much

@NeXTs
Copy link
Owner

NeXTs commented Sep 22, 2015

Hi
have you tried to do it at jsfiddle?
I guess plugin will hide 1st level items which does not match search phrase. But it definitely will not hide inappropriate items at 2nd level.

@NeXTs NeXTs added the question label Sep 22, 2015
@manlioma
Copy link
Author

Thank you, i will try soon, but do you suggest me to use an accordion or table or ul ?

@NeXTs
Copy link
Owner

NeXTs commented Sep 23, 2015

For plugin there is no difference if it will be table or ul. I am not aware of your structure so I can not give you advice on this. Please add example at jsfiddle

@manlioma
Copy link
Author

Thank you very much, this is the original scenario, with bootstrap
Accordion.
https://jsfiddle.net/gtzx0dhp/

I have to know if I have to write again all list

Manlio Massimetti
+39 339 28 26 912
mmanlio@gmail.com

2015-09-23 11:24 GMT+02:00 Denis Lukov notifications@github.com:

For plugin there is no difference if it will be table or ul. I am not
aware of your structure so I can not advice about this. Please add example
at jsfiddle


Reply to this email directly or view it on GitHub
#5 (comment).

@NeXTs
Copy link
Owner

NeXTs commented Sep 23, 2015

Sorry buddy. I spend some time for research and can say you that plugin is just not intended for this task. Of course you could use manualContentHandling function to fetch specific text from every accordion item and filter by this data.. but it would be really overhead effort. Also even if you hide inappropriate rows, CSS will not add required extra class "accordion-body collapse IN" to open appropriate accordeon items.
Better use JS/jQuery :)

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

No branches or pull requests

2 participants