UNPKG

@pnp/spfx-controls-react

Version:

Reusable React controls for SharePoint Framework solutions

45 lines 1.14 kB
import * as React from 'react'; import { IFileTypeIconProps } from './IFileTypeIcon'; /** * File type icon component */ export declare class FileTypeIcon extends React.Component<IFileTypeIconProps, {}> { constructor(props: IFileTypeIconProps); /** * Function which returns the font icon */ private _getIconClassName; /** * Function which returns the image icon */ private _getIconImageName; /** * Function to retrieve the file extension from the path * * @param value File path */ private _getFileExtension; /** * Find the icon name for the provided extension * * @param extension File extension */ private _getIconByExtension; /** * Find the icon name for the application * * @param application */ private _getIconByApplicationType; /** * Return the right image size for the provided value * * @param value Image size value */ private _getFileSizeName; /** * Default React component render method */ render(): React.ReactElement<IFileTypeIconProps>; } //# sourceMappingURL=FileTypeIcon.d.ts.map