Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

FieldDTO interface

Like a field, but properties are optional and values may be a simple array

Signature

typescript
export interface FieldDTO<T = any> 

Import

typescript
import { FieldDTO } from '@grafana/data';

Properties

PropertyTypeDescription
configFieldConfig
labelsLabels
namestring
typeFieldType
valuesVector<T> | T[]

config property

Signature

typescript
config?: FieldConfig;

labels property

Signature

typescript
labels?: Labels;

name property

Signature

typescript
name: string;

type property

Signature

typescript
type?: FieldType;

values property

Signature

typescript
values?: Vector<T> | T[];