tristen / tablesort

:arrow_up_down: A small tablesorter in plain JavaScript

Home Page:https://tristen.ca/tablesort/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get table element with div(display:table)

carry0987 opened this issue · comments

I've a table element like the following:

    <div id="table">
        <div class="table-row head">
            <div class="text">
                <div class="text">
                    <div class="text">Name</div>
                    <div class="text">Email</div>
                    <div class="text">Birthday</div>
                </div>
            </div>
        </div>
        <div class="table-row body">
            <div class="text">
                <div class="text">
                    <div class="text">Jack</div>
                    <div class="text" title="test@example.com">test@example.com</div>
                    <div class="text">January 14, 1996</div>
                </div>
            </div>
        </div>
    </div>

Can tablesort use some specific class name to serve as thead, tbody, tr, th, td ? Like:

table-row.head => thead
table-row.body => tbody
table-row => tr
...etc