Module: LazyHighCharts::LayoutHelper
- Includes:
- ActionView::Helpers::TagHelper
- Included in:
- HighChart, HighChartGlobals
- Defined in:
- lib/lazy_high_charts/layout_helper.rb
Instance Method Summary collapse
- #high_chart(placeholder, object, &block) ⇒ Object
- #high_chart_globals(object) ⇒ Object
- #high_graph(placeholder, object, &block) ⇒ Object
- #high_graph_stock(placeholder, object, &block) ⇒ Object
- #high_stock(placeholder, object, &block) ⇒ Object
Instance Method Details
#high_chart(placeholder, object, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/lazy_high_charts/layout_helper.rb', line 7 def high_chart(placeholder, object, &block) object..merge!({:id => placeholder}) object.[:chart][:renderTo] = placeholder high_graph(placeholder, object, &block).concat(content_tag("div", "", object.)) end |
#high_chart_globals(object) ⇒ Object
19 20 21 |
# File 'lib/lazy_high_charts/layout_helper.rb', line 19 def high_chart_globals(object) build_globals_html_output(object) end |
#high_graph(placeholder, object, &block) ⇒ Object
23 24 25 |
# File 'lib/lazy_high_charts/layout_helper.rb', line 23 def high_graph(placeholder, object, &block) build_html_output("Chart", placeholder, object, &block) end |
#high_graph_stock(placeholder, object, &block) ⇒ Object
27 28 29 |
# File 'lib/lazy_high_charts/layout_helper.rb', line 27 def high_graph_stock(placeholder, object, &block) build_html_output("StockChart", placeholder, object, &block) end |
#high_stock(placeholder, object, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/lazy_high_charts/layout_helper.rb', line 13 def high_stock(placeholder, object, &block) object..merge!({:id => placeholder}) object.[:chart][:renderTo] = placeholder high_graph_stock(placeholder, object, &block).concat(content_tag("div", "", object.)) end |