
Ionic – Split Pane Layout
Table of Contents
Code
The Component
Menu
If you want a open/close butten for Desktops
import { SIZE_TO_MEDIA } from '@ionic/core/dist/collection/utils/media'
toggleMenu() {
const splitPane = document.querySelector('ion-split-pane');
if(window.matchMedia(SIZE_TO_MEDIA[splitPane.when] || splitPane.when).matches)
splitPane.classList.toggle('split-pane-visible')
}