List Form

Hierarchy

  • IListForm
    • IListForm

Methods

  • Creates an instance of the list form

    Parameters

    • props: IListFormProps

      The list form properties.

    Returns PromiseLike<IListFormResult>

  • Method to generate the odata query for the list item.

    Parameters

    • info: IListFormResult
    • Optional loadAttachments: boolean

    Returns IODataQuery

  • Method to load the item attachments

    Parameters

    • info: IListFormProps

      The list form information.

    Returns PromiseLike<Attachment[]>

  • Method to refresh the item.

    Parameters

    • info: IListFormResult

      The list form information.

    Returns PromiseLike<IListFormResult>

  • Method to remove attachment from an item.

    Parameters

    • info: IListFormResult
    • fileName: string

    Returns PromiseLike<IListFormResult>

  • Method to save attachments to the item.

    Parameters

    • info: IListFormProps

      The list form information.

    • attachmentInfo: IListFormAttachmentInfo[]

      The attachment files to add.

    Returns PromiseLike<Attachment[]>

  • Method to save the item.

    Parameters

    • info: IListFormResult

      The list form information.

    • formValues: any

    Returns PromiseLike<IListFormResult>

  • Method to show the file dialog.

    Parameters

    • Optional accept: string[]

      The acceptable file extensions to allow.

    Returns PromiseLike<IListFormAttachmentInfo>

  • Method to show the file dialog.

    Parameters

    • Optional accept: string[]

      The acceptable file extensions to allow.

    • Optional info: IListFormResult

      The list form information.

    • Optional onSave: ((IListFormAttachmentInfo) => void)

      The save event triggered when a file is uploaded to the item.

        • (IListFormAttachmentInfo): void
        • Parameters

          • IListFormAttachmentInfo: any

          Returns void

    Returns PromiseLike<IListFormResult>

Generated using TypeDoc