May 09, 2021 Extjs
A naming convention is a set of rules that identifiers follow.
It makes the code more readable and understandable for other programmers.
Naming conventions in Ext JS follow the standard JavaScript conventions, which are not mandatory, but rather good practices.
It should follow the camel case syntax to name classes, methods, variables, and properties.
If the name is combined with two words, the second word will always begin with a capital letter. /b10> doLayout(), StudentForm, firstName, etc.
Name | Practice |
---|---|
Class Name
|
It should start with a capital letter, followed by
camel case E.g. StudentClass
|
Method Name
|
It should start with a lowercase letter, followed
by camel case E.g. doLayout().
|
Variable Name
|
It should start with a lowercase letter, followed
by camel case E.g. firstName
|
Constant Name
|
It should be only capital, for example
E.g. COUNT, MAX_VALUE
|
Property Name
|
It should start with a lowercase letter, followed by camel case e.g. enableColumnResize s true |