Adds code example for using menu options in partial view script
Merge pull request #1172