I know this is quite old but, I've a couple of overlays that i use to update data and then refresh the intere view or just the related list views.
But what i need now in a couple of scenarios is to change the active tab on the controller when something happen.
For instance some kind of form validation that will open the corresponding tab to show the users where they need to correct the issues. Or after adding some data in database, i would like to add a new tab and show it as active by default.
Do you have any sample i can use as reference or point me out on the right direction?
Custom Section View : change active Tab ( with javascript)
Hey, i am developing a custom section for my umbraco 7, and i need to
manually change the active Tab in Tabview i created.
$scope.content = { tabs: [
{ id: 1, label: "xxx" },
{ id: 2, label: "yyy" },
{ id: 3, label: "zzz" }
};
<umb-header tabs="content.tabs" >
</umb-header>
<umb-tab-view>
<umb-tab id="tab1" rel="nlstudio" >
..........................................
Hi Yves, did you find a way to do this?
Best,
Marco
You can set a class active on your umb-tab directive to make it active.
Dave
Hi Dave!
I know this is quite old but, I've a couple of overlays that i use to update data and then refresh the intere view or just the related list views.
But what i need now in a couple of scenarios is to change the active tab on the controller when something happen.
For instance some kind of form validation that will open the corresponding tab to show the users where they need to correct the issues. Or after adding some data in database, i would like to add a new tab and show it as active by default.
Do you have any sample i can use as reference or point me out on the right direction?
Many thanks, Marco
Nope, that doesn't work. Adding class="active" on second umb-tab, the first is always active by default.
is working on a reply...