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
Enable customization of <td> #43
Comments
For some people, the following will fork great: rake datagrid:copy_partials May be it's true, that we need to make all html attributes configurable. But what API can you propose to make it fully configurable? |
What about next DSL column :status, :header => "Status", :html_options => proc {|row| {'class' => row.status, 'data-id' => row.id } } do |row|
row.activated?
end |
@Fivell |
@bogdan , I don't think I have time to do it soon, maybe in future. |
This seems to be solvable in many other ways so I am closing this one. |
Currently, I found no way to set my own class on a
<td>
. Maybe there's a workaround? I believe an ability to specify custom classes on a<td>
should be extremely useful in some cases.Per investigation I found no way to specify arbitrary class on a column. See the chain:
Going even further, I believe
datagrid
should allow full customization of<td>
's html attributes. Among the most popular attributes there areid
,title
,data-
and others.The text was updated successfully, but these errors were encountered: