We are currently using the SplitPane component in our app, however on the tablet and in PWA we’d like to display a third column when an item is selected in a listing.
Side Menu > Item Listing > Item Details
So rather than pushing another page for the Details, instead display the Details beside the Listing. What is the best way to implement this?
I know I could use ion-grid with different responsive column directives, but we need this on several pages. Is there a way to make this into a reusable component which can host both the Listing and the Details?
I experimented with ion-grid but ran into some difficulties getting scrolling to work properly in the two columns. But after a bit of research I had a brainwave… showing ion-menu on both the left and right sides!
This will work perfectly, since the main page and side menu each take care of scrolling, pull down refresh, infinite scroll, navbars, etc.
I’ll have some logic when the screen is Large or bigger, publish an event with Details content, which displays the right side menu. When the screen is less than Large, then push a Page as usual. And when there is no Details content, the right side menu will be hidden, so only two columns.