UNPKG

@adminforth/foreign-inline-list

Version:

AdminForth plugin for adding list of children items to the parent item show page

32 lines (27 loc) 878 B
import { AdminForthResource } from 'adminforth'; export type PluginOptions = { /** * 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; }; }