What I’m trying to do: I am trying to add two TextAreas inside of a GridPanel through Code
What I’ve tried and what’s not working: I tried grabbing the information and attributes of the existing TextArea but I’m not sure which properties determine where TextArea sits in the GridPanel.
Code Sample: my function that is linked to the button to add a new row
def button_add_experience_click(self, **event_args):
"""This method is called when the button is clicked"""
new_textarea_category = TextArea()
new_textarea_description = TextArea()
for component in self.experience1_grid.get_components():
if isinstance(component, TextArea):
textarea_desc = component
print(textarea_desc)
print(textarea_desc.width) ```
Clone link: Anvil | Login