Skip to content

Instantly share code, notes, and snippets.

@ericbeland
Created March 10, 2019 13:20
Show Gist options
  • Save ericbeland/abd29fa97d9ad1520312ad251d1b4ec0 to your computer and use it in GitHub Desktop.
Save ericbeland/abd29fa97d9ad1520312ad251d1b4ec0 to your computer and use it in GitHub Desktop.
Table Header Issue
if __FILE__ == $PROGRAM_NAME
require 'canis/core/util/app'
require 'canis/core/include/layouts/splitlayout'
App.new do
layout = SplitLayout.new :height => -1, :top_margin => 1, :bottom_margin => 1, :left_margin => 1
@form.layout_manager = layout
urls_table = table :print_footer => false, :name => "urls"
urls_table.columns = %w{url avg}
urls_table.add(['gooogle.com', '1'])
urls_table.add(['facebook.com', '2'])
urls_table.add(['reddit.com', '3'])
urls_table1 = table :print_footer => false, :name => "urls1"
urls_table1.columns = %w{url avg}
urls_table1.add(['gooogle.com', '1'])
urls_table1.add(['facebook.com', '2'])
urls_table1.add(['reddit.com', '3'])
layout.split(0.5, 0.5,) do |top, bottom|
top.component = urls_table
bottom.component = urls_table1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment