Rendro.Component (Rendro v0.2.0)

Copy Markdown View Source

Component-based layout pattern for reusable PDF UI parts.

Summary

Functions

Creates a standard Rendro.Block containing a Rendro.Image. Requires at least one constraint: :width, :height, or :fit.

Renders a component by calling its render/1 function.

Functions

image(logical_name, opts \\ [])

Creates a standard Rendro.Block containing a Rendro.Image. Requires at least one constraint: :width, :height, or :fit.

render_component(module, assigns \\ [])

Renders a component by calling its render/1 function.