Skip to content

Instantly share code, notes, and snippets.

@spacemunkay spacemunkay/gist:5655153
Last active Dec 17, 2015

Embed
What would you like to do?
app/components/bosses.rb
# def configure(c)
c.columns = [
# Needs to have type :action or else won't work in grid, because... netzke modifies the xtype otherwise
# This means you have to define it again in default_fields_for_forms
{ :name => "color", :text => "Boss Color", :type => :action, :editor => { :xtype => "xcolorcombo"}, :renderer => :color_block}
]
# def default_fields_for_forms
[
{ :name => "color", :xtype => "xcolorcombo"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.