-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature request: tree view #85
Comments
Yeah, there's some good TreeView examples over on the ARIA Authoring Practices Guide: https://www.w3.org/TR/wai-aria-practices/#TreeView Something along those lines? Could be a good addition to the collection. |
I'm trying to port https://www.w3.org/TR/wai-aria-practices/#TreeView and I'm experiencing some troubles in embracing the frend-ly like architecture.
|
Thanks for the feedback, @gunzip. We've been talking about point 2 a lot this week. We realise that looping within the component initialisation is less than ideal for state, callbacks, etc. We're working on a v1.1 (or v2 depending on the API impact) of these components, which will, like you say, see a restructure to better handle multiple instances as separate objects. Point 1 is a fair point, so happy to discuss that more. Just wanted to jump in and give you a heads up on the restructure, so you're aware before getting too far into a new component. Will come back to elaborate on point 1 asap. Cheers! |
Is there any date scheduled for the next release ? (even approximately). About the 1st point I would just add that functions like Even if I like the new ES6 features, I try hard to resist my temptation to embrace the new brand techniques and be more pragmatic ;) |
I'd say a new release in the next couple of weeks. We'll shortly be merging improvements into the v2 branch, so keep an eye on that. Will let you know when it's close. v2 will have component looping removed, so instead we'll pass through a single element as a mandatory parameter, and any custom options in the second. That should resolve your valid concerns with the looping, state etc. For example: var tabsEl = document.getElementById('tabs');
var myTabs = frtabs(tabsEl, {
onTab: function (tabs) {
console.log(tabs.activeIndex);
}
}); Dependencies |
Maybe a 'navigable nested accordion' would suffice to implement something alike:
http://apps.komposta.net/jquery/navgoco/demo/
(actually nesting accordion(s) works with mouse clicks but not with keyboard navigation).
The text was updated successfully, but these errors were encountered: