Company
Date Published
Author
Mike Hartington
Word count
364
Language
English
Hacker News points
None

Summary

Ionic has introduced the Split View feature, which enhances the ability of apps to adapt to different screen sizes by allowing a side-menu to be exposed when the viewport reaches a specific width. This feature, a highly requested addition, involves using the expose-aside-when attribute directive within the ion-side-menu tag, enabling developers to specify when a menu should be visible based on the viewport's width. The default use-case for this attribute uses "large" as a shorthand for a minimum width of 768px, but it also supports custom media queries for greater flexibility, allowing developers to tailor the visibility of side-menus to various device sizes, such as phones and tablets. This enhancement improves the responsiveness and user experience of Ionic apps across diverse devices, reflecting a significant step in accommodating the needs of developers dealing with varying screen dimensions.