Here is the code snippet.

https://fiddle.sencha.com/#view/editor&fiddle/1pje