Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bomshteyn committed Aug 28, 2018
1 parent 28d742f commit 937be17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add the field to your resource in the ```fields``` method:
use Treestoneit\TextWrap\TextWrap;
...
...
TextWrap::make('Product Name')->wrapMethod('length',40),
TextWrap::make('Product Name')->wrapMethod('length',40)->onlyOnIndex(),
```

If you would like to use the wrap through spliting the text by marker, here is an example:
Expand All @@ -27,5 +27,7 @@ If you would like to use the wrap through spliting the text by marker, here is a
use Treestoneit\TextWrap\TextWrap;
...
...
TextWrap::make('Product Name')->wrapMethod('explode','-*-'),
```
TextWrap::make('Product Name')->wrapMethod('explode','-*-')->onlyOnIndex(),
```

Please note: _Only Index version of the field is configured to wrap_

0 comments on commit 937be17

Please sign in to comment.