Skip to content

panel ​

INFO

To see panel in grouping eleelements, check out this example.

panel allows better organization of fields and data. Panel elements can hold other Klai elements.

KeyValue(s)TypeDescription
typepanelstring
modelobjectunused
titletextstringText string that will appear at the top of the panel
footertextstringText that appears at the bottom of the footer.
schema{}objectContains nested form schema
schema.fields[]arrayField elements to appear inside the panel
isOpenbooleanThe current state of the panels display
credentials{}objectcredential object
isFormbooleanDefines the panel as a form. Learn more
panelStyleClassesstring
bodyStyleClassesstring

Reference ​

yaml
// sample panel object
{
  "schema": {
    "fields": [
      {
        "label": "My Input",
        "model": "field1",
        "styleClasses": "col-md-12",
        "fieldOptions": {
          "inputType": "text"
        },
        "type": "input"
      }
    ]
  },
  "slots": [],
  "styleClasses": "col-md-6",
  "type": "panel"
}

​

Klai Studio documentation