scarletsky / angular-at-directive Goto Github PK
View Code? Open in Web Editor NEW[ DEPRECATED ]AngularJS Directive for At(@) user feature
Home Page: http://scarletsky.github.io/Angular-At-Directive
[ DEPRECATED ]AngularJS Directive for At(@) user feature
Home Page: http://scarletsky.github.io/Angular-At-Directive
Got a project with a search box similar to Workflowy. It accepts search text
, @user
, and #tag
. Looking at forking to add said multi-flag support, do you think it's a big undertaking, or would it be not-so-tough?
Plan to put the settings in the AtCtrl
.
<form ng-controller="AtCtrl">
<textarea at-user
at-auto-complete
ng-model="message.content"
ng-trim="false"></textarea>
<ul at-user-list>
<li ng-click="autoComplete(object)">
<img />
<span>{{ user.name }}</span>
</li>
</ul>
</form>
Now the directive work with the keyboard because it need a strict DOM structure.
The <span>
tag should in the <li>
tag.
But I think this is not necessary.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.