PHP Class Grido\Components\Actions\Href

Author: Petr Bugyík
Inheritance: extends Action
Afficher le fichier Open project: o5/grido Class Usage Examples

Protected Properties

Свойство Type Description
$arguments second param for method $presenter->link()
$customHref for custom href attribute creating
$destination first param for method $presenter->link()

Méthodes publiques

Méthode Description
__construct ( Grid $grid, string $name, string $label, string $destination = NULL, array $arguments = [] )
getArguments ( ) : array
getDestination ( ) : string
getElement ( mixed $row ) : Nette\Utils\Html
setCustomHref ( callback $callback ) : Href Sets callback for custom link creating.

Method Details

__construct() public méthode

public __construct ( Grid $grid, string $name, string $label, 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()

getArguments() public méthode

public getArguments ( ) : array
Résultat array

getDestination() public méthode

public getDestination ( ) : string
Résultat string

getElement() public méthode

public getElement ( mixed $row ) : Nette\Utils\Html
$row mixed
Résultat Nette\Utils\Html

setCustomHref() public méthode

Sets callback for custom link creating.
public setCustomHref ( callback $callback ) : Href
$callback callback
Résultat Href

Property Details

$arguments protected_oe property

second param for method $presenter->link()
protected $arguments

$customHref protected_oe property

for custom href attribute creating
protected $customHref

$destination protected_oe property

first param for method $presenter->link()
protected $destination