EnsembleUI / ensemble

Build native apps 20x faster than Flutter, RN or any other tech
https://ensembleui.com/
BSD 3-Clause "New" or "Revised" License
125 stars 15 forks source link

Cannot access the value of a TextInput that is inside a custom widget #316

Closed amin-nas closed 1 year ago

amin-nas commented 1 year ago

When I place a TextInput inside a custom widget, I cannot access it's value from the parent View.

View:
  Column: 
    styles: { gap: 16, padding: 24 }
    children:       
      - CustomForm
      - Button:
          label: Submit
          onTap: |
            //@code
            valueText.text = todoItem.value;
      - Text:
          id: valueText

CustomForm:
  Form:
    children:
      - TextInput:
          id: todoItem
          label: ToDo item
kmahmood74 commented 1 year ago

this is not supposed to work, closing