Skip to content

Rename template

We provide ability to rename template in the editor.

Rename template

In Topol options

ts
renameTemplate: true,

After clicking the pencil icon, following callback is fired

ts
callbacks: {
    //...other callbacks
    onTemplateRename(title) {
        // show custom dialog to rename the template,
        // after the dialog is closed, set appropriate title
        // inside Topol Options
    }
}

Once you saved the new name on your end, you can refresh the template name using like this

ts
TopolPlugin.setTemplateName(newName);