From 6f3539e7f86c1ddd8eff5a9a366e16068d9e2f9e Mon Sep 17 00:00:00 2001 From: "Amruta.org" <38246728+amrutadotorg@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:30:18 +0200 Subject: [PATCH 1/5] Update shell.handlebars adding two options: search_button search_placeholder --- sqlpage/templates/shell.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index e4e1099b..8d8513c2 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -155,8 +155,8 @@ {{#if search_target}}
{{/if}} {{/inline}} From 08ef7fb1cd1f076de3be296a95955854bcfff09d Mon Sep 17 00:00:00 2001 From: "Amruta.org" <38246728+amrutadotorg@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:49:42 +0200 Subject: [PATCH 2/5] Update table.handlebars adding search_placeholder option --- sqlpage/templates/table.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlpage/templates/table.handlebars b/sqlpage/templates/table.handlebars index 0d080c1b..90958dfe 100644 --- a/sqlpage/templates/table.handlebars +++ b/sqlpage/templates/table.handlebars @@ -5,7 +5,7 @@ From 8dcb7812f88bb38e91a4a71aeb7c984d1848e938 Mon Sep 17 00:00:00 2001 From: "Amruta.org" <38246728+amrutadotorg@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:13:20 +0200 Subject: [PATCH 3/5] Update 01_documentation.sql documentation update for the shell component options: search_placeholder search_button and for the table component option: search_placeholder --- examples/official-site/sqlpage/migrations/01_documentation.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/official-site/sqlpage/migrations/01_documentation.sql b/examples/official-site/sqlpage/migrations/01_documentation.sql index 083a608f..f6b90304 100644 --- a/examples/official-site/sqlpage/migrations/01_documentation.sql +++ b/examples/official-site/sqlpage/migrations/01_documentation.sql @@ -770,6 +770,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S ('sort', 'Make the columns clickable to let the user sort by the value contained in the column.', 'BOOLEAN', TRUE, TRUE), ('search', 'Add a search bar at the top of the table, letting users easily filter table rows by value.', 'BOOLEAN', TRUE, TRUE), ('initial_search_value', 'Pre-fills the search bar used to filter the table. The user will still be able to edit the value to display table rows that will initially be filtered out.', 'TEXT', TRUE, TRUE), + ('search_placeholder', 'Customizes the placeholder text shown in the search input field. Replaces the default "Search..." with text that better describes what users should search for.', 'TEXT', TRUE, TRUE), ('markdown', 'Set this to the name of a column whose content should be interpreted as markdown . Used to display rich text with links in the table. This argument can be repeated multiple times to intepret multiple columns as markdown.', 'TEXT', TRUE, TRUE), ('icon', 'Set this to the name of a column whose content should be interpreted as a tabler icon name. Used to display icons in the table. This argument can be repeated multiple times to intepret multiple columns as icons. Introduced in v0.8.0.', 'TEXT', TRUE, TRUE), ('align_right', 'Name of a column the contents of which should be right-aligned. This argument can be repeated multiple times to align multiple columns to the right. Introduced in v0.15.0.', 'TEXT', TRUE, TRUE), @@ -1174,6 +1175,8 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S ('fixed_top_menu', 'Fixes the top bar with menu at the top (the top bar remains visible when scrolling long pages).', 'BOOLEAN', TRUE, TRUE), ('search_target', 'When this is set, a search field will appear in the top navigation bar, and load the specified sql file with an URL parameter named "search" when the user searches something.', 'TEXT', TRUE, TRUE), ('search_value', 'This value will be placed in the search field when "search_target" is set. Using the "$search" query parameter value will mirror the value that the user has searched for.', 'TEXT', TRUE, TRUE), + ('search_placeholder', 'Customizes the placeholder text shown in the search input field. Replaces the default "Search" with text that better describes what users should search for.', 'TEXT', TRUE, TRUE), + ('search_button', 'Customizes the text displayed on the search button. Replaces the default "Search" label with custom text that may better match your applications terminology or language.', 'TEXT', TRUE, TRUE), ('norobot', 'Forbids robots to save this page in their database and follow the links on this page. This will prevent this page to appear in Google search results for any query, for instance.', 'BOOLEAN', TRUE, TRUE), ('font', 'Specifies the font to be used for displaying text, which can be a valid font name from fonts.google.com or the path to a local WOFF2 font file starting with a slash (e.g., "/fonts/MyLocalFont.woff2").', 'TEXT', TRUE, TRUE), ('font_size', 'Font size on the page, in pixels. Set to 18 by default.', 'INTEGER', TRUE, TRUE), From ddd00830fc153dbd531dc96356f56b31f4eb8f77 Mon Sep 17 00:00:00 2001 From: lovasoa