(self, cls, force=False)
Register the plugin renderer in the registry.

        :param dash.base.BasePluginRenderer cls: Subclass of
            ``dash.base.BasePluginRenderer``.
Register the plugin renderer in the registry.
Register the plugin renderer in the registry .
def register(self, cls, force=False):
        """Register the plugin renderer in the registry.

        :param dash.base.BasePluginRenderer cls: Subclass of
            ``dash.base.BasePluginRenderer``.
        """
        if not issubclass(cls, self.type):
            raise InvalidRegistryItemType(
                "Invalid item type `{0}` for "
                "registry `{1}`".format(cls, self.__class__)
            )

        uid = PluginWidgetRegistry.namify(
            cls.layout_uid,
            cls.placeholder_uid,
            cls.plugin_uid
        )

        # If item has not been forced yet, add/replace its' value in the
        # registry.
        if force:

            if uid not in self._forced:
                self._registry[uid] = cls
                self._forced.append(uid)
                return True
            else:
                return False

        else:

            if uid in self._registry:
                return False
            else:
                self._registry[uid] = cls
                return True
def register ( self , cls , force = False ) : if not issubclass ( cls , self . type ) : raise InvalidRegistryItemType ( "Invalid item type `{0}` for " "registry `{1}`" . format ( cls , self . __class__ ) ) uid = PluginWidgetRegistry . namify ( cls . layout_uid , cls . placeholder_uid , cls . plugin_uid ) # If item has not been forced yet, add/replace its' value in the # registry. if force : if uid not in self . _forced : self . _registry [ uid ] = cls self . _forced . append ( uid ) return True else : return False else : if uid in self . _registry : return False else : self . _registry [ uid ] = cls return True