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

Add "number" type function for Textfield #286

Closed
Janiczek opened this issue Feb 22, 2017 · 4 comments
Closed

Add "number" type function for Textfield #286

Janiczek opened this issue Feb 22, 2017 · 4 comments
Milestone

Comments

@Janiczek
Copy link

In similar vein as Textfield.email or Textfield.password
Is tis a good idea, or is there some other canonical way? (regexes and validation?)

@andys8
Copy link

andys8 commented Mar 15, 2017

Missing the ability to set the type of the input, too. "date" and "time" would be great!

@FabienHenon
Copy link

And "tel"

Is there a workaround for this?
Because I'm about to fork the project for this feature :(

FabienHenon added a commit to FabienHenon/elm-mdl that referenced this issue May 23, 2017
Let people create input fields with more types

Fix debois#286.
@aforemny aforemny modified the milestone: v8 Jun 26, 2017
@Edward-Lombe
Copy link

Edward-Lombe commented Jun 29, 2017

Can say that I would love an ability to set the type of an input to date.

Currently, I'm trying to get the following code to work, but it has no effect for some reason

Textfield.render Mdl
        [0]
        model.mdl
        [ Textfield.label "Date input"
        , Textfield.floatingLabel
        , Options.onInput SetDate
        , Options.input <| [ Options.attribute <| Html.Attributes.type_ "date" ]
        ]
        []

But the type resolutely stays as text.

@aforemny
Copy link
Collaborator

This will only come in v9. I will close here and track progress in #335.

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

5 participants