office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
60 lines (59 loc) • 1.7 kB
TypeScript
import * as React from 'react';
import { IStyle, ITheme } from '../../Styling';
import { IStyleFunctionOrObject } from '../../Utilities';
export interface IDetailsRowCheckProps extends React.HTMLAttributes<HTMLElement> {
/**
* Theme provided by High-Order Component.
*/
theme?: ITheme;
/**
* Style override
*/
styles?: IStyleFunctionOrObject<IDetailsRowCheckStyleProps, IDetailsRowCheckStyles>;
/**
* Is the check part of the header in a DetailsList
*/
isHeader?: boolean;
/**
* Whether or not this check is selected
*/
selected?: boolean;
/**
* Deprecated. Use 'selected' instead.
* @deprecated
*/
isSelected?: boolean;
/**
* Is any selected - also true for isSelectionModal
*/
anySelected?: boolean;
/**
* Can this checkbox be selectable
*/
canSelect: boolean;
/**
* Is this in compact mode?
*/
compact?: boolean;
/**
* Optional className to attach to the slider root element.
*/
className?: string;
/**
* The classname to be passed down to Check component
*/
checkClassName?: string;
/**
* Whether or not this checkbox is visible
*/
isVisible?: boolean;
}
export declare type IDetailsRowCheckStyleProps = Required<Pick<IDetailsRowCheckProps, 'theme'>> & Pick<IDetailsRowCheckProps, 'compact' | 'isHeader' | 'selected' | 'anySelected' | 'canSelect' | 'className'> & {
/** Is checkbox visible */
isVisible?: boolean;
};
export interface IDetailsRowCheckStyles {
root: IStyle;
check: IStyle;
isDisabled: IStyle;
}