(self, **kwargs)
Provide the user-defined callback function with additional metadata
        from the view.
Provide the user-defined callback function with additional metadata
        from the view.
Provide the user - defined callback function with additional metadata from the view .
def _wrapped_on_update_callback(self, **kwargs):
        """Provide the user-defined callback function with additional metadata
        from the view.
        """
        mode = kwargs["mode"]
        port_id = kwargs["port_id"]
        cache = kwargs["cache"]
        callback = kwargs["callback"]

        if cache.get(port_id) is None:
            cache[port_id] = {}

        if mode == "row":
            if cache[port_id].get("row_delta") is None:
                cache["row_delta"] = self._get_row_delta()
            callback(port_id, cache["row_delta"])
        else:
            callback(port_id)
def _wrapped_on_update_callback ( self , * * kwargs ) : mode = kwargs [ "mode" ] port_id = kwargs [ "port_id" ] cache = kwargs [ "cache" ] callback = kwargs [ "callback" ] if cache . get ( port_id ) is None : cache [ port_id ] = { } if mode == "row" : if cache [ port_id ] . get ( "row_delta" ) is None : cache [ "row_delta" ] = self . _get_row_delta ( ) callback ( port_id , cache [ "row_delta" ] ) else : callback ( port_id )