Cloud Stack Ninja

So i have created two views : one a login dialog and the other (the following) is a dashboard basically. On login click i use this.redirectTo("dashboard",true); hoping that it will trigger the routing linked handler in the next view (the following) but it didn't work; so I set the trigger manually and trigger the handler using an instance of the view.

   Ext.define('Mine.view.newDashboard', {
            extend: 'Ext.Container',
            alias: 'widget.newDashboard',
            id: 'project1',
             routes:{
                     '#dashboard':{
                         action:'onDashboardView'
                     }
                     },
             onDashboardView:function(dash){
  
                              dash.show();
             },....

My question is how to do the routing properly like in the described first way so that the first displays when the URL changes to include the '#dashboard' part? Thanks !



Read more here: https://stackoverflow.com/questions/64394693/how-to-route-to-a-view-on-button-click-extjs-6-2

Content Attribution

This content was originally published by ites at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: