Update Wwws_project
parent
c34211f2c3
commit
49277e086f
@ -146,9 +146,25 @@ When the web page is load the localdb settings is updating, then the app get loc
|
||||
<script src="/api/adminapi/wwws/getwco/apxid.js?wcotribe=adminapi&tribe=adminapi&xapp=admin&pagename=apxid&code=enjoy"></script>
|
||||
</head>
|
||||
<body class="h-full">
|
||||
<div id="authentification" wco-name="simplemobnav" class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
|
||||
</div>
|
||||
<div id="chatbot" wco-name="chatroom" class="hidden flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
#########################################"
|
||||
A wconame.js looks like:
|
||||
|
||||
var apx=apx || {} // to get all the existing apx properties
|
||||
apx.wconame={} // add a new one related of wconame
|
||||
apx.wconame.init=()=>{} // a function that replace the content of <div wco-name></div> with the component expected.
|
||||
|
||||
apx.readyafterupdate(apx.wconame.init) // optionnaly to automaticaly run after all main apx update (localdb,...)
|
||||
|
||||
```
|
||||
Each script {{wco-name}}.js will replace the div with wco-name={{wco-name}} with the business logic of the component. If you add a new wco-name div dynamicaly then it has to call a function in wco-name.js to activate it.
|
||||
|
||||
### tailwindcss
|
||||
|
||||
In adlinapi/package.json a script must be run in real time to watch any modification in js html mustache to reprocess the wwws/appname/src/ as well than any wco used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user