rghost 0.8.7 → 0.8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
class RGhost::Grid::Style::BorderLines
|
4
2
|
|
5
3
|
def set_style(grid)
|
6
4
|
|
7
|
-
grid.before_row do
|
5
|
+
grid.before_row do |b|
|
8
6
|
|
9
|
-
horizontal_line(:top, :size => grid.width)
|
10
|
-
horizontal_line(:bottom, :size => grid.width)
|
7
|
+
b.horizontal_line(:top, :size => grid.width)
|
8
|
+
b.horizontal_line(:bottom, :size => grid.width)
|
11
9
|
end
|
12
10
|
|
13
|
-
grid.before_column :only => 0 do
|
14
|
-
vertical_line_row
|
11
|
+
grid.before_column :only => 0 do |b|
|
12
|
+
b.vertical_line_row
|
15
13
|
end
|
16
14
|
|
17
|
-
grid.after_column do
|
18
|
-
vertical_line_row
|
15
|
+
grid.after_column do |c|
|
16
|
+
c.vertical_line_row
|
19
17
|
end
|
20
18
|
|
21
19
|
|
22
|
-
grid.header.before_create do
|
23
|
-
line_width(0)
|
24
|
-
use_tag :bold
|
25
|
-
horizontal_line(:top, :size => grid.width)
|
26
|
-
horizontal_line(:bottom,:size => grid.width)
|
20
|
+
grid.header.before_create do |c|
|
21
|
+
c.line_width(0)
|
22
|
+
c.use_tag :bold
|
23
|
+
c.horizontal_line(:top, :size => grid.width)
|
24
|
+
c.horizontal_line(:bottom,:size => grid.width)
|
27
25
|
end
|
28
26
|
|
29
|
-
grid.header.after_create { use_tag :normal }
|
27
|
+
grid.header.after_create {|a| a.use_tag :normal }
|
30
28
|
|
31
29
|
|
32
|
-
grid.header.before_column :only => 0 do
|
33
|
-
vertical_line_row
|
30
|
+
grid.header.before_column :only => 0 do |h|
|
31
|
+
h.vertical_line_row
|
34
32
|
end
|
35
33
|
|
36
|
-
grid.header.after_column do
|
37
|
-
vertical_line_row
|
34
|
+
grid.header.after_column do |h|
|
35
|
+
h.vertical_line_row
|
38
36
|
end
|
39
37
|
|
40
38
|
|
@@ -1,22 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
class RGhost::Grid::Style::BottomLines
|
4
2
|
|
5
3
|
def set_style(grid)
|
6
4
|
|
7
5
|
size=grid.header.size
|
8
|
-
grid.before_row do
|
9
|
-
horizontal_line(:bottom,:size => grid.width)
|
6
|
+
grid.before_row do |b|
|
7
|
+
b.horizontal_line(:bottom,:size => grid.width)
|
10
8
|
|
11
9
|
end
|
12
10
|
|
13
|
-
grid.header.before_create do
|
14
|
-
line_width(0)
|
15
|
-
horizontal_line(:bottom,:size => grid.width)
|
16
|
-
use_tag :bold
|
11
|
+
grid.header.before_create do |h|
|
12
|
+
h.line_width(0)
|
13
|
+
h.horizontal_line(:bottom,:size => grid.width)
|
14
|
+
h.use_tag :bold
|
17
15
|
end
|
18
16
|
|
19
|
-
grid.header.after_create { use_tag :normal }
|
17
|
+
grid.header.after_create {|h| h.use_tag :normal }
|
20
18
|
|
21
19
|
|
22
20
|
|
@@ -1,22 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
class RGhost::Grid::Style::OldForms
|
4
2
|
|
5
3
|
def set_style(grid)
|
6
4
|
|
7
5
|
size=grid.header.size
|
8
|
-
grid.odd_row do
|
9
|
-
background_row(:size => size)
|
6
|
+
grid.odd_row do |o|
|
7
|
+
o.background_row(:size => size)
|
10
8
|
|
11
9
|
end
|
12
10
|
|
13
|
-
grid.header.before_create do
|
14
|
-
line_width(0)
|
15
|
-
background_row(:size => size, :color => RGhost::ShapeContent::DEFAULT_OPTIONS[:color] )
|
16
|
-
use_tag :bold
|
11
|
+
grid.header.before_create do |h|
|
12
|
+
h.line_width(0)
|
13
|
+
h.background_row(:size => size, :color => RGhost::ShapeContent::DEFAULT_OPTIONS[:color] )
|
14
|
+
h.use_tag :bold
|
17
15
|
end
|
18
16
|
|
19
|
-
grid.header.after_create { use_tag :normal }
|
17
|
+
grid.header.after_create {|h| h.use_tag :normal }
|
20
18
|
|
21
19
|
|
22
20
|
|