Last active
June 14, 2017 08:46
-
-
Save EddyVerbruggen/0de34b07ccd479451dafd42b61a62463 to your computer and use it in GitHub Desktop.
Split view tablet support for NativeScript with Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 'master' view --> | |
<ActionBar></ActionBar> | |
<GridLayout [columns]="isTablet ? '*, *' : '*'"> | |
<StackLayout> | |
<!-- 'master' ListView --> | |
</StackLayout> | |
<StackLayout col="1" *ngIf="isTablet"> | |
<!-- 'detail-contents' component, only for tablets --> | |
<detail-contents></detail-contents> | |
</StackLayout> | |
</GridLayout> | |
<!-- 'detail' view (used on phones only) --> | |
<ActionBar></ActionBar> | |
<StackLayout> | |
<detail-contents></detail-contents> | |
</StackLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment