nl_tokens: Displays the { @link Ext . MessageBox } with a specified configuration . All display functions ( e . g . { @link #method - prompt } { @link #alert } { @link #confirm } ) on MessageBox call this function internally although those calls are basic shortcuts and do not support all of the config options allowed here .
pl_tokens: function ( initialConfig ) { Ext . util . InputBlocker . blockInputs ( ) ; //if it has not been added to a container, add it to the Viewport. if ( ! this . getParent ( ) && Ext . Viewport ) { Ext . Viewport . add ( this ) ; } if ( ! initialConfig ) { return this . callParent ( ) ; } var config = Ext . <mask> . merge ( { } , { value : '' } , initialConfig ) ; var buttons = initialConfig . buttons || Ext . MessageBox . OK || [ ] , buttonBarItems = [ ] , userConfig = initialConfig ; Ext . each ( buttons , function ( buttonConfig ) { if ( ! buttonConfig ) { return ; } buttonBarItems . push ( Ext . apply ( { userConfig : userConfig , scope : this , handler : 'onClick' } , buttonConfig ) ) ; } , this ) ; config . buttons = buttonBarItems ; if ( config . promptConfig ) { //<debug warn> Ext . Logger . deprecate ( "'promptConfig' config is deprecated, please use 'prompt' config instead" , this ) ; //</debug> } config . prompt = ( config . promptConfig || config . prompt ) || null ; if ( config . multiLine ) { config . prompt = config . prompt || { } ; config . prompt . multiLine = config . multiLine ; delete config . multiLine ; } config = Ext . merge ( { } , this . defaultAllowedConfig , config ) ; this . setConfig ( config ) ; var prompt = this . getPrompt ( ) ; if ( prompt ) { prompt . setValue ( initialConfig . value || '' ) ; } this . callParent ( ) ; return this ; }