Draggable dropzone in custom element

Hey all,

I’m working on developing a custom element for a client. The documentation is pretty good for the things it covers, but naturally I’ve been asked to delve into things I can’t find documentation for - the requirement is that the custom element contain a dropzone for better overall custom layout, but also that the whole thing be draggable. Is it possible to drag a dropzone? If so, how do I make that happen?

Here’s the relevant part of my options:

'options'  => [
    'valid_children'    => [ '*' ],
    'library'           => true,
    'empty_placeholder' => true,
    'is_draggable'      => true,
    'fallback_content'  => ' ',
    'dropzone'          => [
      'enabled'     => true,

Thanks!

Hello @tonalqualityx,

Thanks for writing to us.

The feature that you want would require custom development. I would suggest you contact a developer who can assist you with your concern please note that we don’t provide custom development support. It is out of the support scope. In case if you have an idea about custom coding you may check out the documentation to learn more about how to develop custom elements.

Thanks for understanding

Thanks! I’ve been using the API Primer, unfortunately it doesn’t cover drop zones or how you’re using draggables. I was hoping that it would be a simple option to change, but after looking over the existing elements with drop zones I don’t think they can easily be made draggable.

The primer is really helpful, but there’s definitely more depth to the API than what’s presented there. I’ve developed a handful of custom elements over the years, though most on the old system. I’m hoping there will be more added to the API docs over time, but for now the client is satisfied with “it can’t be done at this budget.”

Thanks for the help.

Hi @tonalqualityx,

Yes, we’ve added this as a feature request so it can be taken into consideration in the future, but please don’t get your hope high as this is not on the priority list.

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.