-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (28 loc) · 967 Bytes
/
types.ts
File metadata and controls
34 lines (28 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { AdminForthResource } from 'adminforth';
import {type PluginsCommonOptions } from "adminforth";
export interface PluginOptions extends PluginsCommonOptions {
/**
* Id of the resource to be displayed in the inline list.
*
* Resource mandatory should have one columns which defined {@link AdminForthResourceColumn.foreignResource} which
* should be equal to the resourceId of the resource where plugin is used.
*/
foreignResourceId: string;
/**
* Function to modify the resource config of the table.
* Can be used to define list of columns visible in the inline list.
* Or modify listPageSize
*
* @param resourceConfig - Resource config of the table.
*/
modifyTableResourceConfig?: (resourceConfig: AdminForthResource) => void;
/**
* Place the component in a specific group.
*
* @param group - Group to place the component in.
*/
placeInGroup?: {
name: string;
position: number;
};
}