How to make public event in custom widget?