SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

Table component built-in edit_link, delete_link and view_link

Open lovasoa opened this issue 1 year ago • 0 comments

Discussed in https://github.com/sqlpage/SQLPage/discussions/656

Originally posted by xylle October 30, 2024 Hello, I've started using SQLPage, which is very good. Would it be possible to add edit_link, delete_link and view_link functions to the table component, same as the list component ? You can sort and filter table, not list

How do I use the icons provided by SQLPage in my Markdown links?

I tried that, but it's not elegant :

SELECT 
    'table'                 AS component,
    'action'                AS markdown,
    'Listes des serveurs'   AS description,
    TRUE                    AS sort,
    TRUE                    AS small,
    TRUE                    AS striped_rows,
    TRUE                    AS search;
SELECT 
    *,
    '[![](./icons/edit.svg "Édition")](formulaire_serveur.sql?serveur_id='|| id || ')' AS action,
    '[![](./icons/trash.svg "Suppression")](suppression_serveur.sql?serveur_id='|| id || ')' AS action
FROM serveurs;
```</div>

lovasoa avatar Oct 30 '24 14:10 lovasoa