1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-04-04 05:33:22 -04:00
BikeShed-1/app/components/bike_brands.rb
2012-12-23 09:02:07 -05:00

27 lines
497 B
Ruby

class BikeBrands < Netzke::Basepack::Grid
def configure(c)
super
c.model = "BikeBrand"
=begin
c.columns = [
:done,
:name,
{name: :notes, flex: 1},
:priority,
{name: :due, header: "Due on"}
]
=end
#c.enable_context_menu = false
#c.context_menu = false
#c.enable_edit_in_form = false
#c.scope = {done: [nil, false]}
end
#override with nil to remove actions
def default_bbar
[ :apply, :add_in_form, :search ]
end
end