rx/presenters

View on GitHub
app/demo/components/google_maps.pom

Summary

Maintainability
Test Coverage
require_relative '../helpers/indented_grid'

Voom::Presenters.define(:maps) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav
  attach :component_drawer
  page_title 'Maps'

  indented_grid do
    subheading 'Static Maps'

    address = '125 Park Street, Traverse City, MI'
    google_map address: address, height: 300, width: 400  do
      event :click do
        loads "https://www.google.com/maps/place/#{address}"
      end
    end

    attach :code, file: __FILE__
  end

end