Toolbar: updated example code so it matches the example

Closes gh-228