I found a widget code that has repeater control and input gield on another question to make my own widget plugin.You can check the question:
the answer from Sengngy K