def render(comp, val): _type = dr.get_component_type(comp) func = RENDERERS.get(_type) return func(comp, val) if func else str(val)
def _get_type_name(self, comp): try: return dr.get_component_type(comp).__name__ except: return ""
def render(comp, val): _type = dr.get_component_type(comp) func = RENDERERS.get(_type) return func(comp, val) if func else str(val)
def _get_type_name(self, comp): try: return dr.get_component_type(comp).__name__ except: return ""