1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    10
    Vote Rating
    0
    singlaive is on a distinguished road

      0  

    Default Unanswered: Is there a boolean xtype?

    Unanswered: Is there a boolean xtype?


    The scenario is I am building a grid using rowEditor plugin. One row is about data of boolean. When editing, it will be treated as text field by default. This means people can update 'true/false' to any funny text. So is there any boolean xtype that I can restraint it here? I saw different kinds of xtypes of datefield, numberfield or combox, but no boolean one.

    Sorry I tried reading books and online API doc but did not find a obvious answer.

  2. #2
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    175
    Answers
    23
    Vote Rating
    13
    EPV will become famous soon enough

      1  

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,781
    Answers
    356
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    You might also check out the boolean column type.
    http://docs.sencha.com/ext-js/4-1/#!...column.Boolean

  4. #4
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    175
    Answers
    23
    Vote Rating
    13
    EPV will become famous soon enough

      0  

    Default


    The booleancolumn isn't editable is it?

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Posts
    10
    Vote Rating
    0
    singlaive is on a distinguished road

      0  

    Default


    Quote Originally Posted by EPV View Post
    Thanks EPV, I might go with checkbox. But going back to my original question, there is no xtype of boolean is there?

  6. #6
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    175
    Answers
    23
    Vote Rating
    13
    EPV will become famous soon enough

      0  

    Default


    No, there's no xtype that has the name 'boolean'.

  7. #7
    Sencha User
    Join Date
    Feb 2013
    Posts
    10
    Vote Rating
    0
    singlaive is on a distinguished road

      0  

    Default


    Fair enough...

Thread Participants: 2