FireCMSProps
@firecms/core / FireCMSProps
Type Alias: FireCMSProps<USER>
Section titled “Type Alias: FireCMSProps<USER>”FireCMSProps<
USER> =object
Defined in: types/firecms.tsx:52
Type Parameters
Section titled “Type Parameters”USER extends User
Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey:string
Defined in: types/firecms.tsx:75
If you have a custom API key, you can use it here.
authController
Section titled “authController”authController:
AuthController<USER>
Defined in: types/firecms.tsx:131
Delegate for implementing your auth operations.
children()
Section titled “children()”children: (
props) =>React.ReactNode
Defined in: types/firecms.tsx:59
Use this function to return the components you want to render under FireCMS
Parameters
Section titled “Parameters”context
Section titled “context”Context of the app
loading
Section titled “loading”boolean
Is one of the main processes, auth and navigation resolving, currently
loading. If you are building your custom implementation, you probably
want to show a loading indicator if this flag is true
Returns
Section titled “Returns”React.ReactNode
components?
Section titled “components?”
optionalcomponents:object
Defined in: types/firecms.tsx:172
missingReference?
Section titled “missingReference?”
optionalmissingReference:React.ComponentType<{path:string; }>
Component to render when a reference is missing
dataSourceDelegate
Section titled “dataSourceDelegate”dataSourceDelegate:
DataSourceDelegate
Defined in: types/firecms.tsx:121
Connector to your database
dateTimeFormat?
Section titled “dateTimeFormat?”
optionaldateTimeFormat:string
Defined in: types/firecms.tsx:111
Format of the dates in the CMS. Defaults to ‘MMMM dd, yyyy, HH:mm:ss’
entityActions?
Section titled “entityActions?”
optionalentityActions:EntityAction[]
Defined in: types/firecms.tsx:105
List of actions that can be performed on entities.
These actions are displayed in the entity view and in the collection view.
You can later reuse these actions in the entityActions prop of a collection,
by specifying the key of the action.
entityLinkBuilder?
Section titled “entityLinkBuilder?”
optionalentityLinkBuilder:EntityLinkBuilder
Defined in: types/firecms.tsx:156
Optional link builder you can add to generate a button in your entity forms. The function must return a URL that gets opened when the button is clicked
entityViews?
Section titled “entityViews?”
optionalentityViews:EntityCustomView[]
Defined in: types/firecms.tsx:97
List of additional custom views for entities.
You can use the key to reference the custom view in
the entityViews prop of a collection.
You can also define an entity view from the UI.
locale?
Section titled “locale?”
optionallocale:Locale
Defined in: types/firecms.tsx:116
Locale of the CMS, currently only affecting dates
navigationController
Section titled “navigationController”navigationController:
NavigationController
Defined in: types/firecms.tsx:88
This controller is in charge of the navigation of the CMS. It is in charge of resolving the collection and entity paths.
onAnalyticsEvent()?
Section titled “onAnalyticsEvent()?”
optionalonAnalyticsEvent: (event,data?) =>void
Defined in: types/firecms.tsx:150
Callback used to get analytics events from the CMS
Parameters
Section titled “Parameters”object
Returns
Section titled “Returns”void
plugins?
Section titled “plugins?”
optionalplugins:FireCMSPlugin<any,any,any>[]
Defined in: types/firecms.tsx:145
Use plugins to modify the behaviour of the CMS.
DEPRECATED: use the plugins prop in the useBuildNavigationController instead.
This prop will work as a fallback for the plugins prop in the useBuildNavigationController.
Deprecated
Section titled “Deprecated”propertyConfigs?
Section titled “propertyConfigs?”
optionalpropertyConfigs:Record<string,PropertyConfig>
Defined in: types/firecms.tsx:82
Record of custom form fields to be used in the CMS.
You can use the key to reference the custom field in
the propertyConfig prop of a property in a collection.
storageSource
Section titled “storageSource”storageSource:
StorageSource
Defined in: types/firecms.tsx:126
Connector to your file upload/fetch implementation
userConfigPersistence?
Section titled “userConfigPersistence?”
optionaluserConfigPersistence:UserConfigurationPersistence
Defined in: types/firecms.tsx:137
Use this controller to access the configuration that is stored locally, and not defined in code
userManagement?
Section titled “userManagement?”
optionaluserManagement:InternalUserManagement
Defined in: types/firecms.tsx:170
You can use this props to provide your own user management implementation. Note that this will not affect the UI, but it will be used to show user information in various places of the CMS, for example, to show who created or modified an entity, or to assign ownership of an entity.
You can also use this data to be retrieved in your custom properties, for example, to show a list of users in a dropdown.
If you are using the FireCMS user management plugin, this prop will be implemented automatically.