Skip to content
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

Forms with custom layouts #487

Open
hugobarauna opened this issue Jan 23, 2025 · 1 comment
Open

Forms with custom layouts #487

hugobarauna opened this issue Jan 23, 2025 · 1 comment

Comments

@hugobarauna
Copy link
Member

A Teams beta user asked me:

im assuming as well
that if one has a large form of lets say 10 inputs
one has to use a custom form component to handle layout?
for example to have 3 inputs per row etc etc

Currently, Kino.Control.form/2 doesn't support multiple inputs per row.

A current alternative solution is to build one own's custom "form", like this:

CleanShot.2025-01-23.at.15.59.54.mp4

Here's the source code for the solution above.

I think we can expand the way we allow one to deal with the layout of a form inside Kino.Control.form/2`. Maybe multiple inputs per "row" would be enough.

@rcuevas-wash
Copy link

Hello, The team Beta user here:

i was looking toward using Kino.Control.form to manage my report's report filter inputs. According to the design spec, I have to render the inputs in groups, each on their own line, and ran into the fact that when using Kino.Control.form, one is forced to render the inputs line by line, forcing me to have to use a custom form component.

Actual:
input 1
input 2
input 3
input 4
input5

vs
Desired
input 1 input 2
input 3 input 4 input5

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

2 participants