# FeatureTooltip

Auto-generated from the config schema in the source — see the [config guide](https://jbrowse.org/jb2/docs/config_guide) for concepts. Provided by the `features` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/features/src/LinearBasicDisplay/featureTooltipConfigSchema.ts).

The feature displays' `tooltip`, the box hovering a feature opens:
whether it `show`s, and the `field` its text reads. A bare string is the
field.

## Example usage

```js
{
  type: 'LinearBasicDisplay',
  tooltip: "jexl:get(feature,'name') + ' ' + get(feature,'biotype')",
}
```

## Config slots

A setting written to it names members one by one: a member left out stays as it is, and `null` resets one. Slot types (`fileLocation`, `frozen`, ...) are explained in the [config slot types reference](https://jbrowse.org/jb2/docs/config_guides/slot_types). Slots a base configuration contributes are listed here too, so this table is the whole surface.

| Slot | Description |
| --- | --- |
| **show**<br>[`boolean`](https://jbrowse.org/jb2/docs/config_guides/slot_types#boolean) = <code>true</code> | Off, hovering still highlights the feature and "Copy tooltip text" still copies it. |
| **field**<br><code>featureTooltipFieldSlot</code> | Left at the default, the tooltip adds the description line (`labels.description`) as a second row. |

