We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a1247 commit 223b46eCopy full SHA for 223b46e
README.md
@@ -44,3 +44,24 @@ And add to your controller
44
];
45
}
46
```
47
+Usage Editable widget
48
+======================================
49
+* As a widget with a model
50
+
51
+```php
52
+\yii2mod\editable\Editable::widget( [
53
+ 'model' => $model,
54
+ 'attribute' => 'firstName',
55
+ 'url' => '/profile/update'
56
+]);
57
+```
58
59
+* With ActiveForm
60
61
62
+echo $form->field($model, "firstName")->widget(\yii2mod\editable\Editable::className(), [
63
+ 'url' => '/profile/update',
64
+ 'mode' => 'popup'
65
66
67
0 commit comments