extends MarginContainer var timeslot_id func populate(data): timeslot_id = data.id $"%Time".text = "%s ... " % DataHelpers.timeofday(data.start_time) $"%Name".text = data.name func _on_Button_button_up(): $"/root/Main".nav_screen("TimeSlot", TimeSlot, "get_by_id", [timeslot_id])