Skip to content
On this page

NcAppContent

App content container to be used for the main content of your app

Props

Prop nameDescriptionTypeValuesDefault
allowSwipeNavigationAllows to disable the control by swipe of the app navigation open stateboolean-true
listSizeAllows you to set the default width of the resizable list in %
Must be between listMinWidth and listMaxWidth
number-20
listMinWidthAllows you to set the minimum width of the list column in %number-15
listMaxWidthAllows you to set the maximum width of the list column in %number-40
paneConfigKeySpecify the config key for the pane config sizes
Default is the global var appName if you use the webpack-vue-config
string-''
showDetailsWhen in mobile view, only the list or the details are shown
If you provide a list, you need to provide a variable
that will be set to true by the user when an element of
the list gets selected. The details will then show a back
arrow to return to the list that will update this prop to false.
boolean-true

Events

Event namePropertiesDescription
update:showDetails

Slots

NameDescriptionBindings
listProvide a list to the app content
defaultProvide the main content to the app content

General description

This components provides a wrapper around the main app's content.

Single-column layouts can just use the default slot. A resizable column can be added by providing content to the named slot list.

CSS variables

In the css section some css variables are declared and will be available for all the children of the NcAppContent component

Examples

Usage: Single-column content

loading...

Usage: Two resizable columns

loading...

Overriding Defaults

The default, min and max sizes (in percent) of the resizable list column can be overridden. The list size must be between the min and the max width value.

loading...

NcAppDetailsToggle