Skip to main content
Version: 2.0.0

Type alias: CMSViewsBuilder

Ƭ CMSViewsBuilder: (params: { authController: AuthController ; dataSource: DataSource ; user: User | null }) => CMSView[] | Promise<CMSView[]>

Type declaration

▸ (params): CMSView[] | Promise<CMSView[]>

Use this callback to build custom views dynamically. You can use the user to decide which views to show. You can also use the data source to fetch additional data to build the views. Note: you can use any type of synchronous or asynchronous code here, including fetching data from external sources, like using the Firestore APIs directly, or a REST API.

Parameters
NameType
paramsObject
params.authControllerAuthController
params.dataSourceDataSource
params.userUser | null
Returns

CMSView[] | Promise<CMSView[]>

Defined in

lib/src/types/firecms.tsx:41

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!