(context, options)
| 531 | } |
| 532 | |
| 533 | getTitle(context, options) { |
| 534 | const {callbacks} = options; |
| 535 | |
| 536 | const beforeTitle = invokeCallbackWithFallback(callbacks, 'beforeTitle', this, context); |
| 537 | const title = invokeCallbackWithFallback(callbacks, 'title', this, context); |
| 538 | const afterTitle = invokeCallbackWithFallback(callbacks, 'afterTitle', this, context); |
| 539 | |
| 540 | let lines = []; |
| 541 | lines = pushOrConcat(lines, splitNewlines(beforeTitle)); |
| 542 | lines = pushOrConcat(lines, splitNewlines(title)); |
| 543 | lines = pushOrConcat(lines, splitNewlines(afterTitle)); |
| 544 | |
| 545 | return lines; |
| 546 | } |
| 547 | |
| 548 | getBeforeBody(tooltipItems, options) { |
| 549 | return getBeforeAfterBodyLines( |
no test coverage detected