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

Spaces in Names #5

Open
ncammarata opened this issue Jun 8, 2014 · 3 comments
Open

Spaces in Names #5

ncammarata opened this issue Jun 8, 2014 · 3 comments

Comments

@ncammarata
Copy link

I'd really like to use this for my project, but part of the requirements is that it support names. Think (@nick cammarata) and turn it into an @mention in a similar way that Facebook does it. Is this possible or in the near term for the project?

@scarletsky
Copy link
Owner

@ncammarata
Unfortunately, this project is unfinished. If you are going to use this for your project, the first thing you need to do is to edit these source code for your api.
About your question. There is no way now. Since I am recently working for another project, I have no time to add any new feature for this project. I think you can try to add a new attribute in the HTML like space-after="true" and then edit these code. It should work, I think.

@ncammarata
Copy link
Author

Thanks for your response. What do you mean by unfinished? Would you suggest using what exists now in a production app or is it too untested. Has it been in production before?

@scarletsky
Copy link
Owner

@ncammarata
As you see, the url of ajax request is hard code. You should modify it for your project otherwise it will not work.
I considered adding HTML attribute like api="/search/something" to solve the hard code problem. Then it will looks like <input type="text" at-user auto-complete flag="@" api="/search/something" />.

This is my design for the project. But due to my job, I have no time to finish this feature. This is what I mean that the project is unfinished.

Personally, I do not suggest you to use an unfinished thing in your app. But you can modify the source code, you can make it more suitable for your app.

Finally, I think you can consider using At.js in your app.

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