Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Expose Extensions (addons)

Choose a tag to compare

@ghiscoding ghiscoding released this 30 Jul 20:23
· 2440 commits to master since this release

This new release brings a new small feature that could simplify how to get the addons (controls/plugins) instances, for example the Row Detail is an extra SlickGrid addon (plugin). It only provides a new and easier way but all previous ways of getting the addon instances still work, so there's no breaking change.

If we look at the Row Detail for example, you could previously do it in 2 ways but now we have a 3rd way of getting them.

  1. use onExtensionRegistered from the rowDetailView grid options
  2. use the (onAngularGridCreated) and then use getSlickgridAddonInstance()
  3. The new way is still through (onAngularGridCreated) but this one now exposes all the addon instances (columnPicker, gridMenu, rowDetail, ...) via the extensions property

The Option 1 or Option 3 are probably the best way of getting the instance. The new Option 3 has the advantage of containing all addon instances at once, so it might be useful if you want to use more than 1 addon instance. More info on the new Wiki - Addons/Extensions (controls/plugins)

Editors

Another smaller but nice enhancement is on the Editors.longText, which is now showing how many characters (bottom left) were typed in the TextArea versus how many chars are accepted (by default it will show as a limit of 500). While adding this feature, I found out that there weren't any Validators that existed to check the length of the text on any of the text editors (autoComplete, text, longText) and so I added these missing options for validation (minLength, maxLength and you can also provide the extra option operatorConditionalType: 'exclusive' or inclusive which is the default, note that this option also exist for the number editors using the minValue, maxValue)

What's coming in the Future (much later in the year)

I will re-iterate again, as I mentioned it in the previous version, that I don't expect any more big features before the next major breaking change release.
You can read more about this in the previous release here

note that version 2.19.x was the supposed to be the last before the next major release but it turns out that this new features deserved a minor bump to 2.20.x.

Final Word

If you like the lib, please upvote ⭐ and/or Buy Me a Coffee

Features

  • core: expose all addon instances (#545) (3578d9e)
  • editors: add min/max length options to text editors (#542) (cc17d36)

Bug Fixes

  • editors: Editors should work with undefined item properties (#540) (5c33a48)
  • footer: remove unnecessary row class to avoid negative margins (#541) (34ed648)
  • interfaces: grid option enableColumnReorder can also be a function (#543) (82b064d)
  • styling: tweak styling so that we won't need to use css !important (#544) (13abe5b)
  • core: add missing inlineFilters DataView optional flag (#551) (a5ae4da)
  • extensions: Row Detail gets blanked out for no reason, fixes #546 (#552) (0087dd2)
  • extensions: adding Context Menu custom commands was not working (#548) (45bf561)
  • extensions: Row Detail not always refreshing w/customId, fixes #546 (#550) (324f490)