def METHOD_NAME(self, context, layout):
    if self.mode == 'vector':
        layout.prop(self, "v_int", text="List Length")
    else:
        layout.prop(self, "int_", text="List Length")
    layout.prop(self, "mode", expand=True)
    if self.mode == 'vector':
        col = layout.column(align=False)
        for i in range(self.v_int):
            row = col.row(align=True)
            for j in range(3):
                row.prop(self, 'vector_list', index=i*3+j, text='XYZ'[j])
    elif self.mode == 'int_list':
        col = layout.column(align=True)
        listinput_drawI(self,col)
    else:
        col = layout.column(align=True)
        listinput_drawF(self,col)