Thanks @dhananjay21 - this was exactly what I needed to wrap up a custom widget!