Closed clubbavi closed 9 years ago
Can you post the whole grid definition?
Code Snippet:
<%= grid(@list) do |g|
g.column :column_name => "Name", :attribute_name => 'name'
g.column :column_name => "Size", :attribute_name => 'size', html: {style: 'text-align: center'}
end -%>
It gives me "Unknown key:html" error.
You are using a version from 2011 https://rubygems.org/gems/wice_grid/versions and using documentation for the latest version. There is no html
in 3.0.4. Read the docs inside the gem.
What is the attribute to use styling in wicegrid 3.04 ?
Read the docs inside the gem.
Ok got it. Have to use like this :
:td_html_attrs => {:style => 'text-align: right'}
Thanks
Hello,
I am using wicegrid 3.0.4 with rails 3. I want to do a custom styling. I added ":html => {:style => 'text-align: center'} or html: {style: 'text-align: center'}" as:
Thanks.