Skip to content

add support for <select> as a form input #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lovasoa opened this issue Jun 7, 2023 · 1 comment
Closed

add support for <select> as a form input #5

lovasoa opened this issue Jun 7, 2023 · 1 comment

Comments

@lovasoa
Copy link
Collaborator

lovasoa commented Jun 7, 2023

SELECT 'form' as component;
SELECT 
    'Friend' as name, 
    'select' as type, 
    group_concat(family_name, '\n') AS options
    group_concat(id, '\n') AS option_values
FROM people;

see #3

@lovasoa lovasoa changed the title add support form inputs add support for <select> in form inputs Jun 9, 2023
@lovasoa lovasoa changed the title add support for <select> in form inputs add support for <select> as a form input Jun 9, 2023
@lovasoa
Copy link
Collaborator Author

lovasoa commented Jun 11, 2023

@leoedin : this is implemented in v0.6.11, using a slightly different format:

SELECT 
    'select' as type,
    json_group_array(json_object("label", name, "value", id)) as options
FROM fruits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant