Class: Trestle::Toolbar::Button

Inherits:
Item
  • Object
show all
Defined in:
lib/trestle/toolbar/item.rb

Direct Known Subclasses

Dropdown

Instance Attribute Summary

Attributes inherited from Item

#label, #menu

Instance Method Summary collapse

Methods inherited from Item

#==, #button_classes, #button_label, #button_style, #button_style_classes, #initialize, #options, #render_menu, #to_s

Constructor Details

This class inherits a constructor from Trestle::Toolbar::Item

Instance Method Details

#renderObject



71
72
73
# File 'lib/trestle/toolbar/item.rb', line 71

def render
  button_tag(button_label(label, options), options)
end