mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
73 lines
1.4 KiB
Markdown
73 lines
1.4 KiB
Markdown
|
+++
|
||
|
# -----------------------------------------------------------------------
|
||
|
# Do not edit this file. It is automatically generated by API Documenter.
|
||
|
# -----------------------------------------------------------------------
|
||
|
title = "FieldDTO"
|
||
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||
|
type = "docs"
|
||
|
+++
|
||
|
|
||
|
## FieldDTO interface
|
||
|
|
||
|
Like a field, but properties are optional and values may be a simple array
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
export interface FieldDTO<T = any>
|
||
|
```
|
||
|
<b>Import</b>
|
||
|
|
||
|
```typescript
|
||
|
import { FieldDTO } from '@grafana/data';
|
||
|
```
|
||
|
<b>Properties</b>
|
||
|
|
||
|
| Property | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [config](#config-property) | <code>FieldConfig</code> | |
|
||
|
| [labels](#labels-property) | <code>Labels</code> | |
|
||
|
| [name](#name-property) | <code>string</code> | |
|
||
|
| [type](#type-property) | <code>FieldType</code> | |
|
||
|
| [values](#values-property) | <code>Vector<T> | T[]</code> | |
|
||
|
|
||
|
### config property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
config?: FieldConfig;
|
||
|
```
|
||
|
|
||
|
### labels property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
labels?: Labels;
|
||
|
```
|
||
|
|
||
|
### name property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
name: string;
|
||
|
```
|
||
|
|
||
|
### type property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
type?: FieldType;
|
||
|
```
|
||
|
|
||
|
### values property
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
values?: Vector<T> | T[];
|
||
|
```
|