PHP Class wbraganca\dynamicform\DynamicFormWidget

Author: Wanderson Bragança ([email protected])
Inheritance: extends yii\base\Widget
Afficher le fichier Open project: wbraganca/yii2-dynamicform Class Usage Examples

Méthodes publiques

Свойство Type Description
$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

Méthodes publiques

Méthode Description
init ( ) Initializes the widget.
registerAssets ( View $view ) Registers the needed assets.
registerHashVarWidget ( ) : boolean Register the actual widget.
run ( )

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
removeItems ( string $content ) Clear HTML widgetBody. Required to work with zero or more items.

Method Details

getHashVarName() protected méthode

Returns the hashed variable.
protected getHashVarName ( ) : string
Résultat string

hashOptions() protected méthode

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

init() public méthode

Initializes the widget.
public init ( )

initOptions() protected méthode

Initializes the widget options.
protected initOptions ( )

registerAssets() public méthode

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

registerHashVarWidget() public méthode

Register the actual widget.
public registerHashVarWidget ( ) : boolean
Résultat boolean

registerOptions() protected méthode

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

run() public méthode

public run ( )

Property Details

$deleteButton public_oe property

public string $deleteButton
Résultat string

$formFields public_oe property

fields to be validated.
public $formFields

$formId public_oe property

form ID
public $formId

$insertButton public_oe property

public string $insertButton
Résultat string

$insertPosition public_oe property

'bottom' or 'top';
public $insertPosition

$limit public_oe property

public string $limit
Résultat string

$min public_oe property

public int $min
Résultat integer

$model public_oe property

the model used for the form
public $model

$widgetBody public_oe property

public string $widgetBody
Résultat string

$widgetContainer public_oe property

public string $widgetContainer
Résultat string

$widgetItem public_oe property

public string $widgetItem
Résultat string