hummingbird-dev / hummingbird-treeview

A powerful and fast jQuery treeview plugin
MIT License
62 stars 23 forks source link

unable to get "checkNode" working #23

Closed budg1e closed 2 years ago

budg1e commented 2 years ago

hello -can anyone provide a working example? Just doesn't work for me. Have hijacked this:

https://jsfiddle.net/z5amrc4x/1/

apologies if wrong

thanks in advance, adrian

hummingbird-dev commented 2 years ago

Hi Adrian, Sorry, there was an old version linked in the cdn. I've updated it now and the jsfiddle is working as expected. Best regards, Sebastian

hummingbird-dev commented 2 years ago

https://jsfiddle.net/m50yzkob/

budg1e commented 2 years ago

hello -thank you for getting back to me. I discovered the issue was with certain characters I was using, eg.

test1|test2

does not check an item

<li data-id="test1|test2">-Goodfellas</li>

Have updated that fiddle. Guessing it's a regex thing?

I've had to work around it using just IDs and filtering over to get these prior to setting. It's all ok now -just kicked me when I was in a hurry!

thanks again for getting back to me

hummingbird-dev commented 2 years ago

Hi, I've updated the code and added some ", to account for those special characters. Should work now. https://jsfiddle.net/2qgr4c0p/ The new hummingbird-treeview version is now 3.0.2. Cheers

budg1e commented 2 years ago

wonderful -thank you very much