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

Work without alphabetically keyed datasource #17

Open
ssomnoremac opened this issue Jun 30, 2016 · 3 comments
Open

Work without alphabetically keyed datasource #17

ssomnoremac opened this issue Jun 30, 2016 · 3 comments

Comments

@ssomnoremac
Copy link

Please correct me if I'm missing something but based on the example I need to format my data source to be keyed on the first letter of the word and then also sort the array of values? Shouldn't a tool like this assume do this automatically on a given field within that data? like: sortOn: "user.name"

Let me know if I'm missing something otherwise I'm forking and getting it to work that way.

@ssomnoremac ssomnoremac changed the title Work without aphabetically keyed datasource Work without alphabetically keyed datasource Jun 30, 2016
@joshbuchea
Copy link

It will accept an array also, but it does need to be structured as on object with the keys if you want the sections & ABC jump-to.

I suppose you raise an excellent point. Without those features, why would one use this component?

@ssomnoremac
Copy link
Author

I tried to preserve the ability to use an object but gave up. What I have here is a component that actually requires a field (I need to change that) to sort on and will accept only an array of objects. I think this is a much more common case. I changed theREADME to show an acceptable data source. The side bar doesn't work though. It only pops the list to the top sometimes. Would love some help here before a PR. Thanks!

@akinolu52
Copy link

@ssomnoremac have u merged this ?

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

3 participants