Expand card, inbox style
Is there any possibility to expand card on click like inbox.google.com, for example
At the moment, unfortunately no. Duplicate of #1100.
you can see there my temporary solution.. iv'e changed it a little since then to act a bit different.. I'm sure soon enough this will be included.
@EladBezalel Thank you. I've seen your solution in Plunker. What have you changed from there ? Did you published the changes anywhere ?
@ehajredini sure :smile: I'll update my plunker soon.. I'll let you know!
@ehajredini Updated! you can review here
@EladBezalel Thank you!
Sure :grin:
@EladBezalel :+1:
@ehajredini i think you can close this
@EladBezalel I am not sure if this is the right place to discuss, i apologize in advance for that. Please post a reference to the right place to post such comments.
I really liked your solution, but I can see one missing feature i.e. the active element top offset. Here is what I am talking about:
- Open any of the card.
- Scroll so that the second item is at the top position of the page.
- Click on second item.
- The top area scrolls up and is no more visible and only the end part of the current card is visible.
- Is there anyway we can handle this offset issue.
One more question, why your solution does not make use of the card directive anywhere?
@ivks feel free to discuss this issue where ever you want :) I am very happy that you liked my solution!
The scenario you've talked about is not possible with this kind of implementation. There is no way to achieve this with css only, to create a 'scroll to item' you need to use javascript therefore a directive for this expandable list.
I have (in a closed network) a directive implementation of this but not with the suggested feature.
Also this kind of directive is hard to achieve because the multiple parts of the item (header, description, contact etc..) and a complicated transclution need to be done (I used ng-multi-transclude)
It is possible but I think the angular-material team should lead this or at least start this effort.
About the card directive, I didn't used it because the current card directive is not suitable for the expandable list because it has padding and card should never be close to one another, so I used more basic directive..
Feel free to ask more if you'd like! Thanks again :)
@EladBezalel Thank you so much for your detailed explanation. whatever I wanted to know has been answered. :+1: Thanks again.
hey, has the @EladBezalel solution been included in any way? Would this work with the card directive?
@Bakirelived this was never intended to be included in ngMaterial, This feature is very user specific therefore i'd suggest you to try and implement it by your-self
@EladBezalel Hey, did you by any chance continue with the example you posted a couple of months ago? Specifically I'm using md-data-table and would like to achieve the Google Inbox effect of having a table row expand into a card.
Got any tips/examples that could help me on my way?
Actually yeah, i have it totally reworked with cool animations and auto height but it's on an offline network..
Nothing in particular, just try to keep it simple and think of all your usages ahead.. Also try to develop it as components and in the angular2 way.. this will work for you the best
@EladBezalel Thanks, by it being on an "offline network" I suppose you mean it's also proprietary? Posting an example could help me and perhaps many more people :). And my requirements are basically everything from Inbox. Like having a list with selectable items, expand on selection and all of that.
If you aren't able to post an example (maybe later) then still thanks for the reply!
@zegerhoogeboom I'd probably export it at some point, hope it will be sooner than later! :)
@EladBezalel Cool, @zegerhoogeboom me when you do would be great!
@EladBezalel that export would be great ;) meanwhile I was trying to work based on your plnkr, but I think it's broken...