Child pages
  • Edit your Navigation Menu
Skip to end of metadata
Go to start of metadata

Work in progress

Edit the Tabs

When you create a new D2W application, the first thing you want to do is to customize your navigation tabs. At first, your application looks like this :


The definition of all your navigation menu is in the NavigationMenu.plist, which is in the Resources folder of your application. You can see that the three tabs are the children of "Root". You can edit these files to add your own tabs. For exemple, if we follow the exemple ERModernMoviesDemo, we're going to add three tabs, "Movies", "Studio", and "Admin" :

(
	{
		name = Root;
		children = ("Home","Movies","Studio", "Admin");
	},
	{
		name = "Home";
		action = "session.navController.homeAction";
	},
	{
		name = Movies;
		action = "session.navController.homeAction";
	},
	{
		name = Studio;
		action = "session.navController.homeAction";
	},
        {
                name = Admin;
                action = "session.navController.homeAction";
        }
)

Now your tabs are correctly displayed : 



  • No labels