You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was creating tabs and what trying to figure out why setting it to 1 always chose the first tab since it wasn't mentioned in the documentation and that everything in javascript is zero based index.
For example:
var tabs = $.ninja.tabs({values: [
{html:"no"},
{html:"yes"}
], value: 1});
Would select "no", and not "yes" as expected.
This was changed easily in the ninjaui code by making "0" the default value and removing the "- 1" in
if (i === options.value - 1) {
$tab.select();
}
Under the tabs function.
The text was updated successfully, but these errors were encountered:
I was creating tabs and what trying to figure out why setting it to 1 always chose the first tab since it wasn't mentioned in the documentation and that everything in javascript is zero based index.
For example:
var tabs = $.ninja.tabs({values: [
{html:"no"},
{html:"yes"}
], value: 1});
Would select "no", and not "yes" as expected.
This was changed easily in the ninjaui code by making "0" the default value and removing the "- 1" in
if (i === options.value - 1) {
$tab.select();
}
Under the tabs function.
The text was updated successfully, but these errors were encountered: