class OpenComponents::RenderedComponent

Wrapper object for components using the ‘rendered` rendering mode.

Public

↑ top

Attributes

html[R]

Returns

Returns the HTML String for the rendered component.

Public Instance Methods

load() click to toggle source

Executes a request for the Component against the configured registry and sets the component attributes.

Examples

component = OpenComponents::RenderedComponent.new('my-component')
component.load
# => #<OpenComponents::RenderedComponent: ... >

Returns

Returns the Component with attributes set.

Calls superclass method OpenComponents::Component#load
# File lib/opencomponents/rendered_component.rb, line 17
def load
  @html = response_data['html']

  super
end