ng2-mentions
Advanced tools
Comparing version 0.1.9 to 0.2.0
@@ -1,2 +0,2 @@ | ||
System.register(['angular2/core', './mention-utils'], function(exports_1, context_1) { | ||
System.register(['angular2/core', './mention-utils', './caret-coords'], function(exports_1, context_1) { | ||
"use strict"; | ||
@@ -13,3 +13,3 @@ var __moduleName = context_1 && context_1.id; | ||
}; | ||
var core_1, mention_utils_1; | ||
var core_1, mention_utils_1, caret_coords_1; | ||
var MentionList; | ||
@@ -23,2 +23,5 @@ return { | ||
mention_utils_1 = mention_utils_1_1; | ||
}, | ||
function (caret_coords_1_1) { | ||
caret_coords_1 = caret_coords_1_1; | ||
}], | ||
@@ -38,3 +41,3 @@ execute: function() { | ||
if (mention_utils_1.isInputOrTextAreaElement(nativeParentElement)) { | ||
coords = getCaretCoordinates(nativeParentElement, nativeParentElement.selectionStart); | ||
coords = caret_coords_1.getCaretCoordinates(nativeParentElement, nativeParentElement.selectionStart); | ||
coords.top = nativeParentElement.offsetTop + coords.top + 16; | ||
@@ -41,0 +44,0 @@ coords.left = nativeParentElement.offsetLeft + coords.left; |
{ | ||
"name": "ng2-mentions", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "Angular 2 mentions for text fields.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -23,6 +23,5 @@ # Angular 2 Mentions | ||
Add the CSS and JS dependencies your index.html: | ||
Add the CSS to your index.html: | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
<script src="ext/textarea-caret-position.js"></script> | ||
@@ -29,0 +28,0 @@ Add the `[mention]` directive to your input element: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27752
11
548
45