Helper for rendering child view models
Finds children matching “capture-to” values, and renders them using the composed view instance.
Invoke as a function
Proxies to {render()}.
Parameters: | string – |
---|---|
Return type: | string |
Render a model
If a matching child model is found, it is rendered. If not, an empty string is returned.
Parameters: | string – |
---|---|
Return type: | string |
Find the named child model
Iterates through the current view model, looking for a child model that has a captureTo value matching the requested $child. If found, that child model is returned; otherwise, a boolean false is returned.
Parameters: | string – |
---|---|
Return type: | false|Model |