Skip to main content

types/AdminForthConfig

Index

Enumerations

EnumerationDescription
ActionCheckSource-
AdminForthDataTypes-
AdminForthFilterOperators-
AdminForthMenuTypes-
AdminForthResourcePages-
AdminForthSortDirections-
AllowedActionsEnum-

Interfaces

InterfaceDescription
AdminForthClass-
AdminForthDataSourceConnector-
AdminForthDataSourceConnectorConstructor-
AdminForthPluginType-
CodeInjectorType-
ExpressHttpServerImplement this interface to create custom HTTP server adapter for AdminForth.
GenericHttpServerImplement this interface to create custom HTTP server adapter for AdminForth.

Type Aliases

Type aliasDescription
AdminForthColumnEnumItem-
AdminForthComponentDeclaration-
AdminForthComponentDeclarationFull-
AdminForthConfigMain configuration object for AdminForth
AdminForthConfigMenuItemMenu item which displayed in the left sidebar of the admin panel.
AdminForthDataSourceData source describes database connection which will be used to fetch data for resources. Each resource should use one data source.
AdminForthFieldComponents-
AdminForthForeignResource-
AdminForthResourceResource describes one table or collection in database. AdminForth generates set of pages for 'list', 'show', 'edit', 'create', 'filter' operations for each resource.
AdminForthResourceColumnColumn describes one field in the table or collection in database.
AdminUser-
AfterDataSourceResponseFunctionModify response to change how data is returned after fetching from database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
AfterSaveFunctionModify record to change how data is saved to database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
AllowedActionValueDefines whether user has access to an action, can statically be Boolean or function which returns Boolean or string with error message
AllowedActionsObject which describes allowed actions for user.
BeforeDataSourceRequestFunctionModify query to change how data is fetched from database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
BeforeSaveFunctionModify record to change how data is saved to database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
ValidationObject-