Skip to main content
Version: v3.0

Displays

Display groups render individual form inputs and labels for a model attribute on the show page. They are used in the ModelShowDescription component.

The complete list of display group components is below.

Layout​

The default layout is vertical. The other layouts are horizontal and floating. Individual fields can be configured to use a different layout by explicitly using the ModelDisplayGroup variant ie <ModelDisplayGroupHorizontal model="blog" path="title".

Global horizontal layout​

const rhinoConfig = {
version: 1,
components: {
ModelDisplayGroup: ModelDisplayGroupHorizontal
}
}

Global floating layout​

const rhinoConfig = {
version: 1,
components: {
ModelDisplayGroup: ModelDisplayGroupFloating
}
}

Display behaviour​

Change label​

const rhinoConfig = {
version: 1,
components: {
ModelDisplayGroup: { props: { label: 'Awesome Title!' } }
}
}

Change enpty placeholder​

const rhinoConfig = {
version: 1,
components: {
ModelDisplayGroup: { props: { empty: '/' } }
}
}

Component Hierarchy​