Skip to content

Function: splitExtra() ​

ts
function splitExtra(text): object;

Experimental

Split a hover text into the main label and the <extra> box: extra is undefined when the template has no <extra> tag (the trace name is shown), '' when the box must be hidden.

Parameters ​

ParameterType
textstring

Returns ​

object

NameType
extrastring | undefined
textstring

Released under the MIT License.