added parameter description and example for on widget