Oneclick Studio
🛠️ Building Custom Modules/Provided Composables

useModuleOverlay

Open other modules in an overlay. Handy to show details, forms, etc.

openInOverlay(moduleId: string, data?: any)

Open another module in an overlay.

Parameters

  • moduleId: The ID of the module to open. You can easily find this in the URL of the module.
  • data: Optional data to pass to the module.

Code Block

const { openInOverlay } = useModuleOverlay()

openInOverlay('module-id-here-abcd-123456789', {
    collectionName: "products",
    productId: "product-id",
    score: 100
})

Cards