Add draggable Key and Access to Child Widget Data Structure in Custom Widgets
#32980
syroonx
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
Managing complex widgets like mega menus is difficult:
Example: A mega menu with three sections (nested items, columns, tabs) in a single widget creates a cluttered panel and complex drag & drop management.
Propose a Solution
Proposed Solution:
draggablekey to control add/remove/reorder in custom containers:"draggable" => [
"add" => false,
"remove" => false,
"reorder" => false,
]
isDroppingAllowedshould respect this key.Example data structure:
{ "id": "6af611eb", "elType": "container", "elements": [ { "id": "6a637978", "elType": "widget", "widgetType": "heading", "settings": { "title": "Heading", "align": "center" }, "elements": [] }, { "id": "687dba89", "elType": "widget", "widgetType": "image", "settings": { "_padding": { "top": "100", "bottom": "100", "left": "0", "right": "0", "unit": "px" } }, "elements": [] }, { "id": "6f58bb5", "elType": "widget", "widgetType": "button", "settings": { "text": "Click Me", "button_text_color": "#000000", "background_color": "#E7DFF5" }, "elements": [] } ] }Additional Context
Additional Context (Optional / Code Examples):
// PHP: draggable key in settings
"draggable" => [
"add" => false,
"remove" => false,
"reorder" => false,
],
draggablekey for custom widgets to lock add/remove/reorder.Agreement
All reactions