UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

24 lines 1.6 kB
import * as React from 'react'; import { IDrillItemInfo } from '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/IDrillItem'; import { IAnySourceItemAny } from '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent'; import { IReactListItemsProps } from './IReactListItemsProps'; /** * Standalone renderer for permissions/sharing icon cell. * Meant to mirror the internal `_renderPerms` method in `reactListView.tsx`. * * @param fieldName - 'HasUniqueRoleAssignments' | 'ItemSharingInfo' * @param item - item data * @param props - component props (used for webUrl, listId, listTitle, bannerProps) * @param onShowPanel - callback to open details panel: accepts an `IAnySourceItemAny` */ export declare function renderPermsStandalone(fieldName: string, item: IDrillItemInfo, props: IReactListItemsProps, onShowPanel: (clickType: 'Panel' | 'Attach' | 'Perms' | 'Command' | 'Sharing', i: IAnySourceItemAny, e?: React.MouseEvent<HTMLElement>) => void): JSX.Element; /** * Standalone renderer for attachments icon cell. * Mirrors the `_renderAttach` method in `reactListView.tsx`. * * @param item - item data * @param props - component props (used to check `includeDetails`) * @param onShowPanel - callback to open details panel when attachments clicked */ export declare function renderAttachStandalone(item: IDrillItemInfo, props: IReactListItemsProps, onShowPanel: (clickType: 'Panel' | 'Attach' | 'Perms' | 'Command', i: IAnySourceItemAny, e?: React.MouseEvent<HTMLElement>) => void): JSX.Element; //# sourceMappingURL=specialRenders.d.ts.map