Skip to content
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/row detail view #287

Merged
merged 25 commits into from
Nov 20, 2018
Merged

Feature/row detail view #287

merged 25 commits into from
Nov 20, 2018

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Nov 18, 2018

This PR replaces #281 which was fully tested by @ghiscoding and @SatanEnglish

This PR also closes #252

  • add onRowOutOfViewportRange subscribe
  • add onRowBackToViewportRange subscribe
  • expose collapseDetailView public
  • expose expandDetailView public
  • add new keyPrefix property to change the key prefix of all metadata used by the plugin that appears on the item object
  • add new collapseAllOnSort boolean flag to provide possibility to implement it's own code for on sort
  • add new saveDetailViewOnScroll boolean flag because saving detail is not used by all frontend frameworks
  • use item everywhere instead of itemDetail in some areas (however make it to work with both so that it doesn't break anyone's code)
  • changed all containers to classes instead of ids (e.g. id="detailViewContainer_2" is now class"detailViewContainer_" on the DOM element)
  • fixed cssClass which was not fully implemented in the code
  • add getFilterItem to takes in the item we are filtering and if it is an expanded row returns it's parents row to filter on
  • add Filter (row header) example and padding tweak
  • add JS code with dynamic template examples
  • fixed some issues found and cleaned up unused code
  • provided more sample code in the example16-row-detail.html
    • added example with tabs (try opening 5th row to see) with saving the row before it goes out of viewport range. Prior code was not handling that very well when the row detail became out of the cached viewport
  • made the onScroll code more efficient

There's a lot of changes, but I believe that it will be a simple plug & play for most users. The biggest feature is the additions of 2x new subscribe methods to let the user know when the Row Detail View is out or back to visible range. Also a working sample with Filters is a nice addition.

ghiscoding and others added 25 commits November 1, 2018 23:22
collapsedClass:         Extra classes to be added to the collapse Toggle

These are added so we can add more classes to the expanders icon
…h internal scrolls)

Updated what we take the height from to the scrollHeight to deal with tab heigh issue.

Added save for after resize of the expanded view is fired
Have put in an excessive check version of the calculateOutOfRangeViews function that should have most if not all edge cases covered.
Moved same check to be the first thing
Updated the save to only care about the part in the buffering area that is appropriate
Added maxRows so that we can define what the maxRows for the expanding rows should be for resize.
Updated the examples to allow for the manipulations
@ghiscoding
Copy link
Collaborator Author

@SatanEnglish is it safe to say that this PR will also close your other issue #252 ?
Can you make a final view at the PR before I merge it. Thanks

@SatanEnglish
Copy link
Contributor

@ghiscoding Yes it's safe to say the PR will close #252

ghiscoding added a commit that referenced this pull request Dec 20, 2018
* feat(RowDetail): add 2x new subscribe methods & fixed multiple issues
alhoo pushed a commit to alhoo/SlickGrid that referenced this pull request Dec 22, 2018
* feat(RowDetail): add 2x new subscribe methods & fixed multiple issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RowDetailView way to tell when reloaded
2 participants