Skip to content

accordion ​

The accordion allows collapsable data rows, much like a portal.

Accordion2 version adds slots that can replace the row header.

KeyTypeDescription
bfIdobjecta BetterForms UUID is generated and added to all browser side created records to help in post processing
defaultModelobjectwhen provided will be used to populate browser side created rows.
minnumber{optional} The minimum number of tabs the user is allowed to create. The delete icon will had when this number is reached.
maxnumber{optional} The maximum number of tabs the user is allowed to create. The add icons will hide when this number is reached.
modelarraythe data key the tab row data resides in. model must be initialized as an array. []
schemaobjectthe schema object follows the same construct as schema of its parent. It only needs to contain a fields array.
tabLabelModelstringPoint this to the data model.field. It will be used to display on the tab.

Notes ​

Set the min and max values to the same number to permanently hide the add and delete icons. Data within your data models array will still render rows accordingly.

Klai Studio documentation