-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Support Multiple Grid in 1 View - Major Release with Breaking Changes #31
Comments
@sabeurch All that to say, if I look at my Services using the |
@ghiscoding |
@sabeurch
The reason of this Major Version is because I want to support multiple grids and that requires moving all Services from singleton to non singleton (hence the Major version with breaking changes) NOTE
|
Hello @ghiscoding, Thanks, |
@mohit4834 |
After working on supporting Multiple Grid in same View, I found out that all the work from the start was to use Services as Singleton (services which are exposed by Angular-Slickgrid through Depency Injection (DI)). The first code change that was made to support multiple grid was to change the Singleton Services to non-Singleton, however that breaks all the Services exposed by Angular-Slickgrid.
So we need a new Major Release, below are the things that I have always put aside and that will be addressed before releasing a new Major Version (aka version
1.x
)Task List
gridOptions
aurelia-slickgrid
ViewModel use aninit()
which usually ask forinit(grid, gridOptions, dataView)
but once we get the grid object, we actually have access to thegridOptions
, so we can simplify this a lot (closed by PR #28).onBackendEventApi
was re-implemented and replaced bybackendServiceApi
searchTerms
array instead of doing multiple logic to deal with bothsearchTerm
(singular) and thesearchTerms
array (commit and commit).selectOptions
in all Filters (commit).Column
property and possibly remove thefilter
Column property (commit).FormElementType
from Filters, it should only useFilterType
(commit)FormElementType
is actually not used anywhere else I think, so might be better to delete it completelyonFilterChanged
function and the Filter ServiceonFilterChanged
Event Emitter, should not be named the same, it is rather confusing when troubleshooting, maybe change function toprocessOnFilterChanged
(commit)exportWithFormatter
from GridOptions.interface since it is now part ofexportOptions
(commit)hideX
andshowX
flags, they should all behideX
since that is the default name in the external plugins (commit)GridExtraService
to simplyGridService
orDataGridService
BackendServiceApi
, for example swt-grid-componentcollection
) are available only from the genericparams
property which removes the benefit of intellisense and type check. This goes with number7.
(commit)onClick
can be used in the View as(sg-on-click)="handleClick($event.detail.eventData, $event.detail.args)"
onRowCountChanged
can be used as(sg-on-row-count-changed)="handleRowCountChanged($event.detail.eventData, $event.detail.args)"
sg-on-click=""
initOptions
from theBackendService
, that was replaced byinit
(commit)GridExtraUtil
contain only 1 function, it would be better to move it into the renamedGridService
and deleteGridExtraUtil
completely (commit and commit)i18n
as a Grid Options instead of a genericparams
grid option and fix a column picker issue (commit)Percent
(divide by 100, they display %) andPercentSymbol
(only add "%" suffix symbol) (commit)Migration Guide will be available here
The text was updated successfully, but these errors were encountered: