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

Custom header $columns #254

Closed
wants to merge 2 commits into from
Closed

Conversation

sricc
Copy link

@sricc sricc commented Mar 24, 2014

It would be nice to have access to $columns when providing custom headers so that we could do something like this (over-simplified for brevity purposes):

<table>
  <thead>
    <tr>
      <th ng-repeat="column in $columns">
        <!-- Do some custom stuff -->
        <div ng-bind="parse(column.title)"></div>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat="data in $data">
      <td data-title="'ID'" sortable="id">{{data.id}}</td>
      <td data-title="'Name'" sortable="name">{{data.name}}</td>
    </tr>
  </tbody>
</table>

Before, it would just look for the first and use that to parse the 's.

Let me know if this is helpful or off base. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants