PHP 클래스 unclead\multipleinput\MultipleInput

저자: Eugene Tupikov ([email protected])
상속: extends yii\widgets\InputWidget
파일 보기 프로젝트 열기: unclead/yii2-multiple-input 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$addButtonOptions the HTML options for the add button
$addButtonPosition position of add button.
$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 the name of column class. You can specify your own class to extend base functionality. Defaults to unclead\multipleinput\MultipleInputColumn
$columns columns configuration
$data input data
$enableGuessTitle whether to guess column title in case if there is no definition of columns
$form an instance of ActiveForm which you have to pass in case of using client validation
$isEmbedded whether the widget is embedded or not.
$max maximum number of rows
$min minimum number of rows
$removeButtonOptions the HTML options for the remove button
$rendererClass the name of renderer class. Defaults to unclead\multipleinput\renderers\TableRenderer.
$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 MultipleInput widget object

공개 메소드들

메소드 설명
init ( ) Initialization.
run ( ) Run widget.

보호된 메소드들

메소드 설명
guessColumns ( ) This function tries to guess the columns to show from the given data if [[columns]] are not explicitly specified.
initData ( ) Initializes data.

비공개 메소드들

메소드 설명
createRenderer ( ) : TableRenderer

메소드 상세

guessColumns() 보호된 메소드

This function tries to guess the columns to show from the given data if [[columns]] are not explicitly specified.
protected guessColumns ( )

init() 공개 메소드

Initialization.
public init ( )

initData() 보호된 메소드

Initializes data.
protected initData ( )

run() 공개 메소드

Run widget.
public run ( )

프로퍼티 상세

$addButtonOptions 공개적으로 프로퍼티

the HTML options for the add button
public $addButtonOptions

$addButtonPosition 공개적으로 프로퍼티

position of add button.
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 공개적으로 프로퍼티

the name of column class. You can specify your own class to extend base functionality. Defaults to unclead\multipleinput\MultipleInputColumn
public $columnClass

$columns 공개적으로 프로퍼티

columns configuration
public $columns

$data 공개적으로 프로퍼티

input data
public $data

$enableGuessTitle 공개적으로 프로퍼티

whether to guess column title in case if there is no definition of columns
public $enableGuessTitle

$form 공개적으로 프로퍼티

an instance of ActiveForm which you have to pass in case of using client validation
부터: 2.1
public $form

$isEmbedded 공개적으로 프로퍼티

whether the widget is embedded or not.
public $isEmbedded

$max 공개적으로 프로퍼티

maximum number of rows
public $max

$min 공개적으로 프로퍼티

minimum number of rows
public $min

$removeButtonOptions 공개적으로 프로퍼티

the HTML options for the remove button
public $removeButtonOptions

$rendererClass 공개적으로 프로퍼티

the name of renderer class. Defaults to unclead\multipleinput\renderers\TableRenderer.
부터: 1.4
public $rendererClass

$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 MultipleInput widget object
public $rowOptions