Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Are HTML5 input types supported?

    We would like our app to take advantage of some of the HTML5 features that are useful on an iPad, like an input field for numerics causing the number keyboard to display. For instance:

    <input type="number" name="quantity">

    Or having a date widget display:

    <input type="datetime" name="bdaytime">

    I haven't found anything in the SmartGWT API to enable this. I tried using an IntegerItem, and it sets the input type="text", where it would have been very nice if it were "number". Is there a way to do this with SmartGWT?

    Thanks,
    Chris

    #2
    TextItem.browserInputType allows you to do this.

    Comment


      #3
      Thanks! I'll give that a try.

      Chris

      Comment


        #4
        Is setBrowserInputType only in SmartGWT 4? I don't see it in TextItem in version 3.

        Thanks,
        Chris

        Comment


          #5
          Oh - yes - this is currently only present in 4.0
          However it's straightforward to backport to 3.1p. It should be present in the next nightly build

          Regards
          Isomorphic Software

          Comment

          Working...
          X