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 1
1
# ui-mention
2
2
Facebook-like @mentions for text inputs built around composability
3
3
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
11
5
6
+ ### npm
7
+ ```
8
+ $ npm install angular-ui-mention
9
+ ```
10
+ ### bower
11
+ ```
12
+ $ bower install angular-ui-mention
13
+ ```
12
14
## Usage
13
-
15
+ ```
14
16
For now, you should create a child-directive to customize (API probably going to change)
15
17
16
18
```js
@@ -100,6 +102,15 @@ And the CSS:
100
102
101
103
_ All these features come at the amazingly low price of DO IT YOURSELF and $0.00. YMMV._
102
104
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
+
103
114
Find things!:
104
115
``` js
105
116
mention .findChoices = function (match ) {
@@ -173,3 +184,11 @@ SPINNIES!
173
184
<li ng-repeat =... >...</li >
174
185
</ul >
175
186
```
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