38 Commits

Author SHA1 Message Date
Prayag Bhakar 071d4df034 fix(docs) :: address documentation gaps (#1390) 2026-08-20 11:06:02 +02:00
Zoé Cappe c7a5c76e0c fix text-center for the edit_url action in table component (#1113) 2025-11-19 16:06:43 +01:00
lovasoa cec270e1ee In the table component, allow simple objects in custom_actions instead of requiring arrays of objects.
fix https://github.com/sqlpage/SQLPage/issues/1079
2025-11-04 10:32:50 +01:00
Spencer Hansen 3654d4272b Updated class settings in table.handlebars so that action buttons are centered, and _col_{name} is included in new rows. 2025-10-14 19:43:02 -07:00
Spencer Hansen ac4126b2af #Added support for action buttons in the table component template.
* A default edit and delete button can be included by specifying an "edit_url" or "delete_url"
* Custom Column based action buttons can be added in the table header using json object array in the custom_actions column.
* Custom action buttons can be defined on the row level by specifying _sqlpage_actions.
2025-10-14 17:59:56 -07:00
Amruta.org 74d5b24f9a Replace hardcoded strings with customizable attributes in multiple components (#893)
* Update shell.handlebars

adding two options:
search_button
search_placeholder

* Update table.handlebars

adding search_placeholder option

* Update 01_documentation.sql

documentation update for the shell component options:
search_placeholder
search_button
and for the table component option: search_placeholder

* avoid failing tests on long loading map tiles

* add an example for search_placeholder

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-04-24 16:01:25 +02:00
lovasoa b9c383fe8d add monospace font option in tables
It was present in the documentation, but never actually implemented

Fixes https://github.com/sqlpage/SQLPage/issues/889
2025-04-22 09:53:29 +02:00
francesco-cattoglio b074dd1606 Added an option to create footers in the table component (#862)
* Implemented optional table footer rendering

* Added an example of footer usage

* Fixed a minor mistake, improved the example

* Updated changelog

* implemented requested change

* Update table.handlebars

spacing

* Update table.handlebars

minor, removed a `~`

* remove unused whitespace

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-03-19 23:33:24 +01:00
lovasoa 8284501d8c escape css class names 2025-02-27 13:43:16 +01:00
lovasoa b236a870ff fix https://github.com/sqlpage/SQLPage/issues/830 2025-02-27 13:32:57 +01:00
lovasoa c677023e6a center table descriptions 2025-02-19 09:41:00 +01:00
lovasoa a9f02161e9 fix missing space between attrs 2025-02-18 23:26:11 +01:00
lovasoa 63385f6234 fix https://github.com/sqlpage/SQLPage/issues/812 2025-02-16 17:40:03 +01:00
francesco-cattoglio c57d82c12a Added an option to format numbers using toLocaleString() for table columns (#807)
* Added an option to format numbers using `toLocaleString()` for table columns

* format numbers in tables

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-02-11 23:57:18 +01:00
lovasoa 6651a1b2cd Fix a bug where the table component would not add the right css classes to table cells
fixes https://github.com/sqlpage/SQLPage/issues/762
2025-01-05 23:39:01 +01:00
lovasoa e17d3d0e98 add align_center to the table component
Closes https://github.com/sqlpage/SQLPage/discussions/752
2024-12-30 13:27:14 +01:00
lovasoa c5d45c8144 Add support for freeze_columns and freeze_headers in the table component
fixes https://github.com/sqlpage/SQLPage/issues/683
2024-11-13 23:53:19 +01:00
lovasoa 7baec5537d table component bugfix 2024-11-10 16:52:49 +01:00
lovasoa c94c13f313 Remove small blank padding around tables in the table component 2024-11-10 16:45:12 +01:00
lovasoa 7faadf3967 Fixed a display bug where the table search box would disappear when scrolling horizontally in a large table. 2024-11-10 15:58:20 +01:00
lovasoa 6c94a5d787 fix a bug where table sorting would break if table search was not also enabled
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
fixes https://github.com/sqlpage/SQLPage/issues/660
2024-11-01 00:01:48 +01:00
lovasoa 92fec205b5 New initial_search_value property in the table component to pre-fill the search bar with a value. This allows to display the table rows that will initially be filtered out by the search bar. 2024-10-19 22:16:46 +02:00
lovasoa 38dbde4ca0 fix https://github.com/lovasoa/SQLpage/discussions/600 2024-09-24 22:39:57 +02:00
lovasoa f46ccf592c add _sqlite_id to the table component
closes https://github.com/lovasoa/SQLpage/discussions/538#discussioncomment-10343842
2024-08-15 07:37:06 +02:00
lovasoa 8251c8d9a9 fix js bug with empty tables
see https://github.com/lovasoa/SQLpage/issues/513

we still need to isolate the different sqlpage functions to prevent cascading failures
2024-07-31 21:54:49 +02:00
PChemGuy 633ebe3118 Added "overflow" attribute to the "table" component
The "table" component template will now set the width property of the table component div to "fit-content" if the table defines a boolean "overflow" attribute set to TRUE.
2024-06-18 21:49:14 +03:00
lovasoa 746541fa9b add a css class with the column name to table headers, and document the behavior
fixes https://github.com/lovasoa/SQLpage/discussions/264
2024-03-13 18:26:41 +01:00
olivierauverlot 318dec18d3 Table improvements (#242)
Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-25 19:09:06 +01:00
Lorefnon 1fa4f9364a Add id/class to the components (#182) 2024-01-12 23:05:38 +01:00
Lorefnon 99c7e02499 Support lazy-loaded content fragments in card component (#175)
* Add support for embed parameter that skips the shell layout

* Add support for cards with remote content

* Adapt js to support lazy-loaded fragments

* Add example

* Reformat & Fix lint errors

* Update query param name and add docs

* Add example

* squash migrations

---------

Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-01-05 22:17:33 +01:00
lovasoa 4d0b4e867c new align_right attribute in the table component
fixes #115
2023-10-26 02:34:47 +02:00
lovasoa 27984a0400 fix table sorting 2023-08-23 02:19:09 +02:00
lovasoa 53288a587d fix icons in tables 2023-08-02 16:46:58 +02:00
lovasoa 1b4e612216 inline svg icons in the SQLPage binary
icons are now loaded directly from the sqlpage binary instead of loading them from a CDN

This makes it possible to host a SQLPage website on an intranet without access to the internet.

Fixes https://github.com/lovasoa/SQLpage/issues/37
2023-08-02 16:20:11 +02:00
lovasoa 40c1076e61 custom background colors in tables
Closes #25
2023-07-15 19:41:41 +02:00
lovasoa 9522d82218 add tabler table icons 2023-07-13 01:58:55 +02:00
lovasoa 12b3514590 Add support for markdown in tables
Closes https://github.com/lovasoa/SQLpage/issues/4
See https://github.com/lovasoa/SQLpage/discussions/11
2023-06-12 00:35:59 +02:00
lovasoa 2956411c7a rename sqlsite to sqlpage 2022-08-28 01:04:10 +02:00