This repository was archived by the owner on Apr 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Original file line number Diff line number Diff line change 11# ui-mention
22Facebook-like @mentions for text inputs built around composability
33
4- ## Contribute
5-
6- 0 . ` npm install `
7- 0 . ` npm install -g gulp bower `
8- 0 . ` bower install `
9- 0 . ` gulp [watch] `
10- 0 . Compiling the example code: ` gulp example [watch] `
4+ ## Installation Methods
115
6+ ### npm
7+ ```
8+ $ npm install angular-ui-mention
9+ ```
10+ ### bower
11+ ```
12+ $ bower install angular-ui-mention
13+ ```
1214## Usage
13-
15+ ```
1416For now, you should create a child-directive to customize (API probably going to change)
1517
1618```js
@@ -100,6 +102,15 @@ And the CSS:
100102
101103_ All these features come at the amazingly low price of DO IT YOURSELF and $0.00. YMMV._
102104
105+ User your own patterns:
106+ ``` js
107+ mention .delimiter = ' /* delimiter */' ;
108+
109+ mention .searchPattern = new RegExp (" /* pattern */" );
110+
111+ mention .decodePattern = new RegExp (" /* pattern */" );
112+ ```
113+
103114Find things!:
104115``` js
105116mention .findChoices = function (match ) {
@@ -173,3 +184,11 @@ SPINNIES!
173184 <li ng-repeat =... >...</li >
174185</ul >
175186```
187+
188+ ## Contribute
189+
190+ 0 . ` npm install `
191+ 0 . ` npm install -g gulp bower `
192+ 0 . ` bower install `
193+ 0 . ` gulp [watch] `
194+ 0 . Compiling the example code: ` gulp example [watch] `
You can’t perform that action at this time.
0 commit comments