SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

link for icon table component

Open f8dca opened this issue 2 years ago • 3 comments

I would like to have the capability of an icon with a clickable link in table component line.

f8dca avatar Aug 09 '23 17:08 f8dca

Hi @f8dca !

It's currently not supported directly by SQLPage's icon system, but you can get the result you want using a markdown column for the icon and the link :

select 'table' as component, 'My icon' AS markdown;

select '[
    ![](https://tabler-icons.io/static/tabler-icons/icons/accessible-off-filled.svg)
](https://google.com)' as "My icon",
    'John' as "First Name", 'Doe' as "Last Name", 1994 as "Birth Date"

image

Does that do what you need ?

lovasoa avatar Aug 12 '23 18:08 lovasoa

Yes, I can do this but you should aim for consistency: Other components already have the link attribute so it would make sense to add it to the table too.

f8dca avatar Aug 15 '23 19:08 f8dca

This is actually an important piece - if we can add delete / update icons to individual records than we can create basic CRUD applications. the alternative could be adding individual CRUD icons and links to each records. (Also adding colors would be nice touch)

image

f8dca avatar Aug 15 '23 21:08 f8dca