Angular-Slickgrid is a wrapper of the lightning fast & customizable SlickGrid datagrid, it also includes multiple Styling Themes
MIT License
Bot releases are hidden (Show)
Published by ghiscoding over 5 years ago
This version introduce a lot of refactoring on the CRUD methods (with an extra newly added upsert
method) available in the Grid Service (which is now fully tested). New method names are replacing the older methods (which will be deprecated in the future). The biggest change is that instead of passing true, false, true
(which is not very explanatory), was converted to an object with the flag properties, see below). All option flags still have their own defaults when no flag are provided (highlightRow: false, selectRow: true, triggerEvent: true
), for example:
this.angularGrid.gridService.updateDataGridItem(item, false, true);
this.angularGrid.gridService.updateItem(item, { highlightRow: false, selectRow: true });
Published by ghiscoding over 5 years ago
New issue templates were added, please choose & fill them in with all information (when possible), it helps in resolving the issues. New formatterOptions
added to the Grid Options. A lot more Tests were added (now over 600+ tests) and coverage is rising slowly but surely (it's a big library after all).
formatterOptions
to all Formatters (PR #187)formatterOptions
to all Grouping Formatters (PR #187)
displayNegativeNumberWithParentheses
) wrapped in parentheses commonly used in Finance, example: -$15
can be shown as ($15)
formatterOptions
allows you to set a few options, in the Grid Options, that are common to a few Formatters/GroupingFormattersdateSeparator
Formatter OptionexcelCopyBufferOptions
to grid option, ref #198 (PR #205)Published by ghiscoding over 5 years ago
This new release adds a few new small features, but the biggest change is probably the new CI tools that you might have noticed. The library is now built with CircleCI and since we recently started adding Jest unit tests, we also added the code coverage via Codecov, these are 2 great tools that are available freely for Open Source projects like this library. So you can now feel safe knowing there is now a build process with CircleCI
that includes Jest unit tests as well. 🎁🎉
You might find that the code coverage is a little bit low, but hey, it's better than 2 months ago which was 0% and it keeps increasing slowly but surely, Formatters and Sorters are now 100% covered and more test are added continuously.
If you would like to contribute on unit tests or anything else, please do, PRs are certainly welcome!!!
You can see some of the tasks in the queue under in the Project planning.
... and don't forget to up vote ⭐️ Cheers!
autocomplete
Editor, closes #174 (PR #176)calculateAvailableSizeBy
container option, closes #175 (PR #179)
Published by ghiscoding over 5 years ago
enableAutoResize
arrayObjectToCsvFormatter
behaviorenableExcelCopyBuffer
, closes #164Published by ghiscoding over 5 years ago
Also reworked the demo sample CSS so that the sidebar left menu works better. Are you using Angular-Slickgrid? You can now add your company/site/project to the Used by Who list.
autoHeight
feature
getSlickgridAddonInstance
to get Slickgrid control/plugin instanceshouldTriggerQuery
to know when to call a query or notPublished by ghiscoding over 5 years ago
Good news, previous release brought the Row Detail and that helped with this new release (Angular Component everywhere). We can now use Angular Components with Custom Editors, Custom Filters and Custom AsyncPostRender (similar to a Formatter but in an async way, that is the only available solution that works with SlickGrid).
So what about Formatter then, why can't we use Angular Component with Formatter? Because of how Angular is built, it requires a full cycle for the component to be rendered with data, however SlickGrid Formatter requires only string output and it must be right away (synchronous) and Angular Component can only be returned in an async fashion (you could return it right away but the data won't be populated). That is the reason that it's not doable with a Formatter, however SlickGrid AsyncPostRender is similar and works in an async fashion. So that works, but it has some drawback, it's slightly slower to render (you can visually see it rendering on the screen). All that to say, regular Formatters with jQuery and/or HTML is still the preferable way... but hey, if you really wish to use Angular Component, well then it's now possible, but I won't personally use it though.
If you haven't already done so, please up vote ⭐️
Let's make the lib more popular 😃
Published by ghiscoding over 5 years ago
onExtensionRegistered
to a few of the Extensionsgrid.updateRow
instead of grid.invalidateRow
invalidateRow
which destroy the entire row and recreates it, it's better to use updateRow
since that will only re-render the necessary DOM elements instead of destroying/recreating them.Published by ghiscoding almost 6 years ago
This version brings a long awaited request of Pinned Columns/Rows (aka Frozen). Also note that the demo with Bootstrap 3 is using previous lib version 1.x
(which doesn't latest features) and only the Bootstrap 4 demo got migrated to newer version 2.x
of the lib (with Angular 7). Also a reminder, new features will only go in version 2.x
of the lib which requires Angular 7+.
I'm not sure why, possibly ng-packagr
, but since the lib was updated to Angular 7. I often have to release 2 versions to make it to work correctly. This is the reason why there was so many versions released recently. I don't think it's Angular itself but possibly the packager.
headerMenu: { hideClearSortCommand: true }
in your Grid Optionsjquery-dist
NPM package (see howto). I lost 2 hours myself on this because I was using an older version of jQuery-UIfilled
class which user can customize to his need, e.g. change background-color of filled FiltersPublished by ghiscoding almost 6 years ago
This is a Major
version because there are breaking changes (thanks to Angular).
Also worth to know that I skipped Angular 6, if you wish to remain on that version then use lib version 1.x
and follow this comment with rxjs-compat
RxJs
to version 6.3.x
@ngx-translate/core
to 11.x.x
@ngx-translate/http-loader
to 4.x.x
7.x.x
ng-packagr
to 4.4.x
1.x
will still be supported but only for patches/fixes2.x
upwardPublished by ghiscoding almost 6 years ago
inputNumber
, inputPassword
, compoundInputNumber
, compoundInputPassword
customDataView
with Remote Model feature with an example
1.8.x
but it's still very newhideInFilterHeaderRow: false
and hideInColumnTitleRow: true
Published by ghiscoding almost 6 years ago
This new release does not bring much to the user on the feature side of it, however in code there was a major rewrite in how SlickGrid Controls & Plugins (gridMenu, headerMenu, columnPicker, ...) are handled. It was all previously under 1 big Service which was getting way too big, the rewrite was to separate them all in individual classes/services which is much more maintainable. Another big change, again under the hood, is that each of these controls/plugins (now called simply as Extensions
) will be called On Demand, meaning that if you don't enable the extension, it won't use the SlickGrid Control/Plugin, this should end up in smaller prod build size (SlickGrid has about 10 controls/plugins and you might not use them all).
require
)updateDataGridItems
(in GridService) for multiple changes
updateDataGridItem
& updateDataGridItems
.5
but works with 0.5
Published by ghiscoding about 6 years ago
maxHeight
& maxWidth
options to Resizer Service (autoResize
)FilterMultiplePassType
(with option: merge
, chain
)autoCommitEdit
prefix
/suffix
/optionLabel
presets
even if field is not a column definitionseparatorBetweenLabels
to use join
so that it doesn't add extra separator when prefix
or suffix
isn't presentautoAdjustDropWidthByTextSize
should handle 100% widthPublished by ghiscoding about 6 years ago
measureScrollbar
causing horizontal scrollbar to sometime show up in Chrome browser only
ng build
ProdPublished by ghiscoding about 6 years ago
multiple-select.js
autoAdjustDropHeight
, autoAdjustDropPosition
, autoAdjustDropWidthByTextSize
minWidth
, maxWidth
, adjustHeightPadding
maxHeight
(already existed but can be helpful with these new adjustmentsPublished by ghiscoding about 6 years ago
Published by ghiscoding about 6 years ago
Released under a minor
release because it's a breaking change (though not big enough for a major
).
I would be surprised that anyone even used these new options yet which were added faily recently to the customStructure
object, but just in case, I decided to release a minor
version for that reason
customStructure
and move them to the new collectionOption
propertyaddBlankEntry
, collectionInObjectProperty
, separatorBetweenTextLabels
, includePrefixSuffixToSelectedValues
) which are now under collectionOption
Published by ghiscoding about 6 years ago
collectionAsync
to editor
collectionAsync
to filter
addSpaceBetweenLabels
property replaced by separatorBetweenTextLabels
Published by ghiscoding about 6 years ago
Published by ghiscoding over 6 years ago
Published by ghiscoding over 6 years ago