Results 1 to 3 of 3

Thread: Another rant about binding (I think I'm doing it wrong)

  1. #1
    Sencha User
    Join Date
    Mar 2016
    Posts
    99
    Answers
    5

    Default Answered: Another rant about binding (I think I'm doing it wrong)

    I have this binding in my code

    Code:
                           
    bind: {
      title: '{value}',
      hidden: '{value}' 
    },
    Guess what? It's not hidden, but title says "true".

    PS: I don't expect answer here and I don't think I can make fiddle for that, I'm just collecting things I hate about extjs so I can refer to them just by looking at threads I created.

  2. So the problem was that my elem is a tab item of tabpanel. If I set

    Code:
    {
      hidden: true
    }
    for it, tab is hidden. When I set

    Code:
    {
      tabConfig: {
        hidden: true
      }
    }
    for it, tab is also hidden.

    But to hide it with binding they only way is to use second variant.

    Code:
    {
      tabConfig: {
        bind: {
          hidden: '{value}'
        }
      }
    }

  3. #2
    Sencha User
    Join Date
    Mar 2016
    Posts
    99
    Answers
    5

    Default

    So the problem was that my elem is a tab item of tabpanel. If I set

    Code:
    {
      hidden: true
    }
    for it, tab is hidden. When I set

    Code:
    {
      tabConfig: {
        hidden: true
      }
    }
    for it, tab is also hidden.

    But to hide it with binding they only way is to use second variant.

    Code:
    {
      tabConfig: {
        bind: {
          hidden: '{value}'
        }
      }
    }

  4. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    This actually doesn't have anything to do with binding but is an Ext JS bug (EXTJS-13953). If you call the hide method of an item it doesn't hide the tab:

    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Similar Threads

  1. [DUP] Binding-combo-chaining wrong behavior
    By ipgaero in forum Ext 5: Bugs
    Replies: 4
    Last Post: 9 Oct 2014, 3:26 PM
  2. Binding-combo-chaining wrong behavior
    By ipgaero in forum Ext 5: Q&A
    Replies: 3
    Last Post: 9 Oct 2014, 3:25 PM
  3. [FIXED] viewModel binding and fieldLabel, causing wrong message aligment
    By SebastienMorin in forum Ext 5: Bugs
    Replies: 2
    Last Post: 3 Jun 2014, 2:37 PM
  4. Bit of a rant on layouts...
    By marman in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 23 Oct 2009, 5:05 AM

Posting Permissions

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