Skip to content

Conversation

@xylle
Copy link
Contributor

@xylle xylle commented Nov 16, 2024

Add empty option to select

Add empty option to select
@lovasoa
Copy link
Collaborator

lovasoa commented Nov 16, 2024

Thank you ! You also need to document the new option, otherwise no one will know about it.

The documentation for the form component is here: https://github.com/sqlpage/SQLPage/blob/main/examples/official-site/sqlpage/migrations/01_documentation.sql#L232-L273

@lovasoa
Copy link
Collaborator

lovasoa commented Nov 16, 2024

Ideally, you would also update the select example below, to demonstrate the usage of the new option.

Add documentation
@xylle
Copy link
Contributor Author

xylle commented Nov 16, 2024

Like that, it's good ?

Copy link
Collaborator

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we name it empty_option to follow the snake_case wording of other sqlpage component properties.

@lovasoa lovasoa changed the title Update form.handlebars add empty_option to the form component Nov 16, 2024
@lovasoa lovasoa merged commit d18954e into sqlpage:main Nov 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants