Implement onResize, an event which fires on widget size change
Actuall export onResize
Document onResize in the user manual
Text: add append/prepend functions