31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/hwidgets/htableview.rb', line 31
def buildTag(fieldName, tag = "td", i = 0)
if (tag == "th")
td = @th.copyConstructor if @th
else
td = @td.copyConstructor if @td
end
td = HWidget.new(tag) unless td
td.setPlaceholder("#tableName", @fieldTable.tableName)
td.setPlaceholder("#fieldName", fieldName)
td.setPlaceholder("#tag", tag)
td.setPlaceholder("#rowNumber", i.to_s)
td.setPlaceholder("#alternateRowNumber", (i % 2).to_s)
return td
end
|