Skip to main content

Interface: FireCMSContext

Context that includes the internal controllers and contexts used by the app. Some controllers and context included in this context can be accessed directly from their respective hooks.

see useFireCMSContext

Properties#

authController#

authController: AuthController

Used auth controller

Defined in#

models/firecms_context.tsx:64


dataSource#

dataSource: DataSource

Connector to your database, e.g. your Firestore database

Defined in#

models/firecms_context.tsx:33


dateTimeFormat#

Optional dateTimeFormat: string

Format of the dates in the CMS. Defaults to 'MMMM dd, yyyy, HH:mm:ss'

Defined in#

models/firecms_context.tsx:23


entityLinkBuilder#

Optional entityLinkBuilder: EntityLinkBuilder<any>

Builder for generating utility links for entities

Defined in#

models/firecms_context.tsx:69


locale#

Optional locale: Locale

Locale of the CMS, currently only affecting dates

Defined in#

models/firecms_context.tsx:28


navigationContext#

navigationContext: NavigationContext

Context that includes the resolved navigation and utility methods and attributes.

see useNavigation

Defined in#

models/firecms_context.tsx:53


schemaRegistryController#

schemaRegistryController: SchemaRegistryController

This controller is in charge of resolving the entity schemas from a given path. It takes into account the navigation prop set in the main level of the CMSApp as well as the schemaResolver in case you want to override schemas to specific entities.

Defined in#

models/firecms_context.tsx:46


sideEntityController#

sideEntityController: SideEntityController

Controller to open the side dialog displaying entity forms

see useSideEntityController

Defined in#

models/firecms_context.tsx:59


storageSource#

storageSource: StorageSource

Used storage implementation

Defined in#

models/firecms_context.tsx:38