grafana/docs/sources/packages_api/data/fieldconfig.md
Marcus Andersson 6a0abf895e
Docs: generated a 7.0 version of the packages reference docs. (#24708)
* fixes so we match the transformer based on name properly.

* changed the signature on the FieldMatcher.

* introduced a names option so you can filter in name specificly.

* changed so the matcher UI uses the new options format.

* moved the exported functions together.

* changing editors a bit.

* made the filter by name work with both regex and name filtering.

* fixed failing tests and make sure we always parse regex the same way.

* removed unused code.

* simplified to make the existing field overrides still working.

* fixed issue reported by hugo.

* added tests for the name matcher.

* added tests for filter by name.

* added more tests.

* generated new version of the packages docs.

* fixed spelling error.

* regenerated the docs.
2020-05-14 21:34:59 +02:00

147 lines
2.7 KiB
Markdown

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "FieldConfig"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## FieldConfig interface
Every property is optional
Plugins may extend this with additional properties. Something like series overrides
<b>Signature</b>
```typescript
export interface FieldConfig<TOptions extends object = any>
```
<b>Import</b>
```typescript
import { FieldConfig } from '@grafana/data';
```
<b>Properties</b>
| Property | Type | Description |
| --- | --- | --- |
| [color](#color-property) | <code>FieldColor</code> | |
| [custom](#custom-property) | <code>TOptions</code> | |
| [decimals](#decimals-property) | <code>number &#124; null</code> | |
| [displayName](#displayname-property) | <code>string</code> | |
| [filterable](#filterable-property) | <code>boolean</code> | |
| [links](#links-property) | <code>DataLink[]</code> | |
| [mappings](#mappings-property) | <code>ValueMapping[]</code> | |
| [max](#max-property) | <code>number &#124; null</code> | |
| [min](#min-property) | <code>number &#124; null</code> | |
| [noValue](#novalue-property) | <code>string</code> | |
| [nullValueMode](#nullvaluemode-property) | <code>NullValueMode</code> | |
| [thresholds](#thresholds-property) | <code>ThresholdsConfig</code> | |
| [unit](#unit-property) | <code>string</code> | |
### color property
<b>Signature</b>
```typescript
color?: FieldColor;
```
### custom property
<b>Signature</b>
```typescript
custom?: TOptions;
```
### decimals property
<b>Signature</b>
```typescript
decimals?: number | null;
```
### displayName property
<b>Signature</b>
```typescript
displayName?: string;
```
### filterable property
<b>Signature</b>
```typescript
filterable?: boolean;
```
### links property
<b>Signature</b>
```typescript
links?: DataLink[];
```
### mappings property
<b>Signature</b>
```typescript
mappings?: ValueMapping[];
```
### max property
<b>Signature</b>
```typescript
max?: number | null;
```
### min property
<b>Signature</b>
```typescript
min?: number | null;
```
### noValue property
<b>Signature</b>
```typescript
noValue?: string;
```
### nullValueMode property
<b>Signature</b>
```typescript
nullValueMode?: NullValueMode;
```
### thresholds property
<b>Signature</b>
```typescript
thresholds?: ThresholdsConfig;
```
### unit property
<b>Signature</b>
```typescript
unit?: string;
```