Direct Open
This page discusses how to use the Direct Open parameter for AddOns within Beefree SDK. It includes instructions for both Custom and Partner AddOns.
Overview
With the Direct Open feature, you can immediately trigger your AddOn's content dialog or insert content as soon as the user drops the tile onto the editor stage. This eliminates the extra click step, creating a more efficient end user experience. With the openOnDrop parameter, you can determine whether or not your end user needs to perform an extra click before triggering the content dialog. The parameter can be set to true or false in your addon configuration within your beeConfig. It is available for Custom and Partner AddOns, and can be used for addons using content dialog or iframe method.
A few of the end user benefits include the following:
Immediate engagement — Users start interacting right away
Better UX — More intuitive interaction
Fewer clicks — Reduces friction in workflow
Without Direct Open:
User drops tile → Placeholder appears
User clicks button → Dialog opens
User selects content → Content inserted
The following GIF displays an example of how a Custom AddOn without Direct Open is added to the builder stage.

With Direct Open:
User drops tile → Dialog opens immediately
User selects content → Content inserted
The following GIF displays an example of how a Custom AddOn with Direct Open is added to the builder stage.

Configuration
This section discusses how to configure the openOnDrop parameter.
Step 1: Enable in beeConfig
Add the addOns array with openOnDrop: true:
Step 2: Handle the Flag
Check args.hasOpenOnDrop to know if Direct Open triggered:
Configuration Reference
Implementation Patterns
This section outlines common implementation patterns by scenario.
Pattern 1: Immediate Auto-Insert
Skip the dialog entirely and insert content immediately:
Use when: Content doesn't require user input.
Pattern 2: Pre-load Data
Fetch and insert data without showing a dialog:
Use when: You have default or recommended content to insert.
Pattern 3: Different UI Based on Trigger
Show simplified vs. full UI:
Use when: You want different experiences for drop compared to edit.
Pattern 4: Multiple AddOns
Enable for specific AddOns only:
Sample Code
The following code snippet displays a simple example of Direct Open for various addon types.
Partner AddOns (UUID)
Direct Open works with Partner AddOns from the directory:
Troubleshooting
Dialog not opening on drop
Verify openOnDrop: true and correct id
hasOpenOnDrop is undefined
Update to latest Beefree SDK version
Dialog opens twice
Don't manually trigger in response to Direct Open
Still requires button click
Check addOns array configuration
Last updated
Was this helpful?

