GitHub

DataGrid

The DataGrid component is used to edit and display data.

Preview

API Reference

proptypedefaultdescription
packagetyping.Literal['flect']flectNone
class_nametyping.Optional[str]NoneSpecifies the Tailwind CSS classes for the component.
modeltyping.Type[pydantic.main.BaseModel]NoneDefines the data grid's data model.
datasetslist[typing.Annotated[pydantic.main.BaseModel, SerializeAsAny()]]NoneDefines the data grid's datasets.
submit_methodtyping.Literal['POST', 'PUT', 'PATCH']POSTSpecifies the HTTP method for form submission.
submit_url<class 'str'>NoneSpecifies the URL where the form will be submitted.
submit_texttyping.Optional[str]NoneSpecifies the text for the submit button.