Skip to content

Commit

Permalink
added blade component to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jan 31, 2022
1 parent 8cfb79d commit 66b5123
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ Examples:

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

### Blade Component

Same as the directive, there is also a `blade` component for you to create sortable links in your views:

```html
<x-sortablelink column="title" title="{{ trans('general.title') }}" :query="['parameter' => 'smile']" :arguments="['rel' => 'nofollow']" />
```

### Sorting Relationships

The package supports `HasOne` and `BelongsTo` relational sorting:
Expand Down

0 comments on commit 66b5123

Please sign in to comment.