Lattice Grid Buy a licence

designer ยท console.warn

designer.renamePage: renaming a page is not ...

Printed by designer, prefixed [lattice], since 1.89.0.

Warnings reference › designer:page:rename

Identifier
designer:page:rename
Raised by
designer
Since
1.89.0

What happened

renamePage renames a page, and the guardrails the designer was created with set pages.rename to false, so the command declined and returned false.

The fix

Allow renames in the guardrails (guardrails.pages.rename), or call renamePage only when they are allowed.

The smallest fix

createDesigner(el, { guardrails: { pages: { rename: true } } });

Reference

Covered in full at the API reference.