Skip to main content
Version: 1.0.1

getLibraryAttachments

@spartanfx/react v1.0.1


@spartanfx/react / getLibraryAttachments

Function: getLibraryAttachments()

getLibraryAttachments(formContext, section?): InlineItem<ILibraryAttachmentListItem | INewLibraryAttachment>[]

Retrieves the current list of attachments (excluding deleted ones) from the form state.

Parameters

formContext

IListFormContext

The current list form context.

section?

string

Optional section to scope attachment filtering.

Returns

InlineItem<ILibraryAttachmentListItem | INewLibraryAttachment>[]

An array of inline attachment items.

Example

getLibraryAttachments(formContext, section?)