folder.setName(name)
folder.setName(name)
Set the folder name.
Syntax
folder.setName(name: string): Promise<null>
Parameters
- name:
string
- The new name to set for the folder.
Returns
Promise<null
>
A Promise that resolves to null
.
Example
// Create and name new folder
const newFolder = await webflow.createPageFolder()
await newFolder.setName(name)
// Print details
const folderName = await newFolder.getName()
console.log("My New Folder", folderName)
Designer Ability
Designer Ability | Locale | Branch | Workflow | Sitemode |
---|---|---|---|---|
canManagePageSettings | Any | Any | Any | Any |