REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 550 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/hooks/use-action/use-action.doc.md
Text
Base64
The hook which allows you to use {@link ActionJSON} to perform actual actions on the backend. Base on the action type and parameters (like {@link ActionJSON.guard}) it behaves differently. ### Usage ```javascript import { useAction } from 'adminjs' import { Button } from '@adminjs/design-system' const myComponent = ({ action }) => { const { href, handleClick } = useAction(action, { resourceId, recordId, recordIds, }, actionPerformed) return ( <Button as="a" onClick={handleClick} href={href}>Click this action</Button> ) } ```
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
119 B
lrw-r--r--
2026-02-28 00:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-action-response-handler.ts
922 B
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-action.doc.md
550 B
lrw-r--r--
2026-02-28 00:31:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-action.ts
1.61 KB
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
use-action.types.ts
1.19 KB
lrw-r--r--
2026-02-28 00:32:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).