Is there any way of doing that?
Thanks.
Custom widgets can be added to on premise Portal but NOT AGOL.
Here is a helpful link:
Add custom widgets—Portal for ArcGIS | ArcGIS Enterprise