green_shoes icon indicating copy to clipboard operation
green_shoes copied to clipboard

Is there any way to display data in table format.

Open BeenaShetty opened this issue 12 years ago • 2 comments

BeenaShetty avatar Jul 26 '13 12:07 BeenaShetty

@BeenaShetty Thanks for the post. There is no special method to display data in table format in Shoes. But you can write the code by yourself. ;-) How about using flow and border like this?

require 'green_shoes'
Shoes.app do
  flow margin: 30 do
    flow width: 400, height: 200 do
      border black
      16.times do
        flow width: 100, height: 50 do
          border black
          para 'hello', align: 'center'
        end
      end
    end
  end
end

ashbb avatar Jul 29 '13 11:07 ashbb

Thanks a lot.

BeenaShetty avatar Jul 29 '13 12:07 BeenaShetty