Back to ToolbarHelper class

Method spacer

public static void
spacer
(mixed $width = '')
Writes a spacer cell.
Parameters
  • string $width The width for the cell
Returns
  • void
Since
  • 1.5
Class: ToolbarHelper
Project: Joomla

Method spacer - Source code

/**
 * Writes a spacer cell.
 *
 * @param   string  $width  The width for the cell
 *
 * @return  void
 *
 * @since   1.5
 */
public static function spacer($width = '')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a spacer.
    $bar->appendButton('Separator', 'spacer', $width);
}