If I'm not mistaken, jQuery UI was only ever used in Joomla to sort the rows in list views. Seeing as we have moved to Dragula, we can remove the jQuery UI dependency.
ui
function in 3.xui
function in 4.0tinymce-builder.js
)Labels |
Added:
?
|
Category | ⇒ | JavaScript |
Their repo seems pretty much abandoned. Nothing much done in the last 3-6 months.
Do we know what the migration from a code perspective form jquery ui to Dragula is like? I have no problem killing jquery ui. Just want an easy’ish transition for people doing drag + drop
Status | New | ⇒ | Discussion |
hm, I tried to add Dragula.js to subform.js but cannot get "sorting" to work,
it just ignores it
this one https://github.com/Fedik/joomla-cms/tree/subform-dragula
it start "drag", but "drop" does nothing
this seems works fine https://github.com/Shopify/draggable/tree/master/src/Sortable
but it still in Beta, and do not have "pre compiled" version, or I have missed something
@Fedik but do we need a precompiled version? I mean if we implement subform as a custom element then we can import the parts we need from the draggable. Still we need to figure out how to pack all this in a single file and transpile it to es5 but I think it wouldn't be so hard at the end
but do we need a precompiled version?
I would like to keep it separated "here is sortable.js and there is subform.js", so sortable.js can be reused,
but we also can merge to single file, if need.
but it still in beta state
not sure for now
this time I just made a quick tests to replace "jQuery UI sortable" , and then cleaned all
I will try to make something tomorrow, and will share
btw, this is also looks cool https://lukasoppermann.github.io/html5sortable/index.html
only problem that the mobiles does not support html5 dragable
@dgt41 there a test with use of their CDN 4.0-dev...Fedik:subform-sortable
there full example with custom element #19184
Labels |
Added:
J4 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-08-27 14:10:58 |
Closed_By | ⇒ | C-Lodder |
Calling @wilsonge and @mbabker here for a decision