Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/guide/link-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ Set a filter and its value; for the filter, you can either pass its custom key o

Set a default sort.

### `withGlobalFilterValues(array|string $globalFilterValues)`

Set a global filter value(s). Ex: `LinkToShowPage::make(...)->withGlobalFilterValues($tenant->id)->renderAsUrl()`.

### `setFullQuerystring(array $querystring)`

`LinkToEntityList` only
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/testing-with-sharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ it('allows the user to display a leaf form', function () {
});
```

#### `withSharpGlobalFilterKeys(array|string $filterKeys): self`
#### `withSharpGlobalFilterValues(array|string $filterValues): self`

You can specify the global filter keys to use in the Sharp context.
You can specify the global filter values to use in the Sharp context.

```php
it('allows the user to display a leaf form', function () {
Expand All @@ -129,7 +129,7 @@ it('allows the user to display a leaf form', function () {

$this
->loginAsSharpUser($user)
->withSharpGlobalFilterKeys($tenant->key)
->withSharpGlobalFilterValues($tenant->id)
->getSharpForm(LeafEntity::class, 16)
->assertOk();
});
Expand Down
Loading
Loading