Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

How I can with Text Field use Type of the input element as valid HTML5 input type? need the manual (docs) #178

Open
romanown opened this issue Mar 17, 2021 · 7 comments
Labels
documentation Improvements or additions to documentation

Comments

@romanown
Copy link
Contributor

romanown commented Mar 17, 2021

How I can Text Field use Type of the input element as valid HTML5 input type? as Material-UI https://material-ui.com/ru/api/text-field/

type | string |   | Type of the input element. It should be a valid HTML5 input type.

I tried it and it work but need the manual (docs) about.

@romanown romanown changed the title can I with Text Field use Type of the input element as valid HTML5 input type? How I can with Text Field use Type of the input element as valid HTML5 input type? Mar 17, 2021
@romanown romanown changed the title How I can with Text Field use Type of the input element as valid HTML5 input type? How I can with Text Field use Type of the input element as valid HTML5 input type? need the manual (docs) Mar 17, 2021
@Florian-Schoenherr Florian-Schoenherr added the documentation Improvements or additions to documentation label Mar 18, 2021
@Florian-Schoenherr
Copy link
Collaborator

btw. with some IDEs you can go to the source pretty easy, that helped me really much with learning svelte.
I think that works far better than going through API docs.

In the case of the TextField, I also didn't know you could add the type until a few weeks ago, but it has a reason:
You shouldn't really change the type, other than for password.
We'll have separate components for most types.

We should really specify ...$$restProps usage in the API docs.

Oh and what type do you want to use?

@romanown
Copy link
Contributor Author

romanown commented Mar 18, 2021

Thaks. I looked in the source code and so I tried using the time and date type as I have in another project on Reactjs. switching the type works but in a strange way so I asked this question. I use type="time". I can't switch the time format to 24h. if there are special separate components for this use, I will wait for them to appear.
on screen left frame has clearable property.
image

@Florian-Schoenherr
Copy link
Collaborator

@romanown see #41

@romanown
Copy link
Contributor Author

romanown commented Mar 18, 2021

thanks. these are different questions in meaning. I don't want to use third-party elements. I will wait for these components to appear in this library. now I can use them as is.
the most important component for me is the Select component.

@gevera
Copy link

gevera commented Apr 2, 2021

Time and Date are crucial for me. I don't know what projects do you use this awesome library but you can't get away without a date picker / a date input

@Florian-Schoenherr
Copy link
Collaborator

@gevera upvote #41 and write that there. We know it's in demand! :)
There're some svelte datepickers out there, right now this lib gets reworked, that's why we don't want to add components right now. Other datepickers fit okay-ish to materialify.

@gevera
Copy link

gevera commented Apr 3, 2021

I will. Thanks for all your work making svelte-materialify.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants