PHP Класс unclead\multipleinput\renderers\BaseRenderer

Наследование: extends yii\base\Object, implements unclead\multipleinput\renderers\RendererInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$addButtonOptions the HTML options for the add button
$addButtonPosition position of add button. By default button is rendered in the row.
$allowEmptyList whether to allow the empty list
$attributeOptions client-side attribute options, e.g. enableAjaxValidation. You may use this property in case when you use widget without a model, since in this case widget is not able to detect client-side options automatically.
$columnClass string
$columns array of columns
$data input data
$form the instance of ActiveForm class.
$id the ID of the widget
$max maximum number of rows
$min minimum number of rows.
$removeButtonOptions the HTML options for the remove button
$rowOptions the HTML attributes for the table body rows. This can be either an array specifying the common HTML attributes for all body rows, or an anonymous function that returns an array of the HTML attributes. It should have the following signature: php function ($model, $index, $context) - $model: the current data model being rendered - $index: the zero-based index of the data model in the model array - $context: the widget object

Защищенные свойства (Protected)

Свойство Тип Описание
$context unclead\multipleinput\TabularInput | unclead\multipleinput\MultipleInput

Открытые методы

Метод Описание
getIndexPlaceholder ( ) : mixed
init ( )
render ( )
setContext ( $context )

Защищенные методы

Метод Описание
initColumns ( ) Creates column objects and initializes them.
internalRender ( ) : mixed
isAddButtonPositionFooter ( ) : boolean
isAddButtonPositionHeader ( ) : boolean
isAddButtonPositionRow ( ) : boolean
prepareJsAttributes ( ) : array Prepares attributes options for client side.
prepareTemplate ( ) : string
registerAssets ( ) Register script.

Приватные методы

Метод Описание
prepareButtons ( )
prepareColumnClass ( )
prepareIndexPlaceholder ( )
prepareMaxOption ( )
prepareMinOption ( )

Описание методов

getIndexPlaceholder() публичный Метод

public getIndexPlaceholder ( ) : mixed
Результат mixed

init() публичный Метод

public init ( )

initColumns() защищенный Метод

Creates column objects and initializes them.
protected initColumns ( )

internalRender() абстрактный защищенный Метод

abstract protected internalRender ( ) : mixed
Результат mixed

isAddButtonPositionFooter() защищенный Метод

protected isAddButtonPositionFooter ( ) : boolean
Результат boolean

isAddButtonPositionHeader() защищенный Метод

protected isAddButtonPositionHeader ( ) : boolean
Результат boolean

isAddButtonPositionRow() защищенный Метод

protected isAddButtonPositionRow ( ) : boolean
Результат boolean

prepareJsAttributes() защищенный Метод

Prepares attributes options for client side.
protected prepareJsAttributes ( ) : array
Результат array

prepareTemplate() абстрактный защищенный Метод

abstract protected prepareTemplate ( ) : string
Результат string

registerAssets() защищенный Метод

Register script.
protected registerAssets ( )

render() публичный Метод

public render ( )

setContext() публичный Метод

public setContext ( $context )

Описание свойств

$addButtonOptions публичное свойство

the HTML options for the add button
public $addButtonOptions

$addButtonPosition публичное свойство

position of add button. By default button is rendered in the row.
public $addButtonPosition

$allowEmptyList публичное свойство

whether to allow the empty list
public $allowEmptyList

$attributeOptions публичное свойство

client-side attribute options, e.g. enableAjaxValidation. You may use this property in case when you use widget without a model, since in this case widget is not able to detect client-side options automatically.
public $attributeOptions

$columnClass публичное свойство

public string $columnClass
Результат string

$columns публичное свойство

array of columns
public $columns

$context защищенное свойство

protected TabularInput,unclead\multipleinput|MultipleInput,unclead\multipleinput $context
Результат unclead\multipleinput\TabularInput | unclead\multipleinput\MultipleInput

$data публичное свойство

input data
public $data

$form публичное свойство

the instance of ActiveForm class.
public $form

$id публичное свойство

the ID of the widget
public $id

$max публичное свойство

maximum number of rows
public $max

$min публичное свойство

minimum number of rows.
С версии: 1.2.6 Use this option with value 0 instead of `allowEmptyList` with `true` value
public $min

$removeButtonOptions публичное свойство

the HTML options for the remove button
public $removeButtonOptions

$rowOptions публичное свойство

the HTML attributes for the table body rows. This can be either an array specifying the common HTML attributes for all body rows, or an anonymous function that returns an array of the HTML attributes. It should have the following signature: php function ($model, $index, $context) - $model: the current data model being rendered - $index: the zero-based index of the data model in the model array - $context: the widget object
public $rowOptions