gd-sprest-js
Version:
SharePoint 2013/Online js components.
47 lines (46 loc) • 1.28 kB
TypeScript
import { IProps } from ".";
import { IListItem } from "./fabric";
/**
* List Item Action
*/
export interface IListItemAction {
/** The icon name. */
iconName: string;
/** The click event. */
onClick?: (item: IListItem, ev?: MouseEvent) => void;
/** The target behavior when redirecting to a url. */
target?: string;
/** The url to redirect to. */
url?: string;
}
/**
* List Item Properties
*/
export interface IListItemProps extends IProps {
/** The list item actions. */
actions?: Array<IListItemAction>;
/** True for document types. */
isDocument?: boolean;
/** True for image types. */
isImage?: boolean;
/** True to make the item selectable. */
isSelectable?: boolean;
/** True to make the item selected. */
isSelected?: boolean;
/** True to make the item unread. */
isUnread?: boolean;
/** True to make the item unseen. */
isUnseen?: boolean;
/** The meta text. */
metaText?: string;
/** The primary text. */
primaryText?: string;
/** The secondary text. */
secondaryText?: string;
/** The selection target. */
selectionTarget?: string;
/** The tertiary text. */
tertiaryText?: string;
/** The list item value. */
value?: string;
}