PHP Class unclead\multipleinput\renderers\TableRenderer

Inheritance: extends BaseRenderer
Mostra file Open project: unclead/yii2-multiple-input Class Usage Examples

Public Methods

Method Description
renderCellContent ( BaseColumn $column, integer | null $index ) : string Renders the cell content.
renderFooter ( ) : string Renders the footer.
renderHeader ( ) : string Renders the header.

Protected Methods

Method Description
internalRender ( ) : mixed
prepareRowOptions ( integer $index, yii\db\ActiveRecordInterface | array $item ) : array Prepares the row options.
prepareTemplate ( ) : string Returns template for using in js.
renderBody ( ) : string Renders the body.

Private Methods

Method Description
getActionButton ( $index )
hasHeader ( ) : boolean Check that at least one column has a header.
renderActionColumn ( null | integer $index = null ) : string Renders the action column.
renderAddButton ( )
renderHeaderCell ( BaseColumn $column ) : null | string Renders the header cell.
renderRemoveButton ( ) : string Renders remove button.
renderRowContent ( integer $index = null, yii\db\ActiveRecordInterface | array $item = null ) : mixed Renders the row content.

Method Details

internalRender() protected method

protected internalRender ( ) : mixed
return mixed

prepareRowOptions() protected method

Prepares the row options.
protected prepareRowOptions ( integer $index, yii\db\ActiveRecordInterface | array $item ) : array
$index integer
$item yii\db\ActiveRecordInterface | array
return array

prepareTemplate() protected method

Returns template for using in js.
protected prepareTemplate ( ) : string
return string

renderBody() protected method

Renders the body.
protected renderBody ( ) : string
return string

renderCellContent() public method

Renders the cell content.
public renderCellContent ( BaseColumn $column, integer | null $index ) : string
$column unclead\multipleinput\components\BaseColumn
$index integer | null
return string

renderFooter() public method

Renders the footer.
public renderFooter ( ) : string
return string

renderHeader() public method

Renders the header.
public renderHeader ( ) : string
return string