Page Node

Pages are the primary "views" of your application. Almost all apps will have at least one page.

You can navigate to a page by going to its route in your browser. For example, the widgets page will be available at https://yourprojectslug.dynaboard.app/widgets. The special index page will be mounted at the root of your domain.

You can lay out your pages whoever you'd like. Responsive layouts are enabled by CSS Grid properties.

Properties

Title

ProppageNode.title
Typestring
Defaultundefined

The title text that appears in the browser tab when this page is open.

Width

ProppageNode.width
Typestring
Default100%

The width of the page within the browser window. Usually, you'll want to leave this as 100% and instead modify maxWidth for responsive layouts.

Max Width

ProppageNode.maxWidth
Typestring
Default960px

The maximum width of the page within the browser window.

Min Height

ProppageNode.minHeight
Typestring
Default960px

The minimum height of the page within the browser window.

Background Color

ProppageNode.backgroundColor
Typestring
Defaultundefined

The background color of the page.

Layout Style

ProppageNode.layoutStyle
TypeNodeLayoutStyle ('GRID' | 'HORIZONTAL_STACK' | 'VERTICAL_STACK')
DefaultGRID

The layout style of the page. GRID is a powerful abstraction over CSS Grid, while VERTICAL_STACK resembles a prototypical CSS Flexbox layout.

Align Content

ProppageNode.alignContent
TypeNodeLayoutAlignStyle ('start' | 'center' | 'end')
Defaultstart

The alignment of the children nodes within the page. Corresponds to the align-items CSS Flexbox property.

Padding

ProppageNode.padding
Typestring
Default16

The internal padding of the page to place around its children.

Spacing

ProppageNode.spacing
Typestring
Default16

The spacing to use between child nodes of the page.

Grid Columns

ProppageNode.gridColumns
Typenumber
Default12

The number of columns in the page's grid system.

Grid Rows

ProppageNode.gridRows
Typenumber
Default0

The number of rows in the page's grid system, expanding to fill the container.

Grid Row Height

ProppageNode.gridRowHeight
Typestring
Default16

The height of each row within the page's grid system, in pixels.

Row Gap

ProppageNode.gridRowGap
Typestring
Default4

The space between each row within the page's grid system, in pixels.

Column Gap

ProppageNode.gridColumnGap
Typestring
Default4

The space between each column within the page's grid system, in pixels.

Custom Styles

ProppageNode.styles
Typestring
Defaultelement.styles { }

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