@htmlbricks/hb-input-array-objects
v0.66.12
Published
Repeating records editor: `hb-table` lists existing rows (with delete actions), and `hb-form` renders the next row from `schemaentry.params.schema`; submitting appends to the array and updates the table. Registers `@htmlbricks/hb-form` and `@htmlbricks/hb
Downloads
1,708
Readme
hb-input-array-objects — input-array-objects
Category: inputs
Tags: inputs
What it does
Repeating records editor: hb-table lists existing rows (with delete actions), and hb-form renders the next row from schemaentry.params.schema; submitting appends to the array and updates the table. Registers hb-form and hb-table; optional add-object-label slot customizes the add button. Dispatches setVal with the objects array, valid, and id, and shows validationTip when show_validation is enabled.
Custom element
hb-input-array-objects
Attributes (snake_case; use string values in HTML)
id— optional stringstyle— optional stringschemaentry— required string (JSON:id,params.schemaas nested form schema, optionalvalueas row array with_objId,validationTip?,required?, …)show_validation— optional"yes"|"no"
Events
setVal—{ value: string; valid: boolean; id: string }(payloadvalueis the serialized array/object representation used by the component)
Usage notes
CSS part: properties-container. Slot: add-object-label.
Minimal HTML example
<hb-input-array-objects
schemaentry="{"id":"people","params":{"schema":[{"type":"text","id":"name","label":"Name"}]}}"
show_validation="no"
></hb-input-array-objects>