Clone row
Allows to create a copy of record quickly, by substituting default values to create form
Instalation
To install the plugin:
pnpm install @adminforth/clone-row --save
Setting up
To setup the plugin just add it to your resource:
./resources/apartments.ts
import CloneRow from "@adminforth/clone-row";
...
plugins: [
...
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,
}),