PHP 클래스 wbraganca\dynamicform\DynamicFormWidget

저자: Wanderson Bragança ([email protected])
상속: extends yii\base\Widget
파일 보기 프로젝트 열기: wbraganca/yii2-dynamicform 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$deleteButton string
$formFields fields to be validated.
$formId form ID
$insertButton string
$insertPosition 'bottom' or 'top';
$limit string
$min integer
$model the model used for the form
$widgetBody string
$widgetContainer string
$widgetItem string

공개 메소드들

메소드 설명
init ( ) Initializes the widget.
registerAssets ( View $view ) Registers the needed assets.
registerHashVarWidget ( ) : boolean Register the actual widget.
run ( )

보호된 메소드들

메소드 설명
getHashVarName ( ) : string Returns the hashed variable.
hashOptions ( ) Generates a hashed variable to store the options.
initOptions ( ) Initializes the widget options.
registerOptions ( View $view ) Registers plugin options by storing it in a hashed javascript variable.

비공개 메소드들

메소드 설명
removeItems ( string $content ) Clear HTML widgetBody. Required to work with zero or more items.

메소드 상세

getHashVarName() 보호된 메소드

Returns the hashed variable.
protected getHashVarName ( ) : string
리턴 string

hashOptions() 보호된 메소드

Generates a hashed variable to store the options.
protected hashOptions ( )

init() 공개 메소드

Initializes the widget.
public init ( )

initOptions() 보호된 메소드

Initializes the widget options.
protected initOptions ( )

registerAssets() 공개 메소드

Registers the needed assets.
public registerAssets ( View $view )
$view View The View object

registerHashVarWidget() 공개 메소드

Register the actual widget.
public registerHashVarWidget ( ) : boolean
리턴 boolean

registerOptions() 보호된 메소드

Registers plugin options by storing it in a hashed javascript variable.
protected registerOptions ( View $view )
$view View The View object

run() 공개 메소드

public run ( )

프로퍼티 상세

$deleteButton 공개적으로 프로퍼티

public string $deleteButton
리턴 string

$formFields 공개적으로 프로퍼티

fields to be validated.
public $formFields

$formId 공개적으로 프로퍼티

form ID
public $formId

$insertButton 공개적으로 프로퍼티

public string $insertButton
리턴 string

$insertPosition 공개적으로 프로퍼티

'bottom' or 'top';
public $insertPosition

$limit 공개적으로 프로퍼티

public string $limit
리턴 string

$min 공개적으로 프로퍼티

public int $min
리턴 integer

$model 공개적으로 프로퍼티

the model used for the form
public $model

$widgetBody 공개적으로 프로퍼티

public string $widgetBody
리턴 string

$widgetContainer 공개적으로 프로퍼티

public string $widgetContainer
리턴 string

$widgetItem 공개적으로 프로퍼티

public string $widgetItem
리턴 string