Skip to content

Commit 66b5123

Browse files
committed
added blade component to readme
1 parent 8cfb79d commit 66b5123

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ Examples:
103103

104104
You can use any icon set you want. Just change the `icons.wrapper` from the config file accordingly. By default, it uses Font Awesome.
105105

106+
### Blade Component
107+
108+
Same as the directive, there is also a `blade` component for you to create sortable links in your views:
109+
110+
```html
111+
<x-sortablelink column="title" title="{{ trans('general.title') }}" :query="['parameter' => 'smile']" :arguments="['rel' => 'nofollow']" />
112+
```
113+
106114
### Sorting Relationships
107115

108116
The package supports `HasOne` and `BelongsTo` relational sorting:

0 commit comments

Comments
 (0)