Skip to content

Instantly share code, notes, and snippets.

@spacemunkay
Last active December 17, 2015 18:39
Show Gist options
  • Save spacemunkay/5655153 to your computer and use it in GitHub Desktop.
Save spacemunkay/5655153 to your computer and use it in GitHub Desktop.
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