wwLib - where to find documentation/all methods?

Where to find the documentation for wwLib methods and functions? I found this comment someone left regarding interacting with weweb elements using custom code:

“Hi @devika You can do that using this method available
wwLib.wwVariable.getValue(“variable_id”)
wwLib.wwVariable.updateValue(“variable_id”,newValue)
Also to find the any variable id you can simply fetch all the variable id’s or (details of collections,workflows etc) with this method
wwLib.$store._state.data.data.variables
wwLib.$store._state.data.data.collections
You can try above methods in the browser console as well or in the More > Development > Show dev information

where did this person find these methods? Wherre can I find list of all such methods to interact with weweb elements and worflows using custom JS from the outside ? I tried to look through weweb’s documentation but couldn’t find a thing related to that. Thanks!

2 Likes

Did you check the developer documentation? It’s not comprehensive, but it contains all the information that we have public

I cant find any section in the docs where it references methods one can use. Can you drop a link to it if possible? Thanks!

I found a workaround, ill leave it here in case someone finds it useful.

In the browser console type wwLib and hit enter, it should return all global functions and methods in wwLib.

Hi! Be aware everything you use that is undocumented is not guaranteed to continue to works in the future and could breaks