Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 953 Bytes

File metadata and controls

46 lines (29 loc) · 953 Bytes

Clone Row

Guide to the Clone Row plugin, which opens the create flow with values copied from an existing record so users can duplicate rows quickly.

Clone row

Allows to create a copy of record quickly, by substituting default values to create form

Instalation

To install the plugin:

pnpm add @adminforth/clone-row --save

Setting up

To setup the plugin just add it to your resource:

import CloneRow from "@adminforth/clone-row";

    ...

plugins: [
    
    ...
//diff-add
    new CloneRow({}),
    ...

]

Options

makeCloneButtonAsQuickAction

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,
}),