public enableFilterToolbar ( boolean $createToggleButton = null, boolean $createClearButton = null ) | ||
$createToggleButton | boolean | If true a toggle button will be created in the navigator. Default is null |
$createClearButton | boolean | If true a clear button will be created in the navigator. Default is null |
public function enableFilterToolbar($createToggleButton = null, $createClearButton = null)
{
$this->filterToolbarButtonsOptions['filterToolbar'] = true;
if (!is_null($createToggleButton)) {
$this->filterToolbarButtonsOptions['toggleButton'] = $createToggleButton;
}
if (!is_null($createClearButton)) {
$this->filterToolbarButtonsOptions['clearButton'] = $createClearButton;
}
return $this;
}