Class: Decidim::Map::Frontend::Builder
- Inherits:
-
Object
- Object
- Decidim::Map::Frontend::Builder
- Defined in:
- 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
Instance Method Summary collapse
-
#initialize(template, options) ⇒ Builder
constructor
Initializes the map builder instance.
-
#javascript_snippets ⇒ String?
Displays the necessary front-end JavaScript assets for the map element.
-
#stylesheet_snippets ⇒ String?
Displays the necessary front-end stylesheet assets for the map element.
Constructor Details
#initialize(template, options) ⇒ Builder
Initializes the map builder instance.
44 45 46 47 |
# File 'lib/decidim/map/frontend.rb', line 44 def initialize(template, ) @template = template @options = end |
Instance Method Details
#javascript_snippets ⇒ String?
Displays the necessary front-end JavaScript assets for the map element.
61 |
# File 'lib/decidim/map/frontend.rb', line 61 def javascript_snippets; end |
#stylesheet_snippets ⇒ String?
Displays the necessary front-end stylesheet assets for the map element.
54 |
# File 'lib/decidim/map/frontend.rb', line 54 def stylesheet_snippets; end |