Skip to content

Releases: 6pac/SlickGrid

5.6.0 - use optional PubSub with Web Component

08 Dec 02:38
Compare
Choose a tag to compare

5.6.0 (2023-12-08)

Quick Info

You can now provide an optional PubSub Service to SlickGrid and SlickDataView to use as a single PubSub, this makes it a lot easier for Web Component based framework like Angular/React/Vue... For example, we can create a PubSub Service which uses JavaScript CustomEvent which we can then use to send all possible events (SlickGrid, DataView, plugins...) to our web component, which is another alternative instead of having to subscribe to individual SlickEvent instances (grid, dataview, plugins, ...)

The best example can be seen in Angular-Slickgrid project where it used that approach with CustomEvent, with this approach we can now easily add attribtues to receive the Custom Events, similar to what is shown below

<my-component
    on-before-menu-show="onBeforeMenuShow"
    on-menu-close="onMenuClose"
    on-paging-info-changed="onPagingInfoChanged"
    on-before-paging-info-changed="onBeforePagingInfoChanged">
</my-component>

For a full demo, take a look at Example - Web Component with PubSub Service. Please note that the PubSub Service is just a quick demo, you probably want a better service.


Bug Fixes

  • calling applyHtmlCode() with number/boolean (#942) (b1b4fa2)
  • Draggable Grouping, destroy all Sortable instances fixes mem leak (#943) (eb30086)

Features

  • introduce devMode to support nodejs based unit testing (#946) (918efa4)
  • use PubSub Service with Web Component demo to subscribe instead of SlickEvent (#859) (7d602e6)

Quick Survey ✨

We also made a quick little poll for fun, thanks for taking the time to participate

What do you think was the most exciting change(s) for you?

4.1.7

08 Dec 02:36
40d2dc4
Compare
Choose a tag to compare

4.1.7 (2023-12-08)

Features

  • introduce devMode to support nodejs based unit testing (#944) (40d2dc4)

5.5.6

02 Dec 18:30
Compare
Choose a tag to compare

5.5.6 (2023-12-02)

Bug Fixes

Performance Improvements

  • skip reapplying empty html when target is already empty (#932) (564c38d)

4.1.6

02 Dec 17:52
e00a493
Compare
Choose a tag to compare

4.1.6 (2023-12-02)

Bug Fixes

  • setActiveCellInternal() shouldn't throw when cell/row undefined (#941) (e00a493)
  • only allow row drag on cell w/dnd or cell-reorder (#939) (0f07161), closes #897

5.5.5

25 Nov 03:46
Compare
Choose a tag to compare

5.5.5 (2023-11-25)

Bug Fixes

  • remove unused CellRange interface, use core SlickRange, fix #927 (#928) (7675dc5)
  • try adding sort icon on non sortable column shouldn't throw (#929) (15d53f5)

4.1.5

25 Nov 03:40
4ef172d
Compare
Choose a tag to compare

4.1.5 (2023-11-25)

Bug Fixes

  • try adding sort icon on non sortable column shouldn't throw (#930) (4ef172d)

5.5.4

24 Nov 17:24
Compare
Choose a tag to compare

5.5.4 (2023-11-24)

Bug Fixes

  • applyHtmlCode util should always clear targeted native element (#926) (3167f5f)

5.5.3

24 Nov 05:35
7ec4309
Compare
Choose a tag to compare

5.5.3 (2023-11-24)

Bug Fixes

  • change dynamic html string w/CSP safe code to fix scroll, fix #914 (#919) (b672d96)
  • common: cell range decorator should be hidden after onDragEnd (#924) (b6d02cd)
  • Draggable shouldn't trigger dragEnd without first dragging (#921) (012b74c)
  • interactions remove callback 2x call & add event listeners to body (#918) (a37d263)

Features

  • convert GroupItemMetadataProvider Formatter to native HTML for CSP (#925) (7ec4309)

4.1.4

24 Nov 05:32
27c500c
Compare
Choose a tag to compare

4.1.4 (2023-11-24)

Bug Fixes

  • common: cell range decorator should be hidden after onDragEnd (#923) (27c500c)
  • Draggable shouldn't trigger dragEnd without first dragging (#922) (7ac8a62)

5.5.2

15 Nov 18:40
815922b
Compare
Choose a tag to compare

5.5.2 (2023-11-15)

Bug Fixes

  • replace leftover innerHTML assignment with CSP safe approach (#912) (4793068)
  • rollback portion of CSP safe code causing regression, fixes #914 (#915) (815922b)