Class: Interview::ImageLightBox

Inherits:
Control
  • Object
show all
Defined in:
lib/interview/controls/image_light_box.rb

Instance Attribute Summary

Attributes inherited from Control

#parent

Instance Method Summary collapse

Methods inherited from Control

#ancestors, #build_child, #build_with_params, #find_attribute, #find_attribute!, #initialize, #set_attributes, #set_defaults

Constructor Details

This class inherits a constructor from Interview::Control

Instance Method Details

#build(b) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/interview/controls/image_light_box.rb', line 4

def build(b)
  b.section html_class: 'blueimp-gallery', html_options: { id: 'blueimp-gallery' } do
	  b.section html_class: "slides"
	  b.section html_class: "title"
	  b.text text: '', style: 'a', html_class: "prev"
	  b.text text: '', style: 'a', html_class: "next"
	  b.text text: '×', style: 'a', html_class: "close"
	  b.text style: 'a', html_class: "play-pause"
	  b.section style: 'ol', html_class: "indicator"
	end
end