onCollectionCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:

Triggered when a collection is created.

Permissions
Manage Portfolio
Learn more about app permissions.
Method Declaration
Copy
function onCollectionCreated(handler: function): void;
Method Parameters
handlerfunction

handler(event: CollectionCreatedEnvelope): void | Promise<void>

JavaScript
import { collections } from "@wix/portfolio"; collections.onCollectionCreated((event) => { // handle your event here });
Did this help?