Method: PostRunner::NavButtonRow#to_html
- Defined in:
- lib/postrunner/NavButtonRow.rb
#to_html(doc) ⇒ Object
Add the object as HTML Elements to the document.
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/postrunner/NavButtonRow.rb', line 72 def to_html(doc) doc.unique(:nav_button_row_style) { doc.head { doc.style(style) } } doc.div({ :class => 'nav_button_row', :style => "width: #{@buttons.length * (32 + 10)}px; " + "#{@float ? "float: #{@float};" : 'margin-left: auto; margin-right: auto'}"}) { @buttons.each { |btn| btn.to_html(doc) } } end |