-
-
Notifications
You must be signed in to change notification settings - Fork 132
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] Responsive Columns #235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@offirgolan this looks good. Ideally, we wouldn't couple this implementation to ember-responsive
but we can let demand dictate any future work. Great to see that there is a demo and tests! 👍
@taras I agree but at the same time I believe |
I agree too! |
* master: [FEATURE] ScrollTo and ScrollToRow (#228)
You guys are killin' it. Nice work! |
* master: (42 commits) Resizable column fixes (#252) fix: repeated scrollToRow (#254) chore(package): update ember-cli-code-coverage to version 0.3.7 (#253) Demo Cleanup (#251) chore(package): update ember-lodash to version 0.0.11 (#245) chore(package): update ember-cli-code-coverage to version 0.3.6 (#249) Document `Row#content` (#250) Update resizable snippet Released v1.5.2 [FEATURE] minResizeWidth + Event bubbling fix (#244) Update readme Update readme Released v1.5.1 Add safe checks scroll logic (#241) [DOCFIX] Make breakpoints of demo app the same as ember-responsive's default (#240) Released v1.5.0 Demo + Scrolling Cleanup (#238) [FEATURE] Responsive Columns (#235) [FEATURE] ScrollTo and ScrollToRow (#228) chore(package): update broccoli-asset-rev to version 2.5.0 (#227) ...
Resolves #219.
This PR introduces a responsive solution. Using ember-responsive, I have introduced two methods to handle responsive behaviors that will hide the appropriate columns. This PR also introduces a new table property
responsiveHiddenColumns
to be able to easily distinguish between hidden columns and columns hidden from this responsive behavior.Via column definition
Specify an array of media breakpoints that determine when this column will be shown. If we have the following breakpoints defined in
app/breakpoints.js
:And we want to show this column only for tablet and desktop media, the following array should be specified:
If this property is
null
,undefined
, or[]
, then this column will always be shown, regardless of the current media type.Via light-table component
Pass a hash to determine the number of columns to show per given breakpoint. If this is specified, it will override any column specific breakpoints. If we have the following breakpoints defined in
app/breakpoints.js
:The following hash can be passed in:
If there is no rule specified for a given breakpoint (i.e.
desktop
), all columns will be shown.