PHP Class Grido\Components\Operation

Author: Petr Bugyík
Inheritance: extends Grido\Components\Component
Show file Open project: o5/grido

Public Properties

Property Type Description
$onSubmit callback on operation submit

Protected Properties

Property Type Description
$primaryKey string

Public Methods

Method Description
__construct ( Grid $grid, array $operations, callback $onSubmit )
addCheckers ( Container $container )
getPrimaryKey ( ) : string
handleOperations ( Nette\Forms\Controls\SubmitButton $button )
setConfirm ( string $operation, string $message ) : Operation Sets client side confirm for operation.
setPrimaryKey ( string $primaryKey ) : Operation Sets primary key.

Method Details

__construct() public method

public __construct ( Grid $grid, array $operations, callback $onSubmit )
$grid Grido\Grid
$operations array
$onSubmit callback - callback after operation submit

addCheckers() public method

public addCheckers ( Container $container )
$container Nette\Forms\Container

getPrimaryKey() public method

public getPrimaryKey ( ) : string
return string

handleOperations() public method

public handleOperations ( Nette\Forms\Controls\SubmitButton $button )
$button Nette\Forms\Controls\SubmitButton

setConfirm() public method

Sets client side confirm for operation.
public setConfirm ( string $operation, string $message ) : Operation
$operation string
$message string
return Operation

setPrimaryKey() public method

Sets primary key.
public setPrimaryKey ( string $primaryKey ) : Operation
$primaryKey string
return Operation

Property Details

$onSubmit public property

callback on operation submit
public $onSubmit

$primaryKey protected property

protected string $primaryKey
return string