Sha256: 22c5e1d221210a4f911282bddedbcf1f3230864f4c902c5df94afcbc06c6e066
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
class CommandWidget include Widget include Nav def show(opt={}) app.stack(opt) do app.background app.gradient(app.rgb(0, 255, 255), app.rgb(255, 0, 255), :angle => -35) command_list = UnorderedList.new(app, :left_margin => 0) command_list.add ListItem.new("Index", :click => lambda{app.visit(INDEX_PAGE)}, :bullet => List::STAR_BULLET) command_list.add HorizontalRule.new(:width => opt[:width]) command_list.add ListItem.new("Unordered Lists", :click => lambda {app.visit(UNORDERED_LIST_PAGE)}, :bullet => List::CIRCLE_BULLET) command_list.add ListItem.new("Ordered Lists", :click => lambda {app.visit(ORDERED_LIST_PAGE)}, :bullet => List::CIRCLE_BULLET) command_list.add ListItem.new("DropDownMenus", :click => lambda {app.visit(DROP_DOWN_MENU_PAGE)}, :bullet => List::CIRCLE_BULLET) command_list.show end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
royw-shoeshine-0.0.1 | examples/command_widget.rb |
royw-shoeshine-0.0.2 | examples/command_widget.rb |