getParameterTitle()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Returns the title to show for the parameter that ref points to: its title, its id when the title is empty, or the identifier of ref when the parameter is not known.
export declare function getParameterTitle(ref: ObjRef, parameter: IParameterMetadataObject | undefined): string;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | reference to the parameter, as stored by the object that uses it | |
parameter | IParameterMetadataObject | undefined | the parameter |
Returns
string
Remarks
Backends send a missing title as an empty string, so an empty title counts as missing. Pass what the caller’s catalog holds for ref, or undefined when it holds nothing (the parameter was deleted, is not accessible, or was not loaded). It takes any parameter kind, so every place that uses it shows a parameter under the same name.