Results 1 to 5 of 5

Thread: API Component / Keyword Conventions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Vote Rating

    Question Answered: API Component / Keyword Conventions


    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.Container, Ext.field.Text, and so on.

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

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