EMBED.fieldTypeIsGlobal
Passing in a data source field from your component, will return if the data source configured is of type Global.
Parameters
(JSON Object) field
Return Value
Boolean
Example
let data = EMBED.getComponent().schema.data;
let input = data.inputValue
if (EMBED.fieldTypeIsGlobal(input))
{
console.log(‘field type is Global’);
}
Related Manifest field
"inputValue": {
"title": "Input Value",
"type": "number",
"$ref": "#/definitions/dataSource"
}