Skip to content

Commit 0f07520

Browse files
authored
Merge pull request #535 from WoltLab/6.2-interactions
Document interactions
2 parents e0b7e48 + 7bb609b commit 0f07520

File tree

4 files changed

+428
-0
lines changed

4 files changed

+428
-0
lines changed

docs/php/api/grid_views.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,22 @@ $eventHandler->register(
363363
}
364364
);
365365
```
366+
367+
## Interactions
368+
369+
Interaction providers can be specified using the methods `setInteractionProvider()` and `setBulkInteractionProvider()` (for bulk interactions).
370+
371+
Example:
372+
373+
```php
374+
final class ExampleGridView extends AbstractGridView
375+
{
376+
public function __construct()
377+
{
378+
...
379+
380+
$this->setInteractionProvider(new ExampleInteractions());
381+
$this->setBulkInteractionProvider(new ExampleBulkInteractions());
382+
}
383+
}
384+
```

0 commit comments

Comments
 (0)