Hi,
Currently I do a lot of this:
item.parent.setActiveContentItem(item);
I think an item should have a focus method or something similar to select its tab.
Hi!
Try this item.parent.header.parent.setActiveContentItem(item);
Hi @nego25,
The code I posted works, I'm just saying that there should be a helper method.
If I understand this correctly, you are proposing item.focus() or item.setAsActive()?
Not sure this is needed. However if you want to submit a PR then I will be happy to review it and merge.
It makes sense as is - you are selecting the stack and telling it what tab should be active.
Yes, that is what I was talking about. Honestly, it was difficult for me at first because the documentation was not clear.
If you think this helper is not necessary, please add an example on the docs. Thanks.
Will close and add to the list of needed documentation - #269.
We can discuss the helper function in there if needed :)
Most helpful comment
Will close and add to the list of needed documentation - #269.
We can discuss the helper function in there if needed :)