Quantcast
Viewing all articles
Browse latest Browse all 8068

com.tripvi.drawerlayout module rightView not working ?

Hi All , I am using slide menu with com.tripvi.drawerlayout module. In this rightView property value taking from TableViewRow values from menu.xml file and centerView property taking from View of main.xml file. But it not showing TableViewRow names in mainWindow.

Here is the code:

// Android only if (OS_ANDROID) { // Load module var TiDrawerLayout = require('com.tripvi.drawerlayout');

// define menu and main content view
var menuListTable = Alloy.createController('menuList').getView();

var mainContentView = Alloy.createController('mainContentView ').getView();

var drawer = TiDrawerLayout.createDrawer({

    rightView : menuListTable,
    centerView : mainContentView,
    rightDrawerWidth: "200",
    width : Ti.UI.FILL,
    height : Ti.UI.FILL,

});


Alloy.CFG.drawer = drawer;
Alloy.CFG.contentView = mainContentView;

drawer.addEventListener('draweropen', function(e) {
    // drawer is open
    Ti.API.info('drawer is open');
});

drawer.addEventListener('drawerclose', function(e) {
    // drawer is closed
    Ti.API.info('drawer is closed');
});

drawer.addEventListener('drawerslide', function(e) {
    // drawer is sliding
    // slide offset: e.offset
    Ti.API.info('drawer is sliding');
});

$.mainWindow.add(drawer);
$.mainWindow.open();

}

I need to provide right drawer in my window ? Please help me out....


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>