Class: RGhost::Grid::Style::BottomLines

Inherits:
Object
  • Object
show all
Defined in:
lib/rghost/grid/style/bottom_lines.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/bottom_lines.rb', line 3

def set_style(grid)

  size=grid.header.size
  grid.before_row do |b|
     b.horizontal_line(:bottom,:size => grid.width)

  end
  
  grid.header.before_create do |h|
    h.line_width(0)
    h.horizontal_line(:bottom,:size => grid.width)
    h.use_tag :bold
  end
  
  grid.header.after_create {|h| h.use_tag :normal }
    


  
  
  
  
end