Skip to content

Commit ce98514

Browse files
committed
Make Twig columns searchable by default
1 parent 66cd1e3 commit ce98514

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Column/TwigColumn.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ protected function configureOptions(OptionsResolver $resolver): static
5454
$resolver
5555
->setRequired('template')
5656
->setAllowedTypes('template', 'string')
57-
;
57+
->setDefault('operator', 'LIKE')
58+
->setDefault(
59+
'rightExpr',
60+
function ($value) {
61+
return '%' . $value . '%';
62+
}
63+
);
5864

5965
return $this;
6066
}

0 commit comments

Comments
 (0)