Skip to content

Code Conventions

Jens Tschirpig edited this page Jul 3, 2019 · 4 revisions

Terminology

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

Database

  • Each table must have a numeric auto-generated id column for identifying individual items within the table.

Custom Components

  • 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.

Clone this wiki locally