@knowmax/genericlist-fluentuiv9
Version:
Knowmax Generic list with basic CRUD support with Fluent V9 user interface implementation.
23 lines (22 loc) • 1.07 kB
TypeScript
import { FunctionComponent } from "react";
import { ButtonProps } from "@fluentui/react-button";
import { GenericCudList } from "@knowmax/genericlist-core";
type IHeadPanelProps<T = any, ET = any> = {
/** Title to display in head panel. */
title?: string;
/** List associated with head panel, needed to show create item. */
list?: GenericCudList<T, ET>;
/** Set to show create item button on the right side of head panel. Only when @see list is set. */
showCreateItem?: boolean;
/** Optional children to render between optional title and create item. */
children?: React.ReactNode;
/** Props for optional create item. */
createItemProps?: ButtonProps;
/** Optional text to display for optional create item. */
createItemText?: string;
/** Optional class name to merge with default class. */
className?: string;
};
/** Use to put a fancy head panel above list. For example containing list title, custom contents and create button. */
export declare const HeadPanel: FunctionComponent<IHeadPanelProps>;
export {};