From 015befdaffe6367e5d44e0c7c5ef341d3135afcc Mon Sep 17 00:00:00 2001 From: Dmitrii Kustov Date: Sun, 30 Jun 2024 16:43:37 +0300 Subject: [PATCH] Tooltips support for pagination --- doc/HTML.md | 6 +++++- src/HTML.php | 47 ++++++++++++++++++++++++++++------------------- 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/doc/HTML.md b/doc/HTML.md index f181fe5..5a14434 100644 --- a/doc/HTML.md +++ b/doc/HTML.md @@ -85,7 +85,7 @@ You can then manually send the `'links'` array to `Links()` function to generate ## pagination ```php -pagination(int $current, int $total, int $maxNumerics = 5, array $nonNumerics = ['first' => '<<', 'prev' => '<', 'next' => '>', 'last' => '>>', 'first_text' => 'First page', 'prev_text' => 'Previous page', 'next_text' => 'Next page', 'last_text' => 'Last page', 'page_text' => 'Page '], string $prefix = '', bool $links = false, bool $headers = false) +pagination(int $current, int $total, int $maxNumerics = 5, array $nonNumerics = ['first' => '<<', 'prev' => '<', 'next' => '>', 'last' => '>>', 'first_text' => 'First page', 'prev_text' => 'Previous page ($number)', 'next_text' => 'Next page ($number)', 'last_text' => 'Last page ($number)', 'page_text' => 'Page '], string $prefix = '', bool $links = false, bool $headers = false, string $tooltip = 'title') ``` Generates pagination as `
    ` list wrapped in `