Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

textInput() Types

Hello,

Now that I am getting the data to move around successfully, I am working on the edit page of my migraine project.

Most of the fields are textInput() objects. I have gotten the following to work...

<TextInput
     ...
     type="Text" //This works, but is probably unnecessary as it is the 
                //default anyway.
     type="Number" //This works and brings up a number pad
     ...    
     />     

What I am wondering is, what are the other supported types? I would love to get a date picker going, but may be interested in others as well. I tried using typical javascript types, and Date did not work.

It seems that you can create custom types as well (when you use an unsupported type, you get an empty dropdown), but am not sure how to do that (or whether that is necessary).

Best Answer
0 Votes
1 REPLY 1

It's based on JSX, so some other types might work, but ymmv. Date/Time isn't implemented afaik.

Best Answer
0 Votes