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
    197
    Vote Rating
    15
    Answers
    23
    EPV will become famous soon enough

      1  

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,993
    Vote Rating
    212
    Answers
    476
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    197
    Vote Rating
    15
    Answers
    23
    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
    197
    Vote Rating
    15
    Answers
    23
    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