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

Need more documentation #52

Open
mboudreau opened this issue Apr 5, 2012 · 5 comments
Open

Need more documentation #52

mboudreau opened this issue Apr 5, 2012 · 5 comments

Comments

@mboudreau
Copy link

I would like to have some kind of API for all the controls, I found a few things here and there, but nothing official.

@uipoet
Copy link
Member

uipoet commented Apr 5, 2012

Every Ninja UI object and its options/callbacks/methods are documented on the website: http://ninjaui.com/#samples. Is there a specific part of the API that you feel is undocumented?

@mboudreau
Copy link
Author

I feel like there's not enough information on them. What do the functions do, how do you use them, etc...

For instance, the autosuggest is cool, but the example was poorly made. I didn't know that I had to create a div first, and then add the "autocomplete" to it. I started off with an input and it added another input within it. Needless to say, that didn't work very well.

@uipoet
Copy link
Member

uipoet commented Apr 5, 2012

Thank you for the feedback. We are working on an updated version of our site and will flesh out the documentation further. I will leave this issue open until that happens.

On the specific issue you mentioned. All Ninja UI objects completely draw their HTML. This is different than other JavaScript UI libraries that have you create the HTML in advance and then overwrite. This is done for two reasons:

  1. It keeps the API of Ninja UI completely JavaScript. All you need to do in HTML is mark where you want an object to go.
  2. The objects and their binding can be created before the page finishes loading so they may be inserted anywhere in the page, ready to go.

@mboudreau
Copy link
Author

I understand that now, and I appreciate the thought behind it, I think it's a better way to do things. However, I was still somewhat confused when starting it before grasping the concept. I'd be willing to help on some docs if something were to be available on github.

Cheers.

@uipoet
Copy link
Member

uipoet commented Apr 5, 2012

Awesome. Our current site is in fact available on GitHub: https://github.com/ninja/ninja.github.com

Our new and improved update, which is not currently on GitHub, will be and we'd love a hand with making the first time experience a good one for others.

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

2 participants