Skip to content

How hide some field in modal when create new row? #182

Closed Answered by IvanovRoman
IvanovRoman asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe? Edit: () => null
I write

{
      accessorKey: 'updatedAt',
      header: 'Updated',
      enableEditing: false,
      Edit: null
}

Typescript write error:
Type 'null' is not assignable to type '((props: { cell: MRT_Cell<Category>; column: MRT_Column<Category>; row: MRT_Row<Category>; table: MRT_TableInstance<Category>; }) => ReactNode) | undefined'.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@IvanovRoman
Comment options

Answer selected by IvanovRoman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants