1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    28
    Answers
    2
    Vote Rating
    3
    iron9light is on a distinguished road

      0  

    Default Unanswered: How many xtype can one widget have?

    Unanswered: How many xtype can one widget have?


    Code:
    Ext.define "A",
      xtype: "a"
    
    Ext.define "B",
      extend: "A"
      xtype: "b"
    the selector "a" can find instance of class "B"

  2. #2
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    690
    Answers
    21
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    It have only one xtype

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    28
    Answers
    2
    Vote Rating
    3
    iron9light is on a distinguished road

      0  

    Default


    Code:
      config:
        refs:
          a: "a"
      control
        a:
          tap: -> console.info "a tapped"
    This will show info when I tap widget of "b"

  4. #4
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    690
    Answers
    21
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    yes, but couse of the hierarchy your componet query can xtpes deeper in the inherence hierarchy


    HIERARCHY

    Ext.Base -> Ext.Evented -> Ext.Abstrac -> tComponent -> Ext.Component -> Ext.Container -> Your component


    may the document query doc helps you understanding whats happen internally when you defien a ref

    http://docs.sencha.com/touch/2-0/#!/...y-method-query

Thread Participants: 1

Tags for this Thread