mode.setBreakpoint(breakpointId)Set the breakpoint that drives a variable mode. Use this method to promote a manual mode to an automatic mode, move an automatic mode to a different breakpoint, or demote an automatic mode back to a manual mode.
BreakpointId to drive the mode automatically at the matching screen size.null to demote the mode to a manual mode."xxl" | "xl" | "large" | "main" | "medium" | "small" | "tiny". Pass null to demote the mode to a manual mode.Promise<null>
A Promise that resolves to null once the breakpoint association is saved.
A setBreakpoint call rejects with a VariableModeInvalid error when:
Breakpoint "X" is already used by mode "Y").Breakpoint "X" is not enabled on this site)."X" is not a valid BreakpointId).Catch these errors to recover gracefully and surface the message to the user.