Pretty straightforward problem...
- On the dashboard, I click "New Widget".
- I select "My Custom Widget" type.
- A new instance of "My Custom Widget" appears on the dashboard, ready to be edited.
How can my widget be self-aware that it has just been created?
I need the widget to perform some very minor JS when it initially loads. Is there an existing JS event which would be triggered in this scenario?