Jquery tablesorter and tablesorter Filter plugin ... can it sort and filter unordered lists?

I use the tablesorter and the tablesorterFilter plugin, and for that matter, the tablesorterPager plugin to sort my data. I have a navigation menu that I use to organize content in a folder type layout, similar to how the window directory tree tree works. I use an unordered list to display the menu.

Is it possible, or is there a plugin that will make the following possible. I want to use a filter to find folders in the folder tree (subfolders), and then display this line with the parent folders (menu - expandable navigation menu plus / minus). In addition, I would also like to use tablesort to sort only the ROOT Folder links of the navigation menu.

Here is what the HTML looks like and an unordered html list:

<table>
  <thead>........</thead>
  <tbody>
        <tr>
              <td>
                    <ul>
                          <li>ROOT Folder 1
                                <ul>
                                      <li>Subfolder A
                                            <ul>
                                                  <li>Subfolder A.1</li>
                                           </ul>
                                      </li>
                                </ul>
                          </li>
                          <li>ROOT Folder 2
                                <ul>
                                      <li>Subfolder 2A
                                            <ul>
                                                  <li>Subfolder 2A.1</li>
                                           </ul>
                                      </li>
                                </ul>
                          </li>
                    </ul>
              </td>
        </tr>
  </tbody>

Thank you for your help.

+3
source share
1 answer
0
source

Source: https://habr.com/ru/post/1738987/


All Articles