Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    2
    Vote Rating
    0
    tiredoftry is on a distinguished road

      0  

    Question Answered: API Component / Keyword Conventions

    Answered: API Component / Keyword Conventions


    Hello,

    I have been going through some of the samples in the Touch 2.x documentations and am finding a lot of the code in Touch 1.x format. Some of the changes are minor, however, it would be much easier if there was a list of the conventions used for the API and components.

    Example Ext.Application from Touch 1 is not Ext.application in Touch 2 - Note the lowercase 'a' in application.

    This does not carry through, however, as Ext.Create is an uppercase and components are formatted such as TabPanel.

    Is there any documentation which explains the convention methodology of the API? This would make it much easier when converting the examples (and any created applications) from Touch 1 to Touch 2.

    Thank you for the time,
    Randy Friend

  2. Functions should always have a lowercased first letter and then be capitalized. Like Ext.application, Ext.create, and Ext.define.

    Class names however have a capitalized first letter. So Ext.tab.Panel, Ext.Container, Ext.field.Text, and so on.

    If you find any inconsistencies with this, please do let us know.

Thread Participants: 2

Tags for this Thread