PHP 클래스 unclead\multipleinput\TabularInput

상속: extends yii\bootstrap\Widget
파일 보기 프로젝트 열기: 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\TabularColumn
$columns array
$form an instance of ActiveForm which you have to pass in case of using client validation
$max maximum number of rows
$min minimum number of rows
$models yii\base\Model[] | yii\db\ActiveRecordInterface[]
$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 TabularInput widget object

공개 메소드들

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

비공개 메소드들

메소드 설명
createRenderer ( ) : TableRenderer

메소드 상세

init() 공개 메소드

Initialization.
public init ( )

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\TabularColumn
public $columnClass

$columns 공개적으로 프로퍼티

public array $columns
리턴 array

$form 공개적으로 프로퍼티

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

$max 공개적으로 프로퍼티

maximum number of rows
public $max

$min 공개적으로 프로퍼티

minimum number of rows
public $min

$models 공개적으로 프로퍼티

public Model[],yii\base|ActiveRecordInterface[],yii\db $models
리턴 yii\base\Model[] | yii\db\ActiveRecordInterface[]

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