module Kiso::AppComponentHelper
def appui(component, part = nil, collection: nil, ui: nil, scope: nil, **kwargs, &block)
- Example: Render a collection -
Example: Share domain locals with sub-parts via scope -
Example: Render with per-slot overrides -
Example: Render a pricing card with composed sub-parts -
Example: Render a pricing card -
Returns:
-
(ActiveSupport::SafeBuffer)- rendered HTML string
Other tags:
- Yield: - optional block for component content
Parameters:
-
kwargs(Hash) -- locals forwarded to the partial (e.g. -
scope(Hash, nil) -- domain locals shared from parent to sub-parts -
ui(Hash{Symbol => String}, nil) -- per-slot class overrides keyed -
collection(Array, nil) -- when present, renders the partial once -
part(Symbol, nil) -- optional sub-part name (e.g. +:header+, -
component(Symbol) -- the component name (e.g. +:pricing_card+).
def appui(component, part = nil, collection: nil, ui: nil, scope: nil, **kwargs, &block) kiso_render_component( component, part, path_prefix: "components", collection: collection, ui: ui, scope: scope, merge_global_ui: false, **kwargs, &block ) end
def appui_tag(...)
- Example: In a host app component partial -
Other tags:
- See: ComponentHelper#kui_tag - for full parameter documentation
def appui_tag(...) kui_tag(...) end