Skip to content

Commit 0e38819

Browse files
committed
Update README.md
1 parent 7f82a4d commit 0e38819

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ to the require section of your application's `composer.json` file.
2323

2424
## Usage
2525

26-
For example to use the datepicker with a [[\yii\base\Model|model]]:
26+
For example to use the pell editor with a [[\yii\base\Model|model]]:
2727

2828
```php
2929
echo Pell::widget([
@@ -32,6 +32,18 @@ echo Pell::widget([
3232
]);
3333
```
3434

35+
Inside form without model:
36+
37+
```php
38+
$value = 'textarea some content';
39+
40+
echo \coderius\pell\Pell::widget([
41+
'name' => 'textarea-name',
42+
'value' => $value,
43+
'clientOptions' =>[]
44+
]);
45+
```
46+
3547
The following example will used not as an element of form:
3648

3749
```php

0 commit comments

Comments
 (0)