Ext.js – Naming Convention

Ext.js - Naming Convention

Ext.js Naming convention is a set of rule to be followed for identifiers. It makes the code more readable and understandable to other programmers as well.

Naming convention in Ext.Js follows the standard JavaScript convention, which is not mandatory but a good practice to follow. It should follow the camel case syntax for naming the class, method, variable and properties.

If the name is combined with two words, the second word will start with an uppercase letter always. For example, doLayout(), StudentForm, firstName, etc.

NameConvention
Class NameIt should start with an uppercase letter, followed by camel case. For example, StudentClass
Method NameIt should start with a lowercase letter, followed by camel case. For example, doLayout()
Variable NameIt should start with a lowercase letter, followed by camel case. For example, firstName
Constant NameIt should be in uppercase only. For example, COUNT, MAX_VALUE
Property NameIt should start with a lowercase letter, followed by camel case. For example, enableColumnResize = true

Next Topic : Click Here

Leave a Reply