Here is the definition of prompt in ExtJS:
Ext.window.MessageBox.prompt( title, msg, [fn], [scope], [multiline], [value] ).
It is clear that fn is a function. But I’m always confused what parameters will be passed onto the fn. How can I find it out?
It’s in the docs, scroll down to the fn parameter: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.window.MessageBox-method-show