Last active
December 16, 2015 18:49
-
-
Save swarnendude/5480899 to your computer and use it in GitHub Desktop.
Viewport for both left and right navigation
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
Ext.define('SlideNav.view.Viewport', { | |
extend: 'Ext.Container', | |
xtype: 'app_viewport', | |
requires: [ | |
'Ext.TitleBar' | |
], | |
config: { | |
fullscreen: true, | |
layout: 'hbox', | |
items: [{ | |
xtype: 'main', | |
cls: 'slide', | |
// Needed to fit the whole content | |
width: '100%' | |
}, { | |
xtype: 'navigation', | |
width: 250 | |
} | |
] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment