PHP Class unclead\multipleinput\renderers\TableRenderer

Inheritance: extends BaseRenderer
Afficher le fichier Open project: unclead/yii2-multiple-input Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected internalRender ( ) : mixed
Résultat mixed

prepareRowOptions() protected méthode

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

prepareTemplate() protected méthode

Returns template for using in js.
protected prepareTemplate ( ) : string
Résultat string

renderBody() protected méthode

Renders the body.
protected renderBody ( ) : string
Résultat string

renderCellContent() public méthode

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

renderFooter() public méthode

Renders the footer.
public renderFooter ( ) : string
Résultat string

renderHeader() public méthode

Renders the header.
public renderHeader ( ) : string
Résultat string