examples/spread_table.rb
# Callback function to control cell class
# data is cell data, line_data is an array of the line cells
Callback function to control cell class
data is cell data, line_data is an array of the line cells
Callback function to control cell class data is cell data line_data is an array of the line cells
def cell_class_callback(data, line_title) 
  if data.to_i < 0
    "negative"
  elsif data.to_i == 0
    "zero"
  else
    nil
  end
end
def cell_class_callback ( data , line_title ) if data . to_i < 0 "negative" elsif data . to_i == 0 "zero" else nil end end
Callback function to control cell class
data is cell data, line_data is an array of the line cells
Callback function to control cell class data is cell data line_data is an array of the line cells
data
line_title