-
Notifications
You must be signed in to change notification settings - Fork 135
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
Per-row custom classes #32
Comments
Hi, @artsyca. <tr>
{{#each processedColumns as |column|}}
{{#if column.isVisible}}
<td class={{column.className}}>
{{#if column.template}}
{{partial column.template}}
{{else}}
{{get record column.propertyName}}
{{/if}}
</td>
{{/if}}
{{/each}}
</tr> to the separated template. |
Yes. I like the control of overriding templates as long as it can be done in a future proof way. So far this addon fits my needs very closely and works great with Ember 2.1. |
@onechiporenko move to separate template good idea. It can be custom row template |
|
I'd like to add a class to the row based on criteria of the
record
.For example if
record.isFinalized
I'd like to addis-finalized
to thetr
(or each of its children)Currently I can modify the template directly to add my class based on
record
like:and it works, but it requires copying the
templates/models-table.hbs
into my project manually.. A configuration option would be most welcome here.The text was updated successfully, but these errors were encountered: