Skip to main content

LoanCollectionObject

type LoanCollectionObject = {
id: string;
objectType: string;
removeAt: (index: number, applicationIndex: number) => void;
};

Loan collection object

Properties

id

id: string;

unique id of the collection. e.g: LoanCollection


objectType

objectType: string;

object type


removeAt

removeAt: (index: number, applicationIndex: number) => void;

Removes a collection record from the LoanCollection reference

Parameters

index

number

Zero based collection index to delete, i.e. use 0 to delete first record from collection. This argument is required. You can also use negative values to delete in reverse order e.g to delete last record use -1, second from last use -2 & so on.

applicationIndex

number

Zero based application index (Borrower Pair Index), use 0 to remove data that belongs to 1st borrower pair. This argument is optional. If this argument is missing, removeAt will perform delete on current selected borrower pair's index

Returns

void