Class: RGhost::Grid::Style::BorderLines

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

Instance Method Summary collapse

Instance Method Details

#set_style(grid) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rghost/grid/style/border_lines.rb', line 5

def set_style(grid)

  grid.before_row do
    
    horizontal_line(:top,    :size => grid.width)
    horizontal_line(:bottom,    :size => grid.width)
  end

  grid.before_column :only => 0 do
    vertical_line_row
  end
  
  grid.after_column do
    vertical_line_row
  end
  
  
  grid.header.before_create do
    line_width(0)
    use_tag :bold
    horizontal_line(:top, :size => grid.width)
    horizontal_line(:bottom,:size => grid.width)
  end
  
  grid.header.after_create { use_tag :normal }


  grid.header.before_column :only => 0 do
    vertical_line_row
  end
  
  grid.header.after_column do
    vertical_line_row
  end
  
  
  
  
end