Results 1 to 7 of 7

Thread: Is there a boolean xtype?

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    10
    Vote Rating
    0
      0  

    Default 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
    342
    Answers
    36
    Vote Rating
    42
      1  

  3. #3
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      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
    342
    Answers
    36
    Vote Rating
    42
      0  

    Default

    The booleancolumn isn't editable is it?

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Posts
    10
    Vote Rating
    0
      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
    342
    Answers
    36
    Vote Rating
    42
      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
      0  

    Default

    Fair enough...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •