I'm using rails_admin and I'd like to add a few custom styles to my admin section on some inputs. Is there any way to specify additional classes?
Something like:
configure :title, :string do
css_class 'my-class'
input_html {:class => 'my-class', :toolbar => 'my-toolbar'}
end
I can't seem to find a comprehensive list of what options are available. I know I can specify hidden
, visible
, ckeditor true
, and one or two other things.
I'm using some additional custom JS and CSS, but I need to be able to specify some CSS classes to make everything work the way I want.
Specifically, I'm using CKEditor, and would like to use multiple toolbars, one simple and one advanced. I've been able to config CKEditor fine, but I can't find a way to have Rails_admin use an alternate toolbar.
You can use :html_attributes
https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/config/fields/base.rb#L126
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With