@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
24 lines • 830 B
TypeScript
import { BaseComponentContext } from '@microsoft/sp-component-base';
export interface IListItemAttachmentsProps {
listId: string;
itemId?: number;
className?: string;
webUrl?: string;
disabled?: boolean;
context: BaseComponentContext;
openAttachmentsInNewWindow?: boolean;
/**
* Main text to display on the placeholder, next to the icon
*/
label?: string;
/**
* Description text to display on the placeholder, below the main text and icon
*/
description?: string;
/**
* Callback function to notify parent components when attachments are modified and the item ETag changes
* @param itemData - The updated item data including the new ETag
*/
onAttachmentChange?: (itemData: any) => void;
}
//# sourceMappingURL=IListItemAttachmentsProps.d.ts.map