ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

Is there any way to display data in table format. #79

Open BeenaShetty opened 11 years ago

ashbb commented 11 years ago

@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
BeenaShetty commented 11 years ago

Thanks a lot.