A lightning fast JavaScript grid/spreadsheet
MIT License
Published by ghiscoding 11 months ago
Published by ghiscoding 12 months ago
This release is all about CSP (Content Security Policy) compliance, all dynamic html string were replaced by native HTML Element and a lot of code refactoring had to be done to make it all work. There are some exception though, if you still use html string as template, for example Formatter returning html string, you will not be fully compliant unless you return TrustedHTML
, for more info you can read the CSP Compliance Wiki.
A big thanks to @JesperJakobsenCIM for helping with CSP compliance.
We now also allow passing native HTML Element to Custom Formatter instead of HTML string to avoid the use of innerHTML
and stay CSP safe. We also have a new grid option named enableHtmlRendering
which is enabled by default to avoid being a breaking change, but when disabled will not allow to use innerHTML
hence will remain CSP safe. You can take a look at this new Filtered DataView with HTML Formatter - CSP Header (Content Security Policy) example which uses this new approach.
nonce
grid option set the nonce value for CSP header (#902) (fc0af7a)nonce
grid option set the nonce value for CSP header (#902) (#905) (fb0e4f5)containerCssClass
option (#906) (5f85574)We also made a quick little poll for fun, thanks for taking the time to participate
Published by ghiscoding 12 months ago
Published by ghiscoding 12 months ago
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?
Published by ghiscoding 12 months ago
Published by ghiscoding about 1 year ago
The previous version, that was released just a few days ago, brought nested sub-menu(s) but it only worked with click
event to open any sub-menus. However with this new release we also bring mouseover
as a potential event and we also made it the new default. If you wish to keep opening sub-menus via click event, you could set the following option subMenuOpenByEvent: 'click'
(our new default is now subMenuOpenByEvent: 'mouseover'
)
Please note that to align all Menu plugins, we decided to rename all items array list as commandItems
, changes are preferred but do not worry if you keep the previous names they still work and we will simply show a console warning for you to eventually change them. The changes to apply are the following (the 5.0 migration guide was also updated):
items
to commandItems
customItems
to commandItems
customTitle
to commandTitle
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?
customItems
in favor of commandItems
(#872) (dd63c36)items
in favor of commandItems
(3987789)commandItems
array (#875) (94aee91).slick-gridmenu-custom
by .slick-gridmenu-command-list
(#876) (2cc3175)Published by ghiscoding about 1 year ago
This new release brings nested sub-menu(s) to all Menu plugins, you can see examples below or see print screens in each PRs 🚀
Note please note that the sub-menus can only be opened by
click
event because mouse hovering event is just too complex to implement. If anyone is interested to help with that then please go ahead and contribute.
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?
containerCssClass
to RowMove to fix cell styling issue with icons (#865) (5abad6d)getViewportNode()
should all be optional (#860) (09e7617)Published by ghiscoding about 1 year ago
autoEditNewRow
option to disable auto-edit new row, fix #445 (#855) (f0fa0bd)We made a quick little poll for fun, thanks for taking the time to participate
Published by ghiscoding about 1 year ago
We 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?