Announcement

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

    Formatter for FormItem

    Hello. I saw that for all fields in a listgrid you can use a cell formatter so that for example I would get 1.00€ instead of 100 for example.

    This functionality is not existent on a FormItem despite we have a Date and Time formatter.
    Is there any way I could create a custom formatter for the FormItem that would work pretty much like the cell formatter but instead would show the formatted text inside the field?

    #2
    could this be a feature enhancement, I don't know, has SmartClient / SmartGwt a feature like this planned?

    I don't know if a feature like this would be easy or difficult to implement, but I think it makes sense to have a formater for the form items as well, not only GridItems...

    Comment


      #3
      SmartClient does have better support for this, if you're adventurous, look at the SimpleType subsystem - for now you'd have to use this via JSNI.

      Comment


        #4
        Isomorphic Hello,

        I can also format the values of a TextItem (CellFormatter is good in a grid).

        Specifically to format decimal values or numbers in a specific display.

        Have you an example of how it's done with the JSNI?

        Thank you

        Comment


          #5
          Originally posted by Isomorphic
          SmartClient does have better support for this, if you're adventurous, look at the SimpleType subsystem - for now you'd have to use this via JSNI.
          Hello, Isomorphic

          Is there any expamle for SimpleType JSNI? Thanks a lot!

          Comment

          Working...
          X