-
-
Notifications
You must be signed in to change notification settings - Fork 71
Add name and class property to DateInput #76
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
Comments
There actually is an undocumented I can't add |
Great to have |
@probablykasper Here a proposal: add properties |
Adding It would be nice if there's a way to avoid having multiple |
I doubt that you can avoid multiple class properties. Some need to go to the outer div, some to the input field if displayed. svelty-picker supports "inputClasses" for "input css class string". What's the issue with the name property? Can't it simply be:
|
It might also make sense to have an Maybe right next to |
My last try regarding name: Maybe just use I don't worry about the format, as it is written in the input already, so the server can deal with it. And if you really want a fixed format, the |
All good that you don't worry about the format, but other people will so I'm pretty against that approach. I don't know if there's any good way to support SSR :/ |
I forked and added a type check and |
Nice! No thanks, I'd need to think about it |
+1
which looks terrible. |
It would be great to have a name and class property on
DateInput
. That would enable manual input/submit when having disabled JS and use something like bootstrap CSS to enable styling of the input box and to enable a red box upon wrong input.The text was updated successfully, but these errors were encountered: