Go to: Synopsis. Return value. MEL examples.

Synopsis

addNewShelfTab (string $newName)

Adds a new shelf layout and tab, and creates new preferences so that it will be loaded again.

Return value

None

Arguments

Variable Name Variable Type Description
$newNamestringName of the new tab, or "" to automatically assign a name.

MEL examples

	// Create a new shelf tab called "myTabName"
  addNewShelfTab "myTabName";
	// Result: myTabName //

	// Create a new shelf tab with a default name
  addNewShelfTab "";
	// Result: shelfLayout1 //