add a function which notify the custom element if a dot color was changed.