class Interview::Actionbar
Attributes
icon[RW]
title[RW]
Public Instance Methods
build(b) { || ... }
click to toggle source
# File lib/interview/controls/actionbar.rb, line 6 def build(b) title = @title || find_attribute(:title) icon = @icon if icon == :polymorphic object = find_attribute! :object icon = object.icon end b.section html_class: 'clearfix' do if block_given? b.section style: 'ul', html_class: 'list-inline pull-right' do b.meta_class pointer: self do yield end end end if title b.section style: 'p', html_class: 'h3' do if icon b.section style: 'span', html_class: icon b.space end b.text text: title end end end end
build_child(b, control, &block)
click to toggle source
Calls superclass method
Interview::Control#build_child
# File lib/interview/controls/actionbar.rb, line 34 def build_child(b, control, &block) b.section style: 'li' do super end end