Skip to main content
Version: 3.0.0-beta

Type Alias: CMSViewsBuilder()

CMSViewsBuilder: (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​

• params

• params.authController: AuthController

• params.dataSource: DataSourceDelegate

• params.user: User | null

Returns​

CMSView[] | Promise<CMSView[]>

Defined in​

packages/firecms_core/src/types/firecms.tsx:41

Sign up to our newsletter to get the latest news and updates. No spam!