Grido\Components\Button::__construct PHP Method

__construct() public method

public __construct ( Grid $grid, string $name, string $label = NULL, string $destination = NULL, array $arguments = [] )
$grid Grido\Grid
$name string
$label string
$destination string - first param for method $presenter->link()
$arguments array - second param for method $presenter->link()
    public function __construct(Grid $grid, $name, $label = NULL, $destination = NULL, array $arguments = [])
    {
        $this->label = $label;
        $this->destination = $destination;
        $this->arguments = $arguments;
        $this->addComponentToGrid($grid, $name);
    }