Results 1 to 3 of 3

Thread: Modern 6.6 How to config Ext.field.trigger.Component if it has no xtype ?

  1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Question Answered: Modern 6.6 How to config Ext.field.trigger.Component if it has no xtype ?

    If Ext.field.trigger.Component has no xtype, how do you set up the config for it within the triggers object?

    Usually, we set up the configurations using xtype. But the Component trigger has no xtype.

    Sometimes we may have a trigger that has a image / URL rather than an iconCls.
    Last edited by MikeLowery; 3 Aug 2018 at 4:03 PM. Reason: Added last sentence.

  2. Use "type". For example, date field uses:

    Code:
    triggers: {
        expand: {
            type: 'date'
        }
    }

  3. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257
    Answers
    759

    Default

    Use "type". For example, date field uses:

    Code:
    triggers: {
        expand: {
            type: 'date'
        }
    }
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #3
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default

    Thanks Evan. That worked.
    I don't see type documented anywhere. Should the missing xtype be submitted as a bug?

Similar Threads

  1. Replies: 1
    Last Post: 24 Jan 2018, 4:08 AM
  2. Replies: 2
    Last Post: 2 Jul 2017, 7:28 AM
  3. need New Trigger Field Component for tab flow issue
    By Gunasekar.Jabbala in forum Ext: Q&A
    Replies: 1
    Last Post: 6 Feb 2014, 11:55 AM
  4. Replies: 1
    Last Post: 3 Feb 2014, 2:08 AM
  5. Trigger component to update with different config
    By vivaladan in forum Ext: Q&A
    Replies: 1
    Last Post: 30 Jan 2012, 11:30 AM

Tags for this Thread

Posting Permissions

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