Back to AbstractGroupButton class

Method configure

public static
configure
(callable $handler)
Add children buttons as dropdown.
Parameters
  • callable $handler The callback to configure dropdown items.
Returns
  • static
Since
  • 4.0.0

Method configure - Source code

/**
 * Add children buttons as dropdown.
 *
 * @param   callable  $handler  The callback to configure dropdown items.
 *
 * @return  static
 *
 * @since  4.0.0
 */
public function configure(callable $handler) : self
{
    $child = $this->getChildToolbar();
    $handler($child);
    return $this;
}