@aappddeevv/dynamics-client-ui
Version:
## What is it? A library to help you create great dynamics applications.
29 lines (28 loc) • 775 B
TypeScript
/// <reference types="react" />
/** Simple list with click/doubleClick and single selection. */
import * as React from "react";
export interface Classes {
/** Attaches to the outer container list component, ul. */
list?: string;
/** For a selected item. */
selected?: string;
/** For each item, li. */
item?: string;
}
export interface Item {
id: string;
title?: string;
label: string;
}
export interface Props {
items?: Array<Item>;
onClick?: (id: string) => void;
onDoubleClick?: (id: string) => void;
selectedId: string | null | undefined;
classes?: Classes;
}
/**
* Presentational component for displaying a list. Single selection only.
**/
export declare const CrmList: React.SFC<Props>;
export default CrmList;