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

Specify row class #21

Open
et opened this issue Oct 12, 2011 · 0 comments
Open

Specify row class #21

et opened this issue Oct 12, 2011 · 0 comments

Comments

@et
Copy link

et commented Oct 12, 2011

I'd like to be able to specify the row's class.
A possible use case would to differentiate user's that are not active.

Example:
Say I have 3 users, and Bob's account has not been activated.
Then I would like the output to be:

<table id="users">
  <thead>
    <tr>
      <th>Name</th>
      <th>Email</th>
    </tr>
  </thead>
  <tbody>
    <tr class="post odd" id="post_1">
      <td>Alice</td>
      <td>[email protected]</td>
    </tr>
    <tr class="post even inactive" id="post_2">   <-------- Note the extra "inactive" class added to this row.
      <td>Bob</td>
      <td>[email protected]</td>
    </tr>
    <tr class="post odd" id="post_3">
      <td>Carol</td>
      <td>[email protected]</td>
    </tr>
  </tbody>
</table>
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

1 participant