This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
tabs: Need better way to programmatically focus (not select) a tab. #9743
Open
Description
Actual Behavior:
What is the issue? *
Currently, there is no easy way to focus a particular tab and have the styling applied properly.What is the expected behavior?
I should be able to callmyTab.focus()
or set themd-focused-index
property of the<md-tabs>
component to programmatically focus a tab.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
http://codepen.io/topherfangio/pen/dpkGQk?editors=1010Details:
Currently, in order to focus a tab, you have to fetch themdTabs
controller and modify thectrl.lastClick
andctrl.focusIndex
properties to focus the appropriate tab.
Angular Versions: *
Angular Version:
AllAngular Material Version:
1.1.1
Additional Information:
Browser Type: *
Browser Version: *
OS: *
Stack Traces:
Shortcut to create a new CodePen Demo.
Note: *
indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.