API Reference@grafana/ui › FieldArrayApi

FieldArrayApi interface

Signature

export interface FieldArrayApi 

Import

import { FieldArrayApi } from '@grafana/ui';

Properties

Property Type Description
append (value: FieldArrayValue) => void
fields Array<Partial<ArrayField<FieldValues, ‘id’>>>
insert (index: number, value: FieldArrayValue) => void
move (from: number, to: number) => void
prepend (value: FieldArrayValue) => void
remove (index?: number | number[]) => void
swap (indexA: number, indexB: number) => void

append property

Signature

append: (value: FieldArrayValue) => void;

fields property

Signature

fields: Array<Partial<ArrayField<FieldValues, 'id'>>>;

insert property

Signature

insert: (index: number, value: FieldArrayValue) => void;

move property

Signature

move: (from: number, to: number) => void;

prepend property

Signature

prepend: (value: FieldArrayValue) => void;

remove property

Signature

remove: (index?: number | number[]) => void;

swap property

Signature

swap: (indexA: number, indexB: number) => void;