Sha256: d8dce1bd948359d458fb6fc2402822f192e878dce004a7b9787fe6eec8bd1189
Contents?: true
Size: 677 Bytes
Versions: 3
Compression:
Stored size: 677 Bytes
Contents
require File.dirname(__FILE__) + "/../lib/buttonize" buttons = Buttonize::ButtonSet.define(:style_file => File.dirname(__FILE__) + "/default/styles.rb", :style_set => :default) do |set| set.button "Test", :style => :small_green set.group("big",:style => :big_green) do |s| s.button "Confirm" s.button "Export", "export" s.button "Import", "import", :width => 65 end set.group("big",:style => :big_blue) do |s| s.button "Continue" end set.group("small", :style => :small_red) do |s| s.button "Unsubscribe" end end # This will not be ran if you use the buttonize commandline script buttons.generate(:target_path => "~/temp/button_out")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flurin-buttonize-0.1.0 | examples/buttons.rb |
flurin-buttonize-0.1.1 | examples/buttons.rb |
flurin-buttonize-0.1.2 | examples/buttons.rb |