Results 1 to 3 of 3

Thread: [4.2.0.265] NodeInterface

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Lyon, France
    Posts
    234
    Vote Rating
    52
      0  

    Default [4.2.0.265] NodeInterface

    decorate node should make checked fields boolean, no convert:

    {name : 'checked', type : 'bool', useNull: true, persist : false}, // , convert: null },

    This is necessary when dealing with XML data where (otherwise values like "" or "false" are interpreted as truthly and the checkbox is "checked")
    Thanks
    C.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Ext.data.Types BOOL/BOOLEAN both describe truthy values being true, 1 or 'true'. Anything else should be considered falesy
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Lyon, France
    Posts
    234
    Vote Rating
    52
      0  

    Default

    Right, sorry my post was not clear.
    The current type for 'checked is 'auto'. What I ask is to modify it to what is proposed in this post (type: 'boolean', ...)

    Cheers,
    C.

Posting Permissions

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