Is your feature request related to a problem? Please describe.
Nope.
Describe the solution you'd like
This is for a landmark feature called collapsible lists in which we would need a button on the pager to expand/collapse the list.
preview:


Describe alternatives you've considered
The pager looks like a component to simplify setting tooltips, enabling/disabling for a specific set of buttons. I think it would be more flexible if we'll make it more like the toolbar where we can just put in what buttons we wanted to include, and let the developers manage the clicks and button disabling themselves.
@nbcp Can鈥檛 we just do this part in landmark by constraining the width of the standalone pager and place the chevron button in the markup ourselves?
Just wondering if we should make this a generic Soho official feature. (Slide in panel component maybe?)
But the part about just adding an icon could be done by making the pager into a toolbar with external templating. Or of course just force it in the DOM as @pwpatton suggests.
Does this need designs?
@tmcconechy I think it's worth a discussion. We have our own list-detail implementation using the classes of list-detail but not the functionality. This was required for some funky nesting we did with list-detail within a list-detail (beyond what we did for the filter list stuff).
It's possible if we could deprecate the filter list stuff in EP if no one is using it and if we are completely off of it. @nbcp do you know if we still use parts of the filter list stuff in EP (the classes maybe)?
@nbcp I think the first thing we should do is implement it by forcing the stands-lone pager over with css and managing the chevron collapsing ourselves since we have our own lm-drawer implementation for the list-detail pattern. If we discover a need for a larger collapse pattern in EP we could add it to their backlog. But first I think we should implement it and demo to Tim.
The pager looks like a component to simplify setting tooltips, enabling/disabling for a specific set of buttons. I think it would be more flexible if we'll make it more like the toolbar where we can just put in what buttons we wanted to include, and let the developers manage the clicks and button disabling themselves.
To approach it this way, we'd also have to separate out paging functionality into a service with events, api, etc. The pager is a specific type of toolbar for sure, but it's also currently got all the logic for "paging" a dataset built into it.
Ok, I re-thinking. Your right. I think maybe the drawer is a separate concern. The drawer thing has nothing to do with paging...
I.E. The pager stays as is. But just size it to account for a button on the right and add the functionality of the button
@EdwardCoyle I've always been a fan of simplifying the pager component into a simple "slave" component. The implementations using the pager component would have responsible for values in that pager (tooltips, which page your one if that enabled, etc..). To me, it seems too intertwined with the implementation of its usages (datagrid, listview, etc...).
It's possible if we could deprecate the filter list stuff in EP if no one is using it and if we are completely off of it. @nbcp do you know if we still use parts of the filter list stuff in EP (the classes maybe)?
@pwpatton Actually, not so sure, but looking at it it's more relying on list-detail for its toggle mechanism. For its look, it is mostly accordion with some css style overrides.
@nbcp I think the first thing we should do is implement it by forcing the stands-lone pager over with css and managing the chevron collapsing ourselves since we have our own lm-drawer implementation for the list-detail pattern. If we discover a need for a larger collapse pattern in EP we could add it to their backlog. But first I think we should implement it and demo to Tim.
Sounds good, I'll try to work on this on landmark first and see how well it would work even when theme changes.
@tmcconechy Which sprint will this be scheduled for?
@nbcp were you working on this (its assigned to you). If not we can add it in August sprint and do it? Unless @nbcp is already working on something?
Yup I already started working on this in landmark. And since this feature is not going to be used elsewhere (at least for now), going to close this ticket as longer needed.