@beautifuljs/grid-antd
v0.1.0
Published
Ant Design editor integrations for BeautifulGrid.
Maintainers
Readme
@beautifuljs/grid-antd
Ant Design editor integrations for BeautifulGrid.
Installation
pnpm add @beautifuljs/grid-antd antd beautiful-grid react react-domImport the integration stylesheet once in your application entry point:
import '@beautifuljs/grid-antd/style.css';Usage
import { createAntdSelectEditorPlugin } from '@beautifuljs/grid-antd';
const statusEditor = createAntdSelectEditorPlugin<Order, Order['status']>({
id: 'order-status',
ariaLabel: 'Select order status',
options: [
{ value: 'ready', label: 'Ready' },
{ value: 'shipped', label: 'Shipped' },
],
});
const columns = [
{
key: 'status',
label: 'Status',
width: 140,
editable: true,
editor: statusEditor,
},
];The package exports factories for Select, DatePicker, ColorPicker, Cascader,
TimePicker, and TreeSelect. Cascader integrations can use
formatCascaderClipboardText and parseCascaderClipboardText to define the
column clipboard contract.
License
Apache-2.0
See NOTICE and third-party notices.
