-
Notifications
You must be signed in to change notification settings - Fork 0
Code Conventions
Jens Tschirpig edited this page Jul 3, 2019
·
4 revisions
| Frontend | Database | Explanation |
|---|---|---|
| dbId | id | A unique ID given to the item in question. In the DB it is stored under the id column, however HTML has a reserved id attribute. Therefore the term dbId is used in frontend code |
| id | The value for the standard id attribute. This is used to uniquely identify an element on the page |
- Each table must have a numeric auto-generated
idcolumn for identifying individual items within the table.
- The class name for a custom component should end with "Element". E.g.:
CountdownTimerElement. This is to avoid naming conflicts with classes that are similar, but that are unrelated to custom components.