AdminForthResourceFrontend
Extends
Omit<AdminForthResourceCommon,"options">
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
dataSource
dataSource:
string
ID of datasource which will be used to fetch data from.
Inherited from
AdminForthResourceInputCommon.dataSource
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?
optionalrecordLabel?: (item) =>string
Hook which allow you to modify record label
Example:
recordLabel: (record) => `${record.name} - ${record.id}`,
Parameters
| Parameter | Type |
|---|---|
item | any |
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
table
table:
string
Table name in database which will be used to fetch data from. Might be case sensitive.