Results 1 to 3 of 3

Thread: trAtts.set is not a valid function - table layout

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1

    Default trAtts.set is not a valid function - table layout

    When a table layout is assigned to panel and trAttrs used, (like below)
    type: "table",
    columns: 2,
    tableAttrs: {
          style: {
           width: '100%'
    for any trAttrs the layout code internally is using
    and it crashes that 'set' is not a valid method.
    I think it should be 'setAttribute'
    I changed the ext-all-debug.js with it and the code worked fine

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    trEl is just the HTML element but it needs to be an Ext.Element instance to use the set method (set is correct). So all it needs to do to fix this one is Ext.get(trEl) and it should work. In 4.1.0 this has been fixed.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:

  3. #3


    This problem exists in 4.2.1

Posting Permissions

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