Home > @i2analyze/notebook-sdk > records > IChartRecordBase > labelOrFallback
records.IChartRecordBase.labelOrFallback property
Gets the label of the record or, if there is no label, an application-standard fallback string such as '<No label>'.
Signature:
readonly labelOrFallback: string;
Returns: string
Introduced: version 1.0
Remarks
When a record has no label, it is a common pattern to display something in the user interface to indicate the fact, instead of just a blank space. i2 Notebook contains a standard piece of translated fallback text such as '<No label>' that the application uses in those scenarios.
If you need to know whether there was actually a label, because you want to handle the no-label case differently, call getLabelDetails() instead.