org.foam.orion.client/usecasePlugin/web/orion/webui/dropdown.js
/**
	 * Creates a new menu item and returns it to the caller.
	 * @param {String} text The text to display inside the new menu item. Required.
	 * @param {String} innerNodeType The type of the inner node to create. The default is "span". Optional.
	 * @returns {Object} The top-most new element that was created
	 */
Creates a new menu item and returns it to the caller.
@param {String} text The text to display inside the new menu item. Required.
@param {String} innerNodeType The type of the inner node to create. The default is "span". Optional.
@returns {Object} The top-most new element that was created
Creates a new menu item and returns it to the caller . @param { String } text The text to display inside the new menu item . Required . @param { String } innerNodeType The type of the inner node to create . The default is " span " . Optional . @returns { Object } The top - most new element that was created
function createMenuItem(text, innerNodeType) {
		innerNodeType = innerNodeType === undefined ? "span" : innerNodeType; 
	 	var element = document.createElement(innerNodeType); 
		element.tabIndex = 0;
		element.className = "dropdownMenuItem"; 
		element.role = "menuitem";  
		var span = document.createElement("span");  
		span.appendChild(document.createTextNode(text));
		span.classList.add("dropdownCommandName"); 
		element.appendChild(span);
	 	var li = document.createElement("li"); 
	 	li.appendChild(element); 
		return li;
	}
function createMenuItem ( text , innerNodeType ) { innerNodeType = innerNodeType === undefined ? "span" : innerNodeType ; var element = document . createElement ( innerNodeType ) ; element . tabIndex = 0 ; element . className = "dropdownMenuItem" ; element . role = "menuitem" ; var span = document . createElement ( "span" ) ; span . appendChild ( document . createTextNode ( text ) ) ; span . classList . add ( "dropdownCommandName" ) ; element . appendChild ( span ) ; var li = document . createElement ( "li" ) ; li . appendChild ( element ) ; return li ; }
Creates a new menu item and returns it to the caller.
Creates a new menu item and returns it to the caller .
//$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$ //$NON-NLS-0$