Guide to the Clone Row plugin, which opens the create flow with values copied from an existing record so users can duplicate rows quickly.
Allows to create a copy of record quickly, by substituting default values to create form
To install the plugin:
pnpm add @adminforth/clone-row --saveTo setup the plugin just add it to your resource:
import CloneRow from "@adminforth/clone-row";
...
plugins: [
...
//diff-add
new CloneRow({}),
...
]By default, the Clone action appears in the three-dots dropdown menu of each row. Set makeCloneButtonAsQuickAction: true to display it as a standalone icon button directly in the row actions area, next to other quick-action buttons like Approve:
new CloneRow({
makeCloneButtonAsQuickAction: true,
}),