class Aureus::Components::ToolbarSection
Public Class Methods
new(position)
click to toggle source
# File lib/aureus/components/toolbar.rb, line 27 def initialize(position) @items = Array.new @position = position end
Public Instance Methods
dropdown(title) { |toolbar| ... }
click to toggle source
# File lib/aureus/components/toolbar.rb, line 36 def dropdown(title) toolbar = ToolbarDropdown.new(title) yield toolbar @items << toolbar end
info(text)
click to toggle source
# File lib/aureus/components/toolbar.rb, line 42 def info(text) @items << ToolbarInfo.new(text,0) end
link_to(text, url, *args)
click to toggle source
# File lib/aureus/components/toolbar.rb, line 32 def link_to(text, url, *args) @items << ToolbarButton.new(text, 0, url, args) end
render()
click to toggle source
# File lib/aureus/components/toolbar.rb, line 46 def render content_tag 'ul', compact_render(*@items), class: @position end