Skip to main content

AdminForthResourceFrontend

Extends​

Properties​

columns​

columns: AdminForthResourceColumnCommon[]

Array of columns which will be displayed in the admin panel. Each column has its own configuration.

Inherited from​

AdminForthResourceCommon.columns


label​

label: string

Label for resource which will be displayed in the admin panel. By default it equals to table name in database.

Inherited from​

AdminForthResourceCommon.label


options​

options: AdminForthOptionsForFrontend


recordLabel?​

optional recordLabel?: (item) => string

Hook which allow you to modify record label

Example:

recordLabel: (record) => `${record.name} - ${record.id}`,

Parameters​

ParameterType
itemany

Returns​

string

Inherited from​

AdminForthResourceInputCommon.recordLabel


resourceId​

resourceId: string

Unique identifier of resource. By default it equals to table name in database. If you wish you can explicitly set it to any string. We added to support cases when 2 datasources have tables with the same name.

Inherited from​

AdminForthResourceCommon.resourceId