Describes a tooltip. Values of this type, when provided through the [`showTooltip`](https://codemirror.net/6/docs/ref/#view.showTooltip) facet, control the individual tooltips on the editor.
| 3428 | individual tooltips on the editor. |
| 3429 | */ |
| 3430 | interface Tooltip { |
| 3431 | /** |
| 3432 | The document position at which to show the tooltip. |
| 3433 | */ |
| 3434 | pos: number; |
| 3435 | /** |
| 3436 | The end of the range annotated by this tooltip, if different |
| 3437 | from `pos`. |
| 3438 | */ |
| 3439 | end?: number; |
| 3440 | /** |
| 3441 | A constructor function that creates the tooltip's [DOM |
| 3442 | representation](https://codemirror.net/6/docs/ref/#view.TooltipView). |
| 3443 | */ |
| 3444 | create(view: EditorView): TooltipView; |
| 3445 | /** |
| 3446 | Whether the tooltip should be shown above or below the target |
| 3447 | position. Not guaranteed to be respected for hover tooltips |
| 3448 | since all hover tooltips for the same range are always |
| 3449 | positioned together. Defaults to false. |
| 3450 | */ |
| 3451 | above?: boolean; |
| 3452 | /** |
| 3453 | Whether the `above` option should be honored when there isn't |
| 3454 | enough space on that side to show the tooltip inside the |
| 3455 | viewport. Defaults to false. |
| 3456 | */ |
| 3457 | strictSide?: boolean; |
| 3458 | /** |
| 3459 | When set to true, show a triangle connecting the tooltip element |
| 3460 | to position `pos`. |
| 3461 | */ |
| 3462 | arrow?: boolean; |
| 3463 | /** |
| 3464 | By default, tooltips are hidden when their position is outside |
| 3465 | of the visible editor content. Set this to false to turn that |
| 3466 | off. |
| 3467 | */ |
| 3468 | clip?: boolean; |
| 3469 | } |
| 3470 | /** |
| 3471 | Describes the way a tooltip is displayed. |
| 3472 | */ |
no outgoing calls
no test coverage detected