Select to view content in your preferred language

allow any widget or element to be draggable/resizable (add Draggable and Resizable properties to View UI)

743
1
07-29-2020 11:33 AM
Status: Open
by Anonymous User
Not applicable

Allow any widget or element to be draggable/resizable (add Draggable and Resizable properties to 4x API - View UI). This would allow popups to move or resize. Or a LayerList. Or Search widget. Or any widget or DOM element that would make sense to register with View UI as moveable. Also add an autofit property true/false and with padding parameter; to allow popups to autosize in height or widgth and with given extra padding or margin. Seems like the perfect place to add this vital functionality to the API. 

UI | ArcGIS API for JavaScript 4.16 

Tags (1)
1 Comment
by Anonymous User

I have created moveable popups for JS API 4.x.  Example: https://codepen.io/kevinsagis/full/bGpdQQq 

 

It hides the callout on move with CSS; and is moveable via titlebar. Last thing to do still is implement a leader line that follows it like a callout. Using jQuery which is still awesome in 2020!

This example above with jQuery will work for any widget you could put in a div like I have in this example. It would be great to see moving integrated natively in this fashion.