fastn icon indicating copy to clipboard operation
fastn copied to clipboard

`children` type in `record` not working

Open Arpita-Jaiswal opened this issue 1 year ago • 2 comments

-- record person:
caption name:
children ui:


-- person list people:

-- person:
name: hello

-- ftd.text: Hello

-- end: person

-- end: people



-- display-person: $obj.name
ui: $obj.ui
$loop$: $people as $obj





-- component display-person:
caption name:
children ui:

-- ftd.column:
-- ftd.text: $display-person.name
-- ftd.column:
children: $display-person.ui

-- end: ftd.column
-- end: ftd.column

-- end: display-person

This is not working. The ui field of the children type in the record is not accepting the ftd.ui elements when passed as subsection.

But if we pass it as a block header, this is working. Checkout the code below:

-- person list people:

-- person:
name: hello

;; `ui` value passed in block header
-- person.ui
-- ftd.text: Hello
-- end: person.ui

-- end: people

Arpita-Jaiswal avatar Jun 13 '23 08:06 Arpita-Jaiswal

@Arpita-Jaiswal I would like to pick this Please assign

ashutosh887 avatar Jun 20 '23 10:06 ashutosh887

@Arpita-Jaiswal I would like to pick this Please assign

Hi @ashutosh887, Sure. If you need any help, please contact @Heulitig.

Arpita-Jaiswal avatar Jun 20 '23 12:06 Arpita-Jaiswal