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

How to make sorting for every columnt? #48

Closed
0xAX opened this issue Jul 26, 2013 · 1 comment
Closed

How to make sorting for every columnt? #48

0xAX opened this issue Jul 26, 2013 · 1 comment

Comments

@0xAX
Copy link

0xAX commented Jul 26, 2013

For example i have a table with 2 columns:

<table ng-table="tableParams" class="table">

        <th>
            First name
        </th>

        <th>
            Second name
        </th>

        <tr ng-repeat="user in users">
            <td data-title="'Name'" sortable="name">
                {{user.name}}
            </td>

            <td data-title="'SecondName" sortable="second_name">
                {{user.secondname}}
            </td>
        </tr>
</table>

How to do sorting for every columns? I want to click at first <th> and sort first column, click at second <th> sort second column.

Thank you.

@esvit
Copy link
Owner

esvit commented Aug 8, 2013

<table ng-table="tableParams" class="table">
        <tr ng-repeat="user in users">
            <td data-title="'First name'" sortable="name">
                {{user.name}}
            </td>

            <td data-title="'Second name'" sortable="second_name">
                {{user.secondname}}
            </td>
        </tr>
</table>

@esvit esvit closed this as completed Aug 8, 2013
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

2 participants