Class: RGhost::Grid::Style::OldForms

Inherits:
Object
  • Object
show all
Defined in:
lib/rghost/grid/style/old_forms.rb

Instance Method Summary collapse

Instance Method Details

#set_style(grid) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/rghost/grid/style/old_forms.rb', line 3

def set_style(grid)

  size=grid.header.size
  grid.odd_row do |o|
    o.background_row(:size => size)

  end
  
  grid.header.before_create do |h|
    h.line_width(0)
    h.background_row(:size => size, :color => RGhost::ShapeContent::DEFAULT_OPTIONS[:color] )
    h.use_tag :bold
  end
  
  grid.header.after_create {|h| h.use_tag :normal }
    


  
  
  
  
end