ipygee.decorator ================ .. py:module:: ipygee.decorator .. autoapi-nested-parse:: Decorators used in ipygee. ported from https://github.com/12rambau/sepal_ui/blob/main/sepal_ui/scripts/decorator.py Functions --------- .. autoapisummary:: ipygee.decorator.switch Module Contents --------------- .. py:function:: switch(*params, member = None, debug = True) Decorator to switch the state of input boolean parameters on class widgets or the class itself. If ``widget`` is defined, it will switch the state of every widget parameter, otherwise it will change the state of the class (self). You can also set two decorators on the same function, one could affect the class and other the widget. :param \*params: any boolean member of a Widget. :param member: THe widget on which the member are switched. Default to self. :param debug: Whether trigger or not an Exception if the decorated function fails. :returns: The return statement of the decorated method