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

[Updated] Md-Tabs - Navigate Options & Count Tabs #2685

Closed
Ganim opened this issue Jan 17, 2017 · 3 comments
Closed

[Updated] Md-Tabs - Navigate Options & Count Tabs #2685

Ganim opened this issue Jan 17, 2017 · 3 comments
Assignees
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix

Comments

@Ganim
Copy link

Ganim commented Jan 17, 2017

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

#1 - I would like to change tabs by buttons,
#2 - count how many tabs I have.

What is the current behavior?

tabsNumber = document.getElementsByTagName('md-tab').length;
Doesn´t work to count tabs. If i don´t know how tabs I have, a can´t limite the "Next" Button

What is the use-case or motivation for changing an existing behavior?

Thats a way to navigate better the tabs, and a way to do a multi step form.

Which versions of Angular, Material, OS, browsers are affected?

@angular/material: 2.0.0-beta.1

@Ganim Ganim changed the title Tabs - next-back button & Count Tabs [Updated] Md-Tabs - Navigate Options & Count Tabs Jan 18, 2017
@Ganim
Copy link
Author

Ganim commented Jan 18, 2017

[Updated] - Use the template question form, sorry by changed this before.

@jelbourn jelbourn added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Jan 25, 2017
@andrewseguin
Copy link
Contributor

Here's an example of (1) changing the tabs using buttons and (2) counting how many tabs there are using a ViewChildren query.

http://plnkr.co/edit/cyb5sRINXprP0pwXsCmB?p=preview

Please feel free to open the issue if you find a bug or missing feature

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix
Projects
None yet
Development

No branches or pull requests

3 participants