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.
FormattedVector class
Signature
export declare class FormattedVector<T = any> extends FunctionalVector<string> Import
import { FormattedVector } from '@grafana/data';Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| constructor(source, formatter) | Constructs a new instance of the FormattedVector class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| length | number |
Methods
| Method | Modifiers | Description |
|---|---|---|
| get(index) |
constructor(source, formatter)
Constructs a new instance of the FormattedVector class
Signature
constructor(source: Vector<T>, formatter: DisplayProcessor);Parameters
| Parameter | Type | Description |
|---|---|---|
| source | Vector<T> | |
| formatter | DisplayProcessor |
length property
Signature
get length(): number;get method
Signature
get(index: number): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| index | number |
Returns:
string



