TotalBase
Widgets

Layout

Cards, boxes, tabs and the other widgets that arrange the rest.

In the admin: Design form › Widgets › Layout

Widget
Card, Boxgroup widgets; a Card with a header and a footer
Tabs, Accordion, Collapsiblecontent that opens and closes
Splitterresizable panels side by side (stacked on a phone)
Scroll areaa fixed-height area that scrolls

Card

UCard · Nuxt UI

A framed section with a header and a footer.

Height: its content, or Fill height

Props

PropCodeTakes
Variantvariantƒ; solid, outline, soft, subtleIts style: filled, outlined, soft...

Also: Title title (ƒ), Description description (ƒ).

Slots

SlotCode
Headerheaderedited in place
Bodydefaultedited in place
Footerfooteredited in place

Example

{
  "widget": "UCard",
  "props": {
    "title": "Check-in"
  },
  "children": [
    {
      "widget": "TGeolocation",
      "bindings": {
        "modelValue": {
          "variable": "checkIn"
        }
      }
    },
    {
      "widget": "UButton",
      "slot": "footer",
      "props": {
        "label": "Start work"
      },
      "emits": {
        "click": "onStartClick"
      }
    }
  ]
}

Box

TBox · TotalBase

A plain area grouping widgets - no frame of its own: its look is its Style (padding, border, background, radius).

Height: its content, or Fill height

Slots

SlotCode
Contentdefaultedited in place

Tabs

UTabs · Nuxt UI

Sections one at a time, under a tab strip.

Props

PropCodeTakes
TabsitemsIts label may be a formula - "Items (" + + ")"; one off until a customer is picked, another shown only to some.
Open tabmodelValuea ValueA Value holding the open tab's key - set it from Code to switch tabs; empty opens the first.
ColorcolorƒOne of the theme's colors - primary, error, success...
Variantvariantƒ; pill, linkIts style: filled, outlined, soft...
Sizesizexs, sm, md, lg, xlFrom xs to xl - Default is md.
Orientationorientationhorizontal, verticalLaid out in a row or in a column.

Slots

SlotCode
Tab contentcontentedited in place; one per item; its widgets read {{slot.item}}, {{slot.index}}

Events

EventCodeReceives
Tab changedupdate:modelValue{ value }

Accordion

UAccordion · Nuxt UI

Sections that expand one (or several) at a time.

Props

PropCodeTakes
SectionsitemsIts label may be a formula; one off or hidden by a formula over the page.
Open sectionsmodelValuea ValueA Value holding the open section's key - a list of them with Open: multiple. Set it from Code to open one.
Opentypesingle, multiple
DisableddisabledƒShown greyed out - it can't be used.

Slots

SlotCode
Section bodybodyedited in place; one per item; its widgets read {{slot.item}}, {{slot.index}}

Events

EventCodeReceives
Section toggledupdate:modelValue{ value }

Collapsible

UCollapsible · Nuxt UI

A trigger that shows or hides its content.

Props

PropCodeTakes
Open at firstdefaultOpenStarts expanded.
DisableddisabledƒShown greyed out - it can't be used.

Slots

SlotCode
Triggerdefaultedited in place
Contentcontentedited in place

Events

EventCodeReceives
Opened / closedupdate:open{ open }

Methods

Called from Code as dataview.controls.<name>.<method>().

MethodCode
Openopen()Opens it
Closeclose()Closes it

Splitter

USplitter · Nuxt UI

Panels side by side, or one above the other - the viewer drags what's between them; each panel scrolls on its own.

Height: rows of 40 px, or Fill height

Props

PropCodeTakes
PanelsitemsOne per panel - its label names it on the canvas; its size and minimum in % of the whole, the sizes summing to 100 (changing one reshares the rest); Collapsible lets the viewer drag it shut.
Orientationorientationhorizontal, verticalLaid out in a row or in a column.
LockeddisabledThe panels keep their sizes - nothing to drag.

Slots

SlotCode
Panelpaneledited in place; one per item; its widgets read {{slot.item}}, {{slot.index}}

Scroll area

UScrollArea · Nuxt UI

A box with its own height that scrolls what it holds - its look from the Style tab.

Height: rows of 40 px, or Fill height

Props

PropCodeTakes
Orientationorientationhorizontal, verticalLaid out in a row or in a column.
Edge shadowsshadowA fade at the edges while there's more to scroll.

Slots

SlotCode
Contentdefaultedited in place

Next steps

  • Widgets: how a widget works, and every one of them.
  • Variables: what widgets show and change.