getReferencedViewPConnect(passOptions)
Obtains the PConnect object associated with the referenced view.
Returns
The object associated with the referenced view.
Parameters
Name | Type | Description | Required |
passOptions | boolean | The flag that determines if the reference options will be passed to the view. | ❌ |
Usage example
In this example, the API returns the PConnect object associated with the
Address
view.
const meta = {
meta: {
type: 'reference',
config: {
type: 'view',
name: 'Address'
}
}
}
const pConnect = createC11nEnv(meta);
const pConn = pConnect.getPConnect().getReferencedViewPConnect();
Previous topic getReferencedView() Next topic getStateProps()