Added some important principals
7
ImportantPrincipals.md
Normal file
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>)
|
||||
53
_Sidebar.md
53
_Sidebar.md
@@ -1,26 +1,27 @@
|
||||
* [Introduction](./Home)
|
||||
* [Prerequisites](./Prerequisites)
|
||||
* [Setting up server](./ServerSetup)
|
||||
* [Config](./Config)
|
||||
* Module Development
|
||||
* [Module Structure](./ModuleStructure)
|
||||
* [Module.json](./ModuleJSON)
|
||||
* [Property](./ModuleJSONProperty)
|
||||
* [Trigger](./ModuleTrigger)
|
||||
* [Condition](./ModuleCondition)
|
||||
* [Complete Example](./module.json)
|
||||
* [Development environment/Building](./ModuleEnvironment)
|
||||
* [GetiyoModuleTool](./GetiyoModuleTool)
|
||||
* [ModuleClientAPI](./ModuleClientAPI)
|
||||
* [User](./ModuleClientAPIUser)
|
||||
* [ModuleServerAPI](./ModuleServerAPI)
|
||||
* [Client](./ModuleServerAPIClient)
|
||||
* [Property](./ModuleServerAPIProperty)
|
||||
* [ModuleData](./ModuleServerAPIModuleData)
|
||||
* [Libs](./ModuleServerAPILibs)
|
||||
* [LibWebSocket](./ModuleServerAPILibsWebSocketLib)
|
||||
* [Axios](https://axios-http.com/docs/instance)
|
||||
* [Module Debugging](./ModuleDebugging)
|
||||
* [ModuleStore](./ModuleStore)
|
||||
* [Bug/Feature Reporting](./Reporting)
|
||||
* [Contact Details](./ContactDetails)
|
||||
- [Introduction](./Home)
|
||||
- [Prerequisites](./Prerequisites)
|
||||
- [Setting up server](./ServerSetup)
|
||||
- [Config](./Config)
|
||||
- Module Development
|
||||
- [Module Structure](./ModuleStructure)
|
||||
- [Module.json](./ModuleJSON)
|
||||
- [Property](./ModuleJSONProperty)
|
||||
- [Trigger](./ModuleTrigger)
|
||||
- [Condition](./ModuleCondition)
|
||||
- [Complete Example](./module.json)
|
||||
- [Development environment/Building](./ModuleEnvironment)
|
||||
- [GetiyoModuleTool](./GetiyoModuleTool)
|
||||
- [ModuleClientAPI](./ModuleClientAPI)
|
||||
- [User](./ModuleClientAPIUser)
|
||||
- [Important Principals](./ImportantPrincipals)
|
||||
- [ModuleServerAPI](./ModuleServerAPI)
|
||||
- [Client](./ModuleServerAPIClient)
|
||||
- [Property](./ModuleServerAPIProperty)
|
||||
- [ModuleData](./ModuleServerAPIModuleData)
|
||||
- [Libs](./ModuleServerAPILibs)
|
||||
- [LibWebSocket](./ModuleServerAPILibsWebSocketLib)
|
||||
- [Axios](https://axios-http.com/docs/instance)
|
||||
- [Module Debugging](./ModuleDebugging)
|
||||
- [ModuleStore](./ModuleStore)
|
||||
- [Bug/Feature Reporting](./Reporting)
|
||||
- [Contact Details](./ContactDetails)
|
||||
|
||||
Reference in New Issue
Block a user