Results 1 to 3 of 3

Thread: Why getXType() returns different results for production and for development mode.

  1. #1
    Sencha User
    Join Date
    Jul 2015
    Posts
    11

    Default Why getXType() returns different results for production and for development mode.

    E.g. for combobox in production getXType returns 'combo' but for development it returns 'combobox'.
    The same for textarea -> textareafield, checkbox -> checkboxfield, etc.
    Is there some configs to unify this?

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Answers
    5

    Default

    Thank you for your question. I have sent this to the support team. They will reach out at their earliest convenience to provide assistance. Thank you for your patience!

    Michele

  3. #3
    Sencha User
    Join Date
    Jul 2015
    Posts
    11

    Default

    In production mode:
    ```
    cmp.getConfig('xtype') // "combobox"

    cmp.getInitialConfig('xtype') // "combobox"

    cmp.getXType() // "combo"

    cmp.getXTypes() // "box/component/field/textfield/pickerfield/combo/combobox"
    ```

    In development mode:
    ```
    cmp.getConfig('xtype') // "combobox"

    cmp.getInitialConfig('xtype') // "combobox"

    cmp.getXType() // "combobox"

    cmp.getXTypes() // "component/box/field/textfield/pickerfield/combobox/combo"
    ```

    Note mess at begin and at end of getXTypes() result.

    So for now I think there is a bug and I will use cmp.getConfig('xtype') instead of cmp.getXType().

Similar Threads

  1. getXType returns different value for production vs testing build
    By ChrisClarkNZ in forum Ext JS 6.x Bugs
    Replies: 4
    Last Post: 14 Oct 2016, 6:20 AM
  2. Replies: 4
    Last Post: 1 Aug 2015, 1:21 AM
  3. Replies: 3
    Last Post: 19 Jan 2012, 7:53 AM
  4. Replies: 2
    Last Post: 13 Dec 2010, 7:42 AM
  5. getXType returns unexpected (for me) value
    By johnleroux in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 29 Jun 2009, 3:22 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
  •