DocumentListItem: {
    _content: string;
    _fields: Record<string, {
        Options: Record<string, any>;
        Show?: boolean;
        Type: string;
        Value: string;
    }>;
    name: string;
    relativePath: string;
    type: "file" | "folder";
}

Type declaration

  • _content: string

    The _content:string; property in the IDocumentListItem interface is used to store the content of a document list item. It represents the actual content of the item, such as the text of a document or the data in a file. The property is of type string, which means it can hold a string value.

  • _fields: Record<string, {
        Options: Record<string, any>;
        Show?: boolean;
        Type: string;
        Value: string;
    }>

    The _fields property in the IDocumentListItem interface is used to define the fields of a document list item. It is an object that contains key-value pairs, where the key is the field name and the value is an object that describes the field.

  • name: string

    The name:string; is defining a property called name in the IGridListProps interface. This property is of type string, which means it can hold a string value. It represents the name of a grid list.

  • relativePath: string

    The relativePath:string; property in the IDocumentListItem interface is used to store the relative path of a document list item. It represents the path of the item relative to the root folder of the document library.

  • type: "file" | "folder"

    The type:'file'|'folder'; is defining a property called type in the IDocumentListItem interface. This property can have two possible values: 'file' or 'folder'. It is used to indicate whether the item in the document list is a file or a folder.