EditButton

EditButton is intended for writing into the schema. It serves here as a direct transition from the data dump table to the editing section of the administration.

Usage:

import { EditButton } from 'react-adminer';

Example

user: {
	fields: [
			{
				name: 'id',
				nullable: false,
				type: 'string',
				sortable: true,
				creatable: false,
				editable: false,
			},
			{
				name: 'name',
				nullable: false,
				type: 'string',
				sortable: true,
				creatable: true,
				editable: true,
			},
			{
				name: 'edit',
				type: 'virtual',
				
				virtual: true,
			},
		],
},

When using it, the conditions for its correct use and functionality must be observed. It is necessary to declare type: 'virtual' and virtual: true. The EditButton itself is declared in render (render: EditButton).

Last updated