Skip to content

Conversation

adumesny
Copy link
Member

Description

BIG, BIG change for v1.0.0 release!

  • all calls/return take HTLMElement | string, not JQuery anymore
  • the change|removed|added events are now using standard calls with CustomEvent
    (rest are still JQ based) but all share basic same callback signature still.
  • added grid.on(eventName, callback) / grid.off(eventName) to hide native JQ events mix
  • updated all demos+doc to only plain DOM manipulation (only custom drag&drop jq UI remain)
  • created how to upgrade to 1.0.0 section
  • part of Consider dropping JQuery / typescript conversion ? #1084

Note: had to modify jquery and jquery-ui loading (look for [alain] comment) to be able to compile it in and still work with webpack.

Also (API break)

  • setColumn(N) is now column(N) and new getColumn()
    (matches other set/get methods)

RANT: I hate git... must have wasted half day doing a rebase from develop on jquery branch
only to scrap that and start over with latest and dumping my changes.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

Alain Dumesny added 2 commits February 23, 2020 23:24
BIG, BIG change for v1.0.0 release!
* all calls/return take HTLMElement | string, not JQuery anymore
* the `change|removed|added` events are now using standard calls with CustomEvent
(rest are still JQ based) but all share basic same callback signature still.
* added `grid.on(eventName, callback)` / `grid.off(eventName)` to hide native JQ events mix
* updated all demos+doc to only plain DOM manipulation (only custom drag&drop jq UI remain)
* created how to upgrade to 1.0.0 section
* part of #1084

**Note**: had to modify jquery and jquery-ui loading (look for [alain] comment) to be able to compile it in and still work with webpack.

Also (API break)
* `setColumn(N)` is now `column(N)` and new `getColumn()`
(matches other set/get methods)

RANT: I hate git... must have wasted half day doing a rebase from develop on jquery branch
only to scrap that and start over with latest and dumping my changes.
@adumesny adumesny merged commit fdac3df into gridstack:develop Feb 24, 2020
@adumesny adumesny deleted the jq branch February 24, 2020 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant