backend.filter.extendScopes

Provides an opportunity to interact with the Filter widget & its scopes after the filter scopes have been initialized

Example usage:

Event::listen('backend.filter.extendScopes', function ((\Backend\Widgets\Filter) $filterWidget) {
    $filterWidget->addScopes([
        'my_scope' => [
            'label' => 'My Filter Scope'
        ]
    ]);
});

Or

$listWidget->bindEvent('filter.extendScopes', function () use ((\Backend\Widgets\Filter) $filterWidget) {
    $filterWidget->removeScope('my_scope');
});

Usage

Triggers

Class or file Line
Backend\Widgets\Filter 603
Copyright © 2024 Winter CMS