Custom Child Table

Hi guys!! I want to add a button and put an action on a child of a table. Anyone knows how?

cur_frm.add_child("fieldname", {"..."})

can u give me a complete syntax or example