{
path: '/',
url: './home.html',
tabs: [
{
path: '/',
id: 'tab1',
...
},
{
path: 'settings/',
id: 'tab2',
...
},
Like this?
app.router.navigate('/settings/');
Please, help me.
{
path: '/',
url: './home.html',
tabs: [
{
path: '/',
id: 'tab1',
...
},
{
path: 'settings/',
id: 'tab2',
...
},
Like this?
app.router.navigate('/settings/');
Please, help me.
view.router.navigate('./settings/');
This method don’t update if settings is current tab.
But how to update the current routable tab?
my way to update the current tab - recursion:
function created_tab() {
// for example the code that creates tab content from mysql
app.request.post('content_tab.php', function (data) {
$$('#tab_div').html(data);
// button refresh (or other el) in the tab
$$('#button_refresh').on('click', function(){
created_tab(); // current tab refreshed
});
});
}
Have you tried this?
app.router.navigate( ‘/.settings/’, {
ignoreCache: true,
reloadCurrent: true,
animate: false,
} );
also try
app.view.current.router.refreshPage();