Reference
Nodes
Components
Navigation Bar

Navigation Bar Component

Navigation Bars The Navigation Bar component takes a custom component and renders it for each page in the application. Components rendered by the navigation bar are provided with information about their associated page title and href. In addition, the navigation bar is aware of both the current page as well as any authentication rules that may prevent a page from being visited by the current user.

Properties

Visible

PropisVisible
Typeboolean
Defaulttrue

Whether or not this node is visible.

Enabled

PropisEnabled
Typeboolean
Defaulttrue

Whether or not this node is enabled.

Tooltip

Proptooltip
Typestring
Defaultundefined

The tooltip text to display when hovered or focused over this node.

Top

Proptop
Typenumber
Default1

The position of the node from the top side of the grid (grid-row-start).

Left

Propleft
Typenumber
Default1

The position of the node from the left side of the grid (grid-column-start).

Width

Propwidth
Typestring
Default800px

The width of the node. When this node is in a grid layout, this should be done using unitless grid column units (specifying 4 will become grid-column-end: span 4). When this node is in a stack layout, the width can be specified using CSS units (e.g. 100px or 100%), or be left unitless to be treated as flex-grow for the node.

Min Width

PropminWidth
Typestring
Defaultundefined

The minimum width of the node. When this node is in a grid layout, this property is ignored.

Max Width

PropmaxWidth
Typestring
Defaultundefined

The maximum width of the node. When this node is in a grid layout, this property is ignored.

Height

Propheight
Typestring
Default64px

The height of the node. When this node is in a grid layout, this should be done using unitless grid row units (specifying 4 will become grid-row-end: span 4). When this node is in a stack layout, the height can be specified using CSS units (e.g. 100px or 100%), or be left unitless to be treated as flex-grow for the node.

Min Height

PropminHeight
Typestring
Defaultundefined

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Max Height

PropmaxHeight
Typestring
Defaultundefined

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Overflow

Propoverflow
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal and vertical axes for content that is larger than its container.

Overflow X

PropoverflowX
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal axis for content that is larger than its container.

Overflow Y

PropoverflowY
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the vertical axis for content that is larger than its container.

Custom Styles

Propstyles
Typestring
Default::component { }

Custom CSS styles to be applied to the node. Use element.styles to refer to the current node.

Object Fit

PropobjectFit
TypeObjectFit ('none' | 'contain' | 'cover' | 'fill' | 'scale-down')
Defaultcover

The strategy used to set how the content of a replaced element should be resized to fit its container.

Component

Propcomponent
Type(string | null)
DefaultCOMPONENT/com.dynaboard.navbars:1729caf1-5304-4d30-a2ff-a78d8cc4e78a

The component to render for each item in the data array.

Layout Style

ProplayoutStyle
TypeNodeLayoutStyle ('GRID' | 'HORIZONTAL_STACK' | 'VERTICAL_STACK')
DefaultHORIZONTAL_STACK

The layout style of the items in the navigation bar (horizontal or vertical stack).

Padding

Proppadding
Typestring
Default0

The padding of the navigation bar.

Spacing

Propspacing
Typestring
Default0

The spacing to use between items of the navigation bar.

Item Width

PropitemWidth
Typestring
Defaultundefined

The width of the items in the navigation bar, in pixels or percentage.

Item Height

PropitemHeight
Typestring
Defaultundefined

The height of the items in the navigation bar, in pixels or percentage.

Item Min Width

PropitemMinWidth
Typestring
Defaultundefined

The min width of the items in the navigation bar, in pixels or percentage.

Item Max Width

PropitemMaxWidth
Typestring
Defaultundefined

The max width of the items in the navigation bar, in pixels or percentage.

Item Min Height

PropitemMinHeight
Typestring
Defaultundefined

The min height of the items in the navigation bar, in pixels or percentage.

Item Max Height

PropitemMaxHeight
Typestring
Defaultundefined

The max height of the items in the navigation bar, in pixels or percentage.

Navbar Items

PropnavBarItems
Typearray
Default[]

The item configuration for the navigation bar.

Item Configuration

PropnavBarItems[]
Typeobject
Defaultundefined

Options for each item

Title

PropnavBarItems[].title
Typestring
Defaultundefined

The title of the item

Link

PropnavBarItems[].href
Typestring
Defaultundefined

The URL this item will link to

Target

PropnavBarItems[].target
TypeLinkTargetMethod ('_self' | '_blank' | '_parent' | '_top')
Defaultundefined

The context in which the linked resource will open

Is Custom

PropnavBarItems[].isCustom
Typeboolean
Defaultundefined

Whether the item is a custom item

Accessor

PropnavBarItems[].accessor
Typestring
Defaultundefined

The property in the data to read for this item

ID

PropnavBarItems[].id
Typestring
Defaultundefined

A unique ID for this item

Is Visible

PropnavBarItems[].isVisible
Typeboolean
Defaultundefined

Whether the item should be showing in the navigation bar

Order Key

PropnavBarItems[].orderKey
Typestring
Defaultundefined

The key specifying the fractional index of this item

Is Active

PropnavBarItems[].isActive
Typeboolean
Defaultundefined

Whether the item is currently active

Is Disabled

PropnavBarItems[].isDisabled
Typeboolean
Defaultundefined

Whether the item is disabled

Orientation

PropnavBarItems[].orientation
Typestring
Defaultundefined

The orientation of the navigation bar and its items

Left Icon

PropnavBarItems[].leftIcon
Typestring
Defaultundefined

The icon to display on the left side of the nav item.