feat(menu): implement getRenderState
and getWidgetRenderState
#4540
+172
−45
getRenderState
and getWidgetRenderState
#4540