Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddTab argument to make tab selected doesn't work #38

Open
donnyv opened this issue Mar 22, 2022 · 1 comment
Open

AddTab argument to make tab selected doesn't work #38

donnyv opened this issue Mar 22, 2022 · 1 comment

Comments

@donnyv
Copy link

donnyv commented Mar 22, 2022

When adding a bunch of tabs. The argument to set the tab as selected. Doesn't seem to be working.

tabview.AddTab(new AuraTabItem{ ... }, true);
tabview.AddTab(new AuraTabItem{ ... });
tabview.AddTab(new AuraTabItem{ ... });
@donnyv
Copy link
Author

donnyv commented Mar 24, 2022

I figured it out. Looks like you have to set the others to false. You should either make that argument not optional or default the values to false and if none is set selected then default first item as selected.

tabview.AddTab(new AuraTabItem{ ... }, true);
tabview.AddTab(new AuraTabItem{ ... }, false);
tabview.AddTab(new AuraTabItem{ ... }, false);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant