ui:context
Access the context of another parent component.
This is useful when you have nested components and you want to access the context of a parent component from another type. You cannot access the context of the current component using this ViewHelper. Use the exposed "context" variable instead.
Example
<ui:context name="dialog" as="dialogContext" />
Arguments
Name | Type | Description | Required | Default |
---|---|---|---|---|
name |
string | The name of the component of which we want the context | Yes | null |
as |
string | Variable name to assign the result to | No | null |