Class: Live::View
Overview
Represents a single division of content on the page an provides helpers for rendering the content.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#The page this elemenet is bound to.=, #append, #append_markup, #bind, child, #close, #dispatch_event, #forward_event, #forward_form_event, #handle, #initialize, mount, #prepend, #remove, #render, #replace, root, #rpc, #script, #to_html, #to_s, unique_id, #update!
Constructor Details
This class inherits a constructor from Live::Element
Instance Method Details
#build_markup(builder) ⇒ Object
17 18 19 20 21 |
# File 'lib/live/view.rb', line 17 def build_markup(builder) builder.inline_tag self.tag_name, id: @id, data: @data do render(builder) end end |
#tag_name ⇒ Object
12 13 14 |
# File 'lib/live/view.rb', line 12 def tag_name "live-view" end |