@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
33 lines (32 loc) • 1.27 kB
TypeScript
import React from 'react';
import { BaseModel } from '../../Board.types';
import { EntryModel } from '../../../../components';
interface BoardColumnModel<T extends BaseModel> {
title: string;
counter?: React.ReactNode;
items: Array<T>;
children: (item: T) => React.ReactNode;
index: number;
draggableId: string;
onCreate: (text: string, columnId: string) => void;
onUpdate: (text: string, columnId: string) => void;
onDelete: (columnId: string) => void;
showCreatElements?: boolean;
showMenuColumn?: boolean;
variant?: 'float' | 'fixed' | 'transparent' | 'border';
positionCreateElement?: 'top' | 'bottom';
isDragDisabled?: boolean;
EntryProps?: EntryModel;
menuColumnProps: {
textDelete: string;
textUpdate: string;
};
AddCardProps: {
title: string;
placeholder: string;
};
columnWidth?: number | string;
customColorBorder?: string;
}
export declare const BoardColumn: <T extends BaseModel>({ items, children, draggableId, onCreate, onUpdate, onDelete, showCreatElements, showMenuColumn, isDragDisabled, variant, customColorBorder, title, index, EntryProps, counter, ...props }: BoardColumnModel<T>) => import("react/jsx-runtime").JSX.Element;
export {};