Class: Decidim::Map::Frontend::Builder

Inherits:
Object
  • Object
show all
Defined in:
decidim-core/lib/decidim/map/frontend.rb

Overview

A general builder for any functionality needed for the views. Provides all the necessary functionality to display and initialize the front-end elements related to the given map utility.

Direct Known Subclasses

Autocomplete::Builder, DynamicMap::Builder

Instance Method Summary collapse

Constructor Details

#initialize(template, options) ⇒ Builder

Initializes the map builder instance.

Parameters:

  • template (ActionView::Template)

    The template within which the map is displayed.

  • options (Hash)

    Extra options for the builder object.



44
45
46
47
# File 'decidim-core/lib/decidim/map/frontend.rb', line 44

def initialize(template, options)
  @template = template
  @options = options
end

Instance Method Details

#append_assetsObject

Automatically append the javascript and the stylesheet assets for the map element.



51
# File 'decidim-core/lib/decidim/map/frontend.rb', line 51

def append_assets; end