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

Table heading icons. #89

Closed
missinglink opened this issue Oct 17, 2013 · 4 comments
Closed

Table heading icons. #89

missinglink opened this issue Oct 17, 2013 · 4 comments
Milestone

Comments

@missinglink
Copy link

I couldn't find any reference in the docs to a way to add icons to the <TH> elements.
Is this currently possible?

@jdewit
Copy link

jdewit commented Oct 22, 2013

You can override the heading for a column by setting the "header" attribute with the id of a template

<table ng-table="tableParams">
    <tr ng-repeat="user in users">
        <td header="'header.html'">{{ user.name }}</td>
        <td title="other">{{ user.other }}</td>
    </tr>
</table>

<script type="text/ng-template" id="header.html">
<i class="icon-user"></i> User 
</script>

@esvit
Copy link
Owner

esvit commented Oct 27, 2013

I planned create feature when user can define own header in table without templates

@christianacca
Copy link
Collaborator

+1 Yes please

@linkswapnil
Copy link

Also Vitalii It would be great if you could keep the support for IE8.
Version 3 examples doesn't works on IE 8 and Version 2.2 example works on IE 8 for pagination only but not for search.
Also can we also have a example with template like JQuery Datatable plugin which is widely use.

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

5 participants