FieldArrayApi interface
Signature
export interface FieldArrayApi
Import
import { FieldArrayApi } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
append | (value: FieldArrayValue) => void | |
fields | Array<Record<string, any>> | |
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<Record<string, any>>;
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;