office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
39 lines (38 loc) • 1.32 kB
TypeScript
/// <reference types="react" />
import * as React from 'react';
import { IColumn } from 'office-ui-fabric-react/lib/DetailsList';
import './DetailsListExample.scss';
export interface IDetailsListDocumentsExampleState {
    columns: IColumn[];
    items: IDocument[];
    selectionDetails: string;
    isModalSelection: boolean;
    isCompactMode: boolean;
}
export interface IDocument {
    [key: string]: any;
    name: string;
    value: string;
    iconName: string;
    modifiedBy: string;
    dateModified: string;
    dateModifiedValue: number;
    fileSize: string;
    fileSizeRaw: number;
}
export declare class DetailsListDocumentsExample extends React.Component<any, IDetailsListDocumentsExampleState> {
    private _selection;
    constructor(props: any);
    render(): JSX.Element;
    componentDidUpdate(previousProps: any, previousState: IDetailsListDocumentsExampleState): void;
    private _onChangeCompactMode(checked);
    private _onChangeModalSelection(checked);
    private _onChangeText(text);
    private _onItemInvoked(item);
    private _randomDate(start, end);
    private _randomFileIcon();
    private _randomFileSize();
    private _getSelectionDetails();
    private _onColumnClick(ev, column);
    private _sortItems(items, sortBy, descending?);
}