PHP 클래스 kartik\grid\FormulaColumn

DataColumn is the default column type for the GridView widget.
부터: 1.0
저자: Kartik Visweswaran ([email protected])
상속: extends DataColumn
파일 보기 프로젝트 열기: kartik-v/yii2-grid

공개 프로퍼티들

프로퍼티 타입 설명
$autoFooter automatically generate the footer. If set to true, it will use the same formula to generate the footer. If set to false, will use the default footer.

공개 메소드들

메소드 설명
col ( integer $i, array $params = [] ) : string Gets the value of a column

보호된 메소드들

메소드 설명
getFooterCellContent ( ) : string Get the raw footer cell content.
renderFooterCellContent ( ) : string Formatted footer cell content.

메소드 상세

col() 공개 메소드

Gets the value of a column
public col ( integer $i, array $params = [] ) : string
$i integer the index of the grid column (the first column in the grid will be zero indexed). Note a column's index is to be considered, even if the `visible` property is set to false.
$params array which will contain these keys: - `model`: _yii\base\Model`, the data model being rendered - `key`: _string|object_, the key associated with the data model - `index`: _integer_, the zero-based index of the data item among the item array returned by [[GridView::dataProvider]]. - widget: _FormulaColumn_, the current column widget instance
리턴 string

getFooterCellContent() 보호된 메소드

Get the raw footer cell content.
protected getFooterCellContent ( ) : string
리턴 string the rendering result

renderFooterCellContent() 보호된 메소드

Formatted footer cell content.
protected renderFooterCellContent ( ) : string
리턴 string the rendering result

프로퍼티 상세

$autoFooter 공개적으로 프로퍼티

automatically generate the footer. If set to true, it will use the same formula to generate the footer. If set to false, will use the default footer.
public $autoFooter