From 49277e086f8c598891c4f866a522ac117f2b9972 Mon Sep 17 00:00:00 2001 From: philc Date: Sat, 15 Feb 2025 07:43:48 +0000 Subject: [PATCH] Update Wwws_project --- Wwws_project.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Wwws_project.md b/Wwws_project.md index 5d9fecd..7d73b62 100644 --- a/Wwws_project.md +++ b/Wwws_project.md @@ -146,9 +146,25 @@ When the web page is load the localdb settings is updating, then the app get loc +
+
+ + +#########################################" +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
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.