Skip to main content
Version: v3.0

Sidebar

Displayed Models

The sidebar displays a list of models that are available to the user. The list is generated from the models property of the PrimaryNavigation component.

const rhinoConfig = {
version: 1,
components: {
PrimaryNavigation: { props: { models: ['blog', 'blog_post'] } }
}
}

You can also organize by roles.

const rhinoConfig = {
version: 1,
components: {
PrimaryNavigation: { props: { models: { admin: ['blog', 'blog_post'], viewer: ['blog'] } } }
}
}

Or you can provide a function that returns the models either as an array or an object if you need to dynamically determine the models.

const rhinoConfig = {
version: 1,
components: {
const getModels = () => ['blog', 'blog_post']

PrimaryNavigation: { props: { models: getModels } }
}
}