Results 1 to 3 of 3

Thread: checkbox default value

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2010
    Location
    Vancouver, BC
    Posts
    224
    Vote Rating
    1
      0  

    Default checkbox default value

    The main value of a checkbox is a boolean, indicating whether or not the checkbox is checked. The following values will check the checkbox:
    • true
    • 'true'
    • '1'
    • 'on'
    Above doesn't seem to work

    Code:
    {
                          id        : 'complexity',
                          name      : 'complexity',
                          xtype:"checkbox",
                          value: "1"
     }

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,154
    Vote Rating
    34
      0  

    Default

    it works with setValue but in the config it conflicts with the checked property wich is set default on false.

    I think in the config the checked property is leading.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    But then the documentation is wrong.

    Either it's a bug or the documentation should be adapted.

Posting Permissions

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