extends VBoxContainer func populate(data): $"%Length".text = "%d min" % data.estimated_length $"%Description".text = data.description if data.description != null else "" var tasks = SubTask.get_by_task(data.id) var SubTaskItem = load("res://screens/Task/SubTaskItem.tscn") var task_list = $"%SubTaskList" for task in tasks: var item = SubTaskItem.instance() item.populate(task) task_list.add_child(item)