Added some important principals

2025-04-29 18:05:01 +02:00
parent 82fcbb7736
commit f469545707
2 changed files with 34 additions and 26 deletions

7
ImportantPrincipals.md Normal file

@@ -0,0 +1,7 @@
# ModuleClientApi - Important Principals
When creating the client side of a module there are some really important things to take account of!
- Never use document.getElementById or document.querySelector! Always use api.dom().querySelector so the element are always in the correct scope.
- Never use event 'DOMContentLoaded' since the DOM content is always ready when the code is executed.
- Never use event 'resize' instead use api.onResize(<callback>)

@@ -1,26 +1,27 @@
* [Introduction](./Home) - [Introduction](./Home)
* [Prerequisites](./Prerequisites) - [Prerequisites](./Prerequisites)
* [Setting up server](./ServerSetup) - [Setting up server](./ServerSetup)
* [Config](./Config) - [Config](./Config)
* Module Development - Module Development
* [Module Structure](./ModuleStructure) - [Module Structure](./ModuleStructure)
* [Module.json](./ModuleJSON) - [Module.json](./ModuleJSON)
* [Property](./ModuleJSONProperty) - [Property](./ModuleJSONProperty)
* [Trigger](./ModuleTrigger) - [Trigger](./ModuleTrigger)
* [Condition](./ModuleCondition) - [Condition](./ModuleCondition)
* [Complete Example](./module.json) - [Complete Example](./module.json)
* [Development environment/Building](./ModuleEnvironment) - [Development environment/Building](./ModuleEnvironment)
* [GetiyoModuleTool](./GetiyoModuleTool) - [GetiyoModuleTool](./GetiyoModuleTool)
* [ModuleClientAPI](./ModuleClientAPI) - [ModuleClientAPI](./ModuleClientAPI)
* [User](./ModuleClientAPIUser) - [User](./ModuleClientAPIUser)
* [ModuleServerAPI](./ModuleServerAPI) - [Important Principals](./ImportantPrincipals)
* [Client](./ModuleServerAPIClient) - [ModuleServerAPI](./ModuleServerAPI)
* [Property](./ModuleServerAPIProperty) - [Client](./ModuleServerAPIClient)
* [ModuleData](./ModuleServerAPIModuleData) - [Property](./ModuleServerAPIProperty)
* [Libs](./ModuleServerAPILibs) - [ModuleData](./ModuleServerAPIModuleData)
* [LibWebSocket](./ModuleServerAPILibsWebSocketLib) - [Libs](./ModuleServerAPILibs)
* [Axios](https://axios-http.com/docs/instance) - [LibWebSocket](./ModuleServerAPILibsWebSocketLib)
* [Module Debugging](./ModuleDebugging) - [Axios](https://axios-http.com/docs/instance)
* [ModuleStore](./ModuleStore) - [Module Debugging](./ModuleDebugging)
* [Bug/Feature Reporting](./Reporting) - [ModuleStore](./ModuleStore)
* [Contact Details](./ContactDetails) - [Bug/Feature Reporting](./Reporting)
- [Contact Details](./ContactDetails)