From 3649f21b5299818bfae9cf7cfc55037d99763fb9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Jul 2024 01:31:53 +0300 Subject: [PATCH] implement search method --- src/Entity/Window/Tab/History.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Entity/Window/Tab/History.php b/src/Entity/Window/Tab/History.php index b9c0c130..73772269 100644 --- a/src/Entity/Window/Tab/History.php +++ b/src/Entity/Window/Tab/History.php @@ -50,4 +50,25 @@ class History 0 ); } + + public function search( + ?string $filter = null + ): void + { + $this->navbar->filter->setValue( + trim( + strval( + $filter + ) + ) + ); + + $this->content->search( + trim( + strval( + $filter + ) + ) + ); + } } \ No newline at end of file