for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) 2015 ublaboo <[email protected]>
* @author Pavel Janda <[email protected]>
* @package Ublaboo
*/
namespace Ublaboo\DataGrid\GroupAction;
use Nette;
* @method void onSelect(array $ids, string $value)
abstract class GroupAction extends Nette\Object
{
* @var callable[]
public $onSelect = [];
* @var string
protected $title;
protected $class = 'form-control input-sm';
* @var array
protected $attributes = [];
* @param string $title
public function __construct($title)
$this->title = $title;
}
* Get action title
* @return string
public function getTitle()
return $this->title;
* @param string $class
* @return static
public function setClass($class)
$this->class = (string) $class;
return $this;
public function getClass()
return $this->class;
* @param string $key
* @param mixed $value
public function setAttribute($key, $value)
$this->attributes[$key] = $value;
* @return array
public function getAttributes()
return $this->attributes;