Sha256: 0015d2e3bb9179a9f02e83f426eac244c8e20a5f1f5203eb059329832ef336e9
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require File.dirname(__FILE__) + "/../lib/buttonize" buttons = Buttonize::ButtonSet.define(: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flurin-buttonize-0.1.4 | examples/buttons.rb |