PHP 클래스 unclead\multipleinput\renderers\BaseRenderer

상속: extends yii\base\Object, implements unclead\multipleinput\renderers\RendererInterface
파일 보기 프로젝트 열기: unclead/yii2-multiple-input

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$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