$type
$type : string
TbEditableField widget makes editable single attribute of model.
$onHidden : string
A javascript function that will be invoked when editable form is hidden Example: <pre> 'onHidden' => 'js: function(e, reason) { if(reason === "save" || reason === "cancel") { //auto-open next editable $(this).closest("tr").next().find(".editable").editable("show"); } }' </pre>
source(mixed $models, mixed $valueField, mixed $textField, mixed $groupField, mixed $groupTextField)
Returns php-array as valid x-editable source in format: [{value: 1, text: 'text1'}, {.
..}]
See https://github.com/vitalets/x-editable-yii/issues/37
mixed | $models | |
mixed | $valueField | |
mixed | $textField | |
mixed | $groupField | |
mixed | $groupTextField |
resolveModels(mixed $model, mixed $attribute)
Resolves model and returns array of values: - staticModel: static class of model, need for checki safety of attribute - real model: containing attribute. Can be null - attribute: it will be without dots for activerecords
mixed | $model | |
mixed | $attribute |