listNestedDefinitions
Exports a list of all nested definitions that have a reference set and are in the supplied definition.
Signature
listNestedDefinitions(
definition: IDefinition | INestedDefinition
): INestedDefinitionList
Parameters
Name | Type | Optional | Description |
---|---|---|---|
definition | IDefinition | INestedDefinition | No | Specifies the source definition. |
Return value
Returns an object of type INestedDefinitionList
with the nested definitions where the reference of each nested definition is used as key.
tip
Use Object.keys
to retrieve an array of reference strings:
const referencesArray = Object.keys(
listNestedDefinitions(/* Supply your form definition here */)
);