package/ui/phpvirtualbox/js/phpvirtualbox.js
/**
 * Toolbar class for single button
 *
 * @constructor
 * @class vboxToolbarSmall
 * @super vboxToolbar
 * @param {Object} options
 *      button - button for toolbar
 *      language_context - language context to use for translations
 *      renderTo - element to render toolbar to
 *     
*/
Toolbar class for single button
@constructor
@class vboxToolbarSmall
@super vboxToolbar
@param {Object} options
button - button for toolbar
language_context - language context to use for translations
renderTo - element to render toolbar to
Toolbar class for single button @constructor @class vboxToolbarSmall @super vboxToolbar @param { Object } options button - button for toolbar language_context - language context to use for translations renderTo - element to render toolbar to
function vboxToolbarSingle(options) {
    var self = this;
	this.parentClass = vboxToolbarSmall;
	options.buttons = [options.button];
	renderTo = options.renderTo;
	options.renderTo = undefined;
	this.parentClass(options);
	this._buttonElement = this.buttonElement; 
	this.buttonElement = function(b) {
	    var label = trans(b.toolbar_label ? b.toolbar_label: b.label, b.language_context ? b.language_context : self.language_context)
		return this._buttonElement(b).attr({'title': label});
	}
	if(renderTo)
	    this.renderTo(renderTo);
}
function vboxToolbarSingle ( options ) { var self = this ; this . parentClass = vboxToolbarSmall ; options . buttons = [ options . button ] ; renderTo = options . renderTo ; options . renderTo = undefined ; this . parentClass ( options ) ; this . _buttonElement = this . buttonElement ; this . buttonElement = function ( b ) { var label = trans ( b . toolbar_label ? b . toolbar_label : b . label , b . language_context ? b . language_context : self . language_context ) return this . _buttonElement ( b ) . attr ( { 'title' : label } ) ; } if ( renderTo ) this . renderTo ( renderTo ) ; }
Toolbar class for single button
 @constructor
 @class vboxToolbarSmall
 @super vboxToolbar
 @param {Object} options
      button - button for toolbar
      language_context - language context to use for translations
      renderTo - element to render toolbar to
Toolbar class for single button @constructor @class vboxToolbarSmall @super vboxToolbar @param { Object } options button - button for toolbar language_context - language context to use for translations renderTo - element to render toolbar to
/* copy orig */ /**
	 * Generate HTML element for button
	 * 
	 * @memberOf vboxToolbarSingle
	 * @param {Object}
	 *            b - button object containing various button parameters
	 * @return {HTMLNode} button element
	 */