Property | Type | Description | |
---|---|---|---|
$customRender | for custom rendering | ||
$disable | for disabling | ||
$elementPrototype | html tag | ||
$options | string | ||
$primaryKey | - name of primary key f.e.: link->('Article:edit', array($primaryKey => 1)) |
Method | Description | |
---|---|---|
__construct ( |
||
getElement ( mixed $row ) : Nette\Utils\Html | ||
getElementPrototype ( ) : Nette\Utils\Html | Returns element prototype ( html tag). | |
getOption ( string $key, mixed $default = NULL ) : mixed | Returns user-specific option. | |
getOptions ( ) : array | Returns user-specific options. | |
getPrimaryKey ( ) : string | ||
render ( mixed $row ) : void | ||
setConfirm ( string | callback $confirm ) : |
Sets client side confirm. | |
setCustomRender ( $callback ) : |
Sets callback for custom rendering. | |
setDisable ( $callback ) : |
Sets callback for disable. | |
setElementPrototype ( Nette\Utils\Html $elementPrototype ) : |
Sets html element. | |
setIcon ( string $name ) : |
Sets name of icon. | |
setOption ( string $key, mixed $value ) : |
Sets user-specific option. | |
setPrimaryKey ( string $primaryKey ) : |
Sets primary key. |
public __construct ( |
||
$grid | ||
$name | string | |
$label | string |
public getElement ( mixed $row ) : Nette\Utils\Html | ||
$row | mixed | |
return | Nette\Utils\Html |
public getElementPrototype ( ) : Nette\Utils\Html | ||
return | Nette\Utils\Html |
public getOptions ( ) : array | ||
return | array |
public setConfirm ( string | callback $confirm ) : |
||
$confirm | string | callback | |
return |
public setCustomRender ( $callback ) : |
||
return |
public setDisable ( $callback ) : |
||
return |
public setElementPrototype ( Nette\Utils\Html $elementPrototype ) : |
||
$elementPrototype | Nette\Utils\Html | |
return |
public setPrimaryKey ( string $primaryKey ) : |
||
$primaryKey | string | |
return |