def METHOD_NAME(self, context, layout):
    layout.prop(self, "mode", expand=False, text="")
    if self.mode == "EULER":
        col = layout.column(align=True)
        col.prop(self, "euler_order", text="")
    if self.mode in {"EULER", "AXISANGLE"}:
        row = layout.row(align=True)
        row.prop(self, "angle_units", expand=True)
    if self.mode in {"WXYZ", "SCALARVECTOR"}:
        layout.prop(self, "normalize", toggle=True)