Свойство | Тип | Описание | |
---|---|---|---|
$buttonOptions | html options to be applied to the [[initDefaultButtons()|default buttons]]. | ||
$buttons | configuration for the switch position buttons. | ||
$headerOptions | |||
$positionParam | name of the query param, which is used for new position specification. | ||
$route | route to the action, which should process position switching, for example: 'item/position'. | ||
$template | the template that is used to render the content in each cell. These default tokens are recognized: {first}, {prev}, {next}, {last} and {value}. | ||
$urlCreator | a callback that creates a button URL using the specified model information. The signature of the callback should be the same as that of PositionColumn::createUrl. If this property is not set, button URLs will be created using PositionColumn::createUrl. |
Метод | Описание | |
---|---|---|
createUrl ( string $position, |
Creates a URL for the given position and model. | |
init ( ) |
Метод | Описание | |
---|---|---|
initDefaultButtons ( ) | Initializes the default buttons. | |
renderButton ( string $name, mixed $model, string $key, integer $index ) : string | Renders button. | |
renderDataCellContent ( $model, $key, $index ) |
public createUrl ( string $position, |
||
$position | string | the position name |
$model | the data model | |
$key | mixed | the key associated with the data model |
$index | integer | the current row index |
Результат | string | the created URL |
protected initDefaultButtons ( ) |
public $buttonOptions |
public $positionParam |
public $route |
public $template |
public $urlCreator |