User changes pseudo mode of Designer
webflow.subscribe("pseudomode", callback)
Use this method to start listening for when a user changes the pseudo-state of the Designer.
Syntax
Pseudo-State Key Values
Parameters
- event:
"pseudomode"
- The event to listen for. - callback:
(pseudoState: PseudoStateKey) => void
- The callback function to execute when the event occurs. ThepseudoState
parameter is the new pseudo-state of the Designer.
Returns
Return Value
Unsubscribe
This is a special function you receive after subscribing. When you no longer want to listen to the event, call this function to stop receiving notifications.