1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
    maurya971 is on a distinguished road

      0  

    Default Difference between property and config.

    Hi,
    I was documenting my application for jsduck, I got confused with property and config. anyone please explain me the difference.

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    8,513
    Vote Rating
    227
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      2  

    Default

    Here's a discussion that might help:
    https://www.sencha.com/forum/showthread.php?141119


    Join me at SenchaCon 2016!

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
    maurya971 is on a distinguished road

      0  

    Default

    Not able to open link.

  4. #4
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    402
    Vote Rating
    188
    danguba is a splendid one to behold danguba is a splendid one to behold danguba is a splendid one to behold danguba is a splendid one to behold danguba is a splendid one to behold danguba is a splendid one to behold danguba is a splendid one to behold

      1  

    Default

    Quote Originally Posted by maurya971 View Post
    Not able to open link.
    Yeah. It's a thread from premium forum. Here is quote from Saki from that thread:

    Quote Originally Posted by jsakalos View Post
    Config option is passed to the constructor of a class and may (and usually does) become a property of the class instance. Property is not necessarily passed to the constructor. Properties are usually read-only in Ext and you (usually) shouldn't set them directly from outside but using setter methods where available. For example, you wouldn't use panel.title = "Title" but you would use panel.setTitle("Title");
    I doubt he'll mind me posting it here
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  5. #5
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
    maurya971 is on a distinguished road

      0  

    Default

    Thanks danguba

  6. #6
    Sencha User
    Join Date
    Jun 2015
    Posts
    4
    Vote Rating
    0
    mindriders is on a distinguished road

      0  

    Default

    Hey,Config option is passed to the constructor of a class and may (and usually does) become a property of the class instance. Property is not necessarily passed to the constructor. Properties are usually read-only in Ext and you (usually) shouldn't set them directly from outside but using setter methods where available.

Similar Threads

  1. [CLOSED] [2.0.3] Difference between dev and prod with extra config
    By estesbubba in forum Sencha Touch 2.x: Bugs
    Replies: 5
    Last Post: 22 Aug 2013, 6:41 AM
  2. Replies: 1
    Last Post: 3 May 2013, 10:16 AM
  3. What's difference between listeners property and handler property?
    By cailhuiris in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 29 Dec 2012, 7:14 AM
  4. what is the difference between config and properties of api
    By sudhanshubest in forum Ext: Discussion
    Replies: 1
    Last Post: 12 Apr 2012, 1:14 PM

Thread Participants: 3

Tags for this Thread