Skip to main content

Function: getModelRefId()

function getModelRefId(target): string | undefined;

Uses a model getRefId() method whenever possible to get a reference ID. If the model does not have an implementation of that method it returns undefined. If the model has an implementation, but that implementation returns anything other than a string it will throw.

Parameters​

ParameterTypeDescription
targetobjectTarget object to get the ID from.

Returns​

string | undefined

The string ID or undefined.